V1 Converters
On V1 Converters, the same value of both reserve assets need to be provided or removed. One LP token corresponds to a share of both reserve assets.
Adding Liquidity
addLiquidity increases the pool's liquidity and mints new LP tokens (shares in the pool) to the caller. The assets are to be provided in the same ratio as the pool holds them at the time of transaction execution. If the ratio differs, not all provided tokens will be transferred to the pool.
Arguments
_reserveTokens
IERC20Token[]
address of each reserve token
_reserveAmounts
uint256[]
amount of each reserve token
_minReturn
uint256
minimum return amount of liquidity pool tokens
Removing liquidity
removeLiquidity decreases the pool's liquidity and burns the caller's shares in the pool.
Arguments
_amount
uint256
amount of liquidity pool tokens to burn in exchange for the underlying reserves.
_reserveTokens
IERC20Token[]
address of each reserve token
_reserveMinReturnAmounts
uint256[]
minimum return-amount of each reserve token
Last updated