You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github username:@ololade97 Submission hash (on-chain): 0x433ac82f0d8f9656352c9cb52c78a6a65b3471c1c2900beae649de71d66fec0a Severity: high
Description: Description
According to the Openzeppelin documentation, when implementing a PaymentSplitter, all addresses in payees must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in payees.
Github username: @ololade97
Submission hash (on-chain): 0x433ac82f0d8f9656352c9cb52c78a6a65b3471c1c2900beae649de71d66fec0a
Severity: high
Description:
Description
According to the Openzeppelin documentation, when implementing a PaymentSplitter, all addresses in payees must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in payees.
See here:
https://docs.openzeppelin.com/contracts/2.x/api/payment
In the createHATPaymentSplitter function, the above are not checked.
Attachments
https://github.com/hats-finance/hats-contracts/blob/0d6ebbde912bc272d9b310140d434ee2aacd36d3/contracts/HATPaymentSplitterFactory.sol#L17-L22
https://docs.openzeppelin.com/contracts/2.x/api/payment
The text was updated successfully, but these errors were encountered: