Long ETH

Sample code for longing Ethereum

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 following sequence.

Benefits

  • Bullish on ETH? Get benefit whenever ETH goes up.

Recipe

  1. Instapool: borrow DAI

  2. OasisDEX: swap DAI with ETH

  3. Compound: deposit ETH

  4. Compound: borrow DAI

  5. Instapool: return DAI

Requirements

  • User should have base amount of ETH to perform the leverage. Liquidation on Compound is 75% which means for $1 borrowed amount, user needs to have the balance of $0.33 worth ETH for collateral to perform this spell.

Last updated