Skip to Content

Fee Pool

The AMM Fee Pool (amm.feePool) is a token pool holding only the AMM’s own money: its share of the per-fill fee split (the amm_fee_numerator provision) plus any spread surplus it captures, tokenized out of the market’s pnl pool by the fee sweep. It is not a generic “fraction of all exchange fees” pool — the protocol’s and insurance fund’s cuts of the same fill never enter it; they accrue as separate protocol_fee_pool and revenue_pool balances instead. See Trading Fees for the full per-fill split.

The AMM Fee Pool can be clawed back for bankruptcy resolution — capped at the cumulative amount the AMM has ever received via the fee split (feeLedger.ammProtocolFeesReceived). The AMM’s own trading/spread capital beyond that provision is never touched. See How Perp Bankruptcy Resolution Works.

Spot markets have an analogous revenue_pool, which stages the insurance fund’s cut of trading, liquidation, and lending fees before it settles to the Insurance Fund vault — see Revenue Pool.

Last updated on