Repository navigation
docs(adr): lock per-epoch liquidity cap parameter (ADR 026 §11, ADR 018) - #554
Conversation
Adds epochLiquidityCapFraction to ADR 026 §11 governable parameters with default 10%, bounds [1%, 30%]. Default sized against Balancer V3 80/20 weighted-pool slippage (single max swap ~0.4% of USDC reserve; TWAP subSwapCount=4 → ~1.6% daily; 10% epoch cap leaves headroom for roughly a week of daily buybacks at full sizing). 30% ceiling prevents single-epoch pool exhaustion; 1% floor prevents governance starving the swap paths under sustained revenue. ADR 018 cross-references updated: the prose at "Required: per-epoch liquidity cap" and the parameter-table row now point at the named ADR 026 §11 parameter, dropping the "placeholder default to be set in implementing ADR" deferral. finance/notebooks/ retained as the operational tuning reference. Closes #543.
There was a problem hiding this comment.
Code Review
This pull request formalizes the epochLiquidityCapFraction parameter within the liquidity strategy and tokenomics ADRs, establishing a 10% default value and a governance-tunable range of 1% to 30%. This parameter defines the aggregate per-epoch cap for USDC swaps across both buyback and delegator-pool paths on Balancer V3. Review feedback suggested refactoring the description of this parameter in ADR 026 to be more concise and to remove historical rationale, ensuring the documentation remains focused on the current design.
| | `claimWindow` | 26 epochs | 13 epochs | 52 epochs (`uint16` count of epochs; the contract internally multiplies by the immutable `epochLength` to derive a seconds-domain deadline) | | ||
|
|
||
| The 20% floor on the node-base share guarantees operators always receive enough liquid USDC to cover at least a meaningful fraction of infrastructure costs even under extreme governance proposals — preserves the cashflow invariant. The `boostFloor` bounds prevent governance from collapsing the gauge pool to a winner-take-all distribution (lower-bound) or flattening it into uselessness (upper-bound). The `MAX_GAUGE_SHARE_PER_OPERATOR` bounds prevent governance from disabling the wash-trading defense (lower bound implicitly enforced by the cap being non-zero) or so over-tightening that legitimate large operators are starved (upper bound). | ||
| The 20% floor on the node-base share guarantees operators always receive enough liquid USDC to cover at least a meaningful fraction of infrastructure costs even under extreme governance proposals — preserves the cashflow invariant. The `boostFloor` bounds prevent governance from collapsing the gauge pool to a winner-take-all distribution (lower-bound) or flattening it into uselessness (upper-bound). The `MAX_GAUGE_SHARE_PER_OPERATOR` bounds prevent governance from disabling the wash-trading defense (lower bound implicitly enforced by the cap being non-zero) or so over-tightening that legitimate large operators are starved (upper bound). The `epochLiquidityCapFraction` parameter is the combined per-epoch ceiling on USDC notional swapped through the Balancer V3 80/20 pool across both [`BuybackBurner` execution](018-liquidity-strategy.md#buyback-execution-via-balancer-v3) and the [delegator-pool swap path](018-liquidity-strategy.md#delegator-pool-swap-path-parallel-usdctoken-conversion-on-the-same-pool), expressed as a fraction of in-pool USDC depth captured at epoch start; the 1% floor prevents governance from starving the swap paths under sustained revenue, the 30% ceiling prevents a single epoch from draining pool depth, and the 10% default sizes one epoch's combined swap pressure conservatively against worst-case sustained execution per the [Liquidity-cap interaction](018-liquidity-strategy.md#liquidity-cap-interaction) requirement that the cap be a single pool-wide budget shared across both paths. |
There was a problem hiding this comment.
The description for epochLiquidityCapFraction contains historical rationale and iteration details that should be omitted from ADRs. Additionally, the text is excessively long. Please use a more concise style, splitting the description for readability and removing context that belongs in issue discussions or commit messages.
| The 20% floor on the node-base share guarantees operators always receive enough liquid USDC to cover at least a meaningful fraction of infrastructure costs even under extreme governance proposals — preserves the cashflow invariant. The `boostFloor` bounds prevent governance from collapsing the gauge pool to a winner-take-all distribution (lower-bound) or flattening it into uselessness (upper-bound). The `MAX_GAUGE_SHARE_PER_OPERATOR` bounds prevent governance from disabling the wash-trading defense (lower bound implicitly enforced by the cap being non-zero) or so over-tightening that legitimate large operators are starved (upper bound). The `epochLiquidityCapFraction` parameter is the combined per-epoch ceiling on USDC notional swapped through the Balancer V3 80/20 pool across both [`BuybackBurner` execution](018-liquidity-strategy.md#buyback-execution-via-balancer-v3) and the [delegator-pool swap path](018-liquidity-strategy.md#delegator-pool-swap-path-parallel-usdctoken-conversion-on-the-same-pool), expressed as a fraction of in-pool USDC depth captured at epoch start; the 1% floor prevents governance from starving the swap paths under sustained revenue, the 30% ceiling prevents a single epoch from draining pool depth, and the 10% default sizes one epoch's combined swap pressure conservatively against worst-case sustained execution per the [Liquidity-cap interaction](018-liquidity-strategy.md#liquidity-cap-interaction) requirement that the cap be a single pool-wide budget shared across both paths. | |
| The 20% node-base share floor ensures infrastructure cost coverage. boostFloor and MAX_GAUGE_SHARE_PER_OPERATOR bounds prevent distribution skews and wash-trading. epochLiquidityCapFraction limits per-epoch USDC swaps via Balancer V3 Buyback and Delegator paths to a fraction of pool depth. A 1% floor ensures path liquidity, while a 30% ceiling protects pool depth. |
References
- Avoid including historical narratives, iteration details, or information about dropped features in canonical documentation (e.g., ADRs). Such context should reside in issue discussions or merge commit messages to maintain a clean record of the current design.
- Prioritize conciseness over verbose explanations when information is already clear from the immediate context. Avoid re-stating derivations that are self-evident.
…r review Split the long sentence into three. Drop "captured at epoch start" restatement and the deep cross-refs to BuybackBurner and delegator-pool sub-sections of ADR 018 — both already covered by the kept reference to ADR 018 § Liquidity-cap interaction. Substantive rationale (combined cap; 1% floor protects swap paths; 30% ceiling protects pool depth; 10% default sized against worst-case sustained execution) preserved.
Closes #543.
Adds the
epochLiquidityCapFractiongovernable parameter to ADR 026 §11 and replaces the "placeholder default to be set in implementing ADR" deferral in ADR 018 with concrete defaults and bounds.Defaults locked:
epochLiquidityCapFractionSizing rationale:
maxBuybackAmountis sized to that bound per ADR 018).subSwapCount = 4→ daily buyback rhythm pushes ~1.6% of USDC depth.The cap is a single pool-wide budget shared across
BuybackBurnerexecution and the delegator-pool swap path, per ADR 018 §Liquidity-cap interaction. Both consumers track combined epoch-to-date notional against the same fraction.finance/notebooks/retained as the operational tuning reference for governance recalibration. The placeholder-default language is gone; the parameter now exists from launch per the production-shape-from-day-one principle in ADR 016 § Tunable Economics.