The settleAskMaker
and settleAskTaker
functions in the smart contract incorrectly prevent settlement when _settledPoints > 0, even for the owner. This logic flaw can lead to the inability of the owner to settle points, causing disruptions in the settlement process.
In the settleAskMaker
and settleAskTaker
functions, the following code snippet checks the status of the marketplace and authorizes the settlement based on the caller:
The issue lies in the conditional check if (_settledPoints > 0)
. This condition prevents the settlement process even if the caller is the owner and the points to be settled are greater than zero. This restriction is problematic as it hinders the proper settlement of points by the owner, potentially leading to unresolved settlements
Owner cannot settle the offer.
Manual Code Review
Remove the Condition
This change will ensure that the owner can perform settlements as intended.
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.