The code comments in definition of Premarket.sol#CreateOffer states that
, however , the code only reverts if eachTradeTax is greater than 10_000
, leaving room for erroneous offers creation at the exact Trade tax of 10_000 or 100% that will affect future integrations and development due developer's assumptions being wrong.
Here are the code blocks that might be helpful to visualize and understand the issue
`PreMarket.sol`
Offers with wrong each Trade Tax rate will be created , jeopardising Current and Future developments + Integrations with the protocol
Manual Review , Foundry
Ensure that in CreateOffer inside PreMarket , eachTradeTax needs to be less than 10_000
Similar to issue #1323, Despite this off-by-one error of the intended check, the difference between 99% and 100% is minimal, so I believe whether or not 100% is allowed has minimal impact. Ultimately, takers should not be realistically creating offer with such tradeTax
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.