The RToken's mint function fails to include accrued interest (balanceIncrease) when emitting the Mint event, causing inaccurate tracking of actual tokens minted to users.
RToken uses a scaled balance system where users receive additional tokens through interest accrual. When minting new tokens to a user who already has a balance, the function calculates both:
New tokens to mint (amountToMint)
Interest accrued on existing balance (balanceIncrease)
However in the current implementation, RToken::mint
The issue is that the Mint event only includes amountToMint, omitting balanceIncrease.
Alice has 100 RTokens
Interest accrues (10%)
Alice mints 50 more RTokens
She receives 60 tokens (50 new + 10 interest)
Event only shows 50 tokens minted
Incorrect accounting in systems relying on Mint events to track token distribution.
Manual review
or u could also add a separate parameter for the balanceIncrease variable in the Mint event
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.