Current IdleToken price, in underlying (eg. DAI) terms.

NOTE: this 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);
  • RETURN price: in underlying token

*Note IdleTokens 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 more info and also a follow up here