/yf_boosted_with_floan

Yield Farming on Compound boosted by dYdX flash loan.

Primary LanguageSolidity

Yield Farming on Compound boosted with dYdX flash loan

📃 Instructions to run

0. Install dependencies in project directory (works with node v12.10.0)

npm i

1. Install ganache-cli (globaly)

npm i -g ganache-cli

2. In 1st terminal window fork mainnet with ganache-cli

ganache-cli -p 7545 -f <https://YOUR_ETH_PROVIDER>

3. In 2nd terminal window run tests

trufle test

!Note: To reset data, restart ganache-cli after each test.

🔧 Deposit:

Deposit Diagram

🔧 Withdraw:

Deposit Diagram