Soulmate::getDivorced
allows either soulmate to unilaterally divorce without the consent of the other, which could lead to unexpected outcomes. Additionally, there is no check to ensure that a divorce can only occur if the couple is actually married and not already divorced.
Soulmate::getDivorced
changes the state of the divorced
mapping but does not emit an event for these state changes, which is not ideal for transparency and off-chain tracking.
Transparency and off-chain tracking are important for users to be able to track the state of their soulmate relationship. The lack of an event for the state changes could lead to confusion and unexpected outcomes.
Manual review with Audit Wizard
Consider providing a mechanism to ensure that both soulmates agree to the divorce, and emit an event for the state changes.
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.