ETH Price: $2,062.19 (-0.31%)

Contract

0xfa12f95a1a7A069166792fD2ea640d2cD0A4E407
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Join Race121855102021-04-06 10:01:081801 days ago1617703268IN
0xfa12f95a...cD0A4E407
0 ETH0.03629211111
Join Race119769782021-03-05 7:31:421833 days ago1614929502IN
0xfa12f95a...cD0A4E407
0 ETH0.02161678115
Join Race118456702021-02-13 2:34:491853 days ago1613183689IN
0xfa12f95a...cD0A4E407
0 ETH0.0723266200
Join Race117591162021-01-30 19:22:031866 days ago1612034523IN
0xfa12f95a...cD0A4E407
0 ETH0.02151927135
Join Race117591022021-01-30 19:17:581866 days ago1612034278IN
0xfa12f95a...cD0A4E407
0 ETH0.02651628140
Join Race117590992021-01-30 19:17:291866 days ago1612034249IN
0xfa12f95a...cD0A4E407
0 ETH0.04635255113.99000163
Join Race117590102021-01-30 18:55:211866 days ago1612032921IN
0xfa12f95a...cD0A4E407
0 ETH0.0125534979.00000134
Join Race117590022021-01-30 18:53:281866 days ago1612032808IN
0xfa12f95a...cD0A4E407
0 ETH0.0125918179.00000134
Join Race117589952021-01-30 18:51:521866 days ago1612032712IN
0xfa12f95a...cD0A4E407
0 ETH0.0150196880
Join Race117589932021-01-30 18:51:391866 days ago1612032699IN
0xfa12f95a...cD0A4E407
0 ETH0.0258285779
Set Race Paramet...117589762021-01-30 18:48:101866 days ago1612032490IN
0xfa12f95a...cD0A4E407
0 ETH0.0029303285.8
Join Race117589562021-01-30 18:45:171866 days ago1612032317IN
0xfa12f95a...cD0A4E407
0 ETH0.0189399100
Join Race117554682021-01-30 5:40:371867 days ago1611985237IN
0xfa12f95a...cD0A4E407
0 ETH0.0189634458
Join Race117554602021-01-30 5:38:181867 days ago1611985098IN
0xfa12f95a...cD0A4E407
0 ETH0.0095919455
Join Race115745692021-01-02 10:53:031895 days ago1609584783IN
0xfa12f95a...cD0A4E407
0 ETH0.0131176643
Join Race115745412021-01-02 10:45:441895 days ago1609584344IN
0xfa12f95a...cD0A4E407
0 ETH0.007500840
Join Race115652252021-01-01 0:46:131896 days ago1609461973IN
0xfa12f95a...cD0A4E407
0 ETH0.0257986264.2201
Join Race115649922020-12-31 23:55:521896 days ago1609458952IN
0xfa12f95a...cD0A4E407
0 ETH0.0093126159
Join Race115649902020-12-31 23:55:241896 days ago1609458924IN
0xfa12f95a...cD0A4E407
0 ETH0.0088312163
Join Race115649852020-12-31 23:54:071896 days ago1609458847IN
0xfa12f95a...cD0A4E407
0 ETH0.0113641260
Join Race115649782020-12-31 23:51:431896 days ago1609458703IN
0xfa12f95a...cD0A4E407
0 ETH0.0172740443
Join Race115649472020-12-31 23:45:411896 days ago1609458341IN
0xfa12f95a...cD0A4E407
0 ETH0.0102814243
Join Race115649462020-12-31 23:45:391896 days ago1609458339IN
0xfa12f95a...cD0A4E407
0 ETH0.0107596345
Join Race115649452020-12-31 23:45:361896 days ago1609458336IN
0xfa12f95a...cD0A4E407
0 ETH0.0119551550
Join Race115649412020-12-31 23:44:271896 days ago1609458267IN
0xfa12f95a...cD0A4E407
0 ETH0.0061678344
View all transactions

View more zero value Internal Transactions in Advanced View mode

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

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
NFTRaceMuse

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
pragma solidity ^0.6.0;

pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "../interfaces/IMuseToken.sol";

interface IERC721Mintable {
    function mint(address to) external;
}

contract NFTRaceMuse is Ownable {
    using SafeMath for uint256;

    uint256 public currentRace = 0;
    uint256 public constant maxParticipants = 6;

    struct Participant {
        address nftContract;
        uint256 nftId;
        uint256 score;
        address add;
    }

    mapping(uint256 => Participant[]) public participants;
    mapping(uint256 => uint256) public raceStart;
    mapping(uint256 => uint256) public raceEnd;
    mapping(uint256 => uint256) public raceWinner;

    mapping(address => uint256) public whitelist; //holds percent of bonus per projects
    uint256 public entryPrice;
    uint256 public raceDuration;
    uint256 public burnPercent;

    mapping(bytes32 => bool) public tokenParticipants;

    IERC721Mintable public immutable vnft;
    IMuseToken public muse;

    event raceEnded(
        uint256 currentRace,
        uint256 prize,
        address winner,
        bool wonNFT
    );
    event participantEntered(
        uint256 currentRace,
        uint256 bet,
        address who,
        address tokenAddress,
        uint256 tokenId
    );

    constructor(IERC721Mintable _vnft, address _museToken) public {
        vnft = _vnft;
        muse = IMuseToken(_museToken);
        raceStart[currentRace] = now;
    }

    function setRaceParameters(
        uint256 _entryPrice,
        uint256 _raceDuration,
        uint256 _burnPercent
    ) public onlyOwner {
        entryPrice = _entryPrice;
        raceDuration = _raceDuration;
        burnPercent = _burnPercent;
    }

    function setBonusPercent(address _nftToken, uint256 _percent)
        public
        onlyOwner
    {
        whitelist[_nftToken] = _percent;
    }

    function settleRaceIfPossible() public {
        //Shouldn't this be >=now?
        // No cause the condition is: Did the timethe race started + the time theraceshould take is after now
        if (
            (raceStart[currentRace] + raceDuration <= now ||
                participants[currentRace].length >= maxParticipants) &&
            participants[currentRace].length > 1
        ) {
            uint256 maxScore = 0;
            address winner;
            // logic to distribute prize
            uint256 baseSeed =
                randomNumber(
                    currentRace + now + raceStart[currentRace],
                    256256256256256256256257256256
                ) + 2525252511;
            for (uint256 i; i < participants[currentRace].length; i++) {
                participants[currentRace][i].score =
                    (baseSeed * (i + 5 + currentRace)) %
                    (10000 +
                        whitelist[participants[currentRace][i].nftContract] *
                        100);

                if (participants[currentRace][i].score >= maxScore) {
                    winner = participants[currentRace][i].add;
                    maxScore = participants[currentRace][i].score;
                    raceWinner[currentRace] = i;
                }
            }

            raceEnd[currentRace] = now;

            uint256 winnerAmt =
                participants[currentRace]
                    .length
                    .mul(entryPrice)
                    .mul(100 - burnPercent)
                    .div(100);

            // The entry price is multiplied by the number of participants
            muse.transfer(winner, winnerAmt);

            currentRace = currentRace + 1;
            // We set the time for the new race (so after the + 1)
            raceStart[currentRace] = now;

            muse.burn(muse.balanceOf(address(this)));

            emit raceEnded(
                currentRace,
                winnerAmt,
                winner,
                (baseSeed % 100 < 10)
            );
        }
    }

    function getParticipantId(
        address _tokenAddress,
        uint256 _tokenId,
        uint256 _tokenType,
        uint256 _raceNumber
    ) public pure returns (bytes32) {
        return (
            keccak256(
                abi.encodePacked(
                    _tokenAddress,
                    _tokenId,
                    _tokenType,
                    _raceNumber
                )
            )
        );
    }

    function joinRace(
        address _tokenAddress,
        uint256 _tokenId,
        uint256 _tokenType
    ) external {
        require(
            muse.transferFrom(msg.sender, address(this), entryPrice),
            "!Pay"
        );
        require(
            tokenParticipants[
                getParticipantId(
                    _tokenAddress,
                    _tokenId,
                    _tokenType,
                    currentRace
                )
            ] == false,
            "This NFT is already registered for the race"
        );
        if (_tokenType == 721) {
            require(
                IERC721(_tokenAddress).ownerOf(_tokenId) == msg.sender,
                "You don't own the NFT"
            );
        } else if (_tokenType == 1155) {
            require(
                IERC1155(_tokenAddress).balanceOf(msg.sender, _tokenId) > 0,
                "You don't own the NFT"
            );
        } else {
            require(false, "Wrong NFT Type");
        }
        participants[currentRace].push(
            Participant(_tokenAddress, _tokenId, 0, msg.sender)
        );
        tokenParticipants[
            getParticipantId(_tokenAddress, _tokenId, _tokenType, currentRace)
        ] = true;

        emit participantEntered(
            currentRace,
            entryPrice,
            msg.sender,
            _tokenAddress,
            _tokenId
        );
        settleRaceIfPossible(); // this will launch the previous race if possible
    }

    function getRaceInfo(uint256 raceNumber)
        public
        view
        returns (
            uint256 _raceNumber,
            uint256 _participantsCount,
            Participant[maxParticipants] memory _participants,
            uint256 _raceWinner,
            uint256 _raceStart,
            uint256 _raceEnd
        )
    {
        _raceNumber = raceNumber;
        _participantsCount = participants[raceNumber].length;
        for (uint256 i; i < participants[raceNumber].length; i++) {
            _participants[i] = participants[raceNumber][i];
        }
        _raceWinner = raceWinner[raceNumber];
        _raceStart = raceStart[raceNumber];
        _raceEnd = raceEnd[raceNumber];
    }

    /* generates a number from 0 to 2^n based on the last n blocks */
    function randomNumber(uint256 seed, uint256 max)
        public
        view
        returns (uint256 _randomNumber)
    {
        uint256 n = 0;
        for (uint256 i = 0; i < 3; i++) {
            n += uint256(
                keccak256(
                    abi.encodePacked(blockhash(block.number - i - 1), seed)
                )
            );
        }
        return n % max;
    }

    function max(uint256 a, uint256 b) private pure returns (uint256) {
        return a > b ? a : b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "../../introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "../../introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

pragma solidity ^0.6.0;

// Interface for our erc20 token
interface IMuseToken {
    function totalSupply() external view returns (uint256);

    function balanceOf(address tokenOwner)
        external
        view
        returns (uint256 balance);

    function allowance(address tokenOwner, address spender)
        external
        view
        returns (uint256 remaining);

    function transfer(address to, uint256 tokens)
        external
        returns (bool success);

    function approve(address spender, uint256 tokens)
        external
        returns (bool success);

    function transferFrom(
        address from,
        address to,
        uint256 tokens
    ) external returns (bool success);

    function mintingFinished() external view returns (bool);

    function mint(address to, uint256 amount) external;

    function burn(uint256 amount) external;

    function burnFrom(address account, uint256 amount) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC721Mintable","name":"_vnft","type":"address"},{"internalType":"address","name":"_museToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256","name":"currentRace","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bet","type":"uint256"},{"indexed":false,"internalType":"address","name":"who","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"participantEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"currentRace","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prize","type":"uint256"},{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"bool","name":"wonNFT","type":"bool"}],"name":"raceEnded","type":"event"},{"inputs":[],"name":"burnPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRace","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entryPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_tokenType","type":"uint256"},{"internalType":"uint256","name":"_raceNumber","type":"uint256"}],"name":"getParticipantId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"raceNumber","type":"uint256"}],"name":"getRaceInfo","outputs":[{"internalType":"uint256","name":"_raceNumber","type":"uint256"},{"internalType":"uint256","name":"_participantsCount","type":"uint256"},{"components":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"address","name":"add","type":"address"}],"internalType":"struct NFTRaceMuse.Participant[6]","name":"_participants","type":"tuple[6]"},{"internalType":"uint256","name":"_raceWinner","type":"uint256"},{"internalType":"uint256","name":"_raceStart","type":"uint256"},{"internalType":"uint256","name":"_raceEnd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_tokenType","type":"uint256"}],"name":"joinRace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"muse","outputs":[{"internalType":"contract IMuseToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"participants","outputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"address","name":"add","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raceDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raceEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raceStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raceWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"randomNumber","outputs":[{"internalType":"uint256","name":"_randomNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftToken","type":"address"},{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setBonusPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_entryPrice","type":"uint256"},{"internalType":"uint256","name":"_raceDuration","type":"uint256"},{"internalType":"uint256","name":"_burnPercent","type":"uint256"}],"name":"setRaceParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settleRaceIfPossible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"tokenParticipants","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":[],"name":"vnft","outputs":[{"internalType":"contract IERC721Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405260006001553480156200001657600080fd5b50604051620029033803806200290383398181016040528101906200003c9190620001bc565b60006200004e6200018660201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504260036000600154815260200190815260200160002081905550505062000279565b600033905090565b6000815190506200019f8162000245565b92915050565b600081519050620001b6816200025f565b92915050565b60008060408385031215620001d057600080fd5b6000620001e085828601620001a5565b9250506020620001f3858286016200018e565b9150509250929050565b60006200020a8262000225565b9050919050565b60006200021e82620001fd565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200025081620001fd565b81146200025c57600080fd5b50565b6200026a8162000211565b81146200027657600080fd5b50565b60805160601c61266c62000297600039806104f3525061266c6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063b070e99a1161007c578063b070e99a146103ba578063c4fc3b2e146103ea578063f2fde38b14610408578063f745adfc14610424578063f8e1f51e14610442578063f9611424146104605761014d565b8063715018a6146102cf578063801ce3cc146102d957806381fb1fb4146103095780638da5cb5b1461033c57806393bc97361461035a5780639b19251a1461038a5761014d565b80632208a228116101155780632208a228146101fd57806324924bf71461022d57806326c65ef41461024b57806348b098131461027b5780634b8691ee146102975780635a284034146102b35761014d565b806303807ee514610152578063116f6c0414610170578063168557a5146101a05780631af45b64146101be578063202bd2b6146101c8575b600080fd5b61015a61047e565b6040516101679190612320565b60405180910390f35b61018a60048036038101906101859190611bc9565b610484565b6040516101979190612320565b60405180910390f35b6101a86104f1565b6040516101b591906121e8565b60405180910390f35b6101c6610515565b005b6101e260048036038101906101dd9190611b77565b610a80565b6040516101f4969594939291906123d3565b60405180910390f35b61021760048036038101906102129190611b4e565b610c31565b60405161022491906121b2565b60405180910390f35b610235610c51565b6040516102429190612320565b60405180910390f35b61026560048036038101906102609190611b77565b610c56565b6040516102729190612320565b60405180910390f35b61029560048036038101906102909190611c05565b610c6e565b005b6102b160048036038101906102ac9190611a37565b610d1e565b005b6102cd60048036038101906102c89190611a73565b610dfc565b005b6102d761133e565b005b6102f360048036038101906102ee9190611b77565b611493565b6040516103009190612320565b60405180910390f35b610323600480360381019061031e9190611bc9565b6114ab565b604051610333949392919061216d565b60405180910390f35b610344611535565b60405161035191906120c9565b60405180910390f35b610374600480360381019061036f9190611ac2565b61155e565b60405161038191906121cd565b60405180910390f35b6103a4600480360381019061039f91906119e5565b611597565b6040516103b19190612320565b60405180910390f35b6103d460048036038101906103cf9190611b77565b6115af565b6040516103e19190612320565b60405180910390f35b6103f26115c7565b6040516103ff9190612320565b60405180910390f35b610422600480360381019061041d91906119e5565b6115cd565b005b61042c611791565b6040516104399190612320565b60405180910390f35b61044a611797565b6040516104579190612203565b60405180910390f35b6104686117bd565b6040516104759190612320565b60405180910390f35b60095481565b6000806000905060008090505b60038110156104dd5760018143030340856040516020016104b392919061209d565b6040516020818303038152906040528051906020012060001c820191508080600101915050610491565b508281816104e757fe5b0691505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b426008546003600060015481526020019081526020016000205401111580610556575060066002600060015481526020019081526020016000208054905010155b801561057a5750600160026000600154815260200190815260200160002080549050115b15610a7e5760008090506000806396844b9f6105be600360006001548152602001908152602001600020544260015401016c033c0234ff4d400bc419af6b40610484565b01905060005b600260006001548152602001908152602001600020805490508110156107ab57606460066000600260006001548152602001908152602001600020848154811061060a57fe5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540261271001600154600583010183028161068d57fe5b0660026000600154815260200190815260200160002082815481106106ae57fe5b9060005260206000209060040201600201819055508360026000600154815260200190815260200160002082815481106106e457fe5b9060005260206000209060040201600201541061079e57600260006001548152602001908152602001600020818154811061071b57fe5b906000526020600020906004020160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600260006001548152602001908152602001600020818154811061076f57fe5b906000526020600020906004020160020154935080600560006001548152602001908152602001600020819055505b80806001019150506105c4565b504260046000600154815260200190815260200160002081905550600061081f6064610811600954606403610803600754600260006001548152602001908152602001600020805490506117c390919063ffffffff16565b6117c390919063ffffffff16565b61183390919063ffffffff16565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b815260040161087e929190612144565b602060405180830381600087803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d09190611b25565b5060018054016001819055504260036000600154815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161098f91906120c9565b60206040518083038186803b1580156109a757600080fd5b505afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611ba0565b6040518263ffffffff1660e01b81526004016109fb9190612320565b600060405180830381600087803b158015610a1557600080fd5b505af1158015610a29573d6000803e3d6000fd5b505050507fc6c2d4540b3db0e2eb04c5e65b9c7832ebbab04a6bac323cdf2fddf7ebf0a14d6001548285600a60648781610a5f57fe5b0610604051610a71949392919061238e565b60405180910390a1505050505b565b600080610a8b6118e6565b60008060008695506002600088815260200190815260200160002080549050945060005b6002600089815260200190815260200160002080549050811015610be557600260008981526020019081526020016000208181548110610aeb57fe5b90600052602060002090600402016040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050858260068110610bd057fe5b60200201819052508080600101915050610aaf565b5060056000888152602001908152602001600020549250600360008881526020019081526020016000205491506004600088815260200190815260200160002054905091939550919395565b600a6020528060005260406000206000915054906101000a900460ff1681565b600681565b60056020528060005260406000206000915090505481565b610c7661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb906122a0565b60405180910390fd5b826007819055508160088190555080600981905550505050565b610d2661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610db4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dab906122a0565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33306007546040518463ffffffff1660e01b8152600401610e5d939291906120e4565b602060405180830381600087803b158015610e7757600080fd5b505af1158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf9190611b25565b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906122c0565b60405180910390fd5b60001515600a6000610f0486868660015461155e565b815260200190815260200160002060009054906101000a900460ff16151514610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f59906122e0565b60405180910390fd5b6102d1811415611067573373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610fbc9190612320565b60206040518083038186803b158015610fd457600080fd5b505afa158015610fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100c9190611a0e565b73ffffffffffffffffffffffffffffffffffffffff1614611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105990612260565b60405180910390fd5b611185565b6104838114156111425760008373ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b81526004016110ad92919061211b565b60206040518083038186803b1580156110c557600080fd5b505afa1580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190611ba0565b1161113d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113490612260565b60405180910390fd5b611184565b6000611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a90612300565b60405180910390fd5b5b5b60026000600154815260200190815260200160002060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001848152602001600081526020013373ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506001600a60006112c986868660015461155e565b815260200190815260200160002060006101000a81548160ff0219169083151502179055507f25fb71fd660f5f34f595b346ebfc0d1786eac61d0d6fd52ea52ac2d34fd1f79260015460075433868660405161132995949392919061233b565b60405180910390a1611339610515565b505050565b61134661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cb906122a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60036020528060005260406000206000915090505481565b600260205281600052604060002081815481106114c457fe5b9060005260206000209060040201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600084848484604051602001611577949392919061204f565b604051602081830303815290604052805190602001209050949350505050565b60066020528060005260406000206000915090505481565b60046020528060005260406000206000915090505481565b60015481565b6115d561187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a906122a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca90612240565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6000808314156117d6576000905061182d565b60008284029050828482816117e757fe5b0414611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612280565b60405180910390fd5b809150505b92915050565b600061187583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611885565b905092915050565b600033905090565b600080831182906118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3919061221e565b60405180910390fd5b5060008385816118d857fe5b049050809150509392505050565b6040518060c001604052806006905b6118fd611913565b8152602001906001900390816118f55790505090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600081359050611976816125da565b92915050565b60008151905061198b816125da565b92915050565b6000815190506119a0816125f1565b92915050565b6000813590506119b581612608565b92915050565b6000813590506119ca8161261f565b92915050565b6000815190506119df8161261f565b92915050565b6000602082840312156119f757600080fd5b6000611a0584828501611967565b91505092915050565b600060208284031215611a2057600080fd5b6000611a2e8482850161197c565b91505092915050565b60008060408385031215611a4a57600080fd5b6000611a5885828601611967565b9250506020611a69858286016119bb565b9150509250929050565b600080600060608486031215611a8857600080fd5b6000611a9686828701611967565b9350506020611aa7868287016119bb565b9250506040611ab8868287016119bb565b9150509250925092565b60008060008060808587031215611ad857600080fd5b6000611ae687828801611967565b9450506020611af7878288016119bb565b9350506040611b08878288016119bb565b9250506060611b19878288016119bb565b91505092959194509250565b600060208284031215611b3757600080fd5b6000611b4584828501611991565b91505092915050565b600060208284031215611b6057600080fd5b6000611b6e848285016119a6565b91505092915050565b600060208284031215611b8957600080fd5b6000611b97848285016119bb565b91505092915050565b600060208284031215611bb257600080fd5b6000611bc0848285016119d0565b91505092915050565b60008060408385031215611bdc57600080fd5b6000611bea858286016119bb565b9250506020611bfb858286016119bb565b9150509250929050565b600080600060608486031215611c1a57600080fd5b6000611c28868287016119bb565b9350506020611c39868287016119bb565b9250506040611c4a868287016119bb565b9150509250925092565b6000611c608383611fc5565b60808301905092915050565b611c75816124d3565b82525050565b611c8481612481565b82525050565b611c9381612481565b82525050565b611caa611ca582612481565b612584565b82525050565b611cb981612442565b611cc38184612465565b9250611cce82612438565b8060005b83811015611cff578151611ce68782611c54565b9650611cf183612458565b925050600181019050611cd2565b505050505050565b611d1081612493565b82525050565b611d1f8161249f565b82525050565b611d36611d318261249f565b612596565b82525050565b611d45816124e5565b82525050565b611d5481612509565b82525050565b6000611d658261244d565b611d6f8185612470565b9350611d7f818560208601612551565b611d88816125bc565b840191505092915050565b6000611da0602683612470565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611e06601583612470565b91507f596f7520646f6e2774206f776e20746865204e465400000000000000000000006000830152602082019050919050565b6000611e46602183612470565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611eac602083612470565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611eec600483612470565b91507f21506179000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000611f2c602b83612470565b91507f54686973204e465420697320616c72656164792072656769737465726564206660008301527f6f722074686520726163650000000000000000000000000000000000000000006020830152604082019050919050565b6000611f92600e83612470565b91507f57726f6e67204e465420547970650000000000000000000000000000000000006000830152602082019050919050565b608082016000820151611fdb6000850182611c7b565b506020820151611fee602085018261201a565b506040820151612001604085018261201a565b5060608201516120146060850182611c7b565b50505050565b612023816124c9565b82525050565b612032816124c9565b82525050565b612049612044826124c9565b6125b2565b82525050565b600061205b8287611c99565b60148201915061206b8286612038565b60208201915061207b8285612038565b60208201915061208b8284612038565b60208201915081905095945050505050565b60006120a98285611d25565b6020820191506120b98284612038565b6020820191508190509392505050565b60006020820190506120de6000830184611c8a565b92915050565b60006060820190506120f96000830186611c6c565b6121066020830185611c8a565b6121136040830184612029565b949350505050565b60006040820190506121306000830185611c6c565b61213d6020830184612029565b9392505050565b60006040820190506121596000830185611c8a565b6121666020830184612029565b9392505050565b60006080820190506121826000830187611c8a565b61218f6020830186612029565b61219c6040830185612029565b6121a96060830184611c8a565b95945050505050565b60006020820190506121c76000830184611d07565b92915050565b60006020820190506121e26000830184611d16565b92915050565b60006020820190506121fd6000830184611d3c565b92915050565b60006020820190506122186000830184611d4b565b92915050565b600060208201905081810360008301526122388184611d5a565b905092915050565b6000602082019050818103600083015261225981611d93565b9050919050565b6000602082019050818103600083015261227981611df9565b9050919050565b6000602082019050818103600083015261229981611e39565b9050919050565b600060208201905081810360008301526122b981611e9f565b9050919050565b600060208201905081810360008301526122d981611edf565b9050919050565b600060208201905081810360008301526122f981611f1f565b9050919050565b6000602082019050818103600083015261231981611f85565b9050919050565b60006020820190506123356000830184612029565b92915050565b600060a0820190506123506000830188612029565b61235d6020830187612029565b61236a6040830186611c6c565b6123776060830185611c8a565b6123846080830184612029565b9695505050505050565b60006080820190506123a36000830187612029565b6123b06020830186612029565b6123bd6040830185611c8a565b6123ca6060830184611d07565b95945050505050565b60006103a0820190506123e96000830189612029565b6123f66020830188612029565b6124036040830187611cb0565b612411610340830186612029565b61241f610360830185612029565b61242d610380830184612029565b979650505050505050565b6000819050919050565b600060069050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600061248c826124a9565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006124de8261252d565b9050919050565b60006124f0826124f7565b9050919050565b6000612502826124a9565b9050919050565b60006125148261251b565b9050919050565b6000612526826124a9565b9050919050565b60006125388261253f565b9050919050565b600061254a826124a9565b9050919050565b60005b8381101561256f578082015181840152602081019050612554565b8381111561257e576000848401525b50505050565b600061258f826125a0565b9050919050565b6000819050919050565b60006125ab826125cd565b9050919050565b6000819050919050565b6000601f19601f8301169050919050565b60008160601b9050919050565b6125e381612481565b81146125ee57600080fd5b50565b6125fa81612493565b811461260557600080fd5b50565b6126118161249f565b811461261c57600080fd5b50565b612628816124c9565b811461263357600080fd5b5056fea2646970667358221220da942aa2af8cbf8f3a8a8e3921599dc999592f4599f5fcb59c86477d104c4f9164736f6c6343000606003300000000000000000000000057f0b53926dd62f2e26bc40b30140abea474da94000000000000000000000000b6ca7399b4f9ca56fc27cbff44f4d2e4eef1fc81

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063b070e99a1161007c578063b070e99a146103ba578063c4fc3b2e146103ea578063f2fde38b14610408578063f745adfc14610424578063f8e1f51e14610442578063f9611424146104605761014d565b8063715018a6146102cf578063801ce3cc146102d957806381fb1fb4146103095780638da5cb5b1461033c57806393bc97361461035a5780639b19251a1461038a5761014d565b80632208a228116101155780632208a228146101fd57806324924bf71461022d57806326c65ef41461024b57806348b098131461027b5780634b8691ee146102975780635a284034146102b35761014d565b806303807ee514610152578063116f6c0414610170578063168557a5146101a05780631af45b64146101be578063202bd2b6146101c8575b600080fd5b61015a61047e565b6040516101679190612320565b60405180910390f35b61018a60048036038101906101859190611bc9565b610484565b6040516101979190612320565b60405180910390f35b6101a86104f1565b6040516101b591906121e8565b60405180910390f35b6101c6610515565b005b6101e260048036038101906101dd9190611b77565b610a80565b6040516101f4969594939291906123d3565b60405180910390f35b61021760048036038101906102129190611b4e565b610c31565b60405161022491906121b2565b60405180910390f35b610235610c51565b6040516102429190612320565b60405180910390f35b61026560048036038101906102609190611b77565b610c56565b6040516102729190612320565b60405180910390f35b61029560048036038101906102909190611c05565b610c6e565b005b6102b160048036038101906102ac9190611a37565b610d1e565b005b6102cd60048036038101906102c89190611a73565b610dfc565b005b6102d761133e565b005b6102f360048036038101906102ee9190611b77565b611493565b6040516103009190612320565b60405180910390f35b610323600480360381019061031e9190611bc9565b6114ab565b604051610333949392919061216d565b60405180910390f35b610344611535565b60405161035191906120c9565b60405180910390f35b610374600480360381019061036f9190611ac2565b61155e565b60405161038191906121cd565b60405180910390f35b6103a4600480360381019061039f91906119e5565b611597565b6040516103b19190612320565b60405180910390f35b6103d460048036038101906103cf9190611b77565b6115af565b6040516103e19190612320565b60405180910390f35b6103f26115c7565b6040516103ff9190612320565b60405180910390f35b610422600480360381019061041d91906119e5565b6115cd565b005b61042c611791565b6040516104399190612320565b60405180910390f35b61044a611797565b6040516104579190612203565b60405180910390f35b6104686117bd565b6040516104759190612320565b60405180910390f35b60095481565b6000806000905060008090505b60038110156104dd5760018143030340856040516020016104b392919061209d565b6040516020818303038152906040528051906020012060001c820191508080600101915050610491565b508281816104e757fe5b0691505092915050565b7f00000000000000000000000057f0b53926dd62f2e26bc40b30140abea474da9481565b426008546003600060015481526020019081526020016000205401111580610556575060066002600060015481526020019081526020016000208054905010155b801561057a5750600160026000600154815260200190815260200160002080549050115b15610a7e5760008090506000806396844b9f6105be600360006001548152602001908152602001600020544260015401016c033c0234ff4d400bc419af6b40610484565b01905060005b600260006001548152602001908152602001600020805490508110156107ab57606460066000600260006001548152602001908152602001600020848154811061060a57fe5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540261271001600154600583010183028161068d57fe5b0660026000600154815260200190815260200160002082815481106106ae57fe5b9060005260206000209060040201600201819055508360026000600154815260200190815260200160002082815481106106e457fe5b9060005260206000209060040201600201541061079e57600260006001548152602001908152602001600020818154811061071b57fe5b906000526020600020906004020160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600260006001548152602001908152602001600020818154811061076f57fe5b906000526020600020906004020160020154935080600560006001548152602001908152602001600020819055505b80806001019150506105c4565b504260046000600154815260200190815260200160002081905550600061081f6064610811600954606403610803600754600260006001548152602001908152602001600020805490506117c390919063ffffffff16565b6117c390919063ffffffff16565b61183390919063ffffffff16565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b815260040161087e929190612144565b602060405180830381600087803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d09190611b25565b5060018054016001819055504260036000600154815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161098f91906120c9565b60206040518083038186803b1580156109a757600080fd5b505afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611ba0565b6040518263ffffffff1660e01b81526004016109fb9190612320565b600060405180830381600087803b158015610a1557600080fd5b505af1158015610a29573d6000803e3d6000fd5b505050507fc6c2d4540b3db0e2eb04c5e65b9c7832ebbab04a6bac323cdf2fddf7ebf0a14d6001548285600a60648781610a5f57fe5b0610604051610a71949392919061238e565b60405180910390a1505050505b565b600080610a8b6118e6565b60008060008695506002600088815260200190815260200160002080549050945060005b6002600089815260200190815260200160002080549050811015610be557600260008981526020019081526020016000208181548110610aeb57fe5b90600052602060002090600402016040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050858260068110610bd057fe5b60200201819052508080600101915050610aaf565b5060056000888152602001908152602001600020549250600360008881526020019081526020016000205491506004600088815260200190815260200160002054905091939550919395565b600a6020528060005260406000206000915054906101000a900460ff1681565b600681565b60056020528060005260406000206000915090505481565b610c7661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb906122a0565b60405180910390fd5b826007819055508160088190555080600981905550505050565b610d2661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610db4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dab906122a0565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33306007546040518463ffffffff1660e01b8152600401610e5d939291906120e4565b602060405180830381600087803b158015610e7757600080fd5b505af1158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf9190611b25565b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906122c0565b60405180910390fd5b60001515600a6000610f0486868660015461155e565b815260200190815260200160002060009054906101000a900460ff16151514610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f59906122e0565b60405180910390fd5b6102d1811415611067573373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610fbc9190612320565b60206040518083038186803b158015610fd457600080fd5b505afa158015610fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100c9190611a0e565b73ffffffffffffffffffffffffffffffffffffffff1614611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105990612260565b60405180910390fd5b611185565b6104838114156111425760008373ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b81526004016110ad92919061211b565b60206040518083038186803b1580156110c557600080fd5b505afa1580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190611ba0565b1161113d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113490612260565b60405180910390fd5b611184565b6000611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a90612300565b60405180910390fd5b5b5b60026000600154815260200190815260200160002060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff168152602001848152602001600081526020013373ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506001600a60006112c986868660015461155e565b815260200190815260200160002060006101000a81548160ff0219169083151502179055507f25fb71fd660f5f34f595b346ebfc0d1786eac61d0d6fd52ea52ac2d34fd1f79260015460075433868660405161132995949392919061233b565b60405180910390a1611339610515565b505050565b61134661187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cb906122a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60036020528060005260406000206000915090505481565b600260205281600052604060002081815481106114c457fe5b9060005260206000209060040201600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600084848484604051602001611577949392919061204f565b604051602081830303815290604052805190602001209050949350505050565b60066020528060005260406000206000915090505481565b60046020528060005260406000206000915090505481565b60015481565b6115d561187d565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a906122a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca90612240565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6000808314156117d6576000905061182d565b60008284029050828482816117e757fe5b0414611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612280565b60405180910390fd5b809150505b92915050565b600061187583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611885565b905092915050565b600033905090565b600080831182906118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3919061221e565b60405180910390fd5b5060008385816118d857fe5b049050809150509392505050565b6040518060c001604052806006905b6118fd611913565b8152602001906001900390816118f55790505090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600081359050611976816125da565b92915050565b60008151905061198b816125da565b92915050565b6000815190506119a0816125f1565b92915050565b6000813590506119b581612608565b92915050565b6000813590506119ca8161261f565b92915050565b6000815190506119df8161261f565b92915050565b6000602082840312156119f757600080fd5b6000611a0584828501611967565b91505092915050565b600060208284031215611a2057600080fd5b6000611a2e8482850161197c565b91505092915050565b60008060408385031215611a4a57600080fd5b6000611a5885828601611967565b9250506020611a69858286016119bb565b9150509250929050565b600080600060608486031215611a8857600080fd5b6000611a9686828701611967565b9350506020611aa7868287016119bb565b9250506040611ab8868287016119bb565b9150509250925092565b60008060008060808587031215611ad857600080fd5b6000611ae687828801611967565b9450506020611af7878288016119bb565b9350506040611b08878288016119bb565b9250506060611b19878288016119bb565b91505092959194509250565b600060208284031215611b3757600080fd5b6000611b4584828501611991565b91505092915050565b600060208284031215611b6057600080fd5b6000611b6e848285016119a6565b91505092915050565b600060208284031215611b8957600080fd5b6000611b97848285016119bb565b91505092915050565b600060208284031215611bb257600080fd5b6000611bc0848285016119d0565b91505092915050565b60008060408385031215611bdc57600080fd5b6000611bea858286016119bb565b9250506020611bfb858286016119bb565b9150509250929050565b600080600060608486031215611c1a57600080fd5b6000611c28868287016119bb565b9350506020611c39868287016119bb565b9250506040611c4a868287016119bb565b9150509250925092565b6000611c608383611fc5565b60808301905092915050565b611c75816124d3565b82525050565b611c8481612481565b82525050565b611c9381612481565b82525050565b611caa611ca582612481565b612584565b82525050565b611cb981612442565b611cc38184612465565b9250611cce82612438565b8060005b83811015611cff578151611ce68782611c54565b9650611cf183612458565b925050600181019050611cd2565b505050505050565b611d1081612493565b82525050565b611d1f8161249f565b82525050565b611d36611d318261249f565b612596565b82525050565b611d45816124e5565b82525050565b611d5481612509565b82525050565b6000611d658261244d565b611d6f8185612470565b9350611d7f818560208601612551565b611d88816125bc565b840191505092915050565b6000611da0602683612470565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611e06601583612470565b91507f596f7520646f6e2774206f776e20746865204e465400000000000000000000006000830152602082019050919050565b6000611e46602183612470565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611eac602083612470565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611eec600483612470565b91507f21506179000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000611f2c602b83612470565b91507f54686973204e465420697320616c72656164792072656769737465726564206660008301527f6f722074686520726163650000000000000000000000000000000000000000006020830152604082019050919050565b6000611f92600e83612470565b91507f57726f6e67204e465420547970650000000000000000000000000000000000006000830152602082019050919050565b608082016000820151611fdb6000850182611c7b565b506020820151611fee602085018261201a565b506040820151612001604085018261201a565b5060608201516120146060850182611c7b565b50505050565b612023816124c9565b82525050565b612032816124c9565b82525050565b612049612044826124c9565b6125b2565b82525050565b600061205b8287611c99565b60148201915061206b8286612038565b60208201915061207b8285612038565b60208201915061208b8284612038565b60208201915081905095945050505050565b60006120a98285611d25565b6020820191506120b98284612038565b6020820191508190509392505050565b60006020820190506120de6000830184611c8a565b92915050565b60006060820190506120f96000830186611c6c565b6121066020830185611c8a565b6121136040830184612029565b949350505050565b60006040820190506121306000830185611c6c565b61213d6020830184612029565b9392505050565b60006040820190506121596000830185611c8a565b6121666020830184612029565b9392505050565b60006080820190506121826000830187611c8a565b61218f6020830186612029565b61219c6040830185612029565b6121a96060830184611c8a565b95945050505050565b60006020820190506121c76000830184611d07565b92915050565b60006020820190506121e26000830184611d16565b92915050565b60006020820190506121fd6000830184611d3c565b92915050565b60006020820190506122186000830184611d4b565b92915050565b600060208201905081810360008301526122388184611d5a565b905092915050565b6000602082019050818103600083015261225981611d93565b9050919050565b6000602082019050818103600083015261227981611df9565b9050919050565b6000602082019050818103600083015261229981611e39565b9050919050565b600060208201905081810360008301526122b981611e9f565b9050919050565b600060208201905081810360008301526122d981611edf565b9050919050565b600060208201905081810360008301526122f981611f1f565b9050919050565b6000602082019050818103600083015261231981611f85565b9050919050565b60006020820190506123356000830184612029565b92915050565b600060a0820190506123506000830188612029565b61235d6020830187612029565b61236a6040830186611c6c565b6123776060830185611c8a565b6123846080830184612029565b9695505050505050565b60006080820190506123a36000830187612029565b6123b06020830186612029565b6123bd6040830185611c8a565b6123ca6060830184611d07565b95945050505050565b60006103a0820190506123e96000830189612029565b6123f66020830188612029565b6124036040830187611cb0565b612411610340830186612029565b61241f610360830185612029565b61242d610380830184612029565b979650505050505050565b6000819050919050565b600060069050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600061248c826124a9565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006124de8261252d565b9050919050565b60006124f0826124f7565b9050919050565b6000612502826124a9565b9050919050565b60006125148261251b565b9050919050565b6000612526826124a9565b9050919050565b60006125388261253f565b9050919050565b600061254a826124a9565b9050919050565b60005b8381101561256f578082015181840152602081019050612554565b8381111561257e576000848401525b50505050565b600061258f826125a0565b9050919050565b6000819050919050565b60006125ab826125cd565b9050919050565b6000819050919050565b6000601f19601f8301169050919050565b60008160601b9050919050565b6125e381612481565b81146125ee57600080fd5b50565b6125fa81612493565b811461260557600080fd5b50565b6126118161249f565b811461261c57600080fd5b50565b612628816124c9565b811461263357600080fd5b5056fea2646970667358221220da942aa2af8cbf8f3a8a8e3921599dc999592f4599f5fcb59c86477d104c4f9164736f6c63430006060033

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

00000000000000000000000057f0b53926dd62f2e26bc40b30140abea474da94000000000000000000000000b6ca7399b4f9ca56fc27cbff44f4d2e4eef1fc81

-----Decoded View---------------
Arg [0] : _vnft (address): 0x57f0B53926dd62f2E26bc40B30140AbEA474DA94
Arg [1] : _museToken (address): 0xB6Ca7399B4F9CA56FC27cBfF44F4d2e4Eef1fc81

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000057f0b53926dd62f2e26bc40b30140abea474da94
Arg [1] : 000000000000000000000000b6ca7399b4f9ca56fc27cbff44f4d2e4eef1fc81


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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