pool.gno
Defines the basic functionality of a liquidity pool such as adding and removing liquidity or performing swaps.
Mint
Adds liquidity to a pool. This function can only be called by the Position contract, not by users.
Parameters
Return Values
Burn
Removes liquidity from a pool. This function can only be called by the Position contract, not by users.
Parameters
Return Values
Collect
Collects swap fees in token0 and token1 accrued to a position. This function can only be called by the Position contract, not by users.
Parameters
Return Values
Swap
Swaps tokens from a pool from token0 to token1, or vice versa. This function can only be called by the Router contract, not by users.
Parameters
Return Values
SetFeeProtocol
Sets the Protocol Fee that is applied to all swaps.
Parameters
CollectProtocol
Collects the Protocol Fee claimable from a pool.
Parameters
Return Values
Last updated