Methods
Developers > Best Yield > Methods
Last updated
Was this helpful?
Developers > Best Yield > Methods
Last updated
Was this helpful?
Idle allows you to lend different underlying assets (e.g. DAI, USDC) through the use of IdleTokens. So for each underlying asset supported there is a corresponding IdleToken (e.g. IdleDAI, IdleUSDC) implemented as an IdleToken instance.
: lends assets in Idle and receives IdleTokens back.
: redeems your assets and interests and burns IdleTokens.
: redeems interest-bearing assets and burns IdleTokens.
: reads allocations from IdleRebalancer and changes IdleToken pool allocations if needed.
: gets current IdleToken price without fees.
: gets APRs from all implemented protocols.
: gets current IdleToken average APR.
: gets avg price per IdleToken paid by a user (used to calculate earnings).
: gets the number of redeemable governance tokens a user can withdraw.
: gets an array with the last allocations.
: gets an array with the governance token addresses distributed.
: gets an array with all interest-bearing token addresses supported.
: gets the governance token associated with a specific interest bearing token, if any.
: gets the current IdleToken price for a specific user, counting fees