Skip to content

[Leverage AAVE & Chainlink for deposit]#2

Open
sharedStake-dev wants to merge 2 commits intomainfrom
AAVE-CDP-Leveraged-deposit
Open

[Leverage AAVE & Chainlink for deposit]#2
sharedStake-dev wants to merge 2 commits intomainfrom
AAVE-CDP-Leveraged-deposit

Conversation

@sharedStake-dev
Copy link
Copy Markdown
Contributor

@sharedStake-dev sharedStake-dev commented Feb 5, 2021

A smart contract that can be used as a deposit proxy for sharedStake.
The idea is to leverage AAVE to allow users to go long or short on ETH when staking for rewards.

E.g.

  • A fiat heavy or short ETH investor may be worried about ETH volatility and prefer to deposit StableCoins as collateral into the sharedStake yield generating platform. In this case, this proxy contract will deposit stables into AAVE, withdraw ETH, and deposit that to sharedStake

  • Another case is an investor that is long ETH. In this case instead of locking up ETH directly into sharedStake, the ETH is invested in AAVE, and up-to a health factor of 1.5, stablecoins (DAI) is withdrawn. The DAI is swapped via uniswap to ETH which is then invested. This allows the investor to gain liquidity from any ETH price increases.
    For this case we use the Chainlink price feed for eth/usd to determine how much in stablecoins to withdraw.

For both cases, any remaining credit is delegated back to the user.
Currently the tokens remain in the smart contract.
TODO:

  • Add send to sharedStake, and return minted vETH2 to user
  • Test on mainnet

A smart contract that can be used as a deposit proxy for sharedStake.  
The idea is to leverage AAVE to allow users to go long or short on ETH when staking for rewards.  

E.g. 
- A fiat heavy or short ETH investor may be worried about ETH volatility and prefer to deposit StableCoins as collateral into the sharedStake yield generating platform. In this case, this proxy contract will deposit stables into AAVE, withdraw ETH, and deposit that to sharedStake

- Another case is an investor that is long ETH. In this case instead of locking up ETH directly into sharedStake, the ETH is invested in AAVE, and up-to a health factor of 1.5,  stablecoins (DAI) is withdrawn. The DAI is swapped via uniswap to ETH which is then invested. This allows the investor to gain liquidity from any ETH price increases. 

For both cases, any remaining credit is delegated back to the user.   
Currently the tokens remain in the smart contract.  
TODO: 
- Add send to sharedStake, and return minted vETH2 to user
- Test on mainnet
@sharedStake-dev sharedStake-dev changed the title [Leverage AAVE for deposit] [Leverage AAVE & Chainlink for deposit] Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant