The mint function is responsible for minting new tokens while scaling them according to an interest index. However, the function emits the incorrect value in the Mint event:
amountToMint (raw amount) is emitted instead of amountScaled (scaled amount).
The event should reflect the actual minted amount in scaled units, as it is used for interest accrual and accounting.
Here, amountToMint (unscaled) is emitted instead of amountScaled, which does not accurately represent the minted amount.
Explorers and analytic tools relying on Mint event will log incorrect values.
Manual Review
Modify the emit statement to correctly log the scaled mint amount.
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.