The RToken contract contains a potential vulnerability in its updateLiquidityIndex function where it allows updates to the same index value, potentially leading to unnecessary gas costs and event emissions. The function only checks if the new index is less than the current index, but fails to validate against equal values.
Unnecessary gas consumption from redundant updates
Misleading event logs that show "updates" without actual changes
Potential disruption of index tracking systems relying on event logs
Higher indexer storage costs from duplicate events
Add strict equality check to prevent same-value updates
Foundry Testing Framework
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.