Helpful?
CustomCurveHook
Git Source | Generated with forge doc
Inherits: BaseTestHooks
State Variables
manager
IPoolManager immutable manager;
Functions
constructor
constructor(IPoolManager _manager);
onlyPoolManager
modifier onlyPoolManager();
beforeSwap
function beforeSwap(address, PoolKey calldata key, IPoolManager.SwapParams calldata params, bytes calldata)
external
override
onlyPoolManager
returns (bytes4, BeforeSwapDelta, uint24);
afterAddLiquidity
function afterAddLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta,
bytes calldata
) external view override onlyPoolManager returns (bytes4, BalanceDelta);
_getInputOutputAndAmount
function _getInputOutputAndAmount(PoolKey calldata key, IPoolManager.SwapParams calldata params)
internal
pure
returns (Currency input, Currency output, uint256 amount);
Errors
AddLiquidityDirectToHook
error AddLiquidityDirectToHook();