Debt Swap

Swap debt between DAI and USDC on Compound

Step 1

Installation or just use your browser console.

Step 2

Setup Account

Step 3

Trigger the following uniquely designed spells to fulfill this use case. Check this section for generic details around casting spells.

The DSA will cast the spells across the Compound, OasisDEX and Instapool 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