code-423n4 / 2021-11-streaming-findings

0 stars 0 forks source link

Not needed lastApplicableTime call in claimReward #189

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

0x0x0x

Vulnerability details

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.