((inputReserves * outputAmount) * 10000) /
((outputReserves - outputAmount) * 997);
it should be 1000 on top in this equation
Stealing funds from users, giving them wrong price.
Such miscalculations can lead to steal from users and loose all the credibility for protocol.
slither, code review
((inputReserves * outputAmount) * 1000) /
((outputReserves - outputAmount) * 997);
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.