Open code423n4 opened 2 years ago
I believe it is unfair game to award bounty for this. It is written on the line above. All wardens who read the contracts saw this.
https://github.com/code-423n4/2021-08-floatcapital/blob/bd419abf68e775103df6e40d8f0e8d40156c2f81/contracts/contracts/Staker.sol#L634 (the comment that was there before the code was released)
Awarding to warden based on the fact that they are being asked to review the current code base for gas optimizations and even if this optimization was commented, it wasn't implemented.
Handle
0xImpostor
Vulnerability details
Impact
Small gas optimization if you pass the time delta into
_setCurrentAccumulativeIssuancePerStakeStakedSynthSnapshot
and_calculateNewCumulativeIssuancePerStakedSynth
Proof of Concept
https://github.com/code-423n4/2021-08-floatcapital/blob/main/contracts/contracts/Staker.sol#L635
Tools Used
manual analysis