Idle Finance
Website
Github
Twitter
Discord
Searchβ¦
π₯
Introduction
π
Get in touch
π
Products
Introduction
Best Yield
Perpetual Yield Tranches
Fee structure
Integration Partners programs
π»
Developers
Introduction
Networks and codebase
Best Yield
Architecture
Deployed contracts
Interface
Methods
mintIdleToken
redeemIdleToken
redeemInterestBearingTokens
rebalance
tokenPrice
tokenPriceWithFee
getAPRs
getAvgApr
userAvgPrices
getGovTokensAmounts
getAllocations
getGovTokens
getAllAvailableTokens
getProtocolTokenToGov
Edge cases
Security management policy
Get integrated as yield source
Get user earnings
Perpetual Yield Tranches
Gauges
Security
π
Governance
Introduction
Idle DAO
$IDLE token
$IDLE staking
Idle Grants Program
π
Other
Guides
FAQs
Glossary
Resources
Archive
Powered By
GitBook
tokenPriceWithFee
Developers > Best Yield strategy > 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
1
function
tokenPriceWithFee
(
2
address
_user
3
)
external
view
returns
(
uint256
priceWFee
);
Copied!
Parameters
Parameter
Description
_user
The address of the user
Return values
Value
Description
priceWFee
The $IDLE token price with fees
Previous
tokenPrice
Next
getAPRs
Last modified
3mo ago
Copy link
Contents
Function
Parameters
Return values