In the function claimPrize, the address of the _prizeRecipient has a zero address check, However there is no zero address check the _rewardRecipient address.
Vulnerability Detail
Could lead to unexpected behavior or errors
Impact
This could lead to transaction failure or a permanent loss of funds
newt
medium
Missing Zero Address Check for _rewardRecipient
Summary
In the function
claimPrize
, the address of the_prizeRecipient
has a zero address check, However there is no zero address check the_rewardRecipient
address.Vulnerability Detail
Could lead to unexpected behavior or errors
Impact
This could lead to transaction failure or a permanent loss of funds
Code Snippet
https://github.com/sherlock-audit/2024-05-pooltogether/blob/main/pt-v5-vault/src/abstract/Claimable.sol#L76-L107
Tool used
Manual Review
Recommendation
Add a zero address check like
_prizeRecipient
has.