The settleAskMaker
function is responsible for finalizing the settlement of points tokens when a maker completes an offer. However, a significant issue has been identified: the stockStatus
of the maker is not updated to "finished" after the settlement is completed. This oversight can lead to misleading information about the state of the points token, as the stockStatus
is intended to track the state of the points token.
After the maker successfully calls the settleAskMaker
function to settle the points token, the stockStatus
associated with the maker is not updated to "finished." The stockStatus
is designed to indicate the current state of the maker's stock of points tokens, and failing to update it after settlement results in the system inaccurately reflecting the token's state.
Run test in test/PreMarkets.t.sol
The inaccurate stockStatus
can mislead users and system administrators, making it appear as though the maker still has points tokens available when, in fact, they have been settled. This discrepancy can lead to incorrect assumptions about the availability and movement of points tokens within the system.
Manual Review
Update stockStatus
in settleAskMaker
Valid low severity due to accounting error, although `stock` status is not update appropriately to `Finished`, there will be no exploit possible given relevant checks on the `offer` side.
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.