code-423n4 / 2021-06-pooltogether-findings

0 stars 0 forks source link

Gas cache `badgerSett` #98

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

cmichel

Vulnerability details

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.

asselstine commented 3 years ago

See https://github.com/code-423n4/2021-06-pooltogether-findings/issues/38