Idle Finance
WebsiteGithubTwitterDiscord
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