require(msg.value >= 1 ether, ...) instead of ==, with no refund of msg.value - 1 ether and no accounting at all. A fat-fingered 5 ETH like locks 4 ETH of surplus silently.
test_L1_overpaymentAcceptedAndLocked: Alice likes Bob with 5 ETH; asserts the 5 ETH is accepted and sits unaccounted in the registry. PASS.
require(msg.value == 1 ether) or refund the excess.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.