Missing return value in ThunderLoan:getCalculatedFee()
function.
There is no value returned by the ThunderLoan:getCalculatedFee()
function. As a result, the default return value from the getCalculatedFee()
function will be 0
. which means that the liquidity provides will not receive any kind of fee against their staked assets.
https://github.com/Cyfrin/2023-11-Thunder-Loan/blob/main/src/protocol/ThunderLoan.sol#L246
As a result, the default return value from the getCalculatedFee()
function will be 0
. which means that the liquidity provides will not receive any kind of fee against their staked assets and the protocol exchange fee i.e. s_exchangeRate
will be set to 0
.
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.