Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: