ETH Price: $3,278.30 (+1.04%)

Contract

0x17cCEDDdC945B35f8067736D5a52CC68cb5a8E0f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Multiple Claims ...189343322024-01-04 13:41:11373 days ago1704375671IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0009816820.03433582
Multiple Claims ...188978852023-12-30 10:56:59378 days ago1703933819IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0020994212.95551158
Multiple Claims ...188720182023-12-26 19:42:35381 days ago1703619755IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0028117919.90512188
Multiple Claims ...188719742023-12-26 19:33:23381 days ago1703619203IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0026450921.14045827
Claim From Drop187588022023-12-10 22:30:59397 days ago1702247459IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0021659425.31991195
Claim From Drop187587962023-12-10 22:29:47397 days ago1702247387IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0022375926.15393005
Claim From Drop187587932023-12-10 22:29:11397 days ago1702247351IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.002195525.66554136
Claim From Drop187587872023-12-10 22:27:59397 days ago1702247279IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0021524625.15356211
Claim From Drop187416142023-12-08 12:43:11400 days ago1702039391IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0018566937.95840919
Multiple Claims ...187416032023-12-08 12:40:59400 days ago1702039259IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0019869739.73940403
Claim From Drop187359342023-12-07 17:34:59400 days ago1701970499IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0059506169.56605387
Multiple Claims ...186959762023-12-02 3:16:59406 days ago1701487019IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0022150930.72772017
Multiple Claims ...186381412023-11-24 0:56:47414 days ago1700787407IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.001153416
Multiple Claims ...184069302023-10-22 16:09:35446 days ago1697990975IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0008476811.93922141
Multiple Claims ...182947452023-10-06 23:29:59462 days ago1696634999IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.001458735.33998493
Claim From Drop182772212023-10-04 12:41:35465 days ago1696423295IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.000795427.75105078
Multiple Claims ...182622402023-10-02 10:26:23467 days ago1696242383IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0029519410.80785528
Claim From Drop181197212023-09-12 10:41:47487 days ago1694515307IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0013115212.77657427
Multiple Claims ...179946162023-08-25 22:14:23504 days ago1693001663IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0052627116.96866052
Claim From Drop179445222023-08-18 22:02:23511 days ago1692396143IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0021940721.37208129
Multiple Claims ...179084412023-08-13 20:51:47516 days ago1691959907IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0063641118.28264252
Multiple Claims ...178251122023-08-02 5:05:59528 days ago1690952759IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0056030516.18412357
Claim From Drop178226122023-08-01 20:42:47528 days ago1690922567IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0029066427.78100772
Claim From Drop178153722023-07-31 20:26:47529 days ago1690835207IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0032941131.49336831
Claim From Drop178126382023-07-31 11:17:35530 days ago1690802255IN
0x17cCEDDd...8cb5a8E0f
0 ETH0.0017788617
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
152529922022-07-31 22:42:01894 days ago1659307321
0x17cCEDDd...8cb5a8E0f
 Contract Creation0 ETH
134616322021-10-21 14:46:271178 days ago1634827587
0x17cCEDDd...8cb5a8E0f
 Contract Creation0 ETH
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 : Create2.sol
// SPDX-License-Identifier: MIT

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");
        // solhint-disable-next-line no-inline-assembly
        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 3 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

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'
        // solhint-disable-next-line max-line-length
        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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 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 5 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 6 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

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

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT

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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
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) {
        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));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

Contract Security Audit

Contract ABI

[{"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"}]

60806040523480156200001157600080fd5b5060405162002b9f38038062002b9f833981016040819052620000349162000089565b600092909255600180546001600160a01b039283166001600160a01b03199182161790915560028054929093169116179055620000ca565b80516001600160a01b03811681146200008457600080fd5b919050565b6000806000606084860312156200009f57600080fd5b83519250620000b1602085016200006c565b9150620000c1604085016200006c565b90509250925092565b612ac580620000da6000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063932ced7b11610097578063cacf0b5f11610066578063cacf0b5f14610260578063d33219b414610273578063dc2ee3a114610286578063ddca3f431461029957600080fd5b8063932ced7b146102145780639809758114610227578063b3f006741461023a578063c69bebe41461024d57600080fd5b80634c19eb68116100d35780634c19eb681461018a5780634e1095e4146101cb57806388aa504a146101ee5780639012c4a81461020157600080fd5b8062d5e073146101045780632d0ba1c6146101195780633625061f1461012c57806340e5e9aa14610177575b600080fd5b6101176101123660046112aa565b6102b0565b005b610117610127366004611513565b61043c565b61013f61013a3660046113a0565b610570565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b6101176101853660046113a0565b610617565b6101b36101983660046112aa565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b6101de6101d93660046113cc565b610739565b604051901515815260200161016e565b6101176101fc366004611401565b61080f565b61011761020f36600461148f565b61091d565b6101176102223660046113a0565b6109be565b6101176102353660046113a0565b610a6e565b6001546101b3906001600160a01b031681565b61011761025b3660046112aa565b610b12565b61011761026e3660046112c7565b610b86565b6002546101b3906001600160a01b031681565b610117610294366004611560565b610d84565b6102a260005481565b60405190815260200161016e565b6001600160a01b0381811660009081526003602052604090205416156103135760405162461bcd60e51b8152602060048201526013602482015272464143544f52595f44524f505f45584953545360681b60448201526064015b60405180910390fd5b6000604051806020016103259061123c565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606085901b166020820152909150600090603401604051602081830303815290604052805190602001209050600061038260008385610eee565b60405163189acdbd60e31b81526001600160a01b0386811660048301529192509082169063c4d66de890602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b5050506001600160a01b0380861660008181526003602052604080822080549487166001600160a01b031990951685179055519193507f5e59a5b7258e0adfb3c2f716afb30b4b37aea760b8e68ba93e66622f4ec45ff391a350505050565b6001600160a01b038082166000908152600360205260409020548291166104755760405162461bcd60e51b815260040161030a90611604565b6001600160a01b038083166000818152600360205260409020549091169061049f9033838a610ffa565b6040516352a42ae960e01b8152336004820152602481018590526044810187905260648101869052608481018890526001600160a01b038216906352a42ae99060a401600060405180830381600087803b1580156104fc57600080fd5b505af1158015610510573d6000803e3d6000fd5b505060408051878152602081018b9052908101899052606081018890526001600160a01b03861692507f974f9120c03f8d0ac65ccdf08538f4f20596b82423620901f4242446c3bac4d9915060800160405180910390a250505050505050565b6001600160a01b03828116600090815260036020526040808220549051630a3550e160e11b8152600481018590529192839283928392839291169063146aa1c29060240160a06040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060491906114c1565b939b929a50909850965090945092505050565b6001600160a01b038083166000908152600360205260409020548391166106505760405162461bcd60e51b815260040161030a90611604565b6001600160a01b03838116600090815260036020526040808220549051632072f4d560e11b815233600482015260248101869052919216906340e5e9aa90604401602060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e391906114a8565b905082336001600160a01b0316856001600160a01b03167f3d3b314be93dc43986c9aec2e4d2e007b20ac4d5923d073e1b58e7d2116acd8e8460405161072b91815260200190565b60405180910390a450505050565b6001600160a01b0380841660009081526003602052604081205490918591166107745760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0385811660009081526003602052604090819020549051631236c47760e31b815260048101879052602481018690529116906391b623b89060440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611474565b95945050505050565b6001600160a01b038087166000908152600360205260409020548791166108485760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380881660009081526003602052604080822054915460015491516302e6272b60e11b8152928416936305cc4e569361089a938c9333938d93919216908c908c908c9060040161163b565b600060405180830381600087803b1580156108b457600080fd5b505af11580156108c8573d6000803e3d6000fd5b505060408051898152602081018990528793503392506001600160a01b038b16917f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e00347910160405180910390a450505050505050565b6002546001600160a01b0316331461096f5760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b6107d081106109b95760405162461bcd60e51b8152602060048201526016602482015275119050d513d49657d3505617d1915157d15610d1515160521b604482015260640161030a565b600055565b6001600160a01b038281166000908152600360205260409081902054905163932ced7b60e01b81523360048201526024810184905291169063932ced7b90604401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b505050507f1f33dcd2067ec1a644b9e03873a88b9eb4f0462763f6ea1fa78354a4e7ca1c8f81604051610a6291815260200190565b60405180910390a15050565b6001600160a01b0382811660009081526003602052604090819020549051639809758160e01b815233600482015260248101849052911690639809758190604401600060405180830381600087803b158015610ac957600080fd5b505af1158015610add573d6000803e3d6000fd5b505050507f7f3d101af258e06320701f2620dced0d8282d455956ea30ded801914de8164a081604051610a6291815260200190565b6002546001600160a01b03163314610b645760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03808a166000908152600360205260409020548a9116610bbf5760405162461bcd60e51b815260040161030a90611604565b6000805460015490916001600160a01b03909116905b8a811015610d75576001600160a01b03808e16600090815260036020526040902054166305cc4e568d8d84818110610c0f57610c0f61174f565b90506020020135338d8d86818110610c2957610c2961174f565b9050602002013587878e8e89818110610c4457610c4461174f565b905060200201358d8d8a818110610c5d57610c5d61174f565b9050602002810190610c6f91906116b0565b6040518963ffffffff1660e01b8152600401610c9298979695949392919061163b565b600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50505050878782818110610cd657610cd661174f565b90506020020135336001600160a01b03168e6001600160a01b03167f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e003478f8f86818110610d2457610d2461174f565b905060200201358e8e87818110610d3d57610d3d61174f565b90506020020135604051610d5b929190918252602082015260400190565b60405180910390a480610d6d81611726565b915050610bd5565b50505050505050505050505050565b6001600160a01b03808216600090815260036020526040902054829116610dbd5760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380831660008181526003602052604090205490911690610de79033838b610ffa565b60405163067681d160e21b81523360048201526024810186905260448101859052606481018890526084810187905260a481018990526000906001600160a01b038316906319da07449060c401602060405180830381600087803b158015610e4e57600080fd5b505af1158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906114a8565b6040805188815260208101889052908101829052606081018a9052608081018990529091506001600160a01b038516907f22baf188c6c2a4e9bf52d8431c260d09be3ae5b78b088e57a226910bfa9e8aa59060a00160405180910390a2505050505050505050565b60008084471015610f415760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161030a565b8251610f8f5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161030a565b8383516020850187f590506001600160a01b038116610ff05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161030a565b90505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261105490859061105a565b50505050565b60006110af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111319092919063ffffffff16565b80519091501561112c57808060200190518101906110cd9190611474565b61112c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161030a565b505050565b6060610ff0848460008585843b61118a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161030a565b600080866001600160a01b031685876040516111a691906115b5565b60006040518083038185875af1925050503d80600081146111e3576040519150601f19603f3d011682016040523d82523d6000602084013e6111e8565b606091505b50915091506111f8828286611203565b979650505050505050565b60608315611212575081610ff3565b8251156112225782518084602001fd5b8160405162461bcd60e51b815260040161030a91906115d1565b6113128061177e83390190565b60008083601f84011261125b57600080fd5b50813567ffffffffffffffff81111561127357600080fd5b6020830191508360208260051b850101111561128e57600080fd5b9250929050565b805180151581146112a557600080fd5b919050565b6000602082840312156112bc57600080fd5b8135610ff381611765565b600080600080600080600080600060a08a8c0312156112e557600080fd5b89356112f081611765565b985060208a013567ffffffffffffffff8082111561130d57600080fd5b6113198d838e01611249565b909a50985060408c013591508082111561133257600080fd5b61133e8d838e01611249565b909850965060608c013591508082111561135757600080fd5b6113638d838e01611249565b909650945060808c013591508082111561137c57600080fd5b506113898c828d01611249565b915080935050809150509295985092959850929598565b600080604083850312156113b357600080fd5b82356113be81611765565b946020939093013593505050565b6000806000606084860312156113e157600080fd5b83356113ec81611765565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561141a57600080fd5b863561142581611765565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561145657600080fd5b61146289828a01611249565b979a9699509497509295939492505050565b60006020828403121561148657600080fd5b610ff382611295565b6000602082840312156114a157600080fd5b5035919050565b6000602082840312156114ba57600080fd5b5051919050565b600080600080600060a086880312156114d957600080fd5b85519450602086015193506040860151925060608601516114f981611765565b915061150760808701611295565b90509295509295909350565b600080600080600060a0868803121561152b57600080fd5b85359450602086013593506040860135925060608601359150608086013561155281611765565b809150509295509295909350565b60008060008060008060c0878903121561157957600080fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356115a781611765565b809150509295509295509295565b600082516115c78184602087016116fa565b9190910192915050565b60208152600082518060208401526115f08160408501602087016116fa565b601f01601f19169190910160400192915050565b6020808252601b908201527f464143544f52595f44524f505f444f45535f4e4f545f45584953540000000000604082015260600190565b8881526001600160a01b03888116602083015260408201889052606082018790528516608082015260a0810184905260e060c08201819052810182905260006101006001600160fb1b0384111561169157600080fd5b8360051b80868386013760009301019182525098975050505050505050565b6000808335601e198436030181126116c757600080fd5b83018035915067ffffffffffffffff8211156116e257600080fd5b6020019150600581901b360382131561128e57600080fd5b60005b838110156117155781810151838201526020016116fd565b838111156110545750506000910152565b600060001982141561174857634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461177a57600080fd5b5056fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556112e0806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806391b623b81161007157806391b623b81461018e578063932ced7b146101b157806398097581146101c4578063c45a0155146101d7578063c4d66de814610202578063fc0c546a1461021557600080fd5b806305cc4e56146100ae578063146aa1c2146100c357806319da07441461014757806340e5e9aa1461016857806352a42ae91461017b575b600080fd5b6100c16100bc36600461104e565b610228565b005b61010f6100d1366004611035565b60026020819052600091825260409091208054600182015492820154600390920154909291906001600160a01b03811690600160a01b900460ff1685565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b61015a610155366004610f87565b610537565b60405190815260200161013e565b61015a610176366004610f5d565b610662565b6100c1610189366004610fd1565b610789565b6101a161019c36600461110b565b6107c7565b604051901515815260200161013e565b6100c16101bf366004610f5d565b610812565b6100c16101d2366004610f5d565b6108fa565b6000546101ea906001600160a01b031681565b6040516001600160a01b03909116815260200161013e565b6100c1610210366004610f42565b6109dc565b6001546101ea906001600160a01b031681565b6000546001600160a01b0316331461025b5760405162461bcd60e51b81526004016102529061117c565b60405180910390fd5b600083815260026020818152604092839020835160a081018552815480825260018301549382019390935292810154938301939093526003909201546001600160a01b0381166060830152600160a01b900460ff16151560808201529042116102f95760405162461bcd60e51b815260206004820152601060248201526f111493d417d393d517d4d5105495115160821b6044820152606401610252565b428160200151116103395760405162461bcd60e51b815260206004820152600a602482015269111493d417d15391115160b21b6044820152606401610252565b806080015161037c5760405162461bcd60e51b815260206004820152600f60248201526e44524f505f4e4f545f41435449564560881b6044820152606401610252565b61038689856107c7565b156103ca5760405162461bcd60e51b8152602060048201526014602482015273111493d417d053149150511657d0d3105253515160621b6044820152606401610252565b60408051602081018b90526bffffffffffffffffffffffff1960608b901b169181019190915260548101889052600090607401604051602081830303815290604052805190602001209050610455848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150610a289050565b6104965760405162461bcd60e51b8152602060048201526012602482015271222927a82fa4a72b20a624a22fa82927a7a360711b6044820152606401610252565b60006127106104a5898b6111d3565b6104af91906111bf565b905060006104bd828b6111f2565b9050896002600089815260200190815260200160002060020160008282546104e591906111f2565b909155506104f590508c88610ad9565b60015461050c906001600160a01b03168c83610b22565b811561052957600154610529906001600160a01b03168984610b22565b505050505050505050505050565b600080546001600160a01b031633146105625760405162461bcd60e51b81526004016102529061117c565b600086815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528916146106005760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b82816040015161061091906111a7565b9150610623816060015187878786610b79565b50600095865260026020819052604087208781556001810188905590810196909655600390950180546001600160a81b03191690555092949350505050565b600080546001600160a01b0316331461068d5760405162461bcd60e51b81526004016102529061117c565b600082815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff161515608084015285161461072b5760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b6000838152600260208190526040808320838155600180820185905592810193909355600390920180546001600160a81b031916905590820151905461077e916001600160a01b03909116908690610b22565b604001519392505050565b6000546001600160a01b031633146107b35760405162461bcd60e51b81526004016102529061117c565b6107c08585858585610b79565b5050505050565b6000806107d6610100856111bf565b905060006107e661010086611254565b60009485526003602090815260408087209487529390529190932054600190911b908116149392505050565b6000546001600160a01b0316331461083c5760405162461bcd60e51b81526004016102529061117c565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146108d45760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916600160a01b17905550565b6000546001600160a01b031633146109245760405162461bcd60e51b81526004016102529061117c565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146109bc5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916905550565b6000546001600160a01b03163314610a065760405162461bcd60e51b81526004016102529061117c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600081815b8551811015610acc576000868281518110610a4a57610a4a611294565b60200260200101519050808311610a8c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610ab9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ac481611239565b915050610a2d565b50831490505b9392505050565b6000610ae7610100846111bf565b90506000610af761010085611254565b6000938452600360209081526040808620948652939052919092208054600190921b90911790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b74908490610cdc565b505050565b60008481526002602052604090205415610bc35760405162461bcd60e51b815260206004820152600b60248201526a44524f505f45584953545360a81b6044820152606401610252565b428211610c0a5760405162461bcd60e51b815260206004820152601560248201527444524f505f494e56414c49445f454e445f4441544560581b6044820152606401610252565b828211610c595760405162461bcd60e51b815260206004820152601760248201527f44524f505f494e56414c49445f53544152545f444154450000000000000000006044820152606401610252565b6040805160a08101825293845260208085019384528482019283526001600160a01b039687166060860190815260016080870181815260009889526002938490529390972095518655935195850195909555905193830193909355516003909101805492511515600160a01b026001600160a81b03199093169190931617179055565b6000610d31826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dae9092919063ffffffff16565b805190915015610b745780806020019051810190610d4f9190611013565b610b745760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610252565b6060610dbd8484600085610dc5565b949350505050565b606082471015610e265760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610252565b843b610e745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610252565b600080866001600160a01b03168587604051610e90919061112d565b60006040518083038185875af1925050503d8060008114610ecd576040519150601f19603f3d011682016040523d82523d6000602084013e610ed2565b606091505b5091509150610ee2828286610eed565b979650505050505050565b60608315610efc575081610ad2565b825115610f0c5782518084602001fd5b8160405162461bcd60e51b81526004016102529190611149565b80356001600160a01b0381168114610f3d57600080fd5b919050565b600060208284031215610f5457600080fd5b610ad282610f26565b60008060408385031215610f7057600080fd5b610f7983610f26565b946020939093013593505050565b60008060008060008060c08789031215610fa057600080fd5b610fa987610f26565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080600080600060a08688031215610fe957600080fd5b610ff286610f26565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561102557600080fd5b81518015158114610ad257600080fd5b60006020828403121561104757600080fd5b5035919050565b60008060008060008060008060e0898b03121561106a57600080fd5b8835975061107a60208a01610f26565b9650604089013595506060890135945061109660808a01610f26565b935060a0890135925060c089013567ffffffffffffffff808211156110ba57600080fd5b818b0191508b601f8301126110ce57600080fd5b8135818111156110dd57600080fd5b8c60208260051b85010111156110f257600080fd5b6020830194508093505050509295985092959890939650565b6000806040838503121561111e57600080fd5b50508035926020909101359150565b6000825161113f818460208701611209565b9190910192915050565b6020815260008251806020840152611168816040850160208701611209565b601f01601f19169190910160400192915050565b60208082526011908201527044524f505f4f4e4c595f464143544f525960781b604082015260600190565b600082198211156111ba576111ba611268565b500190565b6000826111ce576111ce61127e565b500490565b60008160001904831182151516156111ed576111ed611268565b500290565b60008282101561120457611204611268565b500390565b60005b8381101561122457818101518382015260200161120c565b83811115611233576000848401525b50505050565b600060001982141561124d5761124d611268565b5060010190565b6000826112635761126361127e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea264697066735822122049f8353309a63a86c5e1583c8b6dc4ef27070aa3a895a3eb78e22aecac94fb1264736f6c63430008070033a2646970667358221220ac9ac0f9edac68fa8c49e6c12e262be271f22f478a75435e6264acf4b777d68f64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000005089722613c2ccee071c39c59e9889641f435f150000000000000000000000005089722613c2ccee071c39c59e9889641f435f15

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063932ced7b11610097578063cacf0b5f11610066578063cacf0b5f14610260578063d33219b414610273578063dc2ee3a114610286578063ddca3f431461029957600080fd5b8063932ced7b146102145780639809758114610227578063b3f006741461023a578063c69bebe41461024d57600080fd5b80634c19eb68116100d35780634c19eb681461018a5780634e1095e4146101cb57806388aa504a146101ee5780639012c4a81461020157600080fd5b8062d5e073146101045780632d0ba1c6146101195780633625061f1461012c57806340e5e9aa14610177575b600080fd5b6101176101123660046112aa565b6102b0565b005b610117610127366004611513565b61043c565b61013f61013a3660046113a0565b610570565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b6101176101853660046113a0565b610617565b6101b36101983660046112aa565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b6101de6101d93660046113cc565b610739565b604051901515815260200161016e565b6101176101fc366004611401565b61080f565b61011761020f36600461148f565b61091d565b6101176102223660046113a0565b6109be565b6101176102353660046113a0565b610a6e565b6001546101b3906001600160a01b031681565b61011761025b3660046112aa565b610b12565b61011761026e3660046112c7565b610b86565b6002546101b3906001600160a01b031681565b610117610294366004611560565b610d84565b6102a260005481565b60405190815260200161016e565b6001600160a01b0381811660009081526003602052604090205416156103135760405162461bcd60e51b8152602060048201526013602482015272464143544f52595f44524f505f45584953545360681b60448201526064015b60405180910390fd5b6000604051806020016103259061123c565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606085901b166020820152909150600090603401604051602081830303815290604052805190602001209050600061038260008385610eee565b60405163189acdbd60e31b81526001600160a01b0386811660048301529192509082169063c4d66de890602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b5050506001600160a01b0380861660008181526003602052604080822080549487166001600160a01b031990951685179055519193507f5e59a5b7258e0adfb3c2f716afb30b4b37aea760b8e68ba93e66622f4ec45ff391a350505050565b6001600160a01b038082166000908152600360205260409020548291166104755760405162461bcd60e51b815260040161030a90611604565b6001600160a01b038083166000818152600360205260409020549091169061049f9033838a610ffa565b6040516352a42ae960e01b8152336004820152602481018590526044810187905260648101869052608481018890526001600160a01b038216906352a42ae99060a401600060405180830381600087803b1580156104fc57600080fd5b505af1158015610510573d6000803e3d6000fd5b505060408051878152602081018b9052908101899052606081018890526001600160a01b03861692507f974f9120c03f8d0ac65ccdf08538f4f20596b82423620901f4242446c3bac4d9915060800160405180910390a250505050505050565b6001600160a01b03828116600090815260036020526040808220549051630a3550e160e11b8152600481018590529192839283928392839291169063146aa1c29060240160a06040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060491906114c1565b939b929a50909850965090945092505050565b6001600160a01b038083166000908152600360205260409020548391166106505760405162461bcd60e51b815260040161030a90611604565b6001600160a01b03838116600090815260036020526040808220549051632072f4d560e11b815233600482015260248101869052919216906340e5e9aa90604401602060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e391906114a8565b905082336001600160a01b0316856001600160a01b03167f3d3b314be93dc43986c9aec2e4d2e007b20ac4d5923d073e1b58e7d2116acd8e8460405161072b91815260200190565b60405180910390a450505050565b6001600160a01b0380841660009081526003602052604081205490918591166107745760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0385811660009081526003602052604090819020549051631236c47760e31b815260048101879052602481018690529116906391b623b89060440160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611474565b95945050505050565b6001600160a01b038087166000908152600360205260409020548791166108485760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380881660009081526003602052604080822054915460015491516302e6272b60e11b8152928416936305cc4e569361089a938c9333938d93919216908c908c908c9060040161163b565b600060405180830381600087803b1580156108b457600080fd5b505af11580156108c8573d6000803e3d6000fd5b505060408051898152602081018990528793503392506001600160a01b038b16917f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e00347910160405180910390a450505050505050565b6002546001600160a01b0316331461096f5760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b6107d081106109b95760405162461bcd60e51b8152602060048201526016602482015275119050d513d49657d3505617d1915157d15610d1515160521b604482015260640161030a565b600055565b6001600160a01b038281166000908152600360205260409081902054905163932ced7b60e01b81523360048201526024810184905291169063932ced7b90604401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b505050507f1f33dcd2067ec1a644b9e03873a88b9eb4f0462763f6ea1fa78354a4e7ca1c8f81604051610a6291815260200190565b60405180910390a15050565b6001600160a01b0382811660009081526003602052604090819020549051639809758160e01b815233600482015260248101849052911690639809758190604401600060405180830381600087803b158015610ac957600080fd5b505af1158015610add573d6000803e3d6000fd5b505050507f7f3d101af258e06320701f2620dced0d8282d455956ea30ded801914de8164a081604051610a6291815260200190565b6002546001600160a01b03163314610b645760405162461bcd60e51b8152602060048201526015602482015274464143544f52595f4f4e4c595f54494d454c4f434b60581b604482015260640161030a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03808a166000908152600360205260409020548a9116610bbf5760405162461bcd60e51b815260040161030a90611604565b6000805460015490916001600160a01b03909116905b8a811015610d75576001600160a01b03808e16600090815260036020526040902054166305cc4e568d8d84818110610c0f57610c0f61174f565b90506020020135338d8d86818110610c2957610c2961174f565b9050602002013587878e8e89818110610c4457610c4461174f565b905060200201358d8d8a818110610c5d57610c5d61174f565b9050602002810190610c6f91906116b0565b6040518963ffffffff1660e01b8152600401610c9298979695949392919061163b565b600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50505050878782818110610cd657610cd661174f565b90506020020135336001600160a01b03168e6001600160a01b03167f2edcdd0be6c279efae34d8915ded9d24a6e17c88888f283f1c873c3c29e003478f8f86818110610d2457610d2461174f565b905060200201358e8e87818110610d3d57610d3d61174f565b90506020020135604051610d5b929190918252602082015260400190565b60405180910390a480610d6d81611726565b915050610bd5565b50505050505050505050505050565b6001600160a01b03808216600090815260036020526040902054829116610dbd5760405162461bcd60e51b815260040161030a90611604565b6001600160a01b0380831660008181526003602052604090205490911690610de79033838b610ffa565b60405163067681d160e21b81523360048201526024810186905260448101859052606481018890526084810187905260a481018990526000906001600160a01b038316906319da07449060c401602060405180830381600087803b158015610e4e57600080fd5b505af1158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906114a8565b6040805188815260208101889052908101829052606081018a9052608081018990529091506001600160a01b038516907f22baf188c6c2a4e9bf52d8431c260d09be3ae5b78b088e57a226910bfa9e8aa59060a00160405180910390a2505050505050505050565b60008084471015610f415760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161030a565b8251610f8f5760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161030a565b8383516020850187f590506001600160a01b038116610ff05760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161030a565b90505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261105490859061105a565b50505050565b60006110af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111319092919063ffffffff16565b80519091501561112c57808060200190518101906110cd9190611474565b61112c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161030a565b505050565b6060610ff0848460008585843b61118a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161030a565b600080866001600160a01b031685876040516111a691906115b5565b60006040518083038185875af1925050503d80600081146111e3576040519150601f19603f3d011682016040523d82523d6000602084013e6111e8565b606091505b50915091506111f8828286611203565b979650505050505050565b60608315611212575081610ff3565b8251156112225782518084602001fd5b8160405162461bcd60e51b815260040161030a91906115d1565b6113128061177e83390190565b60008083601f84011261125b57600080fd5b50813567ffffffffffffffff81111561127357600080fd5b6020830191508360208260051b850101111561128e57600080fd5b9250929050565b805180151581146112a557600080fd5b919050565b6000602082840312156112bc57600080fd5b8135610ff381611765565b600080600080600080600080600060a08a8c0312156112e557600080fd5b89356112f081611765565b985060208a013567ffffffffffffffff8082111561130d57600080fd5b6113198d838e01611249565b909a50985060408c013591508082111561133257600080fd5b61133e8d838e01611249565b909850965060608c013591508082111561135757600080fd5b6113638d838e01611249565b909650945060808c013591508082111561137c57600080fd5b506113898c828d01611249565b915080935050809150509295985092959850929598565b600080604083850312156113b357600080fd5b82356113be81611765565b946020939093013593505050565b6000806000606084860312156113e157600080fd5b83356113ec81611765565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561141a57600080fd5b863561142581611765565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561145657600080fd5b61146289828a01611249565b979a9699509497509295939492505050565b60006020828403121561148657600080fd5b610ff382611295565b6000602082840312156114a157600080fd5b5035919050565b6000602082840312156114ba57600080fd5b5051919050565b600080600080600060a086880312156114d957600080fd5b85519450602086015193506040860151925060608601516114f981611765565b915061150760808701611295565b90509295509295909350565b600080600080600060a0868803121561152b57600080fd5b85359450602086013593506040860135925060608601359150608086013561155281611765565b809150509295509295909350565b60008060008060008060c0878903121561157957600080fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356115a781611765565b809150509295509295509295565b600082516115c78184602087016116fa565b9190910192915050565b60208152600082518060208401526115f08160408501602087016116fa565b601f01601f19169190910160400192915050565b6020808252601b908201527f464143544f52595f44524f505f444f45535f4e4f545f45584953540000000000604082015260600190565b8881526001600160a01b03888116602083015260408201889052606082018790528516608082015260a0810184905260e060c08201819052810182905260006101006001600160fb1b0384111561169157600080fd5b8360051b80868386013760009301019182525098975050505050505050565b6000808335601e198436030181126116c757600080fd5b83018035915067ffffffffffffffff8211156116e257600080fd5b6020019150600581901b360382131561128e57600080fd5b60005b838110156117155781810151838201526020016116fd565b838111156110545750506000910152565b600060001982141561174857634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461177a57600080fd5b5056fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556112e0806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806391b623b81161007157806391b623b81461018e578063932ced7b146101b157806398097581146101c4578063c45a0155146101d7578063c4d66de814610202578063fc0c546a1461021557600080fd5b806305cc4e56146100ae578063146aa1c2146100c357806319da07441461014757806340e5e9aa1461016857806352a42ae91461017b575b600080fd5b6100c16100bc36600461104e565b610228565b005b61010f6100d1366004611035565b60026020819052600091825260409091208054600182015492820154600390920154909291906001600160a01b03811690600160a01b900460ff1685565b604080519586526020860194909452928401919091526001600160a01b031660608301521515608082015260a0015b60405180910390f35b61015a610155366004610f87565b610537565b60405190815260200161013e565b61015a610176366004610f5d565b610662565b6100c1610189366004610fd1565b610789565b6101a161019c36600461110b565b6107c7565b604051901515815260200161013e565b6100c16101bf366004610f5d565b610812565b6100c16101d2366004610f5d565b6108fa565b6000546101ea906001600160a01b031681565b6040516001600160a01b03909116815260200161013e565b6100c1610210366004610f42565b6109dc565b6001546101ea906001600160a01b031681565b6000546001600160a01b0316331461025b5760405162461bcd60e51b81526004016102529061117c565b60405180910390fd5b600083815260026020818152604092839020835160a081018552815480825260018301549382019390935292810154938301939093526003909201546001600160a01b0381166060830152600160a01b900460ff16151560808201529042116102f95760405162461bcd60e51b815260206004820152601060248201526f111493d417d393d517d4d5105495115160821b6044820152606401610252565b428160200151116103395760405162461bcd60e51b815260206004820152600a602482015269111493d417d15391115160b21b6044820152606401610252565b806080015161037c5760405162461bcd60e51b815260206004820152600f60248201526e44524f505f4e4f545f41435449564560881b6044820152606401610252565b61038689856107c7565b156103ca5760405162461bcd60e51b8152602060048201526014602482015273111493d417d053149150511657d0d3105253515160621b6044820152606401610252565b60408051602081018b90526bffffffffffffffffffffffff1960608b901b169181019190915260548101889052600090607401604051602081830303815290604052805190602001209050610455848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150610a289050565b6104965760405162461bcd60e51b8152602060048201526012602482015271222927a82fa4a72b20a624a22fa82927a7a360711b6044820152606401610252565b60006127106104a5898b6111d3565b6104af91906111bf565b905060006104bd828b6111f2565b9050896002600089815260200190815260200160002060020160008282546104e591906111f2565b909155506104f590508c88610ad9565b60015461050c906001600160a01b03168c83610b22565b811561052957600154610529906001600160a01b03168984610b22565b505050505050505050505050565b600080546001600160a01b031633146105625760405162461bcd60e51b81526004016102529061117c565b600086815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528916146106005760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b82816040015161061091906111a7565b9150610623816060015187878786610b79565b50600095865260026020819052604087208781556001810188905590810196909655600390950180546001600160a81b03191690555092949350505050565b600080546001600160a01b0316331461068d5760405162461bcd60e51b81526004016102529061117c565b600082815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff161515608084015285161461072b5760405162461bcd60e51b815260206004820152600f60248201526e222927a82fa7a7262cafa7aba722a960891b6044820152606401610252565b6000838152600260208190526040808320838155600180820185905592810193909355600390920180546001600160a81b031916905590820151905461077e916001600160a01b03909116908690610b22565b604001519392505050565b6000546001600160a01b031633146107b35760405162461bcd60e51b81526004016102529061117c565b6107c08585858585610b79565b5050505050565b6000806107d6610100856111bf565b905060006107e661010086611254565b60009485526003602090815260408087209487529390529190932054600190911b908116149392505050565b6000546001600160a01b0316331461083c5760405162461bcd60e51b81526004016102529061117c565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146108d45760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916600160a01b17905550565b6000546001600160a01b031633146109245760405162461bcd60e51b81526004016102529061117c565b600081815260026020818152604092839020835160a081018552815481526001820154928101929092529182015492810192909252600301546001600160a01b0380821660608401819052600160a01b90920460ff16151560808401528416146109bc5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610252565b506000908152600260205260409020600301805460ff60a01b1916905550565b6000546001600160a01b03163314610a065760405162461bcd60e51b81526004016102529061117c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600081815b8551811015610acc576000868281518110610a4a57610a4a611294565b60200260200101519050808311610a8c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610ab9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ac481611239565b915050610a2d565b50831490505b9392505050565b6000610ae7610100846111bf565b90506000610af761010085611254565b6000938452600360209081526040808620948652939052919092208054600190921b90911790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b74908490610cdc565b505050565b60008481526002602052604090205415610bc35760405162461bcd60e51b815260206004820152600b60248201526a44524f505f45584953545360a81b6044820152606401610252565b428211610c0a5760405162461bcd60e51b815260206004820152601560248201527444524f505f494e56414c49445f454e445f4441544560581b6044820152606401610252565b828211610c595760405162461bcd60e51b815260206004820152601760248201527f44524f505f494e56414c49445f53544152545f444154450000000000000000006044820152606401610252565b6040805160a08101825293845260208085019384528482019283526001600160a01b039687166060860190815260016080870181815260009889526002938490529390972095518655935195850195909555905193830193909355516003909101805492511515600160a01b026001600160a81b03199093169190931617179055565b6000610d31826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dae9092919063ffffffff16565b805190915015610b745780806020019051810190610d4f9190611013565b610b745760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610252565b6060610dbd8484600085610dc5565b949350505050565b606082471015610e265760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610252565b843b610e745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610252565b600080866001600160a01b03168587604051610e90919061112d565b60006040518083038185875af1925050503d8060008114610ecd576040519150601f19603f3d011682016040523d82523d6000602084013e610ed2565b606091505b5091509150610ee2828286610eed565b979650505050505050565b60608315610efc575081610ad2565b825115610f0c5782518084602001fd5b8160405162461bcd60e51b81526004016102529190611149565b80356001600160a01b0381168114610f3d57600080fd5b919050565b600060208284031215610f5457600080fd5b610ad282610f26565b60008060408385031215610f7057600080fd5b610f7983610f26565b946020939093013593505050565b60008060008060008060c08789031215610fa057600080fd5b610fa987610f26565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080600080600060a08688031215610fe957600080fd5b610ff286610f26565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561102557600080fd5b81518015158114610ad257600080fd5b60006020828403121561104757600080fd5b5035919050565b60008060008060008060008060e0898b03121561106a57600080fd5b8835975061107a60208a01610f26565b9650604089013595506060890135945061109660808a01610f26565b935060a0890135925060c089013567ffffffffffffffff808211156110ba57600080fd5b818b0191508b601f8301126110ce57600080fd5b8135818111156110dd57600080fd5b8c60208260051b85010111156110f257600080fd5b6020830194508093505050509295985092959890939650565b6000806040838503121561111e57600080fd5b50508035926020909101359150565b6000825161113f818460208701611209565b9190910192915050565b6020815260008251806020840152611168816040850160208701611209565b601f01601f19169190910160400192915050565b60208082526011908201527044524f505f4f4e4c595f464143544f525960781b604082015260600190565b600082198211156111ba576111ba611268565b500190565b6000826111ce576111ce61127e565b500490565b60008160001904831182151516156111ed576111ed611268565b500290565b60008282101561120457611204611268565b500390565b60005b8381101561122457818101518382015260200161120c565b83811115611233576000848401525b50505050565b600060001982141561124d5761124d611268565b5060010190565b6000826112635761126361127e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fdfea264697066735822122049f8353309a63a86c5e1583c8b6dc4ef27070aa3a895a3eb78e22aecac94fb1264736f6c63430008070033a2646970667358221220ac9ac0f9edac68fa8c49e6c12e262be271f22f478a75435e6264acf4b777d68f64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005089722613c2ccee071c39c59e9889641f435f150000000000000000000000005089722613c2ccee071c39c59e9889641f435f15

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

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000005089722613c2ccee071c39c59e9889641f435f15
Arg [2] : 0000000000000000000000005089722613c2ccee071c39c59e9889641f435f15


Block Transaction Difficulty 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
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.