Migrating with same base token
Move your USDC lending position from Aave to Compound while keeping the same underlying asset. Route mechanicsredeem
existing USDC collateral on AAVEdeposit
retreived USDC to CompoundCUSDC
position
Migrating to different base position
Switch Aave lending position from USDC collateral to WETH collateral in a single transaction. Bundle design:redeem
existing USDC collateral on AAVE- swap USDC to WETH using
route
action deposit
resulting WETH to AAVE (using the{useOutputOfCallAt: 1}
to reference the swap)