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
getProtocolTokenToGov
Developers > Best Yield strategy > getProtocolTokenToGov
This method gives the governance token associated to a protocol token, e.g.
protocolTokenToGov[cDAI]
== COMP address.
1
function
getProtocolTokenToGov
(
2
address
_protocolToken
3
)
external
view
returns
(
address
);
Copied!
Parameters
Parameter
Description
_protocolToken
Address of one of the interest-bearing tokens currently used
Return values
Value
Description
address
An array of the address of the governance token
Previous
getAllAvailableTokens
Next
Edge cases
Last modified
2mo ago
Copy link
Contents
Parameters
Return values