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

Create new 'AavePosition' class #1

Open
hschickdevs opened this issue Mar 9, 2022 · 1 comment
Open

Create new 'AavePosition' class #1

hschickdevs opened this issue Mar 9, 2022 · 1 comment
Labels
new feature New feature or request

Comments

@hschickdevs
Copy link
Member

hschickdevs commented Mar 9, 2022

  • Will include several transactions we made using already existing functions
  • For example, we deposit 1 ETH, and then borrow 1000USDT for the collateral we get for the deposit. These two transactions will be viewed as a position.
  • In general, the deposit we made and next maybe one or multiple borrowing based on the collateral can be viewed as one position.
  • One position will include at least 2 transaction. It is kind of like grouping and put transactions into different groups.

This new 'AavePosition' class will need to support nested Aave positions like the recursive borrowing strategy:

For example, we need to firstly deposit 10 ETH and then borrow 50% of the collateral value of AVAX, then deposit AVAX we borrow, and also borrow 50% of the collateral value we deposit for AVAX, keep borrowing and deposit we borrow to see how much is our final APY.
Regarding this, we may need to do a test calculation in excel then move to the code.

@hschickdevs hschickdevs added the new feature New feature or request label Mar 9, 2022
@hschickdevs
Copy link
Member Author

This class could just be a container and handler for multiple 'AaveTrade' classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant