AVAX Price: $22.83 (+11.99%)
Gas: 1.2 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Multiple Claims ...378755912023-11-17 8:39:44523 days ago1700210384IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016820725
Multiple Claims ...378381252023-11-16 12:00:59523 days ago1700136059IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016820725
Claim From Drop378374562023-11-16 11:38:37523 days ago1700134717IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0012870225
Multiple Claims ...378373992023-11-16 11:36:40523 days ago1700134600IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016820725
Multiple Claims ...378373782023-11-16 11:35:58523 days ago1700134558IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016820725
Multiple Claims ...378373642023-11-16 11:35:29523 days ago1700134529IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016820725
Multiple Claims ...376438912023-11-12 0:14:53528 days ago1699748093IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0017317725
Claim From Drop316224622023-06-21 16:15:06671 days ago1687364106IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.002188625
Claim From Drop300651352023-05-15 20:28:29708 days ago1684182509IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0013492725
Claim From Drop300650992023-05-15 20:27:17708 days ago1684182437IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0013495725
Multiple Claims ...300650802023-05-15 20:26:39708 days ago1684182399IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0017184225
Multiple Claims ...300650472023-05-15 20:25:31708 days ago1684182331IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0017184225
Multiple Claims ...300645552023-05-15 20:08:53708 days ago1684181333IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0016552525
Claim From Drop297633382023-05-08 18:07:40715 days ago1683569260IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0025351750.75318328
Multiple Claims ...297633122023-05-08 18:06:47715 days ago1683569207IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0042784663.12555849
Multiple Claims ...297632902023-05-08 18:06:02715 days ago1683569162IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0059794188.22187584
Claim From Drop296231722023-05-05 10:44:31719 days ago1683283471IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0021218725
Claim From Drop296231642023-05-05 10:44:16719 days ago1683283456IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0026170525
Multiple Claims ...294693162023-05-01 19:43:49722 days ago1682970229IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0047302525
Multiple Claims ...294578742023-05-01 13:07:23722 days ago1682946443IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0047446325.07948944
Multiple Claims ...294436262023-05-01 5:01:39723 days ago1682917299IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0025015435.57933727
Multiple Claims ...293731192023-04-29 12:47:00724 days ago1682772420IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0047464525.09415091
Multiple Claims ...292410142023-04-26 9:43:04728 days ago1682502184IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0064661835.16564704
Multiple Claims ...292048622023-04-25 13:06:56728 days ago1682428016IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0060948732.22037875
Multiple Claims ...292023322023-04-25 11:41:49728 days ago1682422909IN
0x470C08Bb...8FdEAD5Cf
0 AVAX0.0061231532.82348424
View all transactions

Latest 3 internal transactions

Parent Transaction Hash Block From To
142215192022-05-03 13:52:121085 days ago1651585932
0x470C08Bb...8FdEAD5Cf
 Contract Creation0 AVAX
133004732022-04-12 0:12:241107 days ago1649722344
0x470C08Bb...8FdEAD5Cf
 Contract Creation0 AVAX
75944042021-11-29 19:57:361240 days ago1638215856
0x470C08Bb...8FdEAD5Cf
 Contract Creation0 AVAX
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DropFactory

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : DropFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IDropFactory.sol";

import "./Drop.sol";

contract DropFactory is IDropFactory {
    using SafeERC20 for IERC20;

    uint256 public fee;
    address public feeReceiver;
    address public timelock;
    mapping(address => address) public drops;

    constructor(
        uint256 _fee,
        address _feeReceiver,
        address _timelock
    ) {
        fee = _fee;
        feeReceiver = _feeReceiver;
        timelock = _timelock;
    }

    modifier dropExists(address tokenAddress) {
        require(drops[tokenAddress] != address(0), "FACTORY_DROP_DOES_NOT_EXIST");
        _;
    }

    modifier onlyTimelock() {
        require(msg.sender == timelock, "FACTORY_ONLY_TIMELOCK");
        _;
    }

    function createDrop(address tokenAddress) external override {
        require(drops[tokenAddress] == address(0), "FACTORY_DROP_EXISTS");
        bytes memory bytecode = type(Drop).creationCode;
        bytes32 salt = keccak256(abi.encodePacked(tokenAddress));
        address dropAddress = Create2.deploy(0, salt, bytecode);
        Drop(dropAddress).initialize(tokenAddress);
        drops[tokenAddress] = dropAddress;
        emit DropCreated(dropAddress, tokenAddress);
    }

    function addDropData(
        uint256 tokenAmount,
        uint256 startDate,
        uint256 endDate,
        bytes32 merkleRoot,
        address tokenAddress
    ) external override dropExists(tokenAddress) {
        address dropAddress = drops[tokenAddress];
        IERC20(tokenAddress).safeTransferFrom(msg.sender, dropAddress, tokenAmount);
        Drop(dropAddress).addDropData(msg.sender, merkleRoot, startDate, endDate, tokenAmount);
        emit DropDataAdded(tokenAddress, merkleRoot, tokenAmount, startDate, endDate);
    }

    function updateDropData(
        uint256 additionalTokenAmount,
        uint256 startDate,
        uint256 endDate,
        bytes32 oldMerkleRoot,
        bytes32 newMerkleRoot,
        address tokenAddress
    ) external override dropExists(tokenAddress) {
        address dropAddress = drops[tokenAddress];
        IERC20(tokenAddress).safeTransferFrom(msg.sender, dropAddress, additionalTokenAmount);
        uint256 tokenAmount = Drop(dropAddress).update(msg.sender, oldMerkleRoot, newMerkleRoot, startDate, endDate, additionalTokenAmount);
        emit DropDataUpdated(tokenAddress, oldMerkleRoot, newMerkleRoot, tokenAmount, startDate, endDate);
    }

    function claimFromDrop(
        address tokenAddress,
        uint256 index,
        uint256 amount,
        bytes32 merkleRoot,
        bytes32[] calldata merkleProof
    ) external override dropExists(tokenAddress) {
        Drop(drops[tokenAddress]).claim(index, msg.sender, amount, fee, feeReceiver, merkleRoot, merkleProof);
        emit DropClaimed(tokenAddress, index, msg.sender, amount, merkleRoot);
    }

    function multipleClaimsFromDrop(
        address tokenAddress,
        uint256[] calldata indexes,
        uint256[] calldata amounts,
        bytes32[] calldata merkleRoots,
        bytes32[][] calldata merkleProofs
    ) external override dropExists(tokenAddress) {
        uint256 tempFee = fee;
        address tempFeeReceiver = feeReceiver;
        for (uint256 i = 0; i < indexes.length; i++) {
            Drop(drops[tokenAddress]).claim(indexes[i], msg.sender, amounts[i], tempFee, tempFeeReceiver, merkleRoots[i], merkleProofs[i]);
            emit DropClaimed(tokenAddress, indexes[i], msg.sender, amounts[i], merkleRoots[i]);
        }
    }

    function withdraw(address tokenAddress, bytes32 merkleRoot) external override dropExists(tokenAddress) {
        uint256 withdrawAmount = Drop(drops[tokenAddress]).withdraw(msg.sender, merkleRoot);
        emit DropWithdrawn(tokenAddress, msg.sender, merkleRoot, withdrawAmount);
    }

    function updateFee(uint256 newFee) external override onlyTimelock {
        // max fee 20%
        require(newFee < 2000, "FACTORY_MAX_FEE_EXCEED");
        fee = newFee;
    }

    function updateFeeReceiver(address newFeeReceiver) external override onlyTimelock {
        feeReceiver = newFeeReceiver;
    }

    function pause(address tokenAddress, bytes32 merkleRoot) external override {
        Drop(drops[tokenAddress]).pause(msg.sender, merkleRoot);
        emit DropPaused(merkleRoot);
    }

    function unpause(address tokenAddress, bytes32 merkleRoot) external override {
        Drop(drops[tokenAddress]).unpause(msg.sender, merkleRoot);
        emit DropUnpaused(merkleRoot);
    }

    function getDropDetails(address tokenAddress, bytes32 merkleRoot)
        external
        view
        override
        returns (
            uint256,
            uint256,
            uint256,
            address,
            bool
        )
    {
        return Drop(drops[tokenAddress]).dropData(merkleRoot);
    }

    function isDropClaimed(
        address tokenAddress,
        uint256 index,
        bytes32 merkleRoot
    ) external view override dropExists(tokenAddress) returns (bool) {
        return Drop(drops[tokenAddress]).isClaimed(index, merkleRoot);
    }
}

File 2 of 8 : Drop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract Drop {
    using MerkleProof for bytes;
    using SafeERC20 for IERC20;

    struct DropData {
        uint256 startDate;
        uint256 endDate;
        uint256 tokenAmount;
        address owner;
        bool isActive;
    }

    address public factory;
    address public token;

    mapping(bytes32 => DropData) public dropData;
    mapping(bytes32 => mapping(uint256 => uint256)) private claimedBitMap;

    constructor() {
        factory = msg.sender;
    }

    modifier onlyFactory {
        require(msg.sender == factory, "DROP_ONLY_FACTORY");
        _;
    }

    function initialize(address tokenAddress) external onlyFactory {
        token = tokenAddress;
    }

    function addDropData(
        address owner,
        bytes32 merkleRoot,
        uint256 startDate,
        uint256 endDate,
        uint256 tokenAmount
    ) external onlyFactory {
        _addDropData(owner, merkleRoot, startDate, endDate, tokenAmount);
    }

    function claim(
        uint256 index,
        address account,
        uint256 amount,
        uint256 fee,
        address feeReceiver,
        bytes32 merkleRoot,
        bytes32[] calldata merkleProof
    ) external onlyFactory {
        DropData memory dd = dropData[merkleRoot];

        require(dd.startDate < block.timestamp, "DROP_NOT_STARTED");
        require(dd.endDate > block.timestamp, "DROP_ENDED");
        require(dd.isActive, "DROP_NOT_ACTIVE");
        require(!isClaimed(index, merkleRoot), "DROP_ALREADY_CLAIMED");

        // Verify the merkle proof.
        bytes32 node = keccak256(abi.encodePacked(index, account, amount));
        require(MerkleProof.verify(merkleProof, merkleRoot, node), "DROP_INVALID_PROOF");

        // Calculate fees
        uint256 feeAmount = (amount * fee) / 10000;
        uint256 userReceivedAmount = amount - feeAmount;

        // Subtract from the drop amount
        dropData[merkleRoot].tokenAmount -= amount;

        // Mark it claimed and send the tokens.
        _setClaimed(index, merkleRoot);
        IERC20(token).safeTransfer(account, userReceivedAmount);
        if (feeAmount > 0) {
            IERC20(token).safeTransfer(feeReceiver, feeAmount);
        }
    }

    function _addDropData(
        address owner,
        bytes32 merkleRoot,
        uint256 startDate,
        uint256 endDate,
        uint256 tokenAmount
    ) internal {
        require(dropData[merkleRoot].startDate == 0, "DROP_EXISTS");
        require(endDate > block.timestamp, "DROP_INVALID_END_DATE");
        require(endDate > startDate, "DROP_INVALID_START_DATE");
        dropData[merkleRoot] = DropData(startDate, endDate, tokenAmount, owner, true);
    }

    function update(
        address account,
        bytes32 merkleRoot,
        bytes32 newMerkleRoot,
        uint256 newStartDate,
        uint256 newEndDate,
        uint256 newTokenAmount
    ) external onlyFactory returns (uint256 tokenAmount) {
        DropData memory dd = dropData[merkleRoot];
        require(dd.owner == account, "DROP_ONLY_OWNER");
        tokenAmount = dd.tokenAmount + newTokenAmount;
        _addDropData(dd.owner, newMerkleRoot, newStartDate, newEndDate, tokenAmount);
        delete dropData[merkleRoot];
    }

    function withdraw(address account, bytes32 merkleRoot) external onlyFactory returns (uint256) {
        DropData memory dd = dropData[merkleRoot];
        require(dd.owner == account, "DROP_ONLY_OWNER");

        delete dropData[merkleRoot];

        IERC20(token).safeTransfer(account, dd.tokenAmount);
        return dd.tokenAmount;
    }

    function isClaimed(uint256 index, bytes32 merkleRoot) public view returns (bool) {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        uint256 claimedWord = claimedBitMap[merkleRoot][claimedWordIndex];
        uint256 mask = (1 << claimedBitIndex);
        return claimedWord & mask == mask;
    }

    function pause(address account, bytes32 merkleRoot) external onlyFactory {
        DropData memory dd = dropData[merkleRoot];
        require(dd.owner == account, "NOT_OWNER");
        dropData[merkleRoot].isActive = false;
    }

    function unpause(address account, bytes32 merkleRoot) external onlyFactory {
        DropData memory dd = dropData[merkleRoot];
        require(dd.owner == account, "NOT_OWNER");
        dropData[merkleRoot].isActive = true;
    }

    function _setClaimed(uint256 index, bytes32 merkleRoot) private {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        claimedBitMap[merkleRoot][claimedWordIndex] = claimedBitMap[merkleRoot][claimedWordIndex] | (1 << claimedBitIndex);
    }
}

File 3 of 8 : IDropFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

interface IDropFactory {
    function createDrop(address tokenAddress) external;

    function addDropData(
        uint256 tokenAmount,
        uint256 startDate,
        uint256 endDate,
        bytes32 merkleRoot,
        address tokenAddress
    ) external;

    function updateDropData(
        uint256 additionalTokenAmount,
        uint256 startDate,
        uint256 endDate,
        bytes32 oldMerkleRoot,
        bytes32 newMerkleRoot,
        address tokenAddress
    ) external;

    function claimFromDrop(
        address tokenAddress,
        uint256 index,
        uint256 amount,
        bytes32 merkleRoot,
        bytes32[] calldata merkleProof
    ) external;

    function multipleClaimsFromDrop(
        address tokenAddress,
        uint256[] calldata indexes,
        uint256[] calldata amounts,
        bytes32[] calldata merkleRoots,
        bytes32[][] calldata merkleProofs
    ) external;

    function withdraw(address tokenAddress, bytes32 merkleRoot) external;

    function pause(address tokenAddress, bytes32 merkleRoot) external;

    function unpause(address tokenAddress, bytes32 merkleRoot) external;

    function updateFeeReceiver(address newFeeReceiver) external;

    function updateFee(uint256 newFee) external;

    function isDropClaimed(
        address tokenAddress,
        uint256 index,
        bytes32 merkleRoot
    ) external view returns (bool);

    function getDropDetails(address tokenAddress, bytes32 merkleRoot)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            address,
            bool
        );

    event DropCreated(address indexed dropAddress, address indexed tokenAddress);
    event DropDataAdded(address indexed tokenAddress, bytes32 merkleRoot, uint256 tokenAmount, uint256 startDate, uint256 endDate);
    event DropDataUpdated(address indexed tokenAddress, bytes32 oldMerkleRoot, bytes32 newMerkleRoot, uint256 tokenAmount, uint256 startDate, uint256 endDate);
    event DropClaimed(address indexed tokenAddress, uint256 index, address indexed account, uint256 amount, bytes32 indexed merkleRoot);
    event DropWithdrawn(address indexed tokenAddress, address indexed account, bytes32 indexed merkleRoot, uint256 amount);
    event DropPaused(bytes32 merkleRoot);
    event DropUnpaused(bytes32 merkleRoot);
}

File 4 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    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));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 8 : Create2.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Create2.sol)

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address) {
        address addr;
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
        return addr;
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address) {
        bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash));
        return address(uint160(uint256(_data)));
    }
}

File 6 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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://diligence.consensys.net/posts/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.5.11/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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_feeReceiver","type":"address"},{"internalType":"address","name":"_timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"DropClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dropAddress","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"DropCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endDate","type":"uint256"}],"name":"DropDataAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"bytes32","name":"oldMerkleRoot","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endDate","type":"uint256"}],"name":"DropDataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"DropPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"DropUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DropWithdrawn","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"addDropData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimFromDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"createDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"drops","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"getDropDetails","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"isDropClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"indexes","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes32[]","name":"merkleRoots","type":"bytes32[]"},{"internalType":"bytes32[][]","name":"merkleProofs","type":"bytes32[][]"}],"name":"multipleClaimsFromDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"additionalTokenAmount","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"bytes32","name":"oldMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"updateDropData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeReceiver","type":"address"}],"name":"updateFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002bb238038062002bb2833981016040819052620000349162000089565b600092909255600180546001600160a01b039283166001600160a01b03199182161790915560028054929093169116179055620000ca565b80516001600160a01b03811681146200008457600080fd5b919050565b6000806000606084860312156200009f57600080fd5b83519250620000b1602085016200006c565b9150620000c1604085016200006c565b90509250925092565b612ad880620000da6000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063932ced7b11610097578063cacf0b5f11610066578063cacf0b5f14610260578063d33219b414610273578063dc2ee3a114610286578063ddca3f431461029957600080fd5b8063932ced7b146102145780639809758114610227578063b3f006741461023a578063c69bebe41461024d57600080fd5b80634c19eb68116100d35780634c19eb681461018a5780634e1095e4146101cb57806388aa504a146101ee5780639012c4a81461020157600080fd5b8062d5e073146101045780632d0ba1c6146101195780633625061f1461012c57806340e5e9aa14610177575b600080fd5b6101176101123660046112aa565b6102b0565b005b610117610127366004611513565b61043c565b61013f61013a3660046113a0565b610570565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b6101176101853660046113a0565b610617565b6101b36101983660046112aa565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b6101de6101d93660046113cc565b610739565b604051901515815260200161016e565b6101176101fc366004611401565b61080f565b61011761020f36600461148f565b61091d565b6101176102223660046113a0565b6109be565b6101176102353660046113a0565b610a6e565b6001546101b3906001600160a01b031681565b61011761025b3660046112aa565b610b12565b61011761026e3660046112c7565b610b86565b6002546101b3906001600160a01b031681565b610117610294366004611560565b610d84565b6102a260005481565b60405190815260200161016e565b6001600160a01b0381811660009081526003602052604090205416156103135760405162461bcd60e51b8152602060048201526013602482015272464143544f52595f44524f505f45584953545360681b60448201526064015b60405180910390fd5b6000604051806020016103259061123c565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606085901b166020820152909150600090603401604051602081830303815290604052805190602001209050600061038260008385610eee565b60405163189acdbd60e31b81526001600160a01b0386811660048301529192509082169063c4d66de890602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b5050506001600160a01b0380861660008181526003602052604080822080549487166001600160a01b031990951685179055519193507f5e59a5b7258e0adfb3c2f716afb30b4b37aea760b8e68ba93e66622f4ec45ff391a350505050565b6001600160a01b038082166000908152600360205260409020548291166104755760405162461bcd60e51b815260040161030a90611604565b6001600160a01b038083166000818152600360205260409020549091169061049f9033838a610ffa565b6040516352a42ae960e01b8152336004820152602481018590526044810187905260648101869052608481018890526001600160a01b038216906352a42ae99060a401600060405180830381600087803b1580156104fc57600080fd5b505af1158015610510573d6000803e3d6000fd5b505060408051878152602081018b9052908101899052606081018890526001600160a01b03861692507f974f9120c03f8d0ac65ccdf08538f4f20596b82423620901f4242446c3bac4d9915060800160405180910390a250505050505050565b6001600160a01b03828116600090815260036020526040808220549051630a3550e160e11b8152600481018590529192839283928392839291169063146aa1c29060240160a06040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060491906114c1565b939b929a50909850965090945092505050565b6001600160a01b038083166000908152600360205260409020548391166106505760405162461bcd60e51b815260040161030a90611604565b6001600160a01b03838116600090815260036020526040808220549051632072f4d560e11b815233600482015260248101869052919216906340e5e9aa90604401602060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e391906114a8565b905082336001600160a01b0316856001600160a01b03167f3d3b314be93dc43986c9aec2e4d2e007b20ac4d5923d073e1b58e7d2116acd8e8460405161072b91815260200190565b60405180910390a450505050565b6001600160a01b0380841660009081526003602052604081205490918591166107745760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0385811660009081526003602052604090819020549051631236c47760e31b815260048101879052602481018690529116906391b623b89060440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611474565b95945050505050565b6001600160a01b038087166000908152600360205260409020548791166108485760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380881660009081526003602052604080822054915460015491516302e6272b60e11b8152928416936305cc4e569361089a938c9333938d93919216908c908c908c9060040161163b565b600060405180830381600087803b1580156108b457600080fd5b505af11580156108c8573d6000803e3d6000fd5b505060408051898152602081018990528793503392506001600160a01b038b16917f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e00347910160405180910390a450505050505050565b6002546001600160a01b0316331461096f5760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b6107d081106109b95760405162461bcd60e51b8152602060048201526016602482015275119050d513d49657d3505617d1915157d15610d1515160521b604482015260640161030a565b600055565b6001600160a01b038281166000908152600360205260409081902054905163932ced7b60e01b81523360048201526024810184905291169063932ced7b90604401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b505050507f1f33dcd2067ec1a644b9e03873a88b9eb4f0462763f6ea1fa78354a4e7ca1c8f81604051610a6291815260200190565b60405180910390a15050565b6001600160a01b0382811660009081526003602052604090819020549051639809758160e01b815233600482015260248101849052911690639809758190604401600060405180830381600087803b158015610ac957600080fd5b505af1158015610add573d6000803e3d6000fd5b505050507f7f3d101af258e06320701f2620dced0d8282d455956ea30ded801914de8164a081604051610a6291815260200190565b6002546001600160a01b03163314610b645760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03808a166000908152600360205260409020548a9116610bbf5760405162461bcd60e51b815260040161030a90611604565b6000805460015490916001600160a01b03909116905b8a811015610d75576001600160a01b03808e16600090815260036020526040902054166305cc4e568d8d84818110610c0f57610c0f61174f565b90506020020135338d8d86818110610c2957610c2961174f565b9050602002013587878e8e89818110610c4457610c4461174f565b905060200201358d8d8a818110610c5d57610c5d61174f565b9050602002810190610c6f91906116b0565b6040518963ffffffff1660e01b8152600401610c9298979695949392919061163b565b600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50505050878782818110610cd657610cd661174f565b90506020020135336001600160a01b03168e6001600160a01b03167f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e003478f8f86818110610d2457610d2461174f565b905060200201358e8e87818110610d3d57610d3d61174f565b90506020020135604051610d5b929190918252602082015260400190565b60405180910390a480610d6d81611726565b915050610bd5565b50505050505050505050505050565b6001600160a01b03808216600090815260036020526040902054829116610dbd5760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380831660008181526003602052604090205490911690610de79033838b610ffa565b60405163067681d160e21b81523360048201526024810186905260448101859052606481018890526084810187905260a481018990526000906001600160a01b038316906319da07449060c401602060405180830381600087803b158015610e4e57600080fd5b505af1158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906114a8565b6040805188815260208101889052908101829052606081018a9052608081018990529091506001600160a01b038516907f22baf188c6c2a4e9bf52d8431c260d09be3ae5b78b088e57a226910bfa9e8aa59060a00160405180910390a2505050505050505050565b60008084471015610f415760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161030a565b8251610f8f5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161030a565b8383516020850187f590506001600160a01b038116610ff05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161030a565b90505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261105490859061105a565b50505050565b60006110af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111319092919063ffffffff16565b80519091501561112c57808060200190518101906110cd9190611474565b61112c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161030a565b505050565b6060610ff0848460008585843b61118a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161030a565b600080866001600160a01b031685876040516111a691906115b5565b60006040518083038185875af1925050503d80600081146111e3576040519150601f19603f3d011682016040523d82523d6000602084013e6111e8565b606091505b50915091506111f8828286611203565b979650505050505050565b60608315611212575081610ff3565b8251156112225782518084602001fd5b8160405162461bcd60e51b815260040161030a91906115d1565b6113258061177e83390190565b60008083601f84011261125b57600080fd5b50813567ffffffffffffffff81111561127357600080fd5b6020830191508360208260051b850101111561128e57600080fd5b9250929050565b805180151581146112a557600080fd5b919050565b6000602082840312156112bc57600080fd5b8135610ff381611765565b600080600080600080600080600060a08a8c0312156112e557600080fd5b89356112f081611765565b985060208a013567ffffffffffffffff8082111561130d57600080fd5b6113198d838e01611249565b909a50985060408c013591508082111561133257600080fd5b61133e8d838e01611249565b909850965060608c013591508082111561135757600080fd5b6113638d838e01611249565b909650945060808c013591508082111561137c57600080fd5b506113898c828d01611249565b915080935050809150509295985092959850929598565b600080604083850312156113b357600080fd5b82356113be81611765565b946020939093013593505050565b6000806000606084860312156113e157600080fd5b83356113ec81611765565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561141a57600080fd5b863561142581611765565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561145657600080fd5b61146289828a01611249565b979a9699509497509295939492505050565b60006020828403121561148657600080fd5b610ff382611295565b6000602082840312156114a157600080fd5b5035919050565b6000602082840312156114ba57600080fd5b5051919050565b600080600080600060a086880312156114d957600080fd5b85519450602086015193506040860151925060608601516114f981611765565b915061150760808701611295565b90509295509295909350565b600080600080600060a0868803121561152b57600080fd5b85359450602086013593506040860135925060608601359150608086013561155281611765565b809150509295509295909350565b60008060008060008060c0878903121561157957600080fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356115a781611765565b809150509295509295509295565b600082516115c78184602087016116fa565b9190910192915050565b60208152600082518060208401526115f08160408501602087016116fa565b601f01601f19169190910160400192915050565b6020808252601b908201527f464143544f52595f44524f505f444f45535f4e4f545f45584953540000000000604082015260600190565b8881526001600160a01b03888116602083015260408201889052606082018790528516608082015260a0810184905260e060c08201819052810182905260006101006001600160fb1b0384111561169157600080fd5b8360051b80868386013760009301019182525098975050505050505050565b6000808335601e198436030181126116c757600080fd5b83018035915067ffffffffffffffff8211156116e257600080fd5b6020019150600581901b360382131561128e57600080fd5b60005b838110156117155781810151838201526020016116fd565b838111156110545750506000910152565b600060001982141561174857634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461177a57600080fd5b5056fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556112f3806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806391b623b81161007157806391b623b81461018e578063932ced7b146101b157806398097581146101c4578063c45a0155146101d7578063c4d66de814610202578063fc0c546a1461021557600080fd5b806305cc4e56146100ae578063146aa1c2146100c357806319da07441461014757806340e5e9aa1461016857806352a42ae91461017b575b600080fd5b6100c16100bc366004611061565b610228565b005b61010f6100d1366004611048565b60026020819052600091825260409091208054600182015492820154600390920154909291906001600160a01b03811690600160a01b900460ff1685565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b61015a610155366004610f9a565b610537565b60405190815260200161013e565b61015a610176366004610f70565b610662565b6100c1610189366004610fe4565b610789565b6101a161019c36600461111e565b6107c7565b604051901515815260200161013e565b6100c16101bf366004610f70565b610812565b6100c16101d2366004610f70565b6108fa565b6000546101ea906001600160a01b031681565b6040516001600160a01b03909116815260200161013e565b6100c1610210366004610f55565b6109dc565b6001546101ea906001600160a01b031681565b6000546001600160a01b0316331461025b5760405162461bcd60e51b81526004016102529061118f565b60405180910390fd5b600083815260026020818152604092839020835160a081018552815480825260018301549382019390935292810154938301939093526003909201546001600160a01b0381166060830152600160a01b900460ff16151560808201529042116102f95760405162461bcd60e51b815260206004820152601060248201526f111493d417d393d517d4d5105495115160821b6044820152606401610252565b428160200151116103395760405162461bcd60e51b815260206004820152600a602482015269111493d417d15391115160b21b6044820152606401610252565b806080015161037c5760405162461bcd60e51b815260206004820152600f60248201526e44524f505f4e4f545f41435449564560881b6044820152606401610252565b61038689856107c7565b156103ca5760405162461bcd60e51b8152602060048201526014602482015273111493d417d053149150511657d0d3105253515160621b6044820152606401610252565b60408051602081018b90526bffffffffffffffffffffffff1960608b901b169181019190915260548101889052600090607401604051602081830303815290604052805190602001209050610455848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150610a289050565b6104965760405162461bcd60e51b8152602060048201526012602482015271222927a82fa4a72b20a624a22fa82927a7a360711b6044820152606401610252565b60006127106104a5898b6111e6565b6104af91906111d2565b905060006104bd828b611205565b9050896002600089815260200190815260200160002060020160008282546104e59190611205565b909155506104f590508c88610a40565b60015461050c906001600160a01b03168c83610a89565b811561052957600154610529906001600160a01b03168984610a89565b505050505050505050505050565b600080546001600160a01b031633146105625760405162461bcd60e51b81526004016102529061118f565b600086815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528916146106005760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b82816040015161061091906111ba565b9150610623816060015187878786610ae0565b50600095865260026020819052604087208781556001810188905590810196909655600390950180546001600160a81b03191690555092949350505050565b600080546001600160a01b0316331461068d5760405162461bcd60e51b81526004016102529061118f565b600082815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff161515608084015285161461072b5760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b6000838152600260208190526040808320838155600180820185905592810193909355600390920180546001600160a81b031916905590820151905461077e916001600160a01b03909116908690610a89565b604001519392505050565b6000546001600160a01b031633146107b35760405162461bcd60e51b81526004016102529061118f565b6107c08585858585610ae0565b5050505050565b6000806107d6610100856111d2565b905060006107e661010086611267565b60009485526003602090815260408087209487529390529190932054600190911b908116149392505050565b6000546001600160a01b0316331461083c5760405162461bcd60e51b81526004016102529061118f565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146108d45760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916600160a01b17905550565b6000546001600160a01b031633146109245760405162461bcd60e51b81526004016102529061118f565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146109bc5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916905550565b6000546001600160a01b03163314610a065760405162461bcd60e51b81526004016102529061118f565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082610a358584610c43565b1490505b9392505050565b6000610a4e610100846111d2565b90506000610a5e61010085611267565b6000938452600360209081526040808620948652939052919092208054600190921b90911790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610adb908490610cef565b505050565b60008481526002602052604090205415610b2a5760405162461bcd60e51b815260206004820152600b60248201526a44524f505f45584953545360a81b6044820152606401610252565b428211610b715760405162461bcd60e51b815260206004820152601560248201527444524f505f494e56414c49445f454e445f4441544560581b6044820152606401610252565b828211610bc05760405162461bcd60e51b815260206004820152601760248201527f44524f505f494e56414c49445f53544152545f444154450000000000000000006044820152606401610252565b6040805160a08101825293845260208085019384528482019283526001600160a01b039687166060860190815260016080870181815260009889526002938490529390972095518655935195850195909555905193830193909355516003909101805492511515600160a01b026001600160a81b03199093169190931617179055565b600081815b8451811015610ce7576000858281518110610c6557610c656112a7565b60200260200101519050808311610ca7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610cd4565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610cdf8161124c565b915050610c48565b509392505050565b6000610d44826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dc19092919063ffffffff16565b805190915015610adb5780806020019051810190610d629190611026565b610adb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610252565b6060610dd08484600085610dd8565b949350505050565b606082471015610e395760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610252565b843b610e875760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610252565b600080866001600160a01b03168587604051610ea39190611140565b60006040518083038185875af1925050503d8060008114610ee0576040519150601f19603f3d011682016040523d82523d6000602084013e610ee5565b606091505b5091509150610ef5828286610f00565b979650505050505050565b60608315610f0f575081610a39565b825115610f1f5782518084602001fd5b8160405162461bcd60e51b8152600401610252919061115c565b80356001600160a01b0381168114610f5057600080fd5b919050565b600060208284031215610f6757600080fd5b610a3982610f39565b60008060408385031215610f8357600080fd5b610f8c83610f39565b946020939093013593505050565b60008060008060008060c08789031215610fb357600080fd5b610fbc87610f39565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080600080600060a08688031215610ffc57600080fd5b61100586610f39565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561103857600080fd5b81518015158114610a3957600080fd5b60006020828403121561105a57600080fd5b5035919050565b60008060008060008060008060e0898b03121561107d57600080fd5b8835975061108d60208a01610f39565b965060408901359550606089013594506110a960808a01610f39565b935060a0890135925060c089013567ffffffffffffffff808211156110cd57600080fd5b818b0191508b601f8301126110e157600080fd5b8135818111156110f057600080fd5b8c60208260051b850101111561110557600080fd5b6020830194508093505050509295985092959890939650565b6000806040838503121561113157600080fd5b50508035926020909101359150565b6000825161115281846020870161121c565b9190910192915050565b602081526000825180602084015261117b81604085016020870161121c565b601f01601f19169190910160400192915050565b60208082526011908201527044524f505f4f4e4c595f464143544f525960781b604082015260600190565b600082198211156111cd576111cd61127b565b500190565b6000826111e1576111e1611291565b500490565b60008160001904831182151516156112005761120061127b565b500290565b6000828210156112175761121761127b565b500390565b60005b8381101561123757818101518382015260200161121f565b83811115611246576000848401525b50505050565b60006000198214156112605761126061127b565b5060010190565b60008261127657611276611291565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212206c4b0486d313bc25afe45b929468dbfd66000434abf2357b36201233ff22fcdf64736f6c63430008070033a2646970667358221220ae462aae9b4b53849d434450d3ecaf7cc4f4ca643a789652134524cad80617a764736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000005416db887d74be661d90193e36fdbe5d37d061410000000000000000000000005416db887d74be661d90193e36fdbe5d37d06141

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063932ced7b11610097578063cacf0b5f11610066578063cacf0b5f14610260578063d33219b414610273578063dc2ee3a114610286578063ddca3f431461029957600080fd5b8063932ced7b146102145780639809758114610227578063b3f006741461023a578063c69bebe41461024d57600080fd5b80634c19eb68116100d35780634c19eb681461018a5780634e1095e4146101cb57806388aa504a146101ee5780639012c4a81461020157600080fd5b8062d5e073146101045780632d0ba1c6146101195780633625061f1461012c57806340e5e9aa14610177575b600080fd5b6101176101123660046112aa565b6102b0565b005b610117610127366004611513565b61043c565b61013f61013a3660046113a0565b610570565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b6101176101853660046113a0565b610617565b6101b36101983660046112aa565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b6101de6101d93660046113cc565b610739565b604051901515815260200161016e565b6101176101fc366004611401565b61080f565b61011761020f36600461148f565b61091d565b6101176102223660046113a0565b6109be565b6101176102353660046113a0565b610a6e565b6001546101b3906001600160a01b031681565b61011761025b3660046112aa565b610b12565b61011761026e3660046112c7565b610b86565b6002546101b3906001600160a01b031681565b610117610294366004611560565b610d84565b6102a260005481565b60405190815260200161016e565b6001600160a01b0381811660009081526003602052604090205416156103135760405162461bcd60e51b8152602060048201526013602482015272464143544f52595f44524f505f45584953545360681b60448201526064015b60405180910390fd5b6000604051806020016103259061123c565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606085901b166020820152909150600090603401604051602081830303815290604052805190602001209050600061038260008385610eee565b60405163189acdbd60e31b81526001600160a01b0386811660048301529192509082169063c4d66de890602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b5050506001600160a01b0380861660008181526003602052604080822080549487166001600160a01b031990951685179055519193507f5e59a5b7258e0adfb3c2f716afb30b4b37aea760b8e68ba93e66622f4ec45ff391a350505050565b6001600160a01b038082166000908152600360205260409020548291166104755760405162461bcd60e51b815260040161030a90611604565b6001600160a01b038083166000818152600360205260409020549091169061049f9033838a610ffa565b6040516352a42ae960e01b8152336004820152602481018590526044810187905260648101869052608481018890526001600160a01b038216906352a42ae99060a401600060405180830381600087803b1580156104fc57600080fd5b505af1158015610510573d6000803e3d6000fd5b505060408051878152602081018b9052908101899052606081018890526001600160a01b03861692507f974f9120c03f8d0ac65ccdf08538f4f20596b82423620901f4242446c3bac4d9915060800160405180910390a250505050505050565b6001600160a01b03828116600090815260036020526040808220549051630a3550e160e11b8152600481018590529192839283928392839291169063146aa1c29060240160a06040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060491906114c1565b939b929a50909850965090945092505050565b6001600160a01b038083166000908152600360205260409020548391166106505760405162461bcd60e51b815260040161030a90611604565b6001600160a01b03838116600090815260036020526040808220549051632072f4d560e11b815233600482015260248101869052919216906340e5e9aa90604401602060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e391906114a8565b905082336001600160a01b0316856001600160a01b03167f3d3b314be93dc43986c9aec2e4d2e007b20ac4d5923d073e1b58e7d2116acd8e8460405161072b91815260200190565b60405180910390a450505050565b6001600160a01b0380841660009081526003602052604081205490918591166107745760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0385811660009081526003602052604090819020549051631236c47760e31b815260048101879052602481018690529116906391b623b89060440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611474565b95945050505050565b6001600160a01b038087166000908152600360205260409020548791166108485760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380881660009081526003602052604080822054915460015491516302e6272b60e11b8152928416936305cc4e569361089a938c9333938d93919216908c908c908c9060040161163b565b600060405180830381600087803b1580156108b457600080fd5b505af11580156108c8573d6000803e3d6000fd5b505060408051898152602081018990528793503392506001600160a01b038b16917f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e00347910160405180910390a450505050505050565b6002546001600160a01b0316331461096f5760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b6107d081106109b95760405162461bcd60e51b8152602060048201526016602482015275119050d513d49657d3505617d1915157d15610d1515160521b604482015260640161030a565b600055565b6001600160a01b038281166000908152600360205260409081902054905163932ced7b60e01b81523360048201526024810184905291169063932ced7b90604401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b505050507f1f33dcd2067ec1a644b9e03873a88b9eb4f0462763f6ea1fa78354a4e7ca1c8f81604051610a6291815260200190565b60405180910390a15050565b6001600160a01b0382811660009081526003602052604090819020549051639809758160e01b815233600482015260248101849052911690639809758190604401600060405180830381600087803b158015610ac957600080fd5b505af1158015610add573d6000803e3d6000fd5b505050507f7f3d101af258e06320701f2620dced0d8282d455956ea30ded801914de8164a081604051610a6291815260200190565b6002546001600160a01b03163314610b645760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03808a166000908152600360205260409020548a9116610bbf5760405162461bcd60e51b815260040161030a90611604565b6000805460015490916001600160a01b03909116905b8a811015610d75576001600160a01b03808e16600090815260036020526040902054166305cc4e568d8d84818110610c0f57610c0f61174f565b90506020020135338d8d86818110610c2957610c2961174f565b9050602002013587878e8e89818110610c4457610c4461174f565b905060200201358d8d8a818110610c5d57610c5d61174f565b9050602002810190610c6f91906116b0565b6040518963ffffffff1660e01b8152600401610c9298979695949392919061163b565b600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50505050878782818110610cd657610cd661174f565b90506020020135336001600160a01b03168e6001600160a01b03167f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e003478f8f86818110610d2457610d2461174f565b905060200201358e8e87818110610d3d57610d3d61174f565b90506020020135604051610d5b929190918252602082015260400190565b60405180910390a480610d6d81611726565b915050610bd5565b50505050505050505050505050565b6001600160a01b03808216600090815260036020526040902054829116610dbd5760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380831660008181526003602052604090205490911690610de79033838b610ffa565b60405163067681d160e21b81523360048201526024810186905260448101859052606481018890526084810187905260a481018990526000906001600160a01b038316906319da07449060c401602060405180830381600087803b158015610e4e57600080fd5b505af1158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906114a8565b6040805188815260208101889052908101829052606081018a9052608081018990529091506001600160a01b038516907f22baf188c6c2a4e9bf52d8431c260d09be3ae5b78b088e57a226910bfa9e8aa59060a00160405180910390a2505050505050505050565b60008084471015610f415760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161030a565b8251610f8f5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161030a565b8383516020850187f590506001600160a01b038116610ff05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161030a565b90505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261105490859061105a565b50505050565b60006110af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111319092919063ffffffff16565b80519091501561112c57808060200190518101906110cd9190611474565b61112c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161030a565b505050565b6060610ff0848460008585843b61118a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161030a565b600080866001600160a01b031685876040516111a691906115b5565b60006040518083038185875af1925050503d80600081146111e3576040519150601f19603f3d011682016040523d82523d6000602084013e6111e8565b606091505b50915091506111f8828286611203565b979650505050505050565b60608315611212575081610ff3565b8251156112225782518084602001fd5b8160405162461bcd60e51b815260040161030a91906115d1565b6113258061177e83390190565b60008083601f84011261125b57600080fd5b50813567ffffffffffffffff81111561127357600080fd5b6020830191508360208260051b850101111561128e57600080fd5b9250929050565b805180151581146112a557600080fd5b919050565b6000602082840312156112bc57600080fd5b8135610ff381611765565b600080600080600080600080600060a08a8c0312156112e557600080fd5b89356112f081611765565b985060208a013567ffffffffffffffff8082111561130d57600080fd5b6113198d838e01611249565b909a50985060408c013591508082111561133257600080fd5b61133e8d838e01611249565b909850965060608c013591508082111561135757600080fd5b6113638d838e01611249565b909650945060808c013591508082111561137c57600080fd5b506113898c828d01611249565b915080935050809150509295985092959850929598565b600080604083850312156113b357600080fd5b82356113be81611765565b946020939093013593505050565b6000806000606084860312156113e157600080fd5b83356113ec81611765565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561141a57600080fd5b863561142581611765565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561145657600080fd5b61146289828a01611249565b979a9699509497509295939492505050565b60006020828403121561148657600080fd5b610ff382611295565b6000602082840312156114a157600080fd5b5035919050565b6000602082840312156114ba57600080fd5b5051919050565b600080600080600060a086880312156114d957600080fd5b85519450602086015193506040860151925060608601516114f981611765565b915061150760808701611295565b90509295509295909350565b600080600080600060a0868803121561152b57600080fd5b85359450602086013593506040860135925060608601359150608086013561155281611765565b809150509295509295909350565b60008060008060008060c0878903121561157957600080fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356115a781611765565b809150509295509295509295565b600082516115c78184602087016116fa565b9190910192915050565b60208152600082518060208401526115f08160408501602087016116fa565b601f01601f19169190910160400192915050565b6020808252601b908201527f464143544f52595f44524f505f444f45535f4e4f545f45584953540000000000604082015260600190565b8881526001600160a01b03888116602083015260408201889052606082018790528516608082015260a0810184905260e060c08201819052810182905260006101006001600160fb1b0384111561169157600080fd5b8360051b80868386013760009301019182525098975050505050505050565b6000808335601e198436030181126116c757600080fd5b83018035915067ffffffffffffffff8211156116e257600080fd5b6020019150600581901b360382131561128e57600080fd5b60005b838110156117155781810151838201526020016116fd565b838111156110545750506000910152565b600060001982141561174857634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461177a57600080fd5b5056fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556112f3806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806391b623b81161007157806391b623b81461018e578063932ced7b146101b157806398097581146101c4578063c45a0155146101d7578063c4d66de814610202578063fc0c546a1461021557600080fd5b806305cc4e56146100ae578063146aa1c2146100c357806319da07441461014757806340e5e9aa1461016857806352a42ae91461017b575b600080fd5b6100c16100bc366004611061565b610228565b005b61010f6100d1366004611048565b60026020819052600091825260409091208054600182015492820154600390920154909291906001600160a01b03811690600160a01b900460ff1685565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b61015a610155366004610f9a565b610537565b60405190815260200161013e565b61015a610176366004610f70565b610662565b6100c1610189366004610fe4565b610789565b6101a161019c36600461111e565b6107c7565b604051901515815260200161013e565b6100c16101bf366004610f70565b610812565b6100c16101d2366004610f70565b6108fa565b6000546101ea906001600160a01b031681565b6040516001600160a01b03909116815260200161013e565b6100c1610210366004610f55565b6109dc565b6001546101ea906001600160a01b031681565b6000546001600160a01b0316331461025b5760405162461bcd60e51b81526004016102529061118f565b60405180910390fd5b600083815260026020818152604092839020835160a081018552815480825260018301549382019390935292810154938301939093526003909201546001600160a01b0381166060830152600160a01b900460ff16151560808201529042116102f95760405162461bcd60e51b815260206004820152601060248201526f111493d417d393d517d4d5105495115160821b6044820152606401610252565b428160200151116103395760405162461bcd60e51b815260206004820152600a602482015269111493d417d15391115160b21b6044820152606401610252565b806080015161037c5760405162461bcd60e51b815260206004820152600f60248201526e44524f505f4e4f545f41435449564560881b6044820152606401610252565b61038689856107c7565b156103ca5760405162461bcd60e51b8152602060048201526014602482015273111493d417d053149150511657d0d3105253515160621b6044820152606401610252565b60408051602081018b90526bffffffffffffffffffffffff1960608b901b169181019190915260548101889052600090607401604051602081830303815290604052805190602001209050610455848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150610a289050565b6104965760405162461bcd60e51b8152602060048201526012602482015271222927a82fa4a72b20a624a22fa82927a7a360711b6044820152606401610252565b60006127106104a5898b6111e6565b6104af91906111d2565b905060006104bd828b611205565b9050896002600089815260200190815260200160002060020160008282546104e59190611205565b909155506104f590508c88610a40565b60015461050c906001600160a01b03168c83610a89565b811561052957600154610529906001600160a01b03168984610a89565b505050505050505050505050565b600080546001600160a01b031633146105625760405162461bcd60e51b81526004016102529061118f565b600086815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528916146106005760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b82816040015161061091906111ba565b9150610623816060015187878786610ae0565b50600095865260026020819052604087208781556001810188905590810196909655600390950180546001600160a81b03191690555092949350505050565b600080546001600160a01b0316331461068d5760405162461bcd60e51b81526004016102529061118f565b600082815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff161515608084015285161461072b5760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b6000838152600260208190526040808320838155600180820185905592810193909355600390920180546001600160a81b031916905590820151905461077e916001600160a01b03909116908690610a89565b604001519392505050565b6000546001600160a01b031633146107b35760405162461bcd60e51b81526004016102529061118f565b6107c08585858585610ae0565b5050505050565b6000806107d6610100856111d2565b905060006107e661010086611267565b60009485526003602090815260408087209487529390529190932054600190911b908116149392505050565b6000546001600160a01b0316331461083c5760405162461bcd60e51b81526004016102529061118f565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146108d45760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916600160a01b17905550565b6000546001600160a01b031633146109245760405162461bcd60e51b81526004016102529061118f565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146109bc5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916905550565b6000546001600160a01b03163314610a065760405162461bcd60e51b81526004016102529061118f565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082610a358584610c43565b1490505b9392505050565b6000610a4e610100846111d2565b90506000610a5e61010085611267565b6000938452600360209081526040808620948652939052919092208054600190921b90911790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610adb908490610cef565b505050565b60008481526002602052604090205415610b2a5760405162461bcd60e51b815260206004820152600b60248201526a44524f505f45584953545360a81b6044820152606401610252565b428211610b715760405162461bcd60e51b815260206004820152601560248201527444524f505f494e56414c49445f454e445f4441544560581b6044820152606401610252565b828211610bc05760405162461bcd60e51b815260206004820152601760248201527f44524f505f494e56414c49445f53544152545f444154450000000000000000006044820152606401610252565b6040805160a08101825293845260208085019384528482019283526001600160a01b039687166060860190815260016080870181815260009889526002938490529390972095518655935195850195909555905193830193909355516003909101805492511515600160a01b026001600160a81b03199093169190931617179055565b600081815b8451811015610ce7576000858281518110610c6557610c656112a7565b60200260200101519050808311610ca7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610cd4565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610cdf8161124c565b915050610c48565b509392505050565b6000610d44826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dc19092919063ffffffff16565b805190915015610adb5780806020019051810190610d629190611026565b610adb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610252565b6060610dd08484600085610dd8565b949350505050565b606082471015610e395760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610252565b843b610e875760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610252565b600080866001600160a01b03168587604051610ea39190611140565b60006040518083038185875af1925050503d8060008114610ee0576040519150601f19603f3d011682016040523d82523d6000602084013e610ee5565b606091505b5091509150610ef5828286610f00565b979650505050505050565b60608315610f0f575081610a39565b825115610f1f5782518084602001fd5b8160405162461bcd60e51b8152600401610252919061115c565b80356001600160a01b0381168114610f5057600080fd5b919050565b600060208284031215610f6757600080fd5b610a3982610f39565b60008060408385031215610f8357600080fd5b610f8c83610f39565b946020939093013593505050565b60008060008060008060c08789031215610fb357600080fd5b610fbc87610f39565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080600080600060a08688031215610ffc57600080fd5b61100586610f39565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561103857600080fd5b81518015158114610a3957600080fd5b60006020828403121561105a57600080fd5b5035919050565b60008060008060008060008060e0898b03121561107d57600080fd5b8835975061108d60208a01610f39565b965060408901359550606089013594506110a960808a01610f39565b935060a0890135925060c089013567ffffffffffffffff808211156110cd57600080fd5b818b0191508b601f8301126110e157600080fd5b8135818111156110f057600080fd5b8c60208260051b850101111561110557600080fd5b6020830194508093505050509295985092959890939650565b6000806040838503121561113157600080fd5b50508035926020909101359150565b6000825161115281846020870161121c565b9190910192915050565b602081526000825180602084015261117b81604085016020870161121c565b601f01601f19169190910160400192915050565b60208082526011908201527044524f505f4f4e4c595f464143544f525960781b604082015260600190565b600082198211156111cd576111cd61127b565b500190565b6000826111e1576111e1611291565b500490565b60008160001904831182151516156112005761120061127b565b500290565b6000828210156112175761121761127b565b500390565b60005b8381101561123757818101518382015260200161121f565b83811115611246576000848401525b50505050565b60006000198214156112605761126061127b565b5060010190565b60008261127657611276611291565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212206c4b0486d313bc25afe45b929468dbfd66000434abf2357b36201233ff22fcdf64736f6c63430008070033a2646970667358221220ae462aae9b4b53849d434450d3ecaf7cc4f4ca643a789652134524cad80617a764736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005416db887d74be661d90193e36fdbe5d37d061410000000000000000000000005416db887d74be661d90193e36fdbe5d37d06141

-----Decoded View---------------
Arg [0] : _fee (uint256): 0
Arg [1] : _feeReceiver (address): 0x5416dB887d74bE661d90193E36fDbe5D37d06141
Arg [2] : _timelock (address): 0x5416dB887d74bE661d90193E36fDbe5D37d06141

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000005416db887d74be661d90193e36fdbe5d37d06141
Arg [2] : 0000000000000000000000005416db887d74be661d90193e36fdbe5d37d06141


Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.