Helpful?
FeeTakingHook
Git Source - Generated with forge doc
Inherits: BaseTestHooks
State Variables
manager
IPoolManager immutable manager;
LIQUIDITY_FEE
uint128 public constant LIQUIDITY_FEE = 543;
SWAP_FEE_BIPS
uint128 public constant SWAP_FEE_BIPS = 123;
TOTAL_BIPS
uint128 public constant TOTAL_BIPS = 10000;
Functions
constructor
constructor(IPoolManager _manager);
onlyPoolManager
modifier onlyPoolManager();
afterSwap
function afterSwap(
address,
PoolKey calldata key,
IPoolManager.SwapParams calldata params,
BalanceDelta delta,
bytes calldata
) external override onlyPoolManager returns (bytes4, int128);
afterRemoveLiquidity
function afterRemoveLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta delta,
BalanceDelta,
bytes calldata
) external override onlyPoolManager returns (bytes4, BalanceDelta);
afterAddLiquidity
function afterAddLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta delta,
BalanceDelta,
bytes calldata
) external override onlyPoolManager returns (bytes4, BalanceDelta);