Closed code423n4 closed 1 year ago
hansfriese marked the issue as satisfactory
hansfriese marked the issue as duplicate of #304
hansfriese marked the issue as duplicate of #261
hansfriese marked the issue as not a duplicate
hansfriese marked the issue as duplicate of #304
hansfriese changed the severity to QA (Quality Assurance)
hansfriese marked the issue as grade-b
Lines of code
https://github.com/code-423n4/2023-03-neotokyo/blob/main/contracts/staking/NeoTokyoStaker.sol#L1155
Vulnerability details
Impact
Points may be lost due to division before multiplication precision issues.
Proof of Concept
NeoTokyoStaker.sol#L1155
Tools Used
Manual review
Recommended Mitigation Steps
Consider multiplying before dividing