diff --git a/src/MerkleAirdrop.sol b/src/MerkleAirdrop.sol index 59f4ceb..d09c049 100644 --- a/src/MerkleAirdrop.sol +++ b/src/MerkleAirdrop.sol @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 P2P Validator +// SPDX-License-Identifier: MIT + pragma solidity 0.8.27; import "./@openzeppelin/access/Ownable2Step.sol"; @@ -13,6 +16,7 @@ contract MerkleAirdrop is Ownable2Step { event MerkleAirdrop__MerkleRootSet(bytes32 _merkleRoot); event MerkleAirdrop__EtherRecovered(address _recipient, uint256 _amount); + event MerkleAirdrop__Claimed(address indexed _recipient, uint256 _amount); constructor(bytes32 _merkleRoot) payable { merkleRoot = _merkleRoot; @@ -38,6 +42,7 @@ contract MerkleAirdrop is Ownable2Step { // Mark address as claimed and transfer the ETH claimed[msg.sender] = true; + emit MerkleAirdrop__Claimed(msg.sender, _amount); Address.sendValue(payable(msg.sender), _amount); }