I would like feedback on ERC-8475, an opt-in ERC-20 extension combining a per-transfer cap with an aggregate outgoing cap per fixed block window.
Proposal and specification: Add ERC: ERC-20 Outgoing Window Limits by shargon · Pull Request #2130 · ethereum/ERCs · GitHub
Motivation
A compromised signing or withdrawal workflow can divide a large outflow across transactions and recipients. A per-transfer limit alone does not bound that total. This proposal defines shared token-side accounting and discoverable policy for each balance holder.
Proposed behavior
- The holder enrolls with a maximum per transfer, a maximum per window, a window length in blocks, a cap-change delay and an independent guardian.
- The epoch is floor(block.number / windowBlocks). Every positive outgoing movement must satisfy both the per-transfer cap and the remaining aggregate quota.
- All debit paths share the holder counter, including transferFrom, burns, self-transfers and signature-authorized spending. Incoming transfers do not refill quota.
- The holder or guardian can tighten caps immediately and cancel a pending change. Only the holder can schedule replacement caps, which become applicable after the immutable delay.
- Applying or cancelling a policy change never resets usage. Enrollment, guardian, window length and change delay are immutable.
- The proposal standardizes an interface, events and accounting semantics rather than a particular implementation.
Tradeoffs and feedback requested
These are fixed windows, not rolling windows: spending the full quota immediately before and after a boundary is possible. The guarantee is per token and holder, not a fiat-value or exchange-wide bound. The guardian can deny service by tightening caps to zero, and token upgrades or unprotected debit paths can undermine protection.
Feedback is especially welcome on fixed-window interoperability, gross outgoing accounting, cap-change semantics, immutable configuration and wallet/custodian integration.
This proposal is independent of the complementary ERC-8474 delayed-unlock proposal. A token could implement both policies.
Author: Fernando Díaz Toledano (@shargon).