tokenPrice
Developers > Best Yield > tokenPrice
Last updated
Was this helpful?
Developers > Best Yield > tokenPrice
This method returns the current $IDLE token price, in underlying (e.g. DAI) terms.
Note: the price does not include fees. If you need the token price with fee you should take a look at the tokenPriceWithFee method.
function tokenPrice(
) external view returns (uint256 price);price
Return the underlying token price
Note: $IDLE tokens for Risk-Adjusted strategy do not have a tokenPriceWithFee method so you need to take account of those on your side or use this helper.
Here you can find a Twitter thread with more info about Idle Token Helper and also a follow up here.
Last updated
Was this helpful?
Was this helpful?
