Helpful?
LPFeeTakingHook
Git Source - Generated with forge doc
Inherits: BaseTestHooks
a hook that takes all of the LP fee revenue
an example test hook to validate the data is provided correctly
State Variables
manager
IPoolManager immutable manager;
Functions
constructor
constructor(IPoolManager _manager);
onlyPoolManager
modifier onlyPoolManager();
afterRemoveLiquidity
function afterRemoveLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta feeDelta,
bytes calldata
) external override onlyPoolManager returns (bytes4, BalanceDelta);
afterAddLiquidity
function afterAddLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta feeDelta,
bytes calldata
) external override onlyPoolManager returns (bytes4, BalanceDelta);