IBonsaiswapV3PoolOwnerActions
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
Parameters:
Name | Type | Description |
---|---|---|
| uint8 | new protocol fee for token0 of the pool |
| uint8 | new protocol fee for token1 of the pool |
collectProtocol
Collect the protocol fee accrued to the pool
Parameters:
Name | Type | Description |
---|---|---|
| address | The address to which collected protocol fees should be sent |
| uint128 | The maximum amount of token0 to send, can be 0 to collect fees in only token1 |
| uint128 | The maximum amount of token1 to send, can be 0 to collect fees in only token0 |
Return Values:
Name | Type | Description |
---|---|---|
| uint128 | The protocol fee collected in token0 |
| uint128 | The protocol fee collected in token1 |
Last updated