There is no mechanism implemented in this function to prevent duplicate addresses from being added. This means that you can add an address to the list multiple times, which may cause problems in the contract logic (such as sharing assets across other functions).
In the addBeneficiary
function, no check is made for duplicate beneficiaries, which causes duplicate beneficiaries to be entered, which effectively causes unfair distribution.
Incorrect division of property due to the wrong number of beneficiaries
manual review
To avoid duplicate beneficiaries, you can add a mapping and check it before pushing.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.