Developers > Best Yield > tokenPriceWithFee
Last updated 2 years ago
Ecosystem
Developers
Community
Analytics
This method returns $IDLE token price for a specific user considering fees, in underlying. This is useful when you need to redeem exactly X amount of underlying tokens.
function tokenPriceWithFee( address _user ) external view returns (uint256 priceWFee);
_user
The address of the user
priceWFee
The $IDLE token price with fees