tokenPrice

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

NOTE: this price does not include fees 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

function tokenPrice() external view returns (uint256 price);
  • RETURN price: in underlying token