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