Once a user deposits a balanceIncrease based on the liquidity Index is calculated if they are not a new user
However, this balance increase is never added to their amount which makes user lose their accrued amounts
Mint only contains the amountToMint, this is not accurate as it should also contain the amount that user earned during the different indexes.
Loss of funds
The amountToMint should also contain the balanceIncrease
The balanceIncrease is the interest that has already accrued on the user's existing scaledBalance since their last interaction. It's not something you mint as new tokens in the _mint function.
The balanceIncrease is the interest that has already accrued on the user's existing scaledBalance since their last interaction. It's not something you mint as new tokens in the _mint function.
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.