Optionally: To reduce the total amount of transactions even further, from your app, call approve in the idle asset to allow the Curvance cToken to spend.
Note: Users can mass-revoke all delegates anytime via the approval index.
Redeeming cTokens does not require ERC20 approval.
Practical tips
Use previews (previewDeposit(), previewRedeem()) client-side for UX estimates.
Pauses/caps may limit deposits/redemptions; handle errors gracefully.
Security: delegation lets your platform act for users; encourage users to delegate only trusted contracts and remind them they can revoke instantly via approval index.
🧺 Include a Curvance Market in Your Vault
Objectives:
Mint cTokens to your vault.
Redeem cTokens to rebalance/withdraw
Mint cTokens when users mint vault shares
Approve cToken to spend the underlying ERC20 from your vault.
Call cToken.deposit() from your contract, with its address as the recipient.
Redeem cTokens to rebalance (if applicable) / or withdraw user funds