Debt Swap

Swap debt between DAI and USDC on Compound

Step 1

Installationarrow-up-right or just use your browser console.

Step 2

Setup Accountarrow-up-right

Step 3

Trigger the following uniquely designed spells to fulfill this use case. Check this sectionarrow-up-right for generic details around casting spells.

The DSA will cast the spells across the Compoundarrow-up-right, OasisDEXarrow-up-right and Instapoolarrow-up-right connectors in the specified sequence.

USDC Debt -> DAI Debt

Benefits

  • When DAI > $1. Arbitrage benefit due to price difference of DAI & USDC.

  • Help make DAI stable.

Recipe

  1. Instapool: borrow DAI

  2. OasisDEX: Swap DAI for USDC

  3. Compound: Payback USDC

  4. Compound: Borrow DAI

  5. Instapool: return DAI

Requirements

  • User must have a some debt in USDC.

DAI Debt -> USDC Debt

Benefits

  • When DAI < $1. Arbitrage benefit due to price difference of DAI & USDC.

  • Help make DAI stable.

Recipe

  1. Instapool: borrow USDC

  2. OasisDEX: Swap USDC for DAI

  3. Compound: Payback DAI

  4. Compound: Borrow USDC

  5. Instapool: return USDC

Requirements

  • User must have a some debt in DAI.

Last updated