This nametag was submitted by Kleros Curate.
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 28,455 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 59473061 | 15 hrs ago | IN | 0 ETH | 0.00000825 | ||||
Claim | 59467009 | 18 hrs ago | IN | 0 ETH | 0.00000604 | ||||
Claim | 59464982 | 19 hrs ago | IN | 0 ETH | 0.00000479 | ||||
Claim | 59462298 | 21 hrs ago | IN | 0 ETH | 0.00000491 | ||||
Claim | 59458127 | 24 hrs ago | IN | 0 ETH | 0.00000413 | ||||
Claim | 59455242 | 26 hrs ago | IN | 0 ETH | 0.00000424 | ||||
Claim | 59430181 | 43 hrs ago | IN | 0 ETH | 0.0000047 | ||||
Claim | 59428995 | 43 hrs ago | IN | 0 ETH | 0.00000469 | ||||
Claim | 59391820 | 2 days ago | IN | 0 ETH | 0.00000425 | ||||
Claim | 59375342 | 3 days ago | IN | 0 ETH | 0.00000404 | ||||
Claim | 59320953 | 4 days ago | IN | 0 ETH | 0.00010273 | ||||
Claim | 59308576 | 5 days ago | IN | 0 ETH | 0.00000476 | ||||
Claim | 59301303 | 5 days ago | IN | 0 ETH | 0.0000047 | ||||
Claim | 59272753 | 5 days ago | IN | 0 ETH | 0.00000544 | ||||
Claim | 59272016 | 5 days ago | IN | 0 ETH | 0.00000396 | ||||
Claim | 59272006 | 5 days ago | IN | 0 ETH | 0.00000558 | ||||
Claim | 59199534 | 7 days ago | IN | 0 ETH | 0.0000045 | ||||
Claim | 59199493 | 7 days ago | IN | 0 ETH | 0.00000466 | ||||
Claim | 59199365 | 7 days ago | IN | 0 ETH | 0.00000468 | ||||
Claim | 59192123 | 7 days ago | IN | 0 ETH | 0.00000506 | ||||
Claim | 59140784 | 8 days ago | IN | 0 ETH | 0.00000489 | ||||
Claim | 59071267 | 10 days ago | IN | 0 ETH | 0.00000479 | ||||
Claim | 59053275 | 10 days ago | IN | 0 ETH | 0.00000497 | ||||
Claim | 59047464 | 10 days ago | IN | 0 ETH | 0.00000516 | ||||
Claim | 59046387 | 10 days ago | IN | 0 ETH | 0.0000048 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
38217846 | 292 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Airdrop
Compiler Version
v0.8.17-1.0.1
ZkSolc Version
v1.5.1
Optimization Enabled:
Yes with Mode 3
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-2.0-or-later // Copyright (C) 2024 PancakeSwap pragma solidity ^0.8.0; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; contract Airdrop is Ownable, Pausable { using SafeERC20 for IERC20; struct Campaign { uint96 id; address rewardToken; uint256 endTime; } // ============================== Variables ================================ bytes32 public merkleRoot; mapping(address => uint256) public claimedAmounts; Campaign public campaign; // ============================== Events =================================== event MerkleRootUpdated(bytes32 root); event Claimed(address indexed user, uint256 amount); event CampaignEndTimeUpdated(uint256 time); // ============================== Errors =================================== error InvalidProof(); error AlreadyClaimed(); error CampaignEnded(); // ============================== Modifiers ================================ modifier whenCampaignNotEnded() { if (block.timestamp >= campaign.endTime) { revert CampaignEnded(); } _; } // ========================= External Functions ============================ constructor(Campaign memory campaign_) Ownable() { campaign = campaign_; } function setMerkleRoot(bytes32 root) external onlyOwner { merkleRoot = root; emit MerkleRootUpdated(root); } function setCampaignEndTime(uint256 time) external onlyOwner { campaign.endTime = time; emit CampaignEndTimeUpdated(time); } function canClaim(address user, uint256 amount, bytes32[] calldata proof) external view returns (bool) { if (paused()) { return false; } if (block.timestamp >= campaign.endTime) { return false; } if ( !MerkleProof.verifyCalldata(proof, merkleRoot, keccak256(bytes.concat(keccak256(abi.encode(user, amount))))) ) { return false; } uint256 owed = amount - claimedAmounts[user]; if (owed == 0) { return false; } return true; } function claim(address user, uint256 amount, bytes32[] calldata proof) external whenCampaignNotEnded whenNotPaused { if ( !MerkleProof.verifyCalldata(proof, merkleRoot, keccak256(bytes.concat(keccak256(abi.encode(user, amount))))) ) { revert InvalidProof(); } uint256 owed = amount - claimedAmounts[user]; if (owed == 0) { revert AlreadyClaimed(); } claimedAmounts[user] = amount; IERC20(campaign.rewardToken).safeTransfer(user, owed); emit Claimed(user, owed); } function withdrawERC20(address token) external onlyOwner { IERC20(token).safeTransfer(msg.sender, IERC20(token).balanceOf(address(this))); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } // ========================= Internal Functions ============================ }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "detectMissingLibraries": false, "enableEraVMExtensions": false, "forceEVMLA": false, "libraries": {}, "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"components":[{"internalType":"uint96","name":"id","type":"uint96"},{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct Airdrop.Campaign","name":"campaign_","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"CampaignEnded","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"CampaignEndTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"MerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"campaign","outputs":[{"internalType":"uint96","name":"id","type":"uint96"},{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"canClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setCampaignEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000179cdb08ecc914a82b5cd391631299eea77bc37d676bd4890b661cf83680000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e0000000000000000000000000000000000000000000000000000000066b0a9a8
Deployed Bytecode
0x00030000000000020006000000000002000000000301001900000060033002700000012c03300197000200000031035500010000000103550000000100200190000000290000c13d0000008002000039000000400020043f000000040030008c0000032f0000413d000000000201043b000000e002200270000001360020009c000000550000213d000001400020009c000000ac0000a13d000001410020009c000000d40000213d000001440020009c0000010b0000613d000001450020009c0000032f0000c13d000000240030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d0000000401100370000000000101043b000001300010009c0000032f0000213d00000000001004350000000201000039000000200010043f0000004002000039000000000100001904aa048b0000040f000001c90000013d0000000002000416000000000002004b0000032f0000c13d0000001f023000390000012d022001970000008002200039000000400020043f0000001f0230018f00000005043002720000003b0000613d000000800500003900000005064002100000008006600039000000000701034f000000007807043c0000000005850436000000000065004b000000370000c13d000000000002004b0000004a0000613d0000000504400210000000000141034f00000003022002100000008004400039000000000504043300000000052501cf000000000525022f000000000101043b0000010002200089000000000121022f00000000012101cf000000000151019f0000000000140435000000600030008c0000032f0000413d000000400100043d0000012e0010009c000000790000a13d0000016a0100004100000000001004350000004101000039000000040010043f0000016b01000041000004ac00010430000001370020009c000000c60000a13d000001380020009c000000ef0000213d0000013b0020009c000001150000613d0000013c0020009c0000032f0000c13d000000240030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d0000000401100370000000000601043b000001300060009c0000032f0000213d000000000100041a00000130021001970000000005000411000000000052004b000002cc0000c13d000000000006004b000002ef0000c13d0000014e01000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000014f01000041000000c40010043f0000015001000041000000e40010043f0000015101000041000004ac000104300000006002100039000000400020043f000000800700043d0000012f0070009c0000032f0000213d0000000002710436000000a00400043d000001300040009c0000032f0000213d00000000004204350000004001100039000000c00200043d000400000002001d0000000000210435000000000200041a00000000010004140000012c0010009c0000012c01008041000000c00110021000000131011001c7000300000002001d00000130052001970000800d0200003900000003030000390000000006000411000600000007001d000500000004001d000001320400004104aa04a00000040f0000000504000029000000060300002900000001002001900000032f0000613d0000000301000029000001330110019700000000020004110000013402200197000000000112019f000000000010041b0000006001400210000000000131019f0000000302000039000000000012041b00000004010000390000000402000029000000000021041b0000002001000039000001000010044300000120000004430000013501000041000004ab0001042e000001460020009c000001c50000613d000001470020009c000001cd0000613d000001480020009c0000032f0000c13d0000000001000416000000000001004b0000032f0000c13d000000000100041a00000130031001970000000002000411000000000023004b000002cc0000c13d0000015300100198000002d50000c13d0000014e01000041000000800010043f0000002001000039000000840010043f0000001401000039000000a40010043f0000016201000041000000c40010043f0000015b01000041000004ac000104300000013d0020009c000002760000613d0000013e0020009c000002840000613d0000013f0020009c0000032f0000c13d0000000001000416000000000001004b0000032f0000c13d000000000100041a0000013001100197000000800010043f0000015901000041000004ab0001042e000001420020009c0000029b0000613d000001430020009c0000032f0000c13d000000240030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d000000000200041a00000130022001970000000003000411000000000032004b000002cc0000c13d0000000401100370000000000101043b0000000103000039000000000013041b000000800010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000149011001c70000800d020000390000015f04000041000002e00000013d000001390020009c000002b20000613d0000013a0020009c0000032f0000c13d000000240030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d000000000200041a00000130022001970000000003000411000000000032004b000002cc0000c13d0000000401100370000000000101043b0000000402000039000000000012041b000000800010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000149011001c70000800d0200003900000001030000390000014a04000041000002e00000013d0000000001000416000000000001004b0000032f0000c13d000000000100041a00000153001001980000000001000019000000010100c039000000800010043f0000015901000041000004ab0001042e000000640030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d0000000402100370000000000202043b000300000002001d000001300020009c0000032f0000213d0000002402100370000000000202043b000200000002001d0000004402100370000000000202043b000001520020009c0000032f0000213d0000002304200039000000000034004b0000032f0000813d0000000404200039000000000141034f000000000101043b000500000001001d000001520010009c0000032f0000213d000400240020003d000000050100002900000005011002100000000401100029000000000031004b0000032f0000213d000000000100041a00000153001001980000000001000019000001bd0000c13d0000000401000039000000000101041a000600000001001d0000015401000041000000000010043900000000010004140000012c0010009c0000012c01008041000000c00110021000000155011001c70000800b0200003904aa04a50000040f0000000100200190000003560000613d000000000101043b000000060010006c0000000001000019000001bd0000813d0000000101000039000000000101041a000100000001001d000000400100043d000000400210003900000002030000290000000000320435000000200210003900000003030000290000000000320435000000400300003900000000003104350000012e0010009c0000004f0000213d0000006003100039000000400030043f0000012c0020009c0000012c02008041000000400220021000000000010104330000012c0010009c0000012c010080410000006001100210000000000121019f00000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000131011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000301043b000000400100043d000000200200003900000000022104360000000000320435000001560010009c0000004f0000213d0000004003100039000000400030043f0000012c0020009c0000012c02008041000000400220021000000000010104330000012c0010009c0000012c010080410000006001100210000000000121019f00000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000131011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000101043b000000050000006b000001a70000613d0000000003000019000600000003001d000000050230021000000004022000290000000102200367000000000202043b000000000021004b000001970000813d0000000000100435000000200020043f00000000010004140000019a0000013d0000000000200435000000200010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000157011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d0000000603000029000000000101043b0000000103300039000000050030006c0000018c0000413d000000010010006c0000000001000019000001bd0000c13d000000030100002900000000001004350000000201000039000000200010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000157011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000101043b000000000101041a000000020010006c000002700000213d0000000001000019000000010100c039000000010110018f000000400200043d00000000001204350000012c0020009c0000012c02008041000000400120021000000158011001c7000004ab0001042e0000000001000416000000000001004b0000032f0000c13d0000000101000039000000000101041a000000800010043f0000015901000041000004ab0001042e000000640030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d0000000402100370000000000202043b000300000002001d000001300020009c0000032f0000213d0000002402100370000000000202043b000200000002001d0000004402100370000000000202043b000001520020009c0000032f0000213d0000002304200039000000000034004b0000032f0000813d0000000404200039000000000141034f000000000101043b000500000001001d000001520010009c0000032f0000213d000400240020003d000000050100002900000005011002100000000401100029000000000031004b0000032f0000213d0000000401000039000000000101041a000600000001001d0000015401000041000000000010043900000000010004140000012c0010009c0000012c01008041000000c00110021000000155011001c70000800b0200003904aa04a50000040f0000000100200190000003560000613d000000400200043d000000000101043b000000060010006c000003570000813d000000000100041a00000153001001980000035e0000c13d0000000101000039000000000101041a000100000001001d000000400120003900000002030000290000000000310435000000200120003900000003030000290000000000310435000000400300003900000000003204350000012e0020009c0000004f0000213d0000006003200039000000400030043f0000012c0010009c0000012c01008041000000400110021000000000020204330000012c0020009c0000012c020080410000006002200210000000000112019f00000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000131011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000301043b000000400100043d000000200200003900000000022104360000000000320435000001560010009c0000004f0000213d0000004003100039000000400030043f0000012c0020009c0000012c02008041000000400220021000000000010104330000012c0010009c0000012c010080410000006001100210000000000121019f00000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000131011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000101043b000000050000006b0000025d0000613d0000000003000019000600000003001d000000050230021000000004022000290000000102200367000000000202043b000000000021004b0000024d0000813d0000000000100435000000200020043f0000000001000414000002500000013d0000000000200435000000200010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000157011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d0000000603000029000000000101043b0000000103300039000000050030006c000002420000413d000000010010006c0000036e0000c13d000000030100002900000000001004350000000201000039000000200010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000157011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000101043b000000000101041a0006000200100073000003760000813d0000016a0100004100000000001004350000001101000039000000040010043f0000016b01000041000004ac000104300000000001000416000000000001004b0000032f0000c13d0000000401000039000000000101041a0000000302000039000000000202041a0000012f03200197000000800030043f0000006002200270000000a00020043f000000c00010043f0000015e01000041000004ab0001042e0000000001000416000000000001004b0000032f0000c13d000000000200041a00000130032001970000000001000411000000000013004b000002cc0000c13d0000015300200198000002e50000c13d00000134022001970000015c022001c7000000000020041b000000800010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000149011001c70000800d0200003900000001030000390000015d04000041000002e00000013d0000000001000416000000000001004b0000032f0000c13d000000000100041a00000130021001970000000005000411000000000052004b000002cc0000c13d0000014d01100197000000000010041b00000000010004140000012c0010009c0000012c01008041000000c00110021000000131011001c70000800d0200003900000003030000390000013204000041000000000600001904aa04a00000040f00000001002001900000032f0000613d000002e30000013d000000240030008c0000032f0000413d0000000002000416000000000002004b0000032f0000c13d0000000401100370000000000501043b000001300050009c0000032f0000213d000000000100041a00000130011001970000000002000411000000000021004b000002cc0000c13d0000014b01000041000000800010043f0000000001000410000000840010043f0000000001000414000000040050008c000002fe0000c13d0000000003000031000000200030008c00000020040000390000000004034019000003290000013d0000014e01000041000000800010043f0000002001000039000000840010043f000000a40010043f0000016001000041000000c40010043f0000015b01000041000004ac000104300000013401100197000000000010041b000000800020043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000149011001c70000800d020000390000000103000039000001610400004104aa04a00000040f00000001002001900000032f0000613d0000000001000019000004ab0001042e0000014e01000041000000800010043f0000002001000039000000840010043f0000001001000039000000a40010043f0000015a01000041000000c40010043f0000015b01000041000004ac000104300000014d01100197000000000161019f000000000010041b00000000010004140000012c0010009c0000012c01008041000000c00110021000000131011001c70000800d020000390000000303000039000001320400004104aa04a00000040f00000001002001900000032f0000613d000002e30000013d0000012c0010009c0000012c01008041000000c0011002100000014c011001c7000600000005001d000000000205001904aa04a50000040f0000008009000039000000000301001900000060033002700000012c03300197000000200030008c000000200400003900000000040340190000001f0540018f0000000506400272000003140000613d000000000701034f000000007807043c0000000009890436000000a00090008c000003100000c13d000000000005004b000003230000613d0000000506600210000000000761034f00000003055002100000008006600039000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f0000000000560435000000000003001f00020000000103550000000100200190000003360000613d000000060500002900000000020004110000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000003310000813d0000000001000019000004ac00010430000000800300043d000000000105001904aa03a10000040f0000000001000019000004ab0001042e000000400200043d0000001f0430018f00000005053002720000000505500210000003420000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000033e0000c13d000000000004004b000003500000613d000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f000000000015043500000060013002100000012c0020009c0000012c020080410000004002200210000000000112019f000004ac00010430000000000001042f000001630100004100000000001204350000012c0020009c0000012c02008041000000400120021000000164011001c7000004ac0001043000000044012000390000015a0300004100000000003104350000002401200039000000100300003900000000003104350000014e0100004100000000001204350000000401200039000000200300003900000000003104350000012c0020009c0000012c02008041000000400120021000000165011001c7000004ac00010430000000400100043d000001660200004100000000002104350000012c0010009c0000012c01008041000000400110021000000164011001c7000004ac000104300000037a0000c13d000000400100043d0000016902000041000003700000013d000000030100002900000000001004350000000201000039000000200010043f00000000010004140000012c0010009c0000012c01008041000000c00110021000000157011001c7000080100200003904aa04a50000040f00000001002001900000032f0000613d000000000101043b0000000202000029000000000021041b0000000301000039000000000101041a00000060011002700000000302000029000000060300002904aa03a10000040f000000400100043d000000060200002900000000002104350000012c0010009c0000012c01008041000000400110021000000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000167011001c70000800d02000039000000020300003900000168040000410000000305000029000002e00000013d0003000000000002000000400400043d0000004405400039000000000035043500000020034000390000016c050000410000000000530435000001300220019700000024054000390000000000250435000000440200003900000000002404350000016d0040009c000004300000813d0000008009400039000000400090043f000001560090009c000004300000213d000001300a100197000000c001400039000000400010043f00000020010000390000000000190435000000a0054000390000016e010000410000000000150435000000000204043300000000010004140000000400a0008c000300000005001d000003ee0000c13d00000001020000390000000001000031000000000001004b000004060000613d0000001f0310003900000176033001970000003f033000390000017603300197000000400c00043d00000000033c00190000000000c3004b00000000040000190000000104004039000001520030009c000004300000213d0000000100400190000004300000c13d000000400030043f0000001f0310018f000000000b1c0436000000020400036700000005011002720000000501100210000003df0000613d00000000051b0019000000000604034f00000000070b0019000000006806043c0000000007870436000000000057004b000003db0000c13d000000000003004b000004080000613d000000000414034f00000000011b00190000000303300210000000000501043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f0000000000310435000004080000013d0000012c0030009c0000012c0300804100000040033002100000012c0020009c0000012c020080410000006002200210000000000232019f0000012c0010009c0000012c01008041000000c001100210000000000112019f00000000020a0019000200000009001d00010000000a001d04aa04a00000040f000000010a0000290000000209000029000000010220018f000200000001035500000060011002700000012c0010019d0000012c01100197000000000001004b000003c40000c13d000000600c000039000000800b00003900000000010c0433000000000002004b000004380000613d000000000001004b000004230000c13d00030000000c001d00020000000b001d0000016f0100004100000000001004390000000400a0044300000000010004140000012c0010009c0000012c01008041000000c00110021000000170011001c7000080020200003904aa04a50000040f0000000100200190000004780000613d000000000101043b000000000001004b0000000301000029000004790000613d0000000001010433000000000001004b000000020b0000290000042f0000613d000001710010009c000004360000213d000000200010008c000004360000413d00000000010b0433000000000001004b0000000002000019000000010200c039000000000021004b000004360000c13d000000000001004b0000045c0000613d000000000001042d0000016a0100004100000000001004350000004101000039000000040010043f0000016b01000041000004ac000104300000000001000019000004ac00010430000000000001004b000004700000c13d000000400100043d0000014e0200004100000000002104350000000402100039000000200300003900000000003204350000000002090433000000240310003900000000002304350000004403100039000000000002004b00000003070000290000044f0000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000004480000413d0000001f0420003900000176044001970000000002230019000000000002043500000044024000390000012c0020009c0000012c0200804100000060022002100000012c0010009c0000012c010080410000004001100210000000000112019f000004ac00010430000000400100043d00000064021000390000017203000041000000000032043500000044021000390000017303000041000000000032043500000024021000390000002a0300003900000000003204350000014e0200004100000000002104350000000402100039000000200300003900000000003204350000012c0010009c0000012c01008041000000400110021000000174011001c7000004ac000104300000012c00b0009c0000012c0b0080410000004002b002100000012c0010009c0000012c010080410000006001100210000000000121019f000004ac00010430000000000001042f000000400100043d00000044021000390000017503000041000000000032043500000024021000390000001d0300003900000000003204350000014e0200004100000000002104350000000402100039000000200300003900000000003204350000012c0010009c0000012c01008041000000400110021000000165011001c7000004ac00010430000000000001042f0000012c0010009c0000012c0100804100000040011002100000012c0020009c0000012c020080410000006002200210000000000112019f00000000020004140000012c0020009c0000012c02008041000000c002200210000000000112019f00000131011001c7000080100200003904aa04a50000040f00000001002001900000049e0000613d000000000101043b000000000001042d0000000001000019000004ac00010430000004a3002104210000000102000039000000000001042d0000000002000019000000000001042d000004a8002104230000000102000039000000000001042d0000000002000019000000000001042d000004aa00000432000004ab0001042e000004ac0001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000000000000000000000000000ffffffffffffff9f0000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000ffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffffff000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000811e539b00000000000000000000000000000000000000000000000000000000dc38bdb400000000000000000000000000000000000000000000000000000000f4f3b1ff00000000000000000000000000000000000000000000000000000000f4f3b20000000000000000000000000000000000000000000000000000000000fefcb36400000000000000000000000000000000000000000000000000000000dc38bdb500000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000811e539c000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000005c975aba00000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000007cb64759000000000000000000000000000000000000000000000000000000005c975abb0000000000000000000000000000000000000000000000000000000071417b32000000000000000000000000000000000000000000000000000000002eb4a7ab000000000000000000000000000000000000000000000000000000003d13f874000000000000000000000000000000000000000000000000000000003f4ba83a020000000000000000000000000000000000002000000080000000000000000033d8211e9f962cfa7bc361c9747f31346afac8b4ef0967977df24e238cff58b470a08231000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000800000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff0000000000000000000000ff0000000000000000000000000000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320200000200000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf0200000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000008000000000000000005061757361626c653a20706175736564000000000000000000000000000000000000000000000000000000000000000000000064000000800000000000000000000000000000000000000001000000000000000000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258000000000000000000000000000000000000006000000080000000000000000090004c04698bc3322499a575ed3752dd4abf33e0a7294c06a787a0fe01bea9414f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f7420706175736564000000000000000000000000553ae054000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000006400000000000000000000000009bde339000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000000000000000000000d8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a646cf558000000000000000000000000000000000000000000000000000000004e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000a9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff805361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65641806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e0000000000000000000000000000000000000084000000000000000000000000416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe000000000000000000000000000000000000000000000000000000000000000009020c59963b76556681546ceea555af0c7106fe3bcaf4efd4900f0f2c739b1f9
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000010000000000000000000000005a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e0000000000000000000000000000000000000000000000000000000066b0a9a8
-----Decoded View---------------
Arg [0] : campaign_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [1] : 0000000000000000000000005a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e
Arg [2] : 0000000000000000000000000000000000000000000000000000000066b0a9a8
Loading...
Loading
OVERVIEW
ZK Airdrop ClaimLoading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ZKSYNC | 100.00% | $0.05613 | 871,282.697 | $48,905.1 |
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.