Users incur more gas fee to pay for when they call deposit function. This is due to the double call to the tick function from the RAACMinter when users intend to deposit their RToken into their StabilityPool contract.
Observe that when deposit is called by a user, it calls update
and mintRAACRewards
functions to mint RAAC rewards into the StabilityPool contract.
The update
and the mintRAACRewards
function:
On tracing how tick
works on the RAACMinter:
If all deposit happens before the emissionUpdateInterval, it skips the first if condition, get the difference in block since last update. If greater than zero, and the amountToMint is non-zero, it mints raacToken to stabilityPool contract.
The second call to tick from all deposit gets the blockSinceLadtUpdate but since this will be zero, it skips the rest of the function doing nothing. Users pay more gas for interacting with the StabilityPool:deposit
function.
Incurs more gas for depositing RTokens into the StabilityPool.
Manual review.
Notice how this is only present in the deposit function. withdraw and liquidateBorrower only calls _update function for a single tick.
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.