`swap_exact_in` is supposed to perform swap operation with exact amount in between two tokens by following constant product formula (inspired by Uniswap V2)
current implementation uses bad formula for swap with fee
Likelihood:
High, every swap with exact amount in is affected
Impact:
High, incorrect formula leads to unpredictable behaviour, including severe fund loss, pool drain etc.
Apply correct formula calculation:
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.