IUniswapV3PoolOwnerActions

Git Source

Contains pool methods that may only be called by the factory owner

Functions

setFeeProtocol

Set the denominator of the protocol's % share of the fees

function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

Parameters

NameTypeDescription
feeProtocol0uint8new protocol fee for token0 of the pool
feeProtocol1uint8new protocol fee for token1 of the pool

collectProtocol

Collect the protocol fee accrued to the pool

function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested)
    external
    returns (uint128 amount0, uint128 amount1);

Parameters

NameTypeDescription
recipientaddressThe address to which collected protocol fees should be sent
amount0Requesteduint128The maximum amount of token0 to send, can be 0 to collect fees in only token1
amount1Requesteduint128The maximum amount of token1 to send, can be 0 to collect fees in only token0

Returns

NameTypeDescription
amount0uint128The protocol fee collected in token0
amount1uint128The protocol fee collected in token1