Search…
About Bancor Network
Bancor V3
Bancor Basics
Resources for DAOs
Security & Audits
Contracts & Functions
Contracts
Write Functions
Read Functions
Rewards
Liquidity Pool Details
Trades
Withdrawals
Pool Token Information
poolToken()
collectionByPool()
poolTokenToUnderlying()
underlyingToPoolToken()
Vortex
Data & Events
Developer Guides
Bancor Vortex Burner
Bancor Etherscan Guide
REST API
Marketing
Brand Guide
Powered By
GitBook
poolTokenToUnderlying()
Function poolTokenToUnderlying()
NetworkSettings.sol
1
function
poolTokenToUnderlying
(
Token pool
,
uint256 poolTokenAmount
)
external view
returns
(
uint256
)
Copied!
This function is located in the
BancorNetworkInfo
contract
This function returns the number of underlying tokens a pool token is worth.
Function Arguments
Name
Type
Description
pool
Token
Input the contract address of a token.
​
For example for the
LINK
token:
0x514910771AF9Ca656af840dff83E8264EcF986CA
poolTokenAmount
uint256
The number of bnTokens for which to check the underlying amount.
Return Variables
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.
Previous
collectionByPool()
Next
underlyingToPoolToken()
Last modified
19d ago
Copy link
Contents
Function poolTokenToUnderlying()
Function Arguments
Return Variables