Long ETH
Sample code for longing Ethereum
Step 1
Installation or just use your browser console.
Step 2
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 following sequence.
Benefits
Bullish on ETH? Get benefit whenever ETH goes up.
Recipe
Instapool: borrow DAI
OasisDEX: swap DAI with ETH
Compound: deposit ETH
Compound: borrow DAI
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