V2 Converters
V2 Converters allow for one-sided liquidity provision and removal. There is one LP token per reserve asset.
Adding Liquidity
addLiquidity increases the pool's liquidity and mints new shares in the pool to the caller.
Arguments
Name
Type
Description
_reserveToken
IERC20Token
address of the reserve token to add liquidity to
_amount
uint256
amount of liquidity to add
_minReturn
uint256
minimum return-amount of pool tokens
Returns
The amount of pool tokens minted.
Removing liquidity
removeLiquidity decreases the pool's liquidity and burns the caller's shares in the pool.
Arguments
Name
Type
Description
_poolToken
ISmartToken
address of the pool token
_amount
uint256
amount of pool tokens to burn
_minReturn
uint256
minimum return-amount of reserve tokens *
Returns
The amount of liquidity removed.
Last updated