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

feat: Initial fork testing #1

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

feat: Initial fork testing #1

wants to merge 29 commits into from

Conversation

Apegurus
Copy link
Contributor

@Apegurus Apegurus commented Dec 3, 2021

In this PR I add some base line VaultApe and strategy tests against a forked instance of BSC Mainnet.

  • test/utils/config.js includes configurations for the test and an array of all the strategies to test and their configurations.
  • VaultApe.test.js is a test that initialized the VaultApe and iterates over all the test strategies from the config. It tests deposits, withdrawals and compounds of each strategy.
  • test-environment.config.js includes the forking configuration to make the tests work while it also unlocks the account 0x41f2E851431Ae142edE42B6C467515EF5053061d. This account needs to have the vault want tokens to be able to properly run the tests.

Hopefully we can use and grow this into a framework to efficiently test strategies and the VaultApe

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.

3 participants