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

0 stars 0 forks source link

cache duplicate call #80

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

pauliax

Vulnerability details

Impact

function _setYieldSource can cache _newYieldSource.depositToken() to eliminate a duplicate call and thus save some gas.

PierrickGT commented 3 years ago

Duplicate of https://github.com/code-423n4/2021-07-pooltogether-findings/issues/26