-
Notifications
You must be signed in to change notification settings - Fork 2
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
Apegurus
wants to merge
29
commits into
main
Choose a base branch
from
feat/fork-testing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
…/apeswap-vaults into feat/fork-testing
f76d4e8
to
007238c
Compare
… to 53 bits" error
Feat/new tests
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.
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 theVaultApe
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 account0x41f2E851431Ae142edE42B6C467515EF5053061d
. 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