Open code423n4 opened 1 year ago
JeffCX marked the issue as duplicate of #501
0xean marked the issue as satisfactory
0xean changed the severity to 2 (Med Risk)
0xean marked the issue as selected for report
LybraFinance marked the issue as sponsor confirmed
Lines of code
https://github.com/code-423n4/2023-06-lybra/blob/7b73ef2fbb542b569e182d9abf79be643ca883ee/contracts/lybra/miner/ProtocolRewardsPool.sol#L190-L218 https://github.com/code-423n4/2023-06-lybra/blob/7b73ef2fbb542b569e182d9abf79be643ca883ee/contracts/lybra/miner/ProtocolRewardsPool.sol#L209
Vulnerability details
Vulnerability Details
The
getReward
external function can't calculate and distribute rewards correctly for an account because of the reasons below:Impact
Users can't get rewards and rewards freezes.
Proof of Concept
Tools Used
Assessed type
Math