TSwapPool::getInputAmountBasedOnOutput
causes protocol to take too many tokens from users, resulting in lost feesDescription: The getInputAmountBasedOnOutput
function should calculate how many tokens a user should deposit given an amount of output tokens. But, the function miscalculates this amount. When calculating the fee, it scales the amount by 10_000 instead of 1_000.
Impact: Protocol takes more fees than expected from users.
Recommended Mitigation:
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.