ETH Price: $2,034.37 (-2.35%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim244992462026-02-20 16:25:596 days ago1771604759IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000123251.25002669
Claim244668182026-02-16 3:53:4710 days ago1771214027IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000023650.2398568
Claim243998192026-02-06 19:17:4720 days ago1770405467IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000126821.28601904
Claim243971502026-02-06 10:21:1120 days ago1770373271IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000039190.3975013
Claim242755502026-01-20 11:00:3537 days ago1768906835IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000005240.05319468
Claim242315832026-01-14 7:55:2343 days ago1768377323IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000004670.04737654
Claim242169902026-01-12 6:57:3545 days ago1768201055IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000003040.0315741
Claim242052912026-01-10 15:48:1147 days ago1768060091IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000004330.04394851
Claim241250122025-12-30 11:00:3558 days ago1767092435IN
0xfF9eCd7e...88C2C46c8
0 ETH0.00001050.10656366
Claim241170492025-12-29 8:16:4759 days ago1766996207IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000008880.09005526
Claim240464522025-12-19 11:50:3569 days ago1766145035IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000200532.03317979
Claim240106422025-12-14 11:47:4774 days ago1765712867IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000004590.04657
Claim239989732025-12-12 20:38:4776 days ago1765571927IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000003220.03269646
Claim239919382025-12-11 20:51:5977 days ago1765486319IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000204232.120222
Claim239494492025-12-05 21:38:1183 days ago1764970691IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000002030.02065898
Claim239394542025-12-04 11:39:5984 days ago1764848399IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000012570.12751609
Claim239323542025-12-03 10:34:3585 days ago1764758075IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000166062.03839026
Claim239307662025-12-03 5:14:5985 days ago1764738899IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000101941.03385113
Claim239144352025-11-30 22:22:3588 days ago1764541355IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000085361.04767043
Claim238715282025-11-24 21:59:5994 days ago1764021599IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000202532.10219751
Claim238195382025-11-17 14:39:11101 days ago1763390351IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000355773.60658546
Claim238049082025-11-15 13:31:59103 days ago1763213519IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000008810.08942804
Claim237994292025-11-14 19:10:23104 days ago1763147423IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000231152.34413024
Claim237922662025-11-13 19:07:47105 days ago1763060867IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000201492.47185871
Claim237918602025-11-13 17:46:23105 days ago1763055983IN
0xfF9eCd7e...88C2C46c8
0 ETH0.000277543.403942
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YlockerDrops

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import { IERC20 } from "contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "contracts/token/ERC20/utils/SafeERC20.sol";
import { MerkleProof } from "contracts/utils/cryptography/MerkleProof.sol";
import { Ownable } from "contracts/access/Ownable.sol";

contract YlockerDrops is Ownable {
    using SafeERC20 for IERC20;

    uint256 public constant MAX_DESCRIPTION_BYTES = 384;

    uint256 public dropCount;
    mapping(address account => address delegate) public delegates;
    mapping(uint256 id => Drop drop) public drops;
    mapping(address account => mapping(uint256 dropId => bool hasClaimed)) public hasClaimed;

    struct Drop {
        address token;
        uint40 startsAt;
        uint40 expiresAt;
        uint256 totalAmount;
        uint256 claimedAmount;
        bytes32 merkleRoot;
        string description;
    }

    event DropCreated(uint256 indexed dropId, address indexed token, uint256 startsAt, uint256 expiresAt, uint256 totalAmount);
    event MerkleRootSet(uint256 indexed dropId, bytes32 merkleRoot);
    event Claimed(uint256 indexed dropId, address indexed account, address indexed recipient, uint256 amount);
    event ExpiredTokensRecovered(uint256 indexed dropId, address indexed token, uint256 amount);
    event DelegateSet(address indexed account, address indexed delegate);
    event DropDescriptionSet(uint256 indexed dropId, string description);

    constructor(address _owner) Ownable(_owner) {}

    function claim(
        uint256 _dropId,
        address _account,
        address _recipient,
        uint256 _amount,
        bytes32[] calldata _proof,
        uint256 _index
    ) external {
        require(msg.sender == _account || msg.sender == delegates[_account], "!authorized");
        Drop storage drop = drops[_dropId];
        bytes32 _root = drop.merkleRoot;
        require(_root != bytes32(0), "root not set");
        require(drop.startsAt <= block.timestamp, "!started");
        require(drop.expiresAt >= block.timestamp, "expired");
        require(!hasClaimed[_account][_dropId], "already claimed");
        bytes32 node = keccak256(abi.encodePacked(_account, _index, _amount));
        require(MerkleProof.verifyCalldata(
            _proof,
            _root,
            node
        ), "invalid proof");
        hasClaimed[_account][_dropId] = true;
        drop.claimedAmount += _amount;
        emit Claimed(_dropId, _account, _recipient, _amount);
        IERC20(drop.token).safeTransfer(_recipient, _amount);
    }

    /**
        @notice Create a new drop
        @param _token Token to be distributed
        @param _startTime Start timestamp for claims.
        @param _duration Duration of the drop in seconds
        @param _totalAmount Total amount of tokens to be distributed
        @param _merkleRoot Merkle root for the drop
    */
    function createDrop(string calldata _description, address _token, uint256 _startTime, uint256 _duration, uint256 _totalAmount, bytes32 _merkleRoot) external onlyOwner {
        require(bytes(_description).length <= MAX_DESCRIPTION_BYTES, "Description too long");
        if (_startTime == 0) _startTime = block.timestamp;
        require(_startTime >= block.timestamp);
        require(_totalAmount > 0, "totalAmount must be greater than 0");
        require(IERC20(_token).balanceOf(address(this)) >= _totalAmount, "not funded");
        require(_duration > 0, "duration must be greater than 0");
        uint256 _dropId = dropCount++;
        drops[_dropId] = Drop(_token, uint40(_startTime), uint40(block.timestamp + _duration), _totalAmount, 0, _merkleRoot, _description);
        emit DropCreated(_dropId, _token, uint40(_startTime), uint40(block.timestamp + _duration), _totalAmount);
        if (_merkleRoot != bytes32(0)) {
            emit MerkleRootSet(_dropId, _merkleRoot);
        }
    }

    /**
        @notice Set the merkle root for a drop
        @param _dropId ID of the drop
        @param _root Merkle root for the drop
    */
    function setMerkleRoot(uint256 _dropId, bytes32 _root) external onlyOwner {
        drops[_dropId].merkleRoot = _root;
        emit MerkleRootSet(_dropId, _root);
    }

    function recoverExpiredTokens(uint256 _dropId) external onlyOwner {
        Drop storage drop = drops[_dropId];
        require(block.timestamp > drop.expiresAt, "not expired");
        require(drop.claimedAmount < drop.totalAmount, "fully claimed");
        uint256 _amount = drop.totalAmount - drop.claimedAmount;
        IERC20(drop.token).safeTransfer(owner(), _amount);
        emit ExpiredTokensRecovered(_dropId, drop.token, _amount);
    }

    /**
        @notice Set a delegate for an account, allowing them to claim on behalf of the account.
        @dev Can only be called by the account itself or the owner.
        @param _account Account to set the delegate for.
        @param _delegate Delegate to set for the account
    */
    function setDelegate(address _account, address _delegate) external {
        require(msg.sender == _account || msg.sender == owner(), "not authorized");
        delegates[_account] = _delegate;
        emit DelegateSet(_account, _delegate);
    }

    function setDropDescription(uint256 _dropId, string calldata _description) external onlyOwner {
        drops[_dropId].description = _description;
        emit DropDescriptionSet(_dropId, _description);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "contracts/token/ERC20/IERC20.sol";
import {IERC20Permit} from "contracts/token/ERC20/extensions/IERC20Permit.sol";
import {Address} from "contracts/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 An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @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.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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(token).code.length > 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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 v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @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 The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @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}
     */
    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.
     */
    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}
     */
    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.
     */
    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.
     */
    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).
     */
    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.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // 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) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            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.
     */
    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.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // 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) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    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)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "contracts/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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"delegate","type":"address"}],"name":"DelegateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"startsAt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiresAt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"DropCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"DropDescriptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExpiredTokensRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootSet","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"},{"inputs":[],"name":"MAX_DESCRIPTION_BYTES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dropId","type":"uint256"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_totalAmount","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"createDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"delegate","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"drops","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint40","name":"startsAt","type":"uint40"},{"internalType":"uint40","name":"expiresAt","type":"uint40"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"description","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"hasClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dropId","type":"uint256"}],"name":"recoverExpiredTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dropId","type":"uint256"},{"internalType":"string","name":"_description","type":"string"}],"name":"setDropDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dropId","type":"uint256"},{"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"}]

608060405234801561001057600080fd5b5060405161170638038061170683398101604081905261002f916100be565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100678161006e565b50506100ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d057600080fd5b81516001600160a01b03811681146100e757600080fd5b9392505050565b611609806100fd6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063c81ea2a011610066578063c81ea2a014610217578063de058b0914610220578063eff82d1f14610233578063f2fde38b1461024657600080fd5b80638da5cb5b146101b5578063a634942f146101c6578063b2931096146101d957600080fd5b80635eb39968116100c85780635eb399681461015d57806366c14e0a14610183578063715018a61461019a5780638b542785146101a257600080fd5b806318712c21146100ef578063587cde1e146101045780635c8738491461014a575b600080fd5b6101026100fd366004610f9a565b610259565b005b61012d610112366004610fd8565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610102610158366004610ff3565b6102b5565b61017061016b366004611026565b61036f565b6040516101419796959493929190611063565b61018c60015481565b604051908152602001610141565b61010261044c565b6101026101b03660046110d8565b610460565b6000546001600160a01b031661012d565b6101026101d43660046111d6565b61075f565b6102076101e736600461124f565b600460209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610141565b61018c61018081565b61010261022e366004611026565b610afa565b610102610241366004611279565b610c2a565b610102610254366004610fd8565b610c8e565b610261610ccc565b600082815260036020819052604091829020018290555182907fb04b7d6145a7588fdcf339a22877d5965f861c171204fc37688058c5f6c06d3b906102a99084815260200190565b60405180910390a25050565b336001600160a01b03831614806102d657506000546001600160a01b031633145b6103185760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b6001600160a01b0382811660008181526002602052604080822080546001600160a01b0319169486169485179055517f6ee10e9ed4d6ce9742703a498707862f4b00f1396a87195eb93267b3d79839819190a35050565b6003602081905260009182526040909120805460018201546002830154938301546004840180546001600160a01b0385169664ffffffffff600160a01b8704811697600160c81b909704169590939290916103c9906112c5565b80601f01602080910402602001604051908101604052809291908181526020018280546103f5906112c5565b80156104425780601f1061041757610100808354040283529160200191610442565b820191906000526020600020905b81548152906001019060200180831161042557829003601f168201915b5050505050905087565b610454610ccc565b61045e6000610cf9565b565b336001600160a01b038716148061049057506001600160a01b038681166000908152600260205260409020541633145b6104ca5760405162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015260640161030f565b6000878152600360208190526040909120908101548061051b5760405162461bcd60e51b815260206004820152600c60248201526b1c9bdbdd081b9bdd081cd95d60a21b604482015260640161030f565b815442600160a01b90910464ffffffffff1611156105665760405162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015260640161030f565b815442600160c81b90910464ffffffffff1610156105b05760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161030f565b6001600160a01b03881660009081526004602090815260408083208c845290915290205460ff16156106165760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b604482015260640161030f565b6040516bffffffffffffffffffffffff1960608a901b166020820152603481018490526054810187905260009060740160405160208183030381529060405280519060200120905061066a86868484610d49565b6106a65760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161030f565b6001600160a01b03891660009081526004602090815260408083208d84529091528120805460ff191660011790556002840180548992906106e8908490611315565b92505081905550876001600160a01b0316896001600160a01b03168b7fce3bcb6e219596cf26007ffdfaae8953bc3f76e3f36c0a79b23e28020da3222e8a60405161073591815260200190565b60405180910390a48254610753906001600160a01b03168989610d61565b50505050505050505050565b610767610ccc565b6101808611156107b05760405162461bcd60e51b81526020600482015260146024820152734465736372697074696f6e20746f6f206c6f6e6760601b604482015260640161030f565b836000036107bc574293505b428410156107c957600080fd5b600082116108245760405162461bcd60e51b815260206004820152602260248201527f746f74616c416d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b606482015260840161030f565b6040516370a0823160e01b815230600482015282906001600160a01b038716906370a0823190602401602060405180830381865afa15801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190611328565b10156108c95760405162461bcd60e51b815260206004820152600a6024820152691b9bdd08199d5b99195960b21b604482015260640161030f565b600083116109195760405162461bcd60e51b815260206004820152601f60248201527f6475726174696f6e206d7573742062652067726561746572207468616e203000604482015260640161030f565b600180546000918261092a83611341565b909155506040805160e0810182526001600160a01b038916815264ffffffffff8816602082015291925081016109608642611315565b64ffffffffff1681526020018481526020016000815260200183815260200189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600360208181526040928390208551815492870151948701516001600160a01b039091166001600160c81b031990931692909217600160a01b64ffffffffff958616021764ffffffffff60c81b1916600160c81b9490921693909302178255606084015160018301556080840151600283015560a08401519082015560c08301519091506004820190610a4d90826113be565b5050506001600160a01b038616817f66235140c726cfcbf17225105ab811be91dfb948978f6b5b8a874ed5ded33af087610a878842611315565b6040805164ffffffffff9384168152929091166020830152810187905260600160405180910390a38115610af057807fb04b7d6145a7588fdcf339a22877d5965f861c171204fc37688058c5f6c06d3b83604051610ae791815260200190565b60405180910390a25b5050505050505050565b610b02610ccc565b60008181526003602052604090208054600160c81b900464ffffffffff164211610b5c5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08195e1c1a5c995960aa1b604482015260640161030f565b8060010154816002015410610ba35760405162461bcd60e51b815260206004820152600d60248201526c199d5b1b1e4818db185a5b5959609a1b604482015260640161030f565b600081600201548260010154610bb9919061147d565b9050610be2610bd06000546001600160a01b031690565b83546001600160a01b03169083610d61565b81546040518281526001600160a01b039091169084907f6c759ade98462b188d5f8402183b53334471d14e92532d1e207f1823497aa3e39060200160405180910390a3505050565b610c32610ccc565b6000838152600360205260409020600401610c4e828483611490565b50827ff8bf1239532cef1f22b3fc1e490faa59fae138f88840aacf300e8e28b27c7e098383604051610c81929190611550565b60405180910390a2505050565b610c96610ccc565b6001600160a01b038116610cc057604051631e4fbdf760e01b81526000600482015260240161030f565b610cc981610cf9565b50565b6000546001600160a01b0316331461045e5760405163118cdaa760e01b815233600482015260240161030f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610d57868685610db8565b1495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610db3908490610dfc565b505050565b600081815b84811015610df157610de782878784818110610ddb57610ddb61157f565b90506020020135610e5f565b9150600101610dbd565b5090505b9392505050565b6000610e116001600160a01b03841683610e93565b90508051600014158015610e36575080806020019051810190610e349190611595565b155b15610db357604051635274afe760e01b81526001600160a01b038416600482015260240161030f565b6000818310610e7b576000828152602084905260409020610e8a565b60008381526020839052604090205b90505b92915050565b6060610e8a8383600084600080856001600160a01b03168486604051610eb991906115b7565b60006040518083038185875af1925050503d8060008114610ef6576040519150601f19603f3d011682016040523d82523d6000602084013e610efb565b606091505b5091509150610f0b868383610f15565b9695505050505050565b606082610f2a57610f2582610f71565b610df5565b8151158015610f4157506001600160a01b0384163b155b15610f6a57604051639996b31560e01b81526001600160a01b038516600482015260240161030f565b5080610df5565b805115610f815780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008060408385031215610fad57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610fd357600080fd5b919050565b600060208284031215610fea57600080fd5b610e8a82610fbc565b6000806040838503121561100657600080fd5b61100f83610fbc565b915061101d60208401610fbc565b90509250929050565b60006020828403121561103857600080fd5b5035919050565b60005b8381101561105a578181015183820152602001611042565b50506000910152565b60018060a01b038816815264ffffffffff8716602082015264ffffffffff861660408201528460608201528360808201528260a082015260e060c0820152600082518060e08401526110bd8161010085016020870161103f565b601f01601f1916919091016101000198975050505050505050565b600080600080600080600060c0888a0312156110f357600080fd5b8735965061110360208901610fbc565b955061111160408901610fbc565b945060608801359350608088013567ffffffffffffffff81111561113457600080fd5b8801601f81018a1361114557600080fd5b803567ffffffffffffffff81111561115c57600080fd5b8a60208260051b840101111561117157600080fd5b979a9699509497939660209095019560a0909401359392505050565b60008083601f84011261119f57600080fd5b50813567ffffffffffffffff8111156111b757600080fd5b6020830191508360208285010111156111cf57600080fd5b9250929050565b600080600080600080600060c0888a0312156111f157600080fd5b873567ffffffffffffffff81111561120857600080fd5b6112148a828b0161118d565b9098509650611227905060208901610fbc565b96999598509596604081013596506060810135956080820135955060a0909101359350915050565b6000806040838503121561126257600080fd5b61126b83610fbc565b946020939093013593505050565b60008060006040848603121561128e57600080fd5b83359250602084013567ffffffffffffffff8111156112ac57600080fd5b6112b88682870161118d565b9497909650939450505050565b600181811c908216806112d957607f821691505b6020821081036112f957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e8d57610e8d6112ff565b60006020828403121561133a57600080fd5b5051919050565b600060018201611353576113536112ff565b5060010190565b634e487b7160e01b600052604160045260246000fd5b601f821115610db357806000526020600020601f840160051c810160208510156113975750805b601f840160051c820191505b818110156113b757600081556001016113a3565b5050505050565b815167ffffffffffffffff8111156113d8576113d861135a565b6113ec816113e684546112c5565b84611370565b6020601f82116001811461142057600083156114085750848201515b600019600385901b1c1916600184901b1784556113b7565b600084815260208120601f198516915b828110156114505787850151825560209485019460019092019101611430565b508482101561146e5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b81810381811115610e8d57610e8d6112ff565b67ffffffffffffffff8311156114a8576114a861135a565b6114bc836114b683546112c5565b83611370565b6000601f8411600181146114f057600085156114d85750838201355b600019600387901b1c1916600186901b1783556113b7565b600083815260209020601f19861690835b828110156115215786850135825560209485019460019092019101611501565b508682101561153e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156115a757600080fd5b81518015158114610df557600080fd5b600082516115c981846020870161103f565b919091019291505056fea2646970667358221220cf71d9dc4cb16895cc6b385e8054b4c42a3a079ac4f53c04e90363e8263c8bd464736f6c634300081c00330000000000000000000000002c2dc95f8c8060a7e3b354c1b9540881aea1613c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063c81ea2a011610066578063c81ea2a014610217578063de058b0914610220578063eff82d1f14610233578063f2fde38b1461024657600080fd5b80638da5cb5b146101b5578063a634942f146101c6578063b2931096146101d957600080fd5b80635eb39968116100c85780635eb399681461015d57806366c14e0a14610183578063715018a61461019a5780638b542785146101a257600080fd5b806318712c21146100ef578063587cde1e146101045780635c8738491461014a575b600080fd5b6101026100fd366004610f9a565b610259565b005b61012d610112366004610fd8565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610102610158366004610ff3565b6102b5565b61017061016b366004611026565b61036f565b6040516101419796959493929190611063565b61018c60015481565b604051908152602001610141565b61010261044c565b6101026101b03660046110d8565b610460565b6000546001600160a01b031661012d565b6101026101d43660046111d6565b61075f565b6102076101e736600461124f565b600460209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610141565b61018c61018081565b61010261022e366004611026565b610afa565b610102610241366004611279565b610c2a565b610102610254366004610fd8565b610c8e565b610261610ccc565b600082815260036020819052604091829020018290555182907fb04b7d6145a7588fdcf339a22877d5965f861c171204fc37688058c5f6c06d3b906102a99084815260200190565b60405180910390a25050565b336001600160a01b03831614806102d657506000546001600160a01b031633145b6103185760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b6001600160a01b0382811660008181526002602052604080822080546001600160a01b0319169486169485179055517f6ee10e9ed4d6ce9742703a498707862f4b00f1396a87195eb93267b3d79839819190a35050565b6003602081905260009182526040909120805460018201546002830154938301546004840180546001600160a01b0385169664ffffffffff600160a01b8704811697600160c81b909704169590939290916103c9906112c5565b80601f01602080910402602001604051908101604052809291908181526020018280546103f5906112c5565b80156104425780601f1061041757610100808354040283529160200191610442565b820191906000526020600020905b81548152906001019060200180831161042557829003601f168201915b5050505050905087565b610454610ccc565b61045e6000610cf9565b565b336001600160a01b038716148061049057506001600160a01b038681166000908152600260205260409020541633145b6104ca5760405162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015260640161030f565b6000878152600360208190526040909120908101548061051b5760405162461bcd60e51b815260206004820152600c60248201526b1c9bdbdd081b9bdd081cd95d60a21b604482015260640161030f565b815442600160a01b90910464ffffffffff1611156105665760405162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015260640161030f565b815442600160c81b90910464ffffffffff1610156105b05760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161030f565b6001600160a01b03881660009081526004602090815260408083208c845290915290205460ff16156106165760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b604482015260640161030f565b6040516bffffffffffffffffffffffff1960608a901b166020820152603481018490526054810187905260009060740160405160208183030381529060405280519060200120905061066a86868484610d49565b6106a65760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161030f565b6001600160a01b03891660009081526004602090815260408083208d84529091528120805460ff191660011790556002840180548992906106e8908490611315565b92505081905550876001600160a01b0316896001600160a01b03168b7fce3bcb6e219596cf26007ffdfaae8953bc3f76e3f36c0a79b23e28020da3222e8a60405161073591815260200190565b60405180910390a48254610753906001600160a01b03168989610d61565b50505050505050505050565b610767610ccc565b6101808611156107b05760405162461bcd60e51b81526020600482015260146024820152734465736372697074696f6e20746f6f206c6f6e6760601b604482015260640161030f565b836000036107bc574293505b428410156107c957600080fd5b600082116108245760405162461bcd60e51b815260206004820152602260248201527f746f74616c416d6f756e74206d7573742062652067726561746572207468616e604482015261020360f41b606482015260840161030f565b6040516370a0823160e01b815230600482015282906001600160a01b038716906370a0823190602401602060405180830381865afa15801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190611328565b10156108c95760405162461bcd60e51b815260206004820152600a6024820152691b9bdd08199d5b99195960b21b604482015260640161030f565b600083116109195760405162461bcd60e51b815260206004820152601f60248201527f6475726174696f6e206d7573742062652067726561746572207468616e203000604482015260640161030f565b600180546000918261092a83611341565b909155506040805160e0810182526001600160a01b038916815264ffffffffff8816602082015291925081016109608642611315565b64ffffffffff1681526020018481526020016000815260200183815260200189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600360208181526040928390208551815492870151948701516001600160a01b039091166001600160c81b031990931692909217600160a01b64ffffffffff958616021764ffffffffff60c81b1916600160c81b9490921693909302178255606084015160018301556080840151600283015560a08401519082015560c08301519091506004820190610a4d90826113be565b5050506001600160a01b038616817f66235140c726cfcbf17225105ab811be91dfb948978f6b5b8a874ed5ded33af087610a878842611315565b6040805164ffffffffff9384168152929091166020830152810187905260600160405180910390a38115610af057807fb04b7d6145a7588fdcf339a22877d5965f861c171204fc37688058c5f6c06d3b83604051610ae791815260200190565b60405180910390a25b5050505050505050565b610b02610ccc565b60008181526003602052604090208054600160c81b900464ffffffffff164211610b5c5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08195e1c1a5c995960aa1b604482015260640161030f565b8060010154816002015410610ba35760405162461bcd60e51b815260206004820152600d60248201526c199d5b1b1e4818db185a5b5959609a1b604482015260640161030f565b600081600201548260010154610bb9919061147d565b9050610be2610bd06000546001600160a01b031690565b83546001600160a01b03169083610d61565b81546040518281526001600160a01b039091169084907f6c759ade98462b188d5f8402183b53334471d14e92532d1e207f1823497aa3e39060200160405180910390a3505050565b610c32610ccc565b6000838152600360205260409020600401610c4e828483611490565b50827ff8bf1239532cef1f22b3fc1e490faa59fae138f88840aacf300e8e28b27c7e098383604051610c81929190611550565b60405180910390a2505050565b610c96610ccc565b6001600160a01b038116610cc057604051631e4fbdf760e01b81526000600482015260240161030f565b610cc981610cf9565b50565b6000546001600160a01b0316331461045e5760405163118cdaa760e01b815233600482015260240161030f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610d57868685610db8565b1495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610db3908490610dfc565b505050565b600081815b84811015610df157610de782878784818110610ddb57610ddb61157f565b90506020020135610e5f565b9150600101610dbd565b5090505b9392505050565b6000610e116001600160a01b03841683610e93565b90508051600014158015610e36575080806020019051810190610e349190611595565b155b15610db357604051635274afe760e01b81526001600160a01b038416600482015260240161030f565b6000818310610e7b576000828152602084905260409020610e8a565b60008381526020839052604090205b90505b92915050565b6060610e8a8383600084600080856001600160a01b03168486604051610eb991906115b7565b60006040518083038185875af1925050503d8060008114610ef6576040519150601f19603f3d011682016040523d82523d6000602084013e610efb565b606091505b5091509150610f0b868383610f15565b9695505050505050565b606082610f2a57610f2582610f71565b610df5565b8151158015610f4157506001600160a01b0384163b155b15610f6a57604051639996b31560e01b81526001600160a01b038516600482015260240161030f565b5080610df5565b805115610f815780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008060408385031215610fad57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610fd357600080fd5b919050565b600060208284031215610fea57600080fd5b610e8a82610fbc565b6000806040838503121561100657600080fd5b61100f83610fbc565b915061101d60208401610fbc565b90509250929050565b60006020828403121561103857600080fd5b5035919050565b60005b8381101561105a578181015183820152602001611042565b50506000910152565b60018060a01b038816815264ffffffffff8716602082015264ffffffffff861660408201528460608201528360808201528260a082015260e060c0820152600082518060e08401526110bd8161010085016020870161103f565b601f01601f1916919091016101000198975050505050505050565b600080600080600080600060c0888a0312156110f357600080fd5b8735965061110360208901610fbc565b955061111160408901610fbc565b945060608801359350608088013567ffffffffffffffff81111561113457600080fd5b8801601f81018a1361114557600080fd5b803567ffffffffffffffff81111561115c57600080fd5b8a60208260051b840101111561117157600080fd5b979a9699509497939660209095019560a0909401359392505050565b60008083601f84011261119f57600080fd5b50813567ffffffffffffffff8111156111b757600080fd5b6020830191508360208285010111156111cf57600080fd5b9250929050565b600080600080600080600060c0888a0312156111f157600080fd5b873567ffffffffffffffff81111561120857600080fd5b6112148a828b0161118d565b9098509650611227905060208901610fbc565b96999598509596604081013596506060810135956080820135955060a0909101359350915050565b6000806040838503121561126257600080fd5b61126b83610fbc565b946020939093013593505050565b60008060006040848603121561128e57600080fd5b83359250602084013567ffffffffffffffff8111156112ac57600080fd5b6112b88682870161118d565b9497909650939450505050565b600181811c908216806112d957607f821691505b6020821081036112f957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e8d57610e8d6112ff565b60006020828403121561133a57600080fd5b5051919050565b600060018201611353576113536112ff565b5060010190565b634e487b7160e01b600052604160045260246000fd5b601f821115610db357806000526020600020601f840160051c810160208510156113975750805b601f840160051c820191505b818110156113b757600081556001016113a3565b5050505050565b815167ffffffffffffffff8111156113d8576113d861135a565b6113ec816113e684546112c5565b84611370565b6020601f82116001811461142057600083156114085750848201515b600019600385901b1c1916600184901b1784556113b7565b600084815260208120601f198516915b828110156114505787850151825560209485019460019092019101611430565b508482101561146e5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b81810381811115610e8d57610e8d6112ff565b67ffffffffffffffff8311156114a8576114a861135a565b6114bc836114b683546112c5565b83611370565b6000601f8411600181146114f057600085156114d85750838201355b600019600387901b1c1916600186901b1783556113b7565b600083815260209020601f19861690835b828110156115215786850135825560209485019460019092019101611501565b508682101561153e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156115a757600080fd5b81518015158114610df557600080fd5b600082516115c981846020870161103f565b919091019291505056fea2646970667358221220cf71d9dc4cb16895cc6b385e8054b4c42a3a079ac4f53c04e90363e8263c8bd464736f6c634300081c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000002c2dc95f8c8060a7e3b354c1b9540881aea1613c

-----Decoded View---------------
Arg [0] : _owner (address): 0x2C2dc95F8C8060a7e3B354c1B9540881AEa1613C

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002c2dc95f8c8060a7e3b354c1b9540881aea1613c


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.