claim()
function should revert if the soulmates are divorced.
claim()
function has following check in order to avoid divorced couples to claim tokens:
But the if statement does't work as expected and the divorced couples can call claim()
function.
Below PoC can be used to prove:
Manual review
The claim()
and the isDivorced()
functions should be changed as below in order to revert the claim function when the couples are divorced.
Below should be added to claim()
function:
if (soulmateContract.isDivorced(msg.sender)) {revert Airdrop__CoupleIsDivorced();}
isDivorced()
function should be updated as below:
function isDivorced(address owner) public view returns (bool) {return divorced[owner];}
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.