Couples that are divorced can Still Claim LoveTokens.
Divorced couples can continue to receive airdrop tokens even though they are divorced and does not work as intented. The line, if(soulmateContract.isDivorced()) revert Airdrop_CouplesDivorced() will always return false because the function isDivorced()
on the Soulmate.sol
contract returns divorced[msg.sender]. since the airdrop is the one calling the function, it will check if the airdrop contract is divorced - False.
soulmates can still continue to receive airdrops continuing to receive token benefits even though it is not allowed.
Hardhat
✔ Divorced Couple STILL receives Love Airdrop Test (107ms)
Revise the isDivorced()
on the soulmate contract to receive an address instead of msg.sender, then let it check the input address.
also update the airdrop.sol
contract to send the caller of the claim() 'msg.sender'
also update the ISoulmate.sol
interface
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.