Closed sherlock-admin4 closed 6 months ago
Escalate
Dup of #264
Escalate
Dup of #264
You've created a valid escalation!
To remove the escalation from consideration: Delete your comment.
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
Agree with the escalation, planning to accept and duplicate with #264
Result: High Duplicate of #264
0x486776
high
Edition::mintBatch
receives less money than it should.Summary
Edition::mintBatch
only receives the price for one buyer.Vulnerability Detail
As seen at
L312
ofEdition::mintBatch
, it receives only the price for one buyer. In fact, it should receive the price for all receivers.Impact
The protocol and publishers incur a loss when selling to several receivers at once.
Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/editions/Edition.sol#L304-L320
Tool used
Manual Review
Recommendation
Edition::mintBatch
should be fixed as follows.Duplicate of #264