Open code423n4 opened 2 years ago
0x0x0x
In claimReward, lastApplicableTime is called to update lastUpdate, but stream did already end so calling this function wastes gas. One can directly assign endStream as lastUpdate.
claimReward
lastApplicableTime
lastUpdate
endStream
Handle
0x0x0x
Vulnerability details
In
claimReward
,lastApplicableTime
is called to updatelastUpdate
, but stream did already end so calling this function wastes gas. One can directly assignendStream
aslastUpdate
.