Skip to content

Solidity API

PropsUniswapV4FeesHooks

init

solidity
function init(struct IPropsBaseFacet.Hook[] _hooks) external

_collectFees

solidity
function _collectFees(address sender, uint256 tokenId, struct PoolKey key, bytes hookData) external returns (bool success)

PropsUniswapV4FeesHooks_afterSwap

solidity
function PropsUniswapV4FeesHooks_afterSwap(address sender, struct PoolKey key, struct IPoolManager.SwapParams params, BalanceDelta delta, bytes hookData) external returns (int128)

_PropsUniswapV4FeesHooks_afterAddLiquidity

solidity
function _PropsUniswapV4FeesHooks_afterAddLiquidity(address sender, struct PoolKey key, struct IPoolManager.ModifyLiquidityParams params, BalanceDelta delta, BalanceDelta feesAccrued, bytes hookData) external returns (BalanceDelta)

PropsUniswapV4FeesHooks_afterAddLiquidity

solidity
function PropsUniswapV4FeesHooks_afterAddLiquidity(address sender, struct PoolKey key, struct IPoolManager.ModifyLiquidityParams params, BalanceDelta delta, BalanceDelta feesAccrued, bytes hookData) external returns (BalanceDelta)

PropsUniswapV4FeesHooks_afterRemoveLiquidity

solidity
function PropsUniswapV4FeesHooks_afterRemoveLiquidity(address sender, struct PoolKey key, struct IPoolManager.ModifyLiquidityParams params, BalanceDelta delta, BalanceDelta feesAccrued, bytes hookData) external returns (BalanceDelta)

_captureSwapFees

solidity
function _captureSwapFees(contract IPoolManager poolManager, struct PoolKey _key, struct IPoolManager.SwapParams _params, int128 _delta, uint24 _fee) internal returns (uint256 swapFee_)