tokenPriceWithFee

Developers > Best Yield > tokenPriceWithFee

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

function tokenPriceWithFee(
    address _user
) external view returns (uint256 priceWFee);

Parameters

ParameterDescription

_user

The address of the user

Return values

ValueDescription

priceWFee

The $IDLE token price with fees

Last updated