code-423n4 / 2024-03-pooltogether-findings

5 stars 4 forks source link

Yield Fee Shares could be lost while claiming claimYieldFeeShares #342

Closed c4-bot-7 closed 8 months ago

c4-bot-7 commented 8 months ago

Lines of code

https://github.com/code-423n4/2024-03-pooltogether/blob/main/pt-v5-vault/src/PrizeVault.sol#L611 https://github.com/code-423n4/2024-03-pooltogether/blob/main/pt-v5-vault/src/PrizeVault.sol#L617

Vulnerability details

Impact

Proof of Concept

Tools Used

Manual Review

Recommended Mitigation Steps

While claiming claimYieldFeeShares() it should be checked how many amount of shares the claimer wants to claim rather than subtracting whole yieldFeeBalance.

Assessed type

Other

c4-pre-sort commented 8 months ago

raymondfam marked the issue as sufficient quality report

c4-pre-sort commented 8 months ago

raymondfam marked the issue as duplicate of #10

c4-pre-sort commented 8 months ago

raymondfam marked the issue as duplicate of #59

c4-judge commented 8 months ago

hansfriese marked the issue as satisfactory