In the DeliveryPlace::settleAskMaker
function, ask makers send point tokens to the token manager and, in return, receive their collateral back. This collateral is then recorded in a mapping that classifies each user's balance into six different categories. The issue arises from the misclassification of the returned collateral, which is incorrectly categorized as sales revenue when it should be labeled as a maker refund:
This misclassification can cause conflicts when interacting with the contract through the frontend interface. Specifically, it may display an inflated amount of claimable sales revenue, while the actual refunds available to the user are less than what they should be.
Refer to PoC below for an example:
Manual review.
Add tokens to refund mapping instead of sales revenue:
Valid low severity, while the token type inputted is wrong, userTokenBalanceMap is still incremented appropriately, so users can still withdraw their funds. So this would technically only affect accounting and public view functions.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.