Closed code423n4 closed 2 years ago
Incorrect understanding of the math. See here for some background: https://github.com/code-423n4/2021-11-streaming-findings/issues/82#issuecomment-985844418
The user is suppose to receive more than others because they are streaming their depositTokens faster than others
dupe of #82 (also invalid)
Handle
csanuragjain
Vulnerability details
Impact
More than expected rewards will be distributed to users
Proof of Concept
As we can see the virtual balance is returned as 20. Virtual balance increases as stream go closer to end
This is incorrect as now the earned function will give more rewards for this user even though he staked very late
Recommended Mitigation Steps
Virtual balance should be calculated properly