Pool
#
Functions#
getReservesGet the pool's balance of token
#
initialize#
liquidityToBurncalculates the amount of liquidity tokens needed to be burnt given an amount of the underlying token
#
Parameters:Name | Type | Description |
---|---|---|
amount | uint256 | the amount of ERC-20 tokens that is needed |
#
mintmints liquidity tokens pro rata based on the amount of the underlying ERC-20 token that was transferred to the pool
#
Parameters:Name | Type | Description |
---|---|---|
to | address | the address to mint the liquidity tokens to |
#
burnconverts pool liquidity tokens into underlying ERC-20 tokens and sends them to the address specified
#
Parameters:Name | Type | Description |
---|---|---|
to | address | the address to send the underlying tokens to |
#
borrowBorrows funds from the pool
#
Parameters:Name | Type | Description |
---|---|---|
amountOut | uint256 | the amount requested |
to | address | the address to send the funds to |
data | bytes | any data that might be needed during call execution |
#
factoryreturns the address of the factory
#
tokenreturns the underlying ERC-20 token of this pool