This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Reserve Auction v1.0: add tests when the protocol fee is non-zero #140
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.
Description
Towards #122 as a part of the Community Audit.
Motivation and Context
When an auction is settled, there are payouts to these respective parties:
The integration tests cover the Royalty Payout case and the Optional Finders fee, but not the optional Protocol Fee.
This adds new assertions to the Reserve Auction v1.0 when the protocol fee is
1 basis point (bps)
, the equivalent of0.01%
:v3/contracts/test/modules/ReserveAuction/V1/ReserveAuction.integration.t.sol
Lines 82 to 84 in dfba6b3
I chose this number based on the existing assertions defined in
test/auxiliary/ZoraProtocolFeeSettings.t.sol
.How has this been tested?
In my development environment, I ran
yarn test
and confirmed all tests pass before opening this PR.Checklist:
Reviewer Notes 👓
👋 @kulkarohan -- I'd like your evaluative feedback on this approach:
Please let me know: I'm open to make any additional changes based on your input. Thank you! 🙇♂️