Within the functions ThunderLoan::getCalculatedFee()
and ThunderLoanUpgraded::getCalculatedFee()
, an issue arises with the calculated fee value when dealing with non-standard ERC20 tokens. Specifically, the calculated value for non-standard tokens appears significantly lower compared to that of standard ERC20 tokens.
//ThunderLoan.sol
Let's say:
user_1 asks a flashloan for 1 ETH.
user_2 asks a flashloan for 2000 USDT.
The fee for the user_2 are much lower then user_1 despite they asks a flashloan for the same value (hypotesis 1 ETH = 2000 USDT).
Manual review
Adjust the precision accordinly with the allowed tokens considering that the non standard ERC20 haven't 18 decimals.
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.