Some balance type set in addTokenBalance is incorrect.
In settleAskMaker, the final type for addTokenBalance should be MakerRefund instead of SalesRevenue, as this is the deposit refunded after settlement, not profit.
https://github.com/Cyfrin/2024-08-tadle/blob/main/src/core/DeliveryPlace.sol#L301-L306
In the abortBidTaker, the final type in addTokenBalance should be RemainingCash instead of MakerRefund, as it is the deducted deposit rather than a refund to the maker.
https://github.com/Cyfrin/2024-08-tadle/blob/main/src/core/PreMarkets.sol#L687-L692
Some balance type set in addTokenBalance is incorrect.
vscode
Set as recommanded.
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.