ETH Price: $3,306.20 (+1.90%)

Contract

0x0554f068365eD43dcC98dcd7Fd7A8208a5638C72
 
Transaction Hash
Method
Block
From
To
Claim191281912024-01-31 18:17:47327 days ago1706725067IN
0x0554f068...8a5638C72
0 ETH0.0028385924.83155868
Claim191227422024-01-30 23:56:35327 days ago1706658995IN
0x0554f068...8a5638C72
0 ETH0.0030592419.23060436
Claim191114042024-01-29 9:51:23329 days ago1706521883IN
0x0554f068...8a5638C72
0 ETH0.0011745612.09515194
Claim191110352024-01-29 8:36:59329 days ago1706517419IN
0x0554f068...8a5638C72
0 ETH0.001089759.5381896
Claim191060482024-01-28 15:53:35330 days ago1706457215IN
0x0554f068...8a5638C72
0 ETH0.0015344115.79270977
Claim191056422024-01-28 14:31:47330 days ago1706452307IN
0x0554f068...8a5638C72
0 ETH0.0019923514.11394913
Claim191055902024-01-28 14:20:47330 days ago1706451647IN
0x0554f068...8a5638C72
0 ETH0.0015114912.09969396
Claim191055212024-01-28 14:06:23330 days ago1706450783IN
0x0554f068...8a5638C72
0 ETH0.0017866712.57795536
Claim191036832024-01-28 7:55:35330 days ago1706428535IN
0x0554f068...8a5638C72
0 ETH0.0017002511.97599874
Claim190943852024-01-27 0:35:59331 days ago1706315759IN
0x0554f068...8a5638C72
0 ETH0.0012724513.09619028
Claim190942672024-01-27 0:11:59331 days ago1706314319IN
0x0554f068...8a5638C72
0 ETH0.0008394910.48527632
Claim190942182024-01-27 0:02:11331 days ago1706313731IN
0x0554f068...8a5638C72
0 ETH0.0012381712.7431511
Claim190940802024-01-26 23:34:35331 days ago1706312075IN
0x0554f068...8a5638C72
0 ETH0.0015566210.96416992
Claim190936232024-01-26 22:02:23331 days ago1706306543IN
0x0554f068...8a5638C72
0 ETH0.0013109513.75216894
Claim190843782024-01-25 14:58:47333 days ago1706194727IN
0x0554f068...8a5638C72
0 ETH0.0033062841.30168345
Claim190821082024-01-25 7:22:23333 days ago1706167343IN
0x0554f068...8a5638C72
0 ETH0.0010576110.88556289
Claim190805512024-01-25 2:06:47333 days ago1706148407IN
0x0554f068...8a5638C72
0 ETH0.0014878515.59386558
Claim190799252024-01-24 23:59:23333 days ago1706140763IN
0x0554f068...8a5638C72
0 ETH0.0015921510.00602977
Claim190795972024-01-24 22:53:11333 days ago1706136791IN
0x0554f068...8a5638C72
0 ETH0.0016398610.30853854
Claim190788962024-01-24 20:31:59333 days ago1706128319IN
0x0554f068...8a5638C72
0 ETH0.0012965713.46375059
Claim190782472024-01-24 18:20:59334 days ago1706120459IN
0x0554f068...8a5638C72
0 ETH0.0011009211.3293808
Claim190780872024-01-24 17:48:35334 days ago1706118515IN
0x0554f068...8a5638C72
0 ETH0.0016866213.50211123
Claim190774212024-01-24 15:34:47334 days ago1706110487IN
0x0554f068...8a5638C72
0 ETH0.0012085215.43520143
Claim190773932024-01-24 15:29:11334 days ago1706110151IN
0x0554f068...8a5638C72
0 ETH0.0018416714.84715142
Claim190743422024-01-24 5:12:59334 days ago1706073179IN
0x0554f068...8a5638C72
0 ETH0.001091568.73408619
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiRewardsDistributor

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 888888 runs

Other Settings:
default evmVersion
File 1 of 9 : MultiRewardsDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title MultiRewardsDistributor
 * @notice It distributes LOOKS tokens with parallel rolling Merkle airdrops.
 * @dev It uses safe guard addresses (e.g., address(0), address(1)) to add a protection layer against operational errors when the operator sets up the merkle roots for each of the existing trees.
 */
contract MultiRewardsDistributor is Pausable, ReentrancyGuard, Ownable {
    using SafeERC20 for IERC20;

    struct TreeParameter {
        address safeGuard; // address of the safe guard (e.g., address(0))
        bytes32 merkleRoot; // current merkle root
        uint256 maxAmountPerUserInCurrentTree; // max amount per user in the current tree
    }

    // Time buffer for the admin to withdraw LOOKS tokens if the contract becomes paused
    uint256 public constant BUFFER_ADMIN_WITHDRAW = 3 days;

    // Standard safe guard amount (set at 1 LOOKS)
    uint256 public constant SAFE_GUARD_AMOUNT = 1e18;

    // LooksRare token
    IERC20 public immutable looksRareToken;

    // Keeps track of number of trees existing in parallel
    uint8 public numberTrees;

    // Current reward round
    uint256 public currentRewardRound;

    // Last paused timestamp
    uint256 public lastPausedTimestamp;

    // Keeps track of current parameters of a tree
    mapping(uint8 => TreeParameter) public treeParameters;

    // Total amount claimed by user (in LOOKS)
    mapping(address => mapping(uint8 => uint256)) public amountClaimedByUserPerTreeId;

    // Check whether safe guard address was used
    mapping(address => bool) public safeGuardUsed;

    // Checks whether a merkle root was used
    mapping(bytes32 => bool) public merkleRootUsed;

    event Claim(address user, uint256 rewardRound, uint256 totalAmount, uint8[] treeIds, uint256[] amounts);
    event NewTree(uint8 treeId);
    event UpdateTradingRewards(uint256 indexed rewardRound);
    event TokenWithdrawnOwner(uint256 amount);

    /**
     * @notice Constructor
     * @param _looksRareToken address of the LooksRare token
     */
    constructor(address _looksRareToken) {
        looksRareToken = IERC20(_looksRareToken);
        _pause();
    }

    /**
     * @notice Claim pending rewards
     * @param treeIds array of treeIds
     * @param amounts array of amounts to claim
     * @param merkleProofs array of arrays containing the merkle proof
     */
    function claim(
        uint8[] calldata treeIds,
        uint256[] calldata amounts,
        bytes32[][] calldata merkleProofs
    ) external whenNotPaused nonReentrant {
        require(
            treeIds.length > 0 && treeIds.length == amounts.length && merkleProofs.length == treeIds.length,
            "Rewards: Wrong lengths"
        );

        uint256 amountToTransfer;
        uint256[] memory adjustedAmounts = new uint256[](amounts.length);

        for (uint256 i = 0; i < treeIds.length; i++) {
            require(treeIds[i] < numberTrees, "Rewards: Tree nonexistent");
            (bool claimStatus, uint256 adjustedAmount) = _canClaim(msg.sender, treeIds[i], amounts[i], merkleProofs[i]);
            require(claimStatus, "Rewards: Invalid proof");
            require(adjustedAmount > 0, "Rewards: Already claimed");
            require(
                amounts[i] <= treeParameters[treeIds[i]].maxAmountPerUserInCurrentTree,
                "Rewards: Amount higher than max"
            );
            amountToTransfer += adjustedAmount;
            amountClaimedByUserPerTreeId[msg.sender][treeIds[i]] += adjustedAmount;
            adjustedAmounts[i] = adjustedAmount;
        }

        // Transfer total amount
        looksRareToken.safeTransfer(msg.sender, amountToTransfer);

        emit Claim(msg.sender, currentRewardRound, amountToTransfer, treeIds, adjustedAmounts);
    }

    /**
     * @notice Update trading rewards with a new merkle root
     * @dev It automatically increments the currentRewardRound
     * @param treeIds array of treeIds
     * @param merkleRoots array of merkle roots (for each treeId)
     * @param maxAmountsPerUser array of maximum amounts per user (for each treeId)
     * @param merkleProofsSafeGuards array of merkle proof for the safe guard addresses
     */
    function updateTradingRewards(
        uint8[] calldata treeIds,
        bytes32[] calldata merkleRoots,
        uint256[] calldata maxAmountsPerUser,
        bytes32[][] calldata merkleProofsSafeGuards
    ) external onlyOwner {
        require(
            treeIds.length > 0 &&
                treeIds.length == merkleRoots.length &&
                treeIds.length == maxAmountsPerUser.length &&
                treeIds.length == merkleProofsSafeGuards.length,
            "Owner: Wrong lengths"
        );

        for (uint256 i = 0; i < merkleRoots.length; i++) {
            require(treeIds[i] < numberTrees, "Owner: Tree nonexistent");
            require(!merkleRootUsed[merkleRoots[i]], "Owner: Merkle root already used");
            treeParameters[treeIds[i]].merkleRoot = merkleRoots[i];
            treeParameters[treeIds[i]].maxAmountPerUserInCurrentTree = maxAmountsPerUser[i];
            merkleRootUsed[merkleRoots[i]] = true;
            (bool canSafeGuardClaim, ) = _canClaim(
                treeParameters[treeIds[i]].safeGuard,
                treeIds[i],
                SAFE_GUARD_AMOUNT,
                merkleProofsSafeGuards[i]
            );
            require(canSafeGuardClaim, "Owner: Wrong safe guard proofs");
        }

        // Emit event and increment reward round
        emit UpdateTradingRewards(++currentRewardRound);
    }

    /**
     * @notice Add a new tree
     * @param safeGuard address of a safe guard user (e.g., address(0), address(1))
     * @dev Only for owner.
     */
    function addNewTree(address safeGuard) external onlyOwner {
        require(!safeGuardUsed[safeGuard], "Owner: Safe guard already used");
        safeGuardUsed[safeGuard] = true;
        treeParameters[numberTrees].safeGuard = safeGuard;

        // Emit event and increment number trees
        emit NewTree(numberTrees++);
    }

    /**
     * @notice Pause distribution
     * @dev Only for owner.
     */
    function pauseDistribution() external onlyOwner whenNotPaused {
        lastPausedTimestamp = block.timestamp;
        _pause();
    }

    /**
     * @notice Unpause distribution
     * @dev Only for owner.
     */
    function unpauseDistribution() external onlyOwner whenPaused {
        _unpause();
    }

    /**
     * @notice Transfer LOOKS tokens back to owner
     * @dev It is for emergency purposes. Only for owner.
     * @param amount amount to withdraw
     */
    function withdrawTokenRewards(uint256 amount) external onlyOwner whenPaused {
        require(block.timestamp > (lastPausedTimestamp + BUFFER_ADMIN_WITHDRAW), "Owner: Too early to withdraw");
        looksRareToken.safeTransfer(msg.sender, amount);

        emit TokenWithdrawnOwner(amount);
    }

    /**
     * @notice Check whether it is possible to claim and how much based on previous distribution
     * @param user address of the user
     * @param treeIds array of treeIds
     * @param amounts array of amounts to claim
     * @param merkleProofs array of arrays containing the merkle proof
     */
    function canClaim(
        address user,
        uint8[] calldata treeIds,
        uint256[] calldata amounts,
        bytes32[][] calldata merkleProofs
    ) external view returns (bool[] memory, uint256[] memory) {
        bool[] memory statuses = new bool[](amounts.length);
        uint256[] memory adjustedAmounts = new uint256[](amounts.length);

        if (treeIds.length != amounts.length || treeIds.length != merkleProofs.length || treeIds.length == 0) {
            return (statuses, adjustedAmounts);
        } else {
            for (uint256 i = 0; i < treeIds.length; i++) {
                if (treeIds[i] < numberTrees) {
                    (statuses[i], adjustedAmounts[i]) = _canClaim(user, treeIds[i], amounts[i], merkleProofs[i]);
                }
            }
            return (statuses, adjustedAmounts);
        }
    }

    /**
     * @notice Check whether it is possible to claim and how much based on previous distribution
     * @param user address of the user
     * @param treeId id of the merkle tree
     * @param amount amount to claim
     * @param merkleProof array with the merkle proof
     */
    function _canClaim(
        address user,
        uint8 treeId,
        uint256 amount,
        bytes32[] calldata merkleProof
    ) internal view returns (bool, uint256) {
        // Compute the node and verify the merkle proof
        bytes32 node = keccak256(abi.encodePacked(user, amount));
        bool canUserClaim = MerkleProof.verify(merkleProof, treeParameters[treeId].merkleRoot, node);

        if (!canUserClaim) {
            return (false, 0);
        } else {
            uint256 adjustedAmount = amount - amountClaimedByUserPerTreeId[user][treeId];
            return (true, adjustedAmount);
        }
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 6 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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);
}

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_looksRareToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardRound","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"},{"indexed":false,"internalType":"uint8[]","name":"treeIds","type":"uint8[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"treeId","type":"uint8"}],"name":"NewTree","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenWithdrawnOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"rewardRound","type":"uint256"}],"name":"UpdateTradingRewards","type":"event"},{"inputs":[],"name":"BUFFER_ADMIN_WITHDRAW","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SAFE_GUARD_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safeGuard","type":"address"}],"name":"addNewTree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"amountClaimedByUserPerTreeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8[]","name":"treeIds","type":"uint8[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes32[][]","name":"merkleProofs","type":"bytes32[][]"}],"name":"canClaim","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"treeIds","type":"uint8[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes32[][]","name":"merkleProofs","type":"bytes32[][]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRewardRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPausedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"looksRareToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"merkleRootUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberTrees","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"safeGuardUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"treeParameters","outputs":[{"internalType":"address","name":"safeGuard","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxAmountPerUserInCurrentTree","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"treeIds","type":"uint8[]"},{"internalType":"bytes32[]","name":"merkleRoots","type":"bytes32[]"},{"internalType":"uint256[]","name":"maxAmountsPerUser","type":"uint256[]"},{"internalType":"bytes32[][]","name":"merkleProofsSafeGuards","type":"bytes32[][]"}],"name":"updateTradingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokenRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620027ac380380620027ac833981016040819052620000349162000160565b6000805460ff19169055600180556200004d3362000070565b6001600160601b0319606082901b1660805262000069620000c2565b5062000192565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156200010d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001433390565b6040516001600160a01b03909116815260200160405180910390a1565b6000602082840312156200017357600080fd5b81516001600160a01b03811681146200018b57600080fd5b9392505050565b60805160601c6125ed620001bf6000396000818161024701528181610b09015261116601526125ed6000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80637663d437116100d8578063ba42590d1161008c578063da0195ec11610066578063da0195ec146103c6578063f2fde38b146103d9578063fa461974146103ec57600080fd5b8063ba42590d14610381578063c6760f6b146103a4578063d0e1f97f146103b757600080fd5b80638da5cb5b116100bd5780638da5cb5b14610338578063a95c56f514610356578063b94ec9d01461037957600080fd5b80637663d437146102ad5780638923e2f71461032557600080fd5b806331cec7a31161012f57806336db9fb21161011457806336db9fb2146102425780635c975abb1461028e578063715018a6146102a557600080fd5b806331cec7a3146102255780633488fca21461022f57600080fd5b80631040faf9116101605780631040faf9146101db578063141fd8c8146101e4578063249c8f5e146101ee57600080fd5b80630401ff481461017c578063070e44ce146101ba575b600080fd5b6101a761018a366004612097565b600660209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b6101cd6101c8366004611fec565b6103f5565b6040516101b1929190612360565b6101a760035481565b6101a76203f48081565b6002546102139074010000000000000000000000000000000000000000900460ff1681565b60405160ff90911681526020016101b1565b61022d6105d7565b005b61022d61023d366004611fd1565b6106d8565b6102697f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b1565b60005460ff165b60405190151581526020016101b1565b61022d6108fe565b6102f36102bb366004612263565b60056020526000908152604090208054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff909116919083565b6040805173ffffffffffffffffffffffffffffffffffffffff90941684526020840192909252908201526060016101b1565b61022d61033336600461224a565b610989565b60025473ffffffffffffffffffffffffffffffffffffffff16610269565b610295610364366004611fd1565b60076020526000908152604090205460ff1681565b61022d610b60565b61029561038f36600461224a565b60086020526000908152604090205460ff1681565b61022d6103b236600461218e565b610c55565b6101a7670de0b6b3a764000081565b61022d6103d43660046120ca565b6111de565b61022d6103e7366004611fd1565b61169c565b6101a760045481565b60608060008567ffffffffffffffff81111561041357610413612588565b60405190808252806020026020018201604052801561043c578160200160208202803683370190505b50905060008667ffffffffffffffff81111561045a5761045a612588565b604051908082528060200260200182016040528015610483578160200160208202803683370190505b50905088871415806104955750888514155b8061049e575088155b156104ad5790925090506105cb565b60005b898110156105c45760025474010000000000000000000000000000000000000000900460ff168b8b838181106104e8576104e8612559565b90506020020160208101906104fd9190612263565b60ff1610156105b2576105738c8c8c8481811061051c5761051c612559565b90506020020160208101906105319190612263565b8b8b8581811061054357610543612559565b905060200201358a8a8681811061055c5761055c612559565b905060200281019061056e919061240a565b6117cc565b84838151811061058557610585612559565b6020026020010184848151811061059e5761059e612559565b602090810291909101019190915290151590525b806105bc816124d1565b9150506104b0565b5090925090505b97509795505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461065d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60005460ff16156106ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b426004556106d66118e3565b565b60025473ffffffffffffffffffffffffffffffffffffffff163314610759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090205460ff16156107e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e65723a205361666520677561726420616c7265616479207573656400006044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560028054740100000000000000000000000000000000000000009081900460ff908116865260059094529190932080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690941790935581547f0cc7daa76db4972d6a17fb9d6aab3dc31eacbe5c2d577977f4cbe162f077c0b1939004169060146108c58361250a565b91906101000a81548160ff021916908360ff1602179055506040516108f3919060ff91909116815260200190565b60405180910390a150565b60025473ffffffffffffffffffffffffffffffffffffffff16331461097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b6106d660006119cd565b60025473ffffffffffffffffffffffffffffffffffffffff163314610a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b60005460ff16610a76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b6203f480600454610a879190612472565b4211610aef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f776e65723a20546f6f206561726c7920746f207769746864726177000000006044820152606401610654565b610b3073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383611a44565b6040518181527fb4cd5c4a08bbed33abfe773ece179d156730e39629e065b7dcd8263027387c1d906020016108f3565b60025473ffffffffffffffffffffffffffffffffffffffff163314610be1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b60005460ff16610c4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b6106d6611ad6565b60005460ff1615610cc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b60026001541415610d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610654565b60026001558415801590610d4257508483145b8015610d4d57508085145b610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f526577617264733a2057726f6e67206c656e67746873000000000000000000006044820152606401610654565b6000808467ffffffffffffffff811115610dcf57610dcf612588565b604051908082528060200260200182016040528015610df8578160200160208202803683370190505b50905060005b8781101561114b5760025474010000000000000000000000000000000000000000900460ff16898983818110610e3657610e36612559565b9050602002016020810190610e4b9190612263565b60ff1610610eb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f526577617264733a2054726565206e6f6e6578697374656e74000000000000006044820152606401610654565b600080610f0e338c8c86818110610ece57610ece612559565b9050602002016020810190610ee39190612263565b8b8b87818110610ef557610ef5612559565b905060200201358a8a8881811061055c5761055c612559565b9150915081610f79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f526577617264733a20496e76616c69642070726f6f66000000000000000000006044820152606401610654565b60008111610fe3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526577617264733a20416c726561647920636c61696d656400000000000000006044820152606401610654565b600560008c8c86818110610ff957610ff9612559565b905060200201602081019061100e9190612263565b60ff1660ff1681526020019081526020016000206002015489898581811061103857611038612559565b9050602002013511156110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f526577617264733a20416d6f756e7420686967686572207468616e206d6178006044820152606401610654565b6110b18186612472565b3360009081526006602052604081209196508291908d8d878181106110d8576110d8612559565b90506020020160208101906110ed9190612263565b60ff1660ff16815260200190815260200160002060008282546111109190612472565b925050819055508084848151811061112a5761112a612559565b60200260200101818152505050508080611143906124d1565b915050610dfe565b5061118d73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163384611a44565b7f1bb61a7c0e8fe6922242f2a1fb97851dd40ebfa837ab768260708c3cbc1f860133600354848b8b866040516111c8969594939291906122d5565b60405180910390a1505060018055505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461125f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b861580159061126d57508685145b801561127857508683145b801561128357508681145b6112e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4f776e65723a2057726f6e67206c656e677468730000000000000000000000006044820152606401610654565b60005b858110156116545760025474010000000000000000000000000000000000000000900460ff1689898381811061132457611324612559565b90506020020160208101906113399190612263565b60ff16106113a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f776e65723a2054726565206e6f6e6578697374656e740000000000000000006044820152606401610654565b600860008888848181106113b9576113b9612559565b602090810292909201358352508101919091526040016000205460ff161561143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f776e65723a204d65726b6c6520726f6f7420616c72656164792075736564006044820152606401610654565b86868281811061144f5761144f612559565b90506020020135600560008b8b8581811061146c5761146c612559565b90506020020160208101906114819190612263565b60ff1681526020810191909152604001600020600101558484828181106114aa576114aa612559565b90506020020135600560008b8b858181106114c7576114c7612559565b90506020020160208101906114dc9190612263565b60ff1660ff1681526020019081526020016000206002018190555060016008600089898581811061150f5761150f612559565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555060006115d7600560008c8c8681811061155657611556612559565b905060200201602081019061156b9190612263565b60ff16815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff168b8b858181106115a7576115a7612559565b90506020020160208101906115bc9190612263565b670de0b6b3a764000087878781811061055c5761055c612559565b50905080611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e65723a2057726f6e6720736166652067756172642070726f6f667300006044820152606401610654565b508061164c816124d1565b9150506112ec565b50600360008154611664906124d1565b91829055506040517f0b1d6b49e69d133866d064a73f0181e1e35aa94fde3ef0095587d7ebd0423caa90600090a25050505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff81166117c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610654565b6117c9816119cd565b50565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b16602082015260348101849052600090819081906054016040516020818303038152906040528051906020012090506000611877868680806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8e168152600560205260409020600101549250869150611b919050565b90508061188c576000809350935050506118d9565b73ffffffffffffffffffffffffffffffffffffffff8916600090815260066020908152604080832060ff8c1684529091528120546118ca908961248a565b6001955093506118d992505050565b9550959350505050565b60005460ff1615611950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119a33390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611ad1908490611ba9565b505050565b60005460ff16611b42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336119a3565b600082611b9e8584611cb5565b1490505b9392505050565b6000611c0b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d619092919063ffffffff16565b805190915015611ad15780806020019051810190611c299190612228565b611ad1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610654565b600081815b8451811015611d59576000858281518110611cd757611cd7612559565b60200260200101519050808311611d19576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611d46565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611d51816124d1565b915050611cba565b509392505050565b6060611d708484600085611d78565b949350505050565b606082471015611e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610654565b843b611e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610654565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611e9b91906122b9565b60006040518083038185875af1925050503d8060008114611ed8576040519150601f19603f3d011682016040523d82523d6000602084013e611edd565b606091505b5091509150611eed828286611ef8565b979650505050505050565b60608315611f07575081611ba2565b825115611f175782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065491906123b9565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f6f57600080fd5b919050565b60008083601f840112611f8657600080fd5b50813567ffffffffffffffff811115611f9e57600080fd5b6020830191508360208260051b8501011115611fb957600080fd5b9250929050565b803560ff81168114611f6f57600080fd5b600060208284031215611fe357600080fd5b611ba282611f4b565b60008060008060008060006080888a03121561200757600080fd5b61201088611f4b565b9650602088013567ffffffffffffffff8082111561202d57600080fd5b6120398b838c01611f74565b909850965060408a013591508082111561205257600080fd5b61205e8b838c01611f74565b909650945060608a013591508082111561207757600080fd5b506120848a828b01611f74565b989b979a50959850939692959293505050565b600080604083850312156120aa57600080fd5b6120b383611f4b565b91506120c160208401611fc0565b90509250929050565b6000806000806000806000806080898b0312156120e657600080fd5b883567ffffffffffffffff808211156120fe57600080fd5b61210a8c838d01611f74565b909a50985060208b013591508082111561212357600080fd5b61212f8c838d01611f74565b909850965060408b013591508082111561214857600080fd5b6121548c838d01611f74565b909650945060608b013591508082111561216d57600080fd5b5061217a8b828c01611f74565b999c989b5096995094979396929594505050565b600080600080600080606087890312156121a757600080fd5b863567ffffffffffffffff808211156121bf57600080fd5b6121cb8a838b01611f74565b909850965060208901359150808211156121e457600080fd5b6121f08a838b01611f74565b9096509450604089013591508082111561220957600080fd5b5061221689828a01611f74565b979a9699509497509295939492505050565b60006020828403121561223a57600080fd5b81518015158114611ba257600080fd5b60006020828403121561225c57600080fd5b5035919050565b60006020828403121561227557600080fd5b611ba282611fc0565b600081518084526020808501945080840160005b838110156122ae57815187529582019590820190600101612292565b509495945050505050565b600082516122cb8184602087016124a1565b9190910192915050565b600060a0820173ffffffffffffffffffffffffffffffffffffffff891683526020888185015287604085015260a060608501528186835260c08501905087925060005b8781101561233e5760ff61232b85611fc0565b1682529282019290820190600101612318565b508481036080860152612351818761227e565b9b9a5050505050505050505050565b604080825283519082018190526000906020906060840190828701845b8281101561239b57815115158452928401929084019060010161237d565b505050838103828501526123af818661227e565b9695505050505050565b60208152600082518060208401526123d88160408501602087016124a1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261243f57600080fd5b83018035915067ffffffffffffffff82111561245a57600080fd5b6020019150600581901b3603821315611fb957600080fd5b600082198211156124855761248561252a565b500190565b60008282101561249c5761249c61252a565b500390565b60005b838110156124bc5781810151838201526020016124a4565b838111156124cb576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156125035761250361252a565b5060010190565b600060ff821660ff8114156125215761252161252a565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212205a4779774a483595d1eae7fd8dd2ec76cdeca42afa159097ae856861aa5a944c64736f6c63430008070033000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101775760003560e01c80637663d437116100d8578063ba42590d1161008c578063da0195ec11610066578063da0195ec146103c6578063f2fde38b146103d9578063fa461974146103ec57600080fd5b8063ba42590d14610381578063c6760f6b146103a4578063d0e1f97f146103b757600080fd5b80638da5cb5b116100bd5780638da5cb5b14610338578063a95c56f514610356578063b94ec9d01461037957600080fd5b80637663d437146102ad5780638923e2f71461032557600080fd5b806331cec7a31161012f57806336db9fb21161011457806336db9fb2146102425780635c975abb1461028e578063715018a6146102a557600080fd5b806331cec7a3146102255780633488fca21461022f57600080fd5b80631040faf9116101605780631040faf9146101db578063141fd8c8146101e4578063249c8f5e146101ee57600080fd5b80630401ff481461017c578063070e44ce146101ba575b600080fd5b6101a761018a366004612097565b600660209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b6101cd6101c8366004611fec565b6103f5565b6040516101b1929190612360565b6101a760035481565b6101a76203f48081565b6002546102139074010000000000000000000000000000000000000000900460ff1681565b60405160ff90911681526020016101b1565b61022d6105d7565b005b61022d61023d366004611fd1565b6106d8565b6102697f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b1565b60005460ff165b60405190151581526020016101b1565b61022d6108fe565b6102f36102bb366004612263565b60056020526000908152604090208054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff909116919083565b6040805173ffffffffffffffffffffffffffffffffffffffff90941684526020840192909252908201526060016101b1565b61022d61033336600461224a565b610989565b60025473ffffffffffffffffffffffffffffffffffffffff16610269565b610295610364366004611fd1565b60076020526000908152604090205460ff1681565b61022d610b60565b61029561038f36600461224a565b60086020526000908152604090205460ff1681565b61022d6103b236600461218e565b610c55565b6101a7670de0b6b3a764000081565b61022d6103d43660046120ca565b6111de565b61022d6103e7366004611fd1565b61169c565b6101a760045481565b60608060008567ffffffffffffffff81111561041357610413612588565b60405190808252806020026020018201604052801561043c578160200160208202803683370190505b50905060008667ffffffffffffffff81111561045a5761045a612588565b604051908082528060200260200182016040528015610483578160200160208202803683370190505b50905088871415806104955750888514155b8061049e575088155b156104ad5790925090506105cb565b60005b898110156105c45760025474010000000000000000000000000000000000000000900460ff168b8b838181106104e8576104e8612559565b90506020020160208101906104fd9190612263565b60ff1610156105b2576105738c8c8c8481811061051c5761051c612559565b90506020020160208101906105319190612263565b8b8b8581811061054357610543612559565b905060200201358a8a8681811061055c5761055c612559565b905060200281019061056e919061240a565b6117cc565b84838151811061058557610585612559565b6020026020010184848151811061059e5761059e612559565b602090810291909101019190915290151590525b806105bc816124d1565b9150506104b0565b5090925090505b97509795505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461065d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60005460ff16156106ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b426004556106d66118e3565b565b60025473ffffffffffffffffffffffffffffffffffffffff163314610759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090205460ff16156107e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e65723a205361666520677561726420616c7265616479207573656400006044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560028054740100000000000000000000000000000000000000009081900460ff908116865260059094529190932080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690941790935581547f0cc7daa76db4972d6a17fb9d6aab3dc31eacbe5c2d577977f4cbe162f077c0b1939004169060146108c58361250a565b91906101000a81548160ff021916908360ff1602179055506040516108f3919060ff91909116815260200190565b60405180910390a150565b60025473ffffffffffffffffffffffffffffffffffffffff16331461097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b6106d660006119cd565b60025473ffffffffffffffffffffffffffffffffffffffff163314610a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b60005460ff16610a76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b6203f480600454610a879190612472565b4211610aef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f776e65723a20546f6f206561726c7920746f207769746864726177000000006044820152606401610654565b610b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e163383611a44565b6040518181527fb4cd5c4a08bbed33abfe773ece179d156730e39629e065b7dcd8263027387c1d906020016108f3565b60025473ffffffffffffffffffffffffffffffffffffffff163314610be1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b60005460ff16610c4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b6106d6611ad6565b60005460ff1615610cc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b60026001541415610d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610654565b60026001558415801590610d4257508483145b8015610d4d57508085145b610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f526577617264733a2057726f6e67206c656e67746873000000000000000000006044820152606401610654565b6000808467ffffffffffffffff811115610dcf57610dcf612588565b604051908082528060200260200182016040528015610df8578160200160208202803683370190505b50905060005b8781101561114b5760025474010000000000000000000000000000000000000000900460ff16898983818110610e3657610e36612559565b9050602002016020810190610e4b9190612263565b60ff1610610eb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f526577617264733a2054726565206e6f6e6578697374656e74000000000000006044820152606401610654565b600080610f0e338c8c86818110610ece57610ece612559565b9050602002016020810190610ee39190612263565b8b8b87818110610ef557610ef5612559565b905060200201358a8a8881811061055c5761055c612559565b9150915081610f79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f526577617264733a20496e76616c69642070726f6f66000000000000000000006044820152606401610654565b60008111610fe3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526577617264733a20416c726561647920636c61696d656400000000000000006044820152606401610654565b600560008c8c86818110610ff957610ff9612559565b905060200201602081019061100e9190612263565b60ff1660ff1681526020019081526020016000206002015489898581811061103857611038612559565b9050602002013511156110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f526577617264733a20416d6f756e7420686967686572207468616e206d6178006044820152606401610654565b6110b18186612472565b3360009081526006602052604081209196508291908d8d878181106110d8576110d8612559565b90506020020160208101906110ed9190612263565b60ff1660ff16815260200190815260200160002060008282546111109190612472565b925050819055508084848151811061112a5761112a612559565b60200260200101818152505050508080611143906124d1565b915050610dfe565b5061118d73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e163384611a44565b7f1bb61a7c0e8fe6922242f2a1fb97851dd40ebfa837ab768260708c3cbc1f860133600354848b8b866040516111c8969594939291906122d5565b60405180910390a1505060018055505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461125f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b861580159061126d57508685145b801561127857508683145b801561128357508681145b6112e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4f776e65723a2057726f6e67206c656e677468730000000000000000000000006044820152606401610654565b60005b858110156116545760025474010000000000000000000000000000000000000000900460ff1689898381811061132457611324612559565b90506020020160208101906113399190612263565b60ff16106113a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f776e65723a2054726565206e6f6e6578697374656e740000000000000000006044820152606401610654565b600860008888848181106113b9576113b9612559565b602090810292909201358352508101919091526040016000205460ff161561143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f776e65723a204d65726b6c6520726f6f7420616c72656164792075736564006044820152606401610654565b86868281811061144f5761144f612559565b90506020020135600560008b8b8581811061146c5761146c612559565b90506020020160208101906114819190612263565b60ff1681526020810191909152604001600020600101558484828181106114aa576114aa612559565b90506020020135600560008b8b858181106114c7576114c7612559565b90506020020160208101906114dc9190612263565b60ff1660ff1681526020019081526020016000206002018190555060016008600089898581811061150f5761150f612559565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555060006115d7600560008c8c8681811061155657611556612559565b905060200201602081019061156b9190612263565b60ff16815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff168b8b858181106115a7576115a7612559565b90506020020160208101906115bc9190612263565b670de0b6b3a764000087878781811061055c5761055c612559565b50905080611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e65723a2057726f6e6720736166652067756172642070726f6f667300006044820152606401610654565b508061164c816124d1565b9150506112ec565b50600360008154611664906124d1565b91829055506040517f0b1d6b49e69d133866d064a73f0181e1e35aa94fde3ef0095587d7ebd0423caa90600090a25050505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610654565b73ffffffffffffffffffffffffffffffffffffffff81166117c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610654565b6117c9816119cd565b50565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b16602082015260348101849052600090819081906054016040516020818303038152906040528051906020012090506000611877868680806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8e168152600560205260409020600101549250869150611b919050565b90508061188c576000809350935050506118d9565b73ffffffffffffffffffffffffffffffffffffffff8916600090815260066020908152604080832060ff8c1684529091528120546118ca908961248a565b6001955093506118d992505050565b9550959350505050565b60005460ff1615611950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610654565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119a33390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611ad1908490611ba9565b505050565b60005460ff16611b42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610654565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336119a3565b600082611b9e8584611cb5565b1490505b9392505050565b6000611c0b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d619092919063ffffffff16565b805190915015611ad15780806020019051810190611c299190612228565b611ad1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610654565b600081815b8451811015611d59576000858281518110611cd757611cd7612559565b60200260200101519050808311611d19576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611d46565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611d51816124d1565b915050611cba565b509392505050565b6060611d708484600085611d78565b949350505050565b606082471015611e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610654565b843b611e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610654565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611e9b91906122b9565b60006040518083038185875af1925050503d8060008114611ed8576040519150601f19603f3d011682016040523d82523d6000602084013e611edd565b606091505b5091509150611eed828286611ef8565b979650505050505050565b60608315611f07575081611ba2565b825115611f175782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065491906123b9565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f6f57600080fd5b919050565b60008083601f840112611f8657600080fd5b50813567ffffffffffffffff811115611f9e57600080fd5b6020830191508360208260051b8501011115611fb957600080fd5b9250929050565b803560ff81168114611f6f57600080fd5b600060208284031215611fe357600080fd5b611ba282611f4b565b60008060008060008060006080888a03121561200757600080fd5b61201088611f4b565b9650602088013567ffffffffffffffff8082111561202d57600080fd5b6120398b838c01611f74565b909850965060408a013591508082111561205257600080fd5b61205e8b838c01611f74565b909650945060608a013591508082111561207757600080fd5b506120848a828b01611f74565b989b979a50959850939692959293505050565b600080604083850312156120aa57600080fd5b6120b383611f4b565b91506120c160208401611fc0565b90509250929050565b6000806000806000806000806080898b0312156120e657600080fd5b883567ffffffffffffffff808211156120fe57600080fd5b61210a8c838d01611f74565b909a50985060208b013591508082111561212357600080fd5b61212f8c838d01611f74565b909850965060408b013591508082111561214857600080fd5b6121548c838d01611f74565b909650945060608b013591508082111561216d57600080fd5b5061217a8b828c01611f74565b999c989b5096995094979396929594505050565b600080600080600080606087890312156121a757600080fd5b863567ffffffffffffffff808211156121bf57600080fd5b6121cb8a838b01611f74565b909850965060208901359150808211156121e457600080fd5b6121f08a838b01611f74565b9096509450604089013591508082111561220957600080fd5b5061221689828a01611f74565b979a9699509497509295939492505050565b60006020828403121561223a57600080fd5b81518015158114611ba257600080fd5b60006020828403121561225c57600080fd5b5035919050565b60006020828403121561227557600080fd5b611ba282611fc0565b600081518084526020808501945080840160005b838110156122ae57815187529582019590820190600101612292565b509495945050505050565b600082516122cb8184602087016124a1565b9190910192915050565b600060a0820173ffffffffffffffffffffffffffffffffffffffff891683526020888185015287604085015260a060608501528186835260c08501905087925060005b8781101561233e5760ff61232b85611fc0565b1682529282019290820190600101612318565b508481036080860152612351818761227e565b9b9a5050505050505050505050565b604080825283519082018190526000906020906060840190828701845b8281101561239b57815115158452928401929084019060010161237d565b505050838103828501526123af818661227e565b9695505050505050565b60208152600082518060208401526123d88160408501602087016124a1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261243f57600080fd5b83018035915067ffffffffffffffff82111561245a57600080fd5b6020019150600581901b3603821315611fb957600080fd5b600082198211156124855761248561252a565b500190565b60008282101561249c5761249c61252a565b500390565b60005b838110156124bc5781810151838201526020016124a4565b838111156124cb576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156125035761250361252a565b5060010190565b600060ff821660ff8114156125215761252161252a565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212205a4779774a483595d1eae7fd8dd2ec76cdeca42afa159097ae856861aa5a944c64736f6c63430008070033

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

000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e

-----Decoded View---------------
Arg [0] : _looksRareToken (address): 0xf4d2888d29D722226FafA5d9B24F9164c092421E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e


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  ]

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.