The variable amount is not conditionally checked for amount > 0 in the getCalculatedFee function, allowing the sender to obtain a fee of 0.
If amount = 0 then valueOfBorrowedToken will = 0 => fee = 0.
The user will not incur any fees
Manual review
Add a condition require(amount > 0, "error")
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.