51455 sc low inflated earned ui rewards when validator stake is zero due to missing totalstaked guard in view logic
Description
Brief/Intro
Vulnerability Details
// VIEW path
uint256 rptIncreaseInSegment = segmentDuration * rateForSegment;
simulatedCumulativeRPT += rptIncreaseInSegment;1
2
3
Impact Details
Fix
References
Proof of Concept
1
2
3
4
5
Previous50949 sc insight no check if raffle actually has enough fundsNext52436 sc low getaccruedcommission could return an inaccurate value
Was this helpful?