Swap market mechanics
A swap market's capacity and utilisation derive from a handful of shared building blocks.
Utilisation
utilisation = deployedNotional / (L_max × totalAssets)
hedged notionalleverage cap L_maxRateSwapBook.sol
Bookable capacity
capacity = L_max × U_max × totalAssets bookable = max(0, capacity − 1 − deployedNotional)
one unit below the on-chain revert polequote/capacity.ts:33