Open code423n4 opened 2 years ago
cmichel
In CompoundTempusPool, the cToken and the base class' yieldBearingToken storage fields are the same. Remove the cToken field and the assignment in the constructor to save gas.
CompoundTempusPool
cToken
yieldBearingToken
None of this is storage variable, both are immutables. However, they are duplicated and we should remove the one from CompoundTempusPool
Fixed in https://github.com/tempus-finance/tempus-protocol/pull/375
Handle
cmichel
Vulnerability details
In
CompoundTempusPool
, thecToken
and the base class'yieldBearingToken
storage fields are the same. Remove thecToken
field and the assignment in the constructor to save gas.