Skip to content

If we integrate flash loan in this strategy then its going to be more amaizing.

Notifications You must be signed in to change notification settings

Developer-piyush/Yield-Strategy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leveraged-Yield-Strategy on compound

Strategy

=> We will start investing with 100 DAI into compound protocol, here 100 DAI will act as collateral.
=> Now we will borrow 75% of the collateral from compound i.e. 75 DAI
=> Now our strategy is to reinvest the borrowed token (75 DAI) into compound protocol as collateral, we will repeat this process 5 times to maximize our return.

Note: In our code we have borrowed 70% of the collateral amount instead of 75% in order to prevent any glitch/ or to payout interest or something.

1 1


You can see in contract code how we have used openposition, -supplyandborrow, closeposition functions to implement the strategy we have discussed above.

click here to view contract code

About

If we integrate flash loan in this strategy then its going to be more amaizing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published