SharedStake / Contracts

A repository to track and open source SharedStake's on-chain contracts and their addresses.
10 stars 4 forks source link

[AAVE] Finish aave long/short ETH contract and integrate with shared stake deposit contract #6

Open sharedStake-dev opened 3 years ago

sharedStake-dev commented 3 years ago

There is a WIP AAVE long/short ETH deposit strategy contract here.

This needs some more thought to figure out the best credit delegation strategy. I.e. from contract to user or vice versa? Or both?

Also needs to be fixed up, and tested on kovan where AAVE exists but sharedstake doesn't. Needs to be able to open a position on AAVE using ETH or stablecoins, on behalf of itself and the user. Needs to be able to credit delegate remaining funds back to the user, or to the contract if the CDP is opened on behalf of the user.

Needs to be able to withdraw ETH or stables from the CDP. Exchange to ETH using uniswap if borrowing stables. And finally deposit the ETH to the sharedStake deposit contract and return accumulated vETH2 back to the user.

[Bounty] This is eligible for a bounty payout