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
userAvgPrices
Developers > Best Yield strategy > userAvgPrices
This method gives the average price paid for $IDLE tokens of one specific user.
Function
1
function
userAvgPrices
(
2
address
_user
3
)
external
view
returns
(
uint256
avgPrice
);
Copied!
Parameters
Parameter
Description
_user
The address of the user
Return values
Value
Description
avgPrice
The average price paid for $IDLE tokens
Previous
getAvgApr
Next
getGovTokensAmounts
Last modified
3mo ago
Copy link
Contents
Function
Parameters
Return values