Incorrect `prefundingRefund` calculation will disallow claiming
Incorrect `prefundingRefund` calculation will lead to underflow and hence disallowing claiming\\nThe `prefundingRefund` variable calculation inside the `claimProceeds` function is incorrect\\n```\\n    function claimProceeds(\\n        uint96 lotId_,\\n        bytes calldata callbackData_\\n    ) external override nonReentrant {\\n        \\n        // rest of code\\n\\n        (uint96 purchased_, uint96 sold_, uint96 payoutSent_) =\\n            _getModuleForId(lotId_).claimProceeds(lotId_);\\n\\n        // rest of code.\\n\\n        // Refund any unused capacity and curator fees to the address dictated by the callbacks address\\n        // By this stage, a partial payout (if applicable) and curator fees have been paid, leaving only the payout amount (`totalOut`) remaining.\\n        uint96 prefundingRefund = routing.funding + payoutSent_ - sold_;\\n        unchecked {\\n            routing.funding -= prefundingRefund;\\n        }\\n```\\n\\nHere `sold` is the total base quantity that has been `sold` to the bidders. Unlike required, the `routing.funding` variable need not be holding `capacity + (0,curator fees)` since it is decremented every time a payout of a bid is claimed\\n```\\n    function claimBids(uint96 lotId_, uint64[] calldata bidIds_) external override nonReentrant {\\n        \\n        // rest of code.\\n\\n            if (bidClaim.payout > 0) {\\n \\n                // rest of code\\n\\n                // Reduce funding by the payout amount\\n                unchecked {\\n                    routing.funding -= bidClaim.payout;\\n                }\\n```\\n\\nExample\\nCapacity = 100 prefunded, hence routing.funding == 100 initially Sold = 90 and no partial fill/curation All bidders claim before the claimProceed function is invoked Hence routing.funding = 100 - 90 == 10 When claimProceeds is invoked, underflow and revert:\\nuint96 prefundingRefund = routing.funding + payoutSent_ - sold_ == 10 + 0 - 90
Change the calculation to:\\n```\\nuint96 prefundingRefund = capacity - sold_ + curatorFeesAdjustment (how much was prefunded initially - how much will be sent out based on capacity - sold)\\n```\\n
Claim proceeds function is broken. Sellers won't be able to receive the proceedings
```\\n    function claimProceeds(\\n        uint96 lotId_,\\n        bytes calldata callbackData_\\n    ) external override nonReentrant {\\n        \\n        // rest of code\\n\\n        (uint96 purchased_, uint96 sold_, uint96 payoutSent_) =\\n            _getModuleForId(lotId_).claimProceeds(lotId_);\\n\\n        // rest of code.\\n\\n        // Refund any unused capacity and curator fees to the address dictated by the callbacks address\\n        // By this stage, a partial payout (if applicable) and curator fees have been paid, leaving only the payout amount (`totalOut`) remaining.\\n        uint96 prefundingRefund = routing.funding + payoutSent_ - sold_;\\n        unchecked {\\n            routing.funding -= prefundingRefund;\\n        }\\n```\\n