Misplaced return causes unfair distribution
This return breaks the execution if the msg.sender
is first on the list, and nobody else will receive their assets. Instead of that, the assets will be stored in the contract, and after that, an unfair beneficiary can call withdrawInheritedFunds
and distribute part of their funds.
It is not a problem if the caller is the first beneficiary, but it is an issue if the caller is different from the first or last
It should be continue
instead
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.