Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAVE_OpynPerpVaultsProtocol_TuringDev_Attempt_2021 #45

Open
wants to merge 2 commits into
base: wbtc/stakedao
Choose a base branch
from

Conversation

dblackherod
Copy link

@dblackherod dblackherod commented Dec 16, 2021

Refactoring Opyn's PerpVaults Protocol implementation of yields earning StakeDAO Strategy to AAVE Lending Protocol.

The task is to switch the yield earning StakeDAO strategy and:

  1. Use AAVE (ETH based) Lending Protocol.
  2. Refactor and test the contract to resolve issues with deposit and withdraw methods.
  3. Get all tests passing...

The Approach:

  1. Shadow the underlying asset in vault's deposit and withdraw methods

In theory, all we need for AAVE implementation are; a collateral (aToken) token and its asset (AAVE) token. An underlying (covered) asset is only necessary in yields earning scenarios.

  1. Test AAVE compatibility with provided MockERC20 implementation.
  2. I had spazzed for a minute on the timeline, so there's a really spazzy prior commit, XD

Tests Results: 18 passing.

@dblackherod
Copy link
Author

Refactor OpynPerpVault StakeDAO on CurveLP implementation for AAVE LP.

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