The OfferInfo
struct contains various elements, including two fields specifically intended to store the trade tax charged and the amount of collateral settled:
However, neither of these two fields is updated at any time.
When users query information using the PreMarkets::getOfferInfo
getter function, they receive incorrect data. This discrepancy can impact frontend functionalities.
See PoC below:
Manual review.
Ensure that the trade tax is updated when the taker accepts the offer. Similarly, update the settled collateral when it is returned, such as when the offer is either closed or settled.
Borderline low/informational, tradeTax is posted by the original maker when creating an offer within the `makerInfo` mapping as seen [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L112C13-L112C25). and is simply a placeholder for the offerInfo mapping. Given it can impact details of offer regarding the tradeTax, low severity seems appropriate. Similar reasonings apply for settledCollateralAmount.
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.