The getInputAmountBasedOnOutput
function is designed to determine the number of input tokens a user must provide to receive a specified amount of output tokens. However, a critical error in the fee calculation miscalculates the required input.
The function mistakenly scales the fee by 10,000 instead of 1,000 basis points, leading to excessive token deductions and user overcharges.
Protocol takes more fees than expected from 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.