The StabilityPool::deposit() function calls _mintRAACRewards() twice unnecessarily - once through _update() and once directly, leading to wasted gas since the second call has no effect.
The issue occurs in the deposit function:
The root cause is that _update() already calls _mintRAACRewards(), making the second direct call redundant since RAAC rewards are time-dependent and won't change within the same transaction.
The redundant call to _mintRAACRewards() wastes gas by:
Making an unnecessary external call to the RAACMinter contract
Performing duplicate state reads/computations
While this doesn't affect the security or functionality of the protocol, it creates unnecessary overhead.
Remove redundant call
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.