Understand
Rolling Cap Model
How rolling usage capacity limits market exposure over time instead of only at transaction boundaries.
The rolling cap model limits how much capacity can be consumed over a time window. It is a throttle, not a simple static maximum.
Mental Model
Why Rolling Caps Exist
Static per-transaction limits do not protect a market from many small transactions in a short period. A rolling window lets the protocol enforce market-level exposure over time while still allowing normal flow.
Operational Signals
- repeated cap rejections can be healthy demand or unsafe pressure.
- changing the cap is an administrative risk decision.
- quote services should surface cap failures distinctly from signer or RPC failures.
Source Files
src/RollingCapManager.solsrc/CollateralManager.solsrc/RiskConfig.sol