-
Notifications
You must be signed in to change notification settings - Fork 198
[VPD-808] Add internal cash to prevent donation attack #664
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
Merged
+1,618
−75
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
105766b
fix: update VBep20 and VToken interfaces for internal cash tracking
Debugger022 8d7f003
test: update unit tests for internal cash tracking changes
Debugger022 38f7492
test: add fork tests for donation attack and internal cash upgrade
Debugger022 761c400
test(fork): improve internalCashUpgrade tests with descriptive error …
Debugger022 5afbd42
feat: add sweepToken in assembly and optimize VBep20 for contract size
Debugger022 04f6231
refactor: simplify sweepToken by removing redundant token parameter
Debugger022 0f01777
fix(VBep20): use correct selector for isAllowedToCall in sweepToken
Debugger022 610ad07
fix(VBep20): restore free memory pointer in sweepToken assembly
Debugger022 e81b0bf
test: add sweepToken and syncCash unit tests and vXAUM to fork markets
Debugger022 cf48a2a
test(fork): reorganize donationAttack tests with listed markets
Debugger022 05db3e5
chore(test): clean up formatting and remove unused imports
Debugger022 2f578e9
refactor(VBep20): merge syncCash and sweepToken into sweepTokenAndSync
Debugger022 7dcd781
test: consolidate and improve donation attack and sweep tests
Debugger022 94373fe
docs(VBep20): update natspec to reflect internalCash tracking
Debugger022 c88b6e4
chore(deploy): deploy VBep20Delegate to BSC mainnet
Debugger022 0a905ab
feat: updating deployment files
Debugger022 5c311b0
chore: remove duplicate import and unused typechain imports
Debugger022 373e97c
test(fork): improve storage checks and move upgrade guard to before()
Debugger022 e1b9231
docs(audits): add VBep20 donation patch audit reports
Debugger022 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.