Incorrect Fee Calculation in TSwapPool::getInputAmountBasedOnOutput
Results in Excessive Fees for Users.
The TSwapPool::getInputAmountBasedOnOutput
function is designed to calculate the amount of input tokens a user needs to provide to receive a specified amount of output tokens. However, there is a miscalculation in the function. The fee calculation incorrectly scales the amount by 10,000 instead of 1,000.
Due to this incorrect scaling, the protocol charges users higher fees than intended, resulting in excessive token deductions and financial losses for users.
Manual review
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.