Reserve Auction v1.0: add tests when the protocol fee is non-zero#140
Reserve Auction v1.0: add tests when the protocol fee is non-zero#140kulkarohan merged 2 commits intoourzora:reserve-auctionfrom
Conversation
|
this looks great @almndbtr. i cloned your repo and ran this is a necessary addition that we should get into the repo asap and i cant think of any relevant low hanging fruit to add, so let's go ahead and merge. @kulkarohan @tbtstl either of you want to take a glance and merge if nothing comes up? |
@jgeary - Thank you! 😌 If I'm reading the Line 39 in 479e45c
I appreciate that and you advocating this go forward. I'd also like to gently share that this has another "sibling" PR ready to go for Collection Offers v1.0, too 🙇♂️ -- #144 |
|
@almndbtr ah of course. for some reason yarn test didnt work for me at first but just confirmed it does. |
|
lgtm! |
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 testand 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! 🙇♂️