Comment on page
poolTokenToUnderlying()
NetworkSettings.sol
function poolTokenToUnderlying(Token pool, uint256 poolTokenAmount) external view returns (uint256)
This function returns the number of underlying tokens a pool token is worth.
Name | Type | Description |
---|---|---|
pool | Token | Input the contract address of a token. |
poolTokenAmount | uint256 | The number of bnTokens for which to check the underlying amount. |
This function returns the number of underlying tokens a given amount of pool tokens are worth.
Variable Type | Returns |
---|---|
Number | The number of tokens a given pool token is worth.
For example, the response will indicate the value of the input amount in LINK tokens. |
Last modified 1yr ago