Stake Curve with Stake DAO
Context
Stake DAO enables to stake Curve CRV tokens to earn yield. The interaction calls with Stake DAO smart contract to convert CRV to SDCRV and stake them in the gauge. It enables users to earn a bonus of 0.1% from the current pool.
Interaction Implementation
The interaction has two steps: Approval and Deposit. Developers need to:
- call deposit method of Stake DAO depositor contract
- set token to CRV
- set _amount, _lock, _stake, _user values
- the approval step, that authorizes CRV token spending will be automatically created by OKcontract