Closed code423n4 closed 3 years ago
cmichel
In BadgerYieldSource.supplyTokenTo, the badgerSett variable is accessed four times. If each of these accesses corresponds to an SLOAD, it'll be better to cache the value once.
BadgerYieldSource.supplyTokenTo
badgerSett
SLOAD
See https://github.com/code-423n4/2021-06-pooltogether-findings/issues/38
Handle
cmichel
Vulnerability details
In
BadgerYieldSource.supplyTokenTo
, thebadgerSett
variable is accessed four times. If each of these accesses corresponds to anSLOAD
, it'll be better to cache the value once.