Skip to content

docs(adr): lock per-epoch liquidity cap parameter (ADR 026 §11, ADR 018) - #554

Merged
alpergundogdu merged 2 commits into
mainfrom
adr-018-026-liquidity-cap
May 14, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
adr-018-026-liquidity-cap

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Closes #543.

Adds the epochLiquidityCapFraction governable 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:

Default Min Max
epochLiquidityCapFraction 10% 1% 30%

Sizing rationale:

  • Balancer V3 80/20 TOKEN/USDC weighted-pool slippage: single max swap is ~0.4% of USDC reserve at the 2% slippage cap (maxBuybackAmount is sized to that bound per ADR 018).
  • TWAP subSwapCount = 4 → daily buyback rhythm pushes ~1.6% of USDC depth.
  • 10% epoch cap leaves headroom for roughly a week of daily buybacks at full sizing, with margin for adversarial market conditions.
  • 30% ceiling prevents any single epoch from draining pool depth (the failure mode the cap exists to prevent).
  • 1% floor prevents governance from starving the buyback + delegator swap paths under sustained heavy revenue.

The cap is a single pool-wide budget shared across BuybackBurner execution 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.

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/026-gauge-boost-tokenomics.md Outdated
| `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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
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
  1. 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.
  2. 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.
@alpergundogdu
alpergundogdu merged commit a8dd792 into main May 14, 2026
10 checks passed
@alpergundogdu
alpergundogdu deleted the adr-018-026-liquidity-cap branch May 14, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR 018 / ADR 026 §11: lock per-epoch liquidity cap default and add to governable parameters

1 participant