-
Notifications
You must be signed in to change notification settings - Fork 352
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
Add erc4626 #1170
Open
andrew-fleming
wants to merge
97
commits into
OpenZeppelin:main
Choose a base branch
from
andrew-fleming:add-erc4626
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
Add erc4626 #1170
Changes from 83 commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
82b3173
start erc4626
andrew-fleming f08dd48
add fns from interface
andrew-fleming c558c59
start business logic
andrew-fleming 0b572e5
add mul_div and tests
andrew-fleming 3cadd55
simplify math
andrew-fleming f66bce4
add fix me comments
andrew-fleming 5d7b1d9
fix fmt
andrew-fleming 33bd0d4
fix fmt
andrew-fleming ce22c2f
add convert_to logic, add metadata impl
andrew-fleming 4fefde2
reexports
andrew-fleming 80c4013
add erc4626 mock
andrew-fleming 7e4177f
add erc4626 mock
andrew-fleming 3def693
start erc4626 tests
andrew-fleming 77fdfa6
comment out mods and tests to improve performance
andrew-fleming dc66804
add offset config in mock
andrew-fleming b05f57e
add overflow assertion and test
andrew-fleming ea3bf06
add power fn
andrew-fleming f5ce03b
add erc20reentrant mock
andrew-fleming e70061d
fix interface fns
andrew-fleming ca52772
fix logic, add power
andrew-fleming 8072770
add starting tests-no assets, no shares
andrew-fleming 7d2a3c1
fix fmt
andrew-fleming a45c8dc
clean up power fn
andrew-fleming bb1cdc2
simplify operation
andrew-fleming f2681e5
add comments, fix visibility
andrew-fleming f401df1
move fn, remove tests
andrew-fleming 4bdde8d
add test_math mod
andrew-fleming ccc8784
add mint to mock vault construction
andrew-fleming 87a84ab
add full vault tests
andrew-fleming 501d7b9
fix fmt
andrew-fleming ee222f5
fix assertions
andrew-fleming 970cb75
add full vault redeem tests
andrew-fleming 39b205c
fix fmt
andrew-fleming 5af5b8b
fix fmt
andrew-fleming 69c4831
fix conflicts
andrew-fleming b735b5d
fix fmt
andrew-fleming 43440d0
move erc4626 tests to erc4626 dir
andrew-fleming 56cea65
add transfer assertion
andrew-fleming 0870930
add reentrancy tests
andrew-fleming 65dddfc
expose burn in mock
andrew-fleming bded58f
tidy up tests
andrew-fleming fd4d146
add default decimals mock
andrew-fleming 2bf3aac
fix deploy fn names
andrew-fleming 9c7243f
improve helper fn name
andrew-fleming bb3a6b0
fix fmt
andrew-fleming c8a9dfa
add comments, remove unused dep
andrew-fleming 385118e
update branch
andrew-fleming bc88cf8
fix conflicts
andrew-fleming 1d14afc
fix conflicts
andrew-fleming acc2047
fix fmt
andrew-fleming 2e368fd
update spdx
andrew-fleming c4f565e
fix conflicts
andrew-fleming c343716
add reqs to mul_div, fix spdx
andrew-fleming 0e10817
remove duplicate erc4626 in votes
andrew-fleming cbdd70a
add/fix in-code docs
andrew-fleming 970d621
fix param name
andrew-fleming 1418543
fix comments
andrew-fleming a10b28c
add multiple tx tests
andrew-fleming e67d312
fix err msgs
andrew-fleming ed727df
fix comments, fix test
andrew-fleming b7fb9de
add note to power
andrew-fleming 44055bd
use math:: prefix in tests
andrew-fleming 8d8e066
improve u256_mul_div
andrew-fleming 450efa4
remove unused var
andrew-fleming d912c6d
remove line
andrew-fleming 0cd10da
improve var name
andrew-fleming 3ef163f
add changelog entries
andrew-fleming 4fcdd0c
Merge branch 'main' into add-erc4626
andrew-fleming c8b7161
fix version in spdx
andrew-fleming 1c221a5
Apply suggestions from code review
andrew-fleming ed01a88
fix conflicts
andrew-fleming 58d26be
use corelib pow, remove power fn
andrew-fleming c699dc4
add zero addr test
andrew-fleming 0ec51cf
fix max and preview comments
andrew-fleming f84d7d1
Apply suggestions from code review
andrew-fleming dd81898
fix conflicts, fmt
andrew-fleming 960f338
improve interface fmt
andrew-fleming b147fb4
re-enable cairo-coverage in CI
andrew-fleming 978ac98
tmp lower codecov coverage
andrew-fleming 533f7ba
tmp increase threshold
andrew-fleming 84e3681
Apply suggestions from code review
andrew-fleming 9a6a14a
fix comment
andrew-fleming 9c69ca2
add LimitConfig comments
andrew-fleming 0c3f8e0
Apply suggestions from code review
andrew-fleming 8852efe
add HasComponent to traits
andrew-fleming 8729faa
fix fmt
andrew-fleming fc09ba9
fix comments
andrew-fleming cf24a40
fix interface comments
andrew-fleming 6462c6c
tidy up mock
andrew-fleming 8722e2d
fix fmt
andrew-fleming 2de96c5
Merge branch 'main' into add-erc4626
andrew-fleming 4eb0b83
add fees comment to mock
andrew-fleming 894e43b
improve comments
andrew-fleming 379f874
add comments to hook fns
andrew-fleming 3e8f237
fix fmt
andrew-fleming 02206f0
improve FeeConfigTrait NOTE
andrew-fleming 4263919
fix fmt
andrew-fleming 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we clear the calldata that already exists to allow for a repeated call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't have to. There's only one reentrant call since we're setting the reentrant
Type
toNo
in the hooks after the initial call