RToken::burn(): https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/tokens/RToken.sol#L154.
updating the value of index, two time
the struct is updated each time the user deposit or withdraw, mainly in mint and burn functions
the function burn() updates the value of index, two time which cost more gas because it is in storage:
cost more gas for nothing
Manual Review
update the user index just one Time
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.