TradingLimitsV2
Checking limits (code example)
IFPMM pool = IFPMM(poolAddress);
(address token0, address token1) = pool.tokens();
(
ITradingLimitsV2.Config memory config,
ITradingLimitsV2.State memory state
) = pool.getTradingLimits(token0); // or token1
// config.limit0, config.limit1 => caps (e.g. 5-min and 1-day)
// state.netflow0, state.netflow1 => current net flow in the windows
// If a swap would push netflow over the limit, the swap revertsBehavior
Last updated