The StabilityPool::deposit
function redundantly calls _mintRAACRewards
, even though _update
—which is invoked at the beginning of the function—already performs this action. This unnecessary duplication leads to inefficiencies in execution and increased gas costs.
Problem description
In the StabilityPool::deposit
function, _mintRAACRewards
is explicitly called at the end of the function, despite already being invoked by _update
. This results in an unnecessary additional function call and execution.
Affected Code in StabilityPool
Unnecessary gas consumption: The redundant function call increases transaction costs for depositors.
Inefficient execution: The extra function call serves no additional purpose and can be removed without affecting functionality.
Manual Review
Modify StabilityPool::deposit
by removing the extra _mintRAACRewards
call at the end:
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.