NFT Dealers

First Flight #58
Beginner FriendlyFoundry
100 EXP
Submission Details
Impact: low
Likelihood: low

No Batch Collection Function Forces High-Volume Sellers to Pay Redundant Gas per NFT

Author Revealed upon completion

Root + Impact

Description

  • Sellers who have completed multiple NFT sales must call collectUsdcFromSelling individually for each listing. During periods of elevated gas prices, the fixed per-transaction overhead becomes a meaningful economic burden, and the repetitive manual process is a poor user experience compared to the batch-friendly interfaces common in production NFT protocols.


Recommended Mitigation

Add an optional batchCollect helper that iterates over a caller-supplied array of listing IDs, delegating to the existing collectUsdcFromSelling logic and inheriting all its guards.

+ function batchCollect(uint256[] calldata _listingIds) external {
+ for (uint256 i = 0; i < _listingIds.length; i++) {
+ collectUsdcFromSelling(_listingIds[i]);
+ }
+ }

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!