The sellErc20
function does not validate if the price
parameter is greater than zero. This allows users to create sell orders with a price of 0
, which can lead to unintended consequences, financial loss for sellers if the seller mistakenly add the 0 price it will get indexed and the amount is transfered which leads to loss of funds to the seller.
If seller mistakenly set the price to 0 malicious users can exploit this by purchasing tokens for free, causing significant damage to the seller.
Manual
Add the below check to the function:
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.