Comment on page
Developers > Best Yield > mintIdleToken
This method is used to deposit money into the Idle protocol. When you call
mintIdleTokenwe will transfer the amount of underlying supplied to IdleToken contract and then mint interest-bearing tokens with that amount.
Interest-bearing tokens of each user are pooled together inside the IdleToken contract and you will then receive Idle LP tokens which represent your share of Idle pools.
Users should call
approveon the underlying asset used (eg. DAI) to allow IdleToken contract to spend
_amountof tokens before calling this method.
Please note that after the first mint all subsequent ones will also send governance tokens (e.g. IDLE) to
msg.senderhad other previously minted idleTokens in the account).
) external returns (uint256 mintedTokens);