Contract 0xEb0860422043a0B8541356A7B6F671CBa9e8F85a

 

Contract Overview

MCH: Gum Gateway 8
Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0x7adc738af79a9d9c366f7ff9b97b550f52d2e4484d35978e3781f4a1cd6913e0Pause84239322019-08-26 5:16:081190 days 7 hrs agoMCH: Owner IN  MCH: Gum Gateway 80 Ether0.000130863
0x42ffaaf14cfe3272e5cbf169e483376210e030d73732d4ab3af5f683617f81a7Withdraw Ether84239252019-08-26 5:14:431190 days 7 hrs agoMCH: Owner IN  MCH: Gum Gateway 80 Ether0.000148645
0xc21272d5da71e9b9021de196f080290d83478fc0a7ad6062483153d1670a5583Buy GUM84237012019-08-26 4:24:571190 days 8 hrs ago0xcbac9cb40dcbec01318bb8d698695a94e86955c3 IN  MCH: Gum Gateway 80.1 Ether0.0009615312.74955749
0x51397eda89b62283c4828cfea1b29bbb6d0eec019196f5cb43e9f24bf70a8012Buy GUM84237002019-08-26 4:24:541190 days 8 hrs ago0xcbac9cb40dcbec01318bb8d698695a94e86955c3 IN  MCH: Gum Gateway 80.5 Ether0.0008981611.90932178
0x27edc7c46ed44709a048f88ef660397eece388e0fe2b3c08539d23e4c992dca1Buy GUM84236862019-08-26 4:21:331190 days 8 hrs ago0xcbac9cb40dcbec01318bb8d698695a94e86955c3 IN  MCH: Gum Gateway 80.1 Ether0.000527916.99999952
0x04765a2b81f041dff897c3b0c090edb2dbcf085de75ddf39be33b2ecfb376838Buy GUM84233452019-08-26 3:04:301190 days 9 hrs ago0x5f9338166cd3f311accc67ca29cd102042e10788 IN  MCH: Gum Gateway 85 Ether0.000397816
0x9ecd240d4d004bb740f3eb378d7135b3a2c793c1c65eb7f3dc94204ce8042b1cBuy GUM84230252019-08-26 1:53:081190 days 10 hrs ago0x78ab117a59ec7ebccea0f06f19ae0c3f8804bcd2 IN  MCH: Gum Gateway 80.05 Ether0.000456276.05
0x8a7b81c610f47f56774f98eb9188dd8aa8fd9372eb35fa3ec644fc8271e49abcBuy GUM84229902019-08-26 1:46:251190 days 11 hrs ago0x78ab117a59ec7ebccea0f06f19ae0c3f8804bcd2 IN  MCH: Gum Gateway 80.1 Ether0.000527917
0x4b67b33e2e7fd6f8bdeecf17cbd6629fc3c7ef8f6cfbf49e3a147b58d6ccf528Buy GUM84228522019-08-26 1:14:301190 days 11 hrs ago0x2c18b49b3da3c664e6b3f1d81a522086d49ebf6c IN  MCH: Gum Gateway 80.1 Ether0.000528057
0xa90154cef43e424fd3a32added2a13b0636180274df70367ee98bc91f74ffdb2Buy GUM84219882019-08-25 22:04:181190 days 14 hrs agoENS Name tk123.eth IN  MCH: Gum Gateway 80.05 Ether0.00052857
0x5070afe75bce5185f7408651602989bf0251a3bee0eccb258fc9b4fa8864a304Buy GUM84219622019-08-25 21:57:201190 days 14 hrs ago0x78ab117a59ec7ebccea0f06f19ae0c3f8804bcd2 IN  MCH: Gum Gateway 80.05 Ether0.000226253
0xb5e83da140ddaf4c93dc19d7c2b05235237c6c95fe56bd86ceadeaa6b2a32582Buy GUM84209932019-08-25 18:29:191190 days 18 hrs ago0xc9100cac056794c32359601c81421cbe609754ef IN  MCH: Gum Gateway 80.5 Ether0.00022653
0xf14f39c268262feab42e2a84e46f923c49dcc3362b1b5ef8d250633b1a285aabBuy GUM84201322019-08-25 15:21:011190 days 21 hrs ago0x9707db82df92c58055872731c7a87f90ca990901 IN  MCH: Gum Gateway 80.1 Ether0.000227683.43411469
0xfb9229fefa8c271380df69e5931479c06c175a3ae14c40d9ff3041502647c039Buy GUM84199462019-08-25 14:42:461190 days 22 hrs ago0xf042e6cfb6112dd214d9c7f79f89eb1b2ca664c3 IN  MCH: Gum Gateway 80.1 Ether0.000339754.49999974
0xb209f3227267b20d69036e1e3e97f0ab0b87cfdf699889de5ffe06aad31e5d91Buy GUM84198282019-08-25 14:16:041190 days 22 hrs ago0xf270837176a8a7abb9c37da3aca3942795d38718 IN  MCH: Gum Gateway 80.1 Ether0.000595257.8841
0xd32b355d74280991b4f95ad51a14706e8d49bff62429e997abf2061b8c0dd570Buy GUM84197802019-08-25 14:06:491190 days 22 hrs ago0xf270837176a8a7abb9c37da3aca3942795d38718 IN  MCH: Gum Gateway 80.05 Ether0.0011950115.82780468
0x8dd2ea683682e7deb25081d002c77686f038796fd16faa18ddc9dffaacff45caBuy GUM84197352019-08-25 13:56:271190 days 22 hrs ago0xcf4020158d0d43ad866fd3bb60ffda6cbe8d9903 IN  MCH: Gum Gateway 80.5 Ether0.0008539711.333
0x89166d5be5e7cf2d7a263299f933c4020eb779e99ff986ae94a0a3ff24a5d454Buy GUM84195862019-08-25 13:23:101190 days 23 hrs ago0x92b9cb4fa465ffcd600f5f33def3887fd0026ce5 IN  MCH: Gum Gateway 80.05 Ether0.0010611414.05468654
0xe7083bf233cb155f45ce59c4e7d9b598ed52ae43f18684fe876bb41321ef38ebBuy GUM84195862019-08-25 13:23:101190 days 23 hrs ago0x92b9cb4fa465ffcd600f5f33def3887fd0026ce5 IN  MCH: Gum Gateway 80.1 Ether0.0010611414.05468654
0xdca90c9b95e898313346f21b4315caafeb0d32e8daeb83fcbc10dbd7a5df3051Buy GUM84188432019-08-25 10:31:421191 days 2 hrs ago0x9cfb1f7755449bb3e5be066d9eeca6d8e52dfa73 IN  MCH: Gum Gateway 80.1 Ether0.0006047.99999952
0x4faf2413d2a36bc434d227446ec0aa9f19c90aa06a6674cbf890862650f5dfdbBuy GUM84187212019-08-25 10:04:281191 days 2 hrs ago0x5c46d4ad6e64cb653253163b817f476422ea6ef0 IN  MCH: Gum Gateway 80.05 Ether0.000679789.01362896
0x8646e94482ce26febddac78d5aa502ae4f890070072511e5a84a46721d882a51Buy GUM84185712019-08-25 9:32:461191 days 3 hrs ago0x9707db82df92c58055872731c7a87f90ca990901 IN  MCH: Gum Gateway 80.5 Ether0.00038385.78874969
0x0a9e977df7afe2bdf287941befa8474ffd780b52732777c2a8193b1ef612ea5bBuy GUM84183422019-08-25 8:40:031191 days 4 hrs ago0x9707db82df92c58055872731c7a87f90ca990901 IN  MCH: Gum Gateway 80.5 Ether0.000571198.61504173
0x1cc782c955686c69fc1640a7c8b238a19f411c415b6e079250edf41c91edb1abBuy GUM84182352019-08-25 8:18:141191 days 4 hrs ago0x668b4de2e84b83abbf54f6b6e4f6c70952510af2 IN  MCH: Gum Gateway 80.05 Ether0.000326587
0x68d38d30495124e0b3a0e42901cb1450a1f946553822a4e12367d8e9ff3e33dbBuy GUM84181932019-08-25 8:09:221191 days 4 hrs ago0xb77ac17bf8917defd408cdb69fce16a43390907f IN  MCH: Gum Gateway 80.1 Ether0.000262787
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x42ffaaf14cfe3272e5cbf169e483376210e030d73732d4ab3af5f683617f81a784239252019-08-26 5:14:431190 days 7 hrs ago MCH: Gum Gateway 8MCH: Owner107.3325 Ether
0xc21272d5da71e9b9021de196f080290d83478fc0a7ad6062483153d1670a558384237012019-08-26 4:24:571190 days 8 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0xc21272d5da71e9b9021de196f080290d83478fc0a7ad6062483153d1670a558384237012019-08-26 4:24:571190 days 8 hrs ago MCH: Gum Gateway 8ENS Name tarumikei.eth0.02 Ether
0x51397eda89b62283c4828cfea1b29bbb6d0eec019196f5cb43e9f24bf70a801284237002019-08-26 4:24:541190 days 8 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.15 Ether
0x51397eda89b62283c4828cfea1b29bbb6d0eec019196f5cb43e9f24bf70a801284237002019-08-26 4:24:541190 days 8 hrs ago MCH: Gum Gateway 8ENS Name tarumikei.eth0.1 Ether
0x27edc7c46ed44709a048f88ef660397eece388e0fe2b3c08539d23e4c992dca184236862019-08-26 4:21:331190 days 8 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0x27edc7c46ed44709a048f88ef660397eece388e0fe2b3c08539d23e4c992dca184236862019-08-26 4:21:331190 days 8 hrs ago MCH: Gum Gateway 8ENS Name tarumikei.eth0.02 Ether
0x04765a2b81f041dff897c3b0c090edb2dbcf085de75ddf39be33b2ecfb37683884233452019-08-26 3:04:301190 days 9 hrs ago MCH: Gum Gateway 8 MCH: Land Pool1.5 Ether
0x9ecd240d4d004bb740f3eb378d7135b3a2c793c1c65eb7f3dc94204ce8042b1c84230252019-08-26 1:53:081190 days 10 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.015 Ether
0x9ecd240d4d004bb740f3eb378d7135b3a2c793c1c65eb7f3dc94204ce8042b1c84230252019-08-26 1:53:081190 days 10 hrs ago MCH: Gum Gateway 80xc3104071b9d321858854f8b90a9987d67fefbed30.0025 Ether
0x8a7b81c610f47f56774f98eb9188dd8aa8fd9372eb35fa3ec644fc8271e49abc84229902019-08-26 1:46:251190 days 11 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0x8a7b81c610f47f56774f98eb9188dd8aa8fd9372eb35fa3ec644fc8271e49abc84229902019-08-26 1:46:251190 days 11 hrs ago MCH: Gum Gateway 80xc3104071b9d321858854f8b90a9987d67fefbed30.005 Ether
0x4b67b33e2e7fd6f8bdeecf17cbd6629fc3c7ef8f6cfbf49e3a147b58d6ccf52884228522019-08-26 1:14:301190 days 11 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0x4b67b33e2e7fd6f8bdeecf17cbd6629fc3c7ef8f6cfbf49e3a147b58d6ccf52884228522019-08-26 1:14:301190 days 11 hrs ago MCH: Gum Gateway 80xf58d0e6fc3c021627a49a53f04152409fcc400550.02 Ether
0xa90154cef43e424fd3a32added2a13b0636180274df70367ee98bc91f74ffdb284219882019-08-25 22:04:181190 days 14 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.015 Ether
0xa90154cef43e424fd3a32added2a13b0636180274df70367ee98bc91f74ffdb284219882019-08-25 22:04:181190 days 14 hrs ago MCH: Gum Gateway 80x1693ae817e424c2dbc4138313b7b46c91bb968f40.01 Ether
0x5070afe75bce5185f7408651602989bf0251a3bee0eccb258fc9b4fa8864a30484219622019-08-25 21:57:201190 days 14 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.015 Ether
0x5070afe75bce5185f7408651602989bf0251a3bee0eccb258fc9b4fa8864a30484219622019-08-25 21:57:201190 days 14 hrs ago MCH: Gum Gateway 80xc3104071b9d321858854f8b90a9987d67fefbed30.0025 Ether
0xb5e83da140ddaf4c93dc19d7c2b05235237c6c95fe56bd86ceadeaa6b2a3258284209932019-08-25 18:29:191190 days 18 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.15 Ether
0xb5e83da140ddaf4c93dc19d7c2b05235237c6c95fe56bd86ceadeaa6b2a3258284209932019-08-25 18:29:191190 days 18 hrs ago MCH: Gum Gateway 80xbee1f62a16109f51466e54b241b8b03d28ad8d210.025 Ether
0xf14f39c268262feab42e2a84e46f923c49dcc3362b1b5ef8d250633b1a285aab84201322019-08-25 15:21:011190 days 21 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0xfb9229fefa8c271380df69e5931479c06c175a3ae14c40d9ff3041502647c03984199462019-08-25 14:42:461190 days 22 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0xfb9229fefa8c271380df69e5931479c06c175a3ae14c40d9ff3041502647c03984199462019-08-25 14:42:461190 days 22 hrs ago MCH: Gum Gateway 80xaf85c5ba6f057bf61a3a38ac5904431bbd4afe190.005 Ether
0xb209f3227267b20d69036e1e3e97f0ab0b87cfdf699889de5ffe06aad31e5d9184198282019-08-25 14:16:041190 days 22 hrs ago MCH: Gum Gateway 8 MCH: Land Pool0.03 Ether
0xb209f3227267b20d69036e1e3e97f0ab0b87cfdf699889de5ffe06aad31e5d9184198282019-08-25 14:16:041190 days 22 hrs ago MCH: Gum Gateway 8ENS Name *zk-outcome.eth0.005 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MCHGUMGatewayV8

Compiler Version
v0.5.4+commit.9549d8ff

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-06-19
*/

/**
 *Submitted for verification at Etherscan.io on 2019-06-19
*/

/* solhint-disable indent*/
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : [email protected]
// released under Apache 2.0 licence
// input  /Users/rmanzoku/src/github.com/doublejumptokyo/mch-land-contract/contracts/MCHGUMGatewayV8.sol
// flattened :  Wednesday, 19-Jun-19 06:54:11 UTC
library ECDSA {
    /**
     * @dev Recover signer address from a message by using their signature
     * @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address.
     * @param signature bytes signature, the signature is generated using web3.eth.sign()
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        bytes32 r;
        bytes32 s;
        uint8 v;

        // Check the signature length
        if (signature.length != 65) {
            return (address(0));
        }

        // Divide the signature in r, s and v variables
        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        // Version of signature should be 27 or 28, but 0 and 1 are also possible versions
        if (v < 27) {
            v += 27;
        }

        // If the version is correct return the signer address
        if (v != 27 && v != 28) {
            return (address(0));
        } else {
            return ecrecover(hash, v, r, s);
        }
    }

    /**
     * toEthSignedMessageHash
     * @dev prefix a bytes32 value with "\x19Ethereum Signed Message:"
     * and hash the result
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev give an account access to this role
     */
    function add(Role storage role, address account) internal {
        require(account != address(0));
        require(!has(role, account));

        role.bearer[account] = true;
    }

    /**
     * @dev remove an account's access to this role
     */
    function remove(Role storage role, address account) internal {
        require(account != address(0));
        require(has(role, account));

        role.bearer[account] = false;
    }

    /**
     * @dev check if an account has this role
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0));
        return role.bearer[account];
    }
}

library Address {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a `safeTransfer`. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

interface IERC165 {
    /**
     * @notice Query if a contract implements an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @dev Interface identification is specified in ERC-165. This function
     * uses less than 30,000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

library SafeMath {
    /**
    * @dev Multiplies two unsigned integers, reverts on 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-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
    * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
    * @dev Adds two unsigned integers, reverts on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
    * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

contract Ownable {
    address private _owner;

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

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner());
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0));
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);

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

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

    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

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

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter);
    }
}

contract PauserRole {
    using Roles for Roles.Role;

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

    constructor () internal {
        _addPauser(msg.sender);
    }

    modifier onlyPauser() {
        require(isPauser(msg.sender));
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(msg.sender);
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }
}

contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    function balanceOf(address owner) public view returns (uint256 balance);
    function ownerOf(uint256 tokenId) public view returns (address owner);

    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);

    function transferFrom(address from, address to, uint256 tokenId) public;
    function safeTransferFrom(address from, address to, uint256 tokenId) public;

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

contract ERC165 is IERC165 {
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
    /**
     * 0x01ffc9a7 ===
     *     bytes4(keccak256('supportsInterface(bytes4)'))
     */

    /**
     * @dev a mapping of interface id to whether or not it's supported
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev A contract implementing SupportsInterfaceWithLookup
     * implement ERC165 itself
     */
    constructor () internal {
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev implement supportsInterface(bytes4) using a lookup table
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev internal method for registering an interface
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff);
        _supportedInterfaces[interfaceId] = true;
    }
}

contract Pausable is PauserRole {
    event Paused(address account);
    event Unpaused(address account);

    bool private _paused;

    constructor () internal {
        _paused = false;
    }

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

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused);
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused);
        _;
    }

    /**
     * @dev called by the owner to pause, triggers stopped state
     */
    function pause() public onlyPauser whenNotPaused {
        _paused = true;
        emit Paused(msg.sender);
    }

    /**
     * @dev called by the owner to unpause, returns to normal state
     */
    function unpause() public onlyPauser whenPaused {
        _paused = false;
        emit Unpaused(msg.sender);
    }
}

contract Withdrawable is Ownable {
  function withdrawEther() external onlyOwner {
    msg.sender.transfer(address(this).balance);
  }

  function withdrawToken(IERC20 _token) external onlyOwner {
    require(_token.transfer(msg.sender, _token.balanceOf(address(this))));
  }
}

contract MinterRole {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(msg.sender);
    }

    modifier onlyMinter() {
        require(isMinter(msg.sender));
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(msg.sender);
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

contract ERC721 is ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from token ID to owner
    mapping (uint256 => address) private _tokenOwner;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to number of owned token
    mapping (address => uint256) private _ownedTokensCount;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    /*
     * 0x80ac58cd ===
     *     bytes4(keccak256('balanceOf(address)')) ^
     *     bytes4(keccak256('ownerOf(uint256)')) ^
     *     bytes4(keccak256('approve(address,uint256)')) ^
     *     bytes4(keccak256('getApproved(uint256)')) ^
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) ^
     *     bytes4(keccak256('isApprovedForAll(address,address)')) ^
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
     */

    constructor () public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0));
        return _ownedTokensCount[owner];
    }

    /**
     * @dev Gets the owner of the specified token ID
     * @param tokenId uint256 ID of the token to query the owner of
     * @return owner address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(owner != address(0));
        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = ownerOf(tokenId);
        require(to != owner);
        require(msg.sender == owner || isApprovedForAll(owner, msg.sender));

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId));
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != msg.sender);
        _operatorApprovals[msg.sender][to] = approved;
        emit ApprovalForAll(msg.sender, to, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address
     * Usage of this method is discouraged, use `safeTransferFrom` whenever possible
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function transferFrom(address from, address to, uint256 tokenId) public {
        require(_isApprovedOrOwner(msg.sender, tokenId));

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     *
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        transferFrom(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data));
    }

    /**
     * @dev Returns whether the specified token exists
     * @param tokenId uint256 ID of the token to query the existence of
     * @return whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     *    is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0));
        require(!_exists(tokenId));

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(ownerOf(tokenId) == owner);

        _clearApproval(tokenId);

        _ownedTokensCount[owner] = _ownedTokensCount[owner].sub(1);
        _tokenOwner[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        require(ownerOf(tokenId) == from);
        require(to != address(0));

        _clearApproval(tokenId);

        _ownedTokensCount[from] = _ownedTokensCount[from].sub(1);
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke `onERC721Received` on a target address
     * The call is not executed if the target address is not a contract
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }

        bytes4 retval = IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data);
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Private function to clear current approval of a given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

contract DJTBase is Withdrawable, Pausable, ReentrancyGuard {
    using SafeMath for uint256;
}
contract IERC721Metadata is IERC721 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
    /**
     * 0x780e9d63 ===
     *     bytes4(keccak256('totalSupply()')) ^
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
     *     bytes4(keccak256('tokenByIndex(uint256)'))
     */

    /**
     * @dev Constructor function
     */
    constructor () public {
        // register the supported interface to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner));
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(index < totalSupply());
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
        return _ownedTokens[owner];
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        _ownedTokensIndex[tokenId] = _ownedTokens[to].length;
        _ownedTokens[to].push(tokenId);
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occcupied by
        // lasTokenId, or just over the end of the array if the token was the last one).
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length.sub(1);
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

contract ERC721Mintable is ERC721, MinterRole {
    /**
     * @dev Function to mint tokens
     * @param to The address that will receive the minted tokens.
     * @param tokenId The token id to mint.
     * @return A boolean that indicates if the operation was successful.
     */
    function mint(address to, uint256 tokenId) public onlyMinter returns (bool) {
        _mint(to, tokenId);
        return true;
    }
}

contract ERC721Pausable is ERC721, Pausable {
    function approve(address to, uint256 tokenId) public whenNotPaused {
        super.approve(to, tokenId);
    }

    function setApprovalForAll(address to, bool approved) public whenNotPaused {
        super.setApprovalForAll(to, approved);
    }

    function transferFrom(address from, address to, uint256 tokenId) public whenNotPaused {
        super.transferFrom(from, to, tokenId);
    }
}

contract ERC721Metadata is ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
    /**
     * 0x5b5e139f ===
     *     bytes4(keccak256('name()')) ^
     *     bytes4(keccak256('symbol()')) ^
     *     bytes4(keccak256('tokenURI(uint256)'))
     */

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    /**
     * @dev Gets the token name
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns an URI for a given token ID
     * Throws if the token ID does not exist. May return an empty string.
     * @param tokenId uint256 ID of the token to query
     */
    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId));
        return _tokenURIs[tokenId];
    }

    /**
     * @dev Internal function to set the token URI for a given token
     * Reverts if the token ID does not exist
     * @param tokenId uint256 ID of the token to set its URI
     * @param uri string URI to assign
     */
    function _setTokenURI(uint256 tokenId, string memory uri) internal {
        require(_exists(tokenId));
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
    constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

contract LandSectorAsset is ERC721Full, ERC721Mintable, ERC721Pausable {


  uint256 public constant SHARE_RATE_DECIMAL = 10**18;

  uint16 public constant LEGENDARY_RARITY = 5;
  uint16 public constant EPIC_RARITY = 4;
  uint16 public constant RARE_RARITY = 3;
  uint16 public constant UNCOMMON_RARITY = 2;
  uint16 public constant COMMON_RARITY = 1;

  uint16 public constant NO_LAND = 0;

  string public tokenURIPrefix = "https://www.mycryptoheroes.net/metadata/land/";

  mapping(uint16 => uint256) private landTypeToTotalVolume;
  mapping(uint16 => uint256) private landTypeToSectorSupplyLimit;
  mapping(uint16 => mapping(uint16 => uint256)) private landTypeAndRarityToSectorSupply;
  mapping(uint16 => uint256[]) private landTypeToLandSectorList;
  mapping(uint16 => uint256) private landTypeToLandSectorIndex;
  mapping(uint16 => mapping(uint16 => uint256)) private landTypeAndRarityToLandSectorCount;
  mapping(uint16 => uint256) private rarityToSectorVolume;

  mapping(uint256 => bool) private allowed;

  event MintEvent(
    address indexed assetOwner,
    uint256 tokenId,
    uint256 at,
    bytes32 indexed eventHash
  );

  constructor() public ERC721Full("MyCryptoHeroes:Land", "MCHL") {
    rarityToSectorVolume[5] = 100;
    rarityToSectorVolume[4] = 20;
    rarityToSectorVolume[3] = 5;
    rarityToSectorVolume[2] = 2;
    rarityToSectorVolume[1] = 1;
    landTypeToTotalVolume[NO_LAND] = 0;
  }

  function setSupplyAndSector(
    uint16 _landType,
    uint256 _totalVolume,
    uint256 _sectorSupplyLimit,
    uint256 legendarySupply,
    uint256 epicSupply,
    uint256 rareSupply,
    uint256 uncommonSupply,
    uint256 commonSupply
  ) external onlyMinter {
    require(_landType != 0, "landType 0 is noland");
    require(_totalVolume != 0, "totalVolume must not be 0");
    require(getMintedSectorCount(_landType) == 0, "This LandType already exists");
    require(
      legendarySupply.mul(rarityToSectorVolume[LEGENDARY_RARITY])
      .add(epicSupply.mul(rarityToSectorVolume[EPIC_RARITY]))
      .add(rareSupply.mul(rarityToSectorVolume[RARE_RARITY]))
      .add(uncommonSupply.mul(rarityToSectorVolume[UNCOMMON_RARITY]))
      .add(commonSupply.mul(rarityToSectorVolume[COMMON_RARITY]))
      == _totalVolume
    );
    require(
      legendarySupply
      .add(epicSupply)
      .add(rareSupply)
      .add(uncommonSupply)
      .add(commonSupply)
      == _sectorSupplyLimit
    );
    landTypeToTotalVolume[_landType] = _totalVolume;
    landTypeToSectorSupplyLimit[_landType] = _sectorSupplyLimit;
    landTypeAndRarityToSectorSupply[_landType][LEGENDARY_RARITY] = legendarySupply;
    landTypeAndRarityToSectorSupply[_landType][EPIC_RARITY] = epicSupply;
    landTypeAndRarityToSectorSupply[_landType][RARE_RARITY] = rareSupply;
    landTypeAndRarityToSectorSupply[_landType][UNCOMMON_RARITY] = uncommonSupply;
    landTypeAndRarityToSectorSupply[_landType][COMMON_RARITY] = commonSupply;
  }

  function approve(address _to, uint256 _tokenId) public {
    require(allowed[_tokenId]);
    super.approve(_to, _tokenId);
  }

  function transferFrom(address _from, address _to, uint256 _tokenId) public {
    require(allowed[_tokenId]);
    super.transferFrom(_from, _to, _tokenId);
  }

  function unLockToken(uint256 _tokenId) public onlyMinter {
    allowed[_tokenId] = true;
  }

  function setTokenURIPrefix(string calldata _tokenURIPrefix) external onlyMinter {
    tokenURIPrefix = _tokenURIPrefix;
  }

  function isAlreadyMinted(uint256 _tokenId) public view returns (bool) {
    return _exists(_tokenId);
  }

  function isValidLandSector(uint256 _tokenId) public view returns (bool) {
    uint16 rarity = getRarity(_tokenId);
    if (!(rarityToSectorVolume[rarity] > 0)) {
      return false;
    }
    uint16 landType = getLandType(_tokenId);
    if (!(landTypeToTotalVolume[landType] > 0)) {
      return false;
    }
    uint256 serial = _tokenId % 10000;
    if (serial == 0) {
      return false;
    }
    if (serial > landTypeAndRarityToSectorSupply[landType][rarity]) {
      return false;
    }
    return true;
  }

  function canTransfer(uint256 _tokenId) public view returns (bool) {
    return allowed[_tokenId];
  }

  function getTotalVolume(uint16 _landType) public view returns (uint256) {
    return landTypeToTotalVolume[_landType];
  }

  function getSectorSupplyLimit(uint16 _landType) public view returns (uint256) {
    return landTypeToSectorSupplyLimit[_landType];
  }

  function getLandType(uint256 _landSector) public view returns (uint16) {
    uint16 _landType = uint16((_landSector.div(10000)) % 1000);
    return _landType;
  }

  function getRarity(uint256 _landSector) public view returns (uint16) {
    return uint16(_landSector.div(10**7));
  }

  function getMintedSectorCount(uint16 _landType) public view returns (uint256) {
    return landTypeToLandSectorIndex[_landType];
  }

  function getMintedSectorCountByRarity(uint16 _landType, uint16 _rarity) public view returns (uint256) {
    return landTypeAndRarityToLandSectorCount[_landType][_rarity];
  }

  function getSectorSupplyByRarity(uint16 _landType, uint16 _rarity) public view returns (uint256) {
    return landTypeAndRarityToSectorSupply[_landType][_rarity];
  }

  function getMintedSectorList(uint16 _landType) public view returns (uint256[] memory) {
    return landTypeToLandSectorList[_landType];
  }

  function getSectorVolumeByRarity(uint16 _rarity) public view returns (uint256) {
    return rarityToSectorVolume[_rarity];
  }

  function getShareRateWithDecimal(uint256 _landSector) public view returns (uint256, uint256) {
    return (
      getSectorVolumeByRarity(getRarity(_landSector))
        .mul(SHARE_RATE_DECIMAL)
        .div(getTotalVolume(getLandType(_landSector))),
      SHARE_RATE_DECIMAL
    );
  }

  function mintLandSector(address _owner, uint256 _landSector, bytes32 _eventHash) public onlyMinter {
    require(!isAlreadyMinted(_landSector));
    require(isValidLandSector(_landSector));
    uint16 _landType = getLandType(_landSector);
    require(landTypeToLandSectorIndex[_landType] < landTypeToSectorSupplyLimit[_landType]);
    uint16 rarity = getRarity(_landSector);
    require(landTypeAndRarityToLandSectorCount[_landType][rarity] < landTypeAndRarityToSectorSupply[_landType][rarity], "supply over");
    _mint(_owner, _landSector);
    landTypeToLandSectorList[_landType].push(_landSector);
    landTypeToLandSectorIndex[_landType]++;
    landTypeAndRarityToLandSectorCount[_landType][rarity]++;

    emit MintEvent(
      _owner,
      _landSector,
      block.timestamp,
      _eventHash
    );
  }

  function tokenURI(uint256 _tokenId) public view returns (string memory) {
    bytes32 tokenIdBytes;
    if (_tokenId == 0) {
      tokenIdBytes = "0";
    } else {
      uint256 value = _tokenId;
      while (value > 0) {
        tokenIdBytes = bytes32(uint256(tokenIdBytes) / (2 ** 8));
        tokenIdBytes |= bytes32(((value % 10) + 48) * 2 ** (8 * 31));
        value /= 10;
      }
    }

    bytes memory prefixBytes = bytes(tokenURIPrefix);
    bytes memory tokenURIBytes = new bytes(prefixBytes.length + tokenIdBytes.length);

    uint8 i;
    uint8 index = 0;

    for (i = 0; i < prefixBytes.length; i++) {
      tokenURIBytes[index] = prefixBytes[i];
      index++;
    }

    for (i = 0; i < tokenIdBytes.length; i++) {
      tokenURIBytes[index] = tokenIdBytes[i];
      index++;
    }

    return string(tokenURIBytes);
  }
}
/* solhint-enable indent*/

contract MCHLandPool is Ownable, Pausable, ReentrancyGuard {
  using SafeMath for uint256;


  LandSectorAsset public landSectorAsset;

  mapping(uint16 => uint256) private landTypeToTotalAmount;
  mapping(uint256 => uint256) private landSectorToWithdrawnAmount;
  mapping(address => bool) private allowedAddresses;

  event EthAddedToPool(
    uint16 indexed landType,
    address txSender,
    address indexed purchaseBy,
    uint256 value,
    uint256 at
  );

  event WithdrawEther(
    uint256 indexed landSector,
    address indexed lord,
    uint256 value,
    uint256 at
  );

  event AllowedAddressSet(
    address allowedAddress,
    bool allowedStatus
  );

  constructor(address _landSectorAssetAddress) public {
    landSectorAsset = LandSectorAsset(_landSectorAssetAddress);
  }

  function setLandSectorAssetAddress(address _landSectorAssetAddress) external onlyOwner() {
    landSectorAsset = LandSectorAsset(_landSectorAssetAddress);
  }

  function setAllowedAddress(address _address, bool desired) external onlyOwner() {
    allowedAddresses[_address] = desired;
    emit AllowedAddressSet(
      _address,
      desired
    );
  }

  function addEthToLandPool(uint16 _landType, address _purchaseBy) external payable whenNotPaused() nonReentrant() {
    require(landSectorAsset.getTotalVolume(_landType) > 0);
    require(allowedAddresses[msg.sender]);
    landTypeToTotalAmount[_landType] += msg.value;

    emit EthAddedToPool(
      _landType,
      msg.sender,
      _purchaseBy,
      msg.value,
      block.timestamp
    );
  }

  function withdrawMyAllRewards() external whenNotPaused() nonReentrant() {
    require(getWithdrawableBalance(msg.sender) > 0);

    uint256 withdrawValue;
    uint256 balance = landSectorAsset.balanceOf(msg.sender);
    
    for (uint256 i=balance; i > 0; i--) {
      uint256 landSector = landSectorAsset.tokenOfOwnerByIndex(msg.sender, i-1);
      uint256 tmpAmount = getLandSectorWithdrawableBalance(landSector);
      withdrawValue += tmpAmount;
      landSectorToWithdrawnAmount[landSector] += tmpAmount;

      emit WithdrawEther(
        landSector,
        msg.sender,
        tmpAmount,
        block.timestamp
      );
    }
    msg.sender.transfer(withdrawValue);
  }

  function withdrawMyReward(uint256 _landSector) external whenNotPaused() nonReentrant() {
    require(landSectorAsset.ownerOf(_landSector) == msg.sender);
    uint256 withdrawableAmount = getLandSectorWithdrawableBalance(_landSector);
    require(withdrawableAmount > 0);

    landSectorToWithdrawnAmount[_landSector] += withdrawableAmount;
    msg.sender.transfer(withdrawableAmount);

    emit WithdrawEther(
      _landSector,
      msg.sender,
      withdrawableAmount,
      block.timestamp
    );
  }

  function getAllowedAddress(address _address) public view returns (bool) {
    return allowedAddresses[_address];
  }

  function getTotalEthBackAmountPerLandType(uint16 _landType) public view returns (uint256) {
    return landTypeToTotalAmount[_landType];
  }

  function getLandSectorWithdrawnAmount(uint256 _landSector) public view returns (uint256) {
    return landSectorToWithdrawnAmount[_landSector];
  }

  function getLandSectorWithdrawableBalance(uint256 _landSector) public view returns (uint256) {
    require(landSectorAsset.isValidLandSector(_landSector));
    uint16 _landType = landSectorAsset.getLandType(_landSector);
    (uint256 shareRate, uint256 decimal) = landSectorAsset.getShareRateWithDecimal(_landSector);
    uint256 maxAmount = landTypeToTotalAmount[_landType]
      .mul(shareRate)
      .div(decimal);
    return maxAmount.sub(landSectorToWithdrawnAmount[_landSector]);
  }

  function getWithdrawableBalance(address _lordAddress) public view returns (uint256) {
    uint256 balance = landSectorAsset.balanceOf(_lordAddress);
    uint256 withdrawableAmount;

    for (uint256 i=balance; i > 0; i--) {
      uint256 landSector = landSectorAsset.tokenOfOwnerByIndex(_lordAddress, i-1);
      withdrawableAmount += getLandSectorWithdrawableBalance(landSector);
    }

    return withdrawableAmount;
  }
}
/* solhint-enable indent*/

contract MCHGUMGatewayV8 is DJTBase {

  struct Campaign {
    uint256 since;
    uint256 until;
    uint8 purchaseType;
  }

  Campaign public campaign;

  mapping(uint256 => bool) public payableOptions;
  address public validater;

  LandSectorAsset public landSectorAsset;
  MCHLandPool public landPool;
  uint256 public landPercentage;

  event Sold(
    address indexed user,
    address indexed referrer,
    uint8 purchaseType,
    uint256 grossValue,
    uint256 referralValue,
    uint256 landValue,
    uint256 netValue,
    uint16 indexed landType
  );

  event CampaignUpdated(
    uint256 since,
    uint256 until,
    uint8 purchaseType
  );

  event LandPercentageUpdated(
    uint256 landPercentage
  );

  constructor(
              address _validater,
              address _landSectorAssetAddress,
              address _landPoolAddress
  ) public payable {
    validater = _validater;
    landSectorAsset = LandSectorAsset(_landSectorAssetAddress);
    landPool = MCHLandPool(_landPoolAddress);

    campaign = Campaign(0, 0, 0);
    landPercentage = 30;

    payableOptions[0.05 ether] = true;
    payableOptions[0.1 ether] = true;
    payableOptions[0.5 ether] = true;
    payableOptions[1 ether] = true;
    payableOptions[5 ether] = true;
    payableOptions[10 ether] = true;
  }

  function setValidater(address _varidater) external onlyOwner() {
    validater = _varidater;
  }

  function setPayableOption(uint256 _option, bool desired) external onlyOwner() {
    payableOptions[_option] = desired;
  }

  function setCampaign(uint256 _since, uint256 _until, uint8 _purchaseType) external onlyOwner() {
    campaign = Campaign(_since, _until, _purchaseType);
    emit CampaignUpdated(_since, _until, _purchaseType);
  }

  function setLandSectorAssetAddress(address _landSectorAssetAddress) external onlyOwner() {
    landSectorAsset = LandSectorAsset(_landSectorAssetAddress);
  }

  function setLandPoolAddress(address payable _landPoolAddress) external onlyOwner() {
    landPool = MCHLandPool(_landPoolAddress);
  }

  function updateLandPercentage(uint256 _newLandPercentage) external onlyOwner() {
    landPercentage = _newLandPercentage;
    emit LandPercentageUpdated(
      landPercentage
    );
  }

  function buyGUM(
                  address payable _referrer,
                  uint256 _referralPercentage,
                  uint16 _landType,
                  bytes calldata _signature
                  ) external payable whenNotPaused() {

    require(_referralPercentage + landPercentage <= 100, "Invalid percentages");
    require(payableOptions[msg.value], "Invalid msg.value");
    require(validateSig(encodeData(msg.sender, _referrer, _referralPercentage, _landType), _signature), "Invalid signature");

    uint256 referralValue = _referrerBack(_referrer, _referralPercentage);
    uint256 landValue = _landPoolBack(_landType);
    uint256 netValue = msg.value.sub(referralValue).sub(landValue);

    emit Sold(
      msg.sender,
      _referrer,
      getPurchaseType(block.number),
      msg.value,
      referralValue,
      landValue,
      netValue,
      _landType
    );
  }

  function getPurchaseType(uint256 _block) public view returns (uint8) {
    // Define purchaseType
    // enum PurchaseType {
    //   PURCHASE_NORMAL = 0;
    //   PURCHASE_ETH_BACK = 1;
    // }
    if(campaign.until < _block) {
      return 0;
    }
    if(campaign.since > _block) {
      return 0;
    }
    return campaign.purchaseType;
  }

  function _landPoolBack(uint16 _landType) internal returns (uint256) {
    if(_landType == 0) {
      return 0;
    }
    require(landSectorAsset.getTotalVolume(_landType) != 0, "Invalid _landType");

    uint256 landValue;
    landValue = msg.value.mul(landPercentage).div(100);
    landPool.addEthToLandPool.value(landValue)(_landType, msg.sender);
    return landValue;
  }

  function _referrerBack(address payable _referrer, uint256 _referralPercentage) internal returns (uint256) {
    if(_referrer == address(0x0) || _referrer == msg.sender) {
      return 0;
    }

    uint256 referralValue;
    referralValue = msg.value.mul(_referralPercentage).div(100);
    _referrer.transfer(referralValue);
    return referralValue;
  }

  function encodeData(address _sender, address _referrer, uint256 _referralPercentage, uint16 _landType) public pure returns (bytes32) {
    return keccak256(abi.encode(
                                _sender,
                                _referrer,
                                _referralPercentage,
                                _landType
                                )
                     );
  }

  function validateSig(bytes32 _message, bytes memory _signature) public view returns (bool) {
    require(validater != address(0), "validater must be setted");
    address signer = ECDSA.recover(ECDSA.toEthSignedMessageHash(_message), _signature);
    return (signer == validater);
  }

  function kill() external onlyOwner() {
    selfdestruct(msg.sender);
  }
}
/* solhint-enable indent*/

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_sender","type":"address"},{"name":"_referrer","type":"address"},{"name":"_referralPercentage","type":"uint256"},{"name":"_landType","type":"uint16"}],"name":"encodeData","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_referrer","type":"address"},{"name":"_referralPercentage","type":"uint256"},{"name":"_landType","type":"uint16"},{"name":"_signature","type":"bytes"}],"name":"buyGUM","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_landSectorAssetAddress","type":"address"}],"name":"setLandSectorAssetAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPauser","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"landPercentage","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_landPoolAddress","type":"address"}],"name":"setLandPoolAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_option","type":"uint256"},{"name":"desired","type":"bool"}],"name":"setPayableOption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newLandPercentage","type":"uint256"}],"name":"updateLandPercentage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"campaign","outputs":[{"name":"since","type":"uint256"},{"name":"until","type":"uint256"},{"name":"purchaseType","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"withdrawToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"payableOptions","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"landPool","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_since","type":"uint256"},{"name":"_until","type":"uint256"},{"name":"_purchaseType","type":"uint8"}],"name":"setCampaign","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_varidater","type":"address"}],"name":"setValidater","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_message","type":"bytes32"},{"name":"_signature","type":"bytes"}],"name":"validateSig","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"validater","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"landSectorAsset","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_block","type":"uint256"}],"name":"getPurchaseType","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_validater","type":"address"},{"name":"_landSectorAssetAddress","type":"address"},{"name":"_landPoolAddress","type":"address"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"referrer","type":"address"},{"indexed":false,"name":"purchaseType","type":"uint8"},{"indexed":false,"name":"grossValue","type":"uint256"},{"indexed":false,"name":"referralValue","type":"uint256"},{"indexed":false,"name":"landValue","type":"uint256"},{"indexed":false,"name":"netValue","type":"uint256"},{"indexed":true,"name":"landType","type":"uint16"}],"name":"Sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"since","type":"uint256"},{"indexed":false,"name":"until","type":"uint256"},{"indexed":false,"name":"purchaseType","type":"uint8"}],"name":"CampaignUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"landPercentage","type":"uint256"}],"name":"LandPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6080604052604051606080620026d7833981018060405260608110156200002557600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36200012033620003aa640100000000026401000000009004565b6000600260006101000a81548160ff021916908315150217905550600160038190555082600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060604051908101604052806000815260200160008152602001600060ff168152506004600082015181600001556020820151816001015560408201518160020160006101000a81548160ff021916908360ff160217905550905050601e600b8190555060016007600066b1a2bc2ec50000815260200190815260200160002060006101000a81548160ff02191690831515021790555060016007600067016345785d8a0000815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600760006706f05b59d3b20000815260200190815260200160002060006101000a81548160ff021916908315150217905550600160076000670de0b6b3a7640000815260200190815260200160002060006101000a81548160ff021916908315150217905550600160076000674563918244f40000815260200190815260200160002060006101000a81548160ff021916908315150217905550600160076000678ac7230489e80000815260200190815260200160002060006101000a81548160ff0219169083151502179055505050506200056c565b620003ce81600162000414640100000000026200207f179091906401000000009004565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200045157600080fd5b6200046c8282620004d7640100000000026401000000009004565b1515156200047957600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200051557600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61215b806200057c6000396000f3fe6080604052600436106101df576000357c010000000000000000000000000000000000000000000000000000000090048063811e539c11610114578063996bf1bd116100b2578063d95b18eb11610081578063d95b18eb14610941578063dba8f3f614610998578063e2914b87146109ef578063f2fde38b14610a44576101df565b8063996bf1bd1461075d578063b8253b42146107b4578063c14e50ce14610806578063d86c8cfd14610857576101df565b806389476069116100ee578063894760691461063357806389702850146106845780638da5cb5b146106d75780638f32d59b1461072e576101df565b8063811e539c1461058c57806382dc1ec4146105cb5780638456cb591461061c576101df565b80635c975abb116101815780636ef8d66d1161015b5780636ef8d66d1461050c578063715018a6146105235780637362377b1461053a57806376393f9114610551576101df565b80635c975abb1461044557806365f892ad14610474578063662fa38f146104c5576101df565b80633f4ba83a116101bd5780633f4ba83a1461038357806341c0e1b51461039a57806346fbf68e146103b15780634a8f85701461041a576101df565b80630f43dd90146101e4578063277a3f7a146102815780632d09986f14610332575b600080fd5b3480156101f057600080fd5b5061026b6004803603608081101561020757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803561ffff169060200190929190505050610a95565b6040518082815260200191505060405180910390f35b6103306004803603608081101561029757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803561ffff169060200190929190803590602001906401000000008111156102ec57600080fd5b8201836020820111156102fe57600080fd5b8035906020019184600183028401116401000000008311171561032057600080fd5b9091929391929390505050610b40565b005b34801561033e57600080fd5b506103816004803603602081101561035557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e21565b005b34801561038f57600080fd5b50610398610e78565b005b3480156103a657600080fd5b506103af610f27565b005b3480156103bd57600080fd5b50610400600480360360208110156103d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f53565b604051808215151515815260200191505060405180910390f35b34801561042657600080fd5b5061042f610f70565b6040518082815260200191505060405180910390f35b34801561045157600080fd5b5061045a610f76565b604051808215151515815260200191505060405180910390f35b34801561048057600080fd5b506104c36004803603602081101561049757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f8d565b005b3480156104d157600080fd5b5061050a600480360360408110156104e857600080fd5b8101908080359060200190929190803515159060200190929190505050610fe4565b005b34801561051857600080fd5b50610521611026565b005b34801561052f57600080fd5b50610538611031565b005b34801561054657600080fd5b5061054f611103565b005b34801561055d57600080fd5b5061058a6004803603602081101561057457600080fd5b8101908080359060200190929190505050611176565b005b34801561059857600080fd5b506105a16111cc565b604051808481526020018381526020018260ff1660ff168152602001935050505060405180910390f35b3480156105d757600080fd5b5061061a600480360360208110156105ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111f1565b005b34801561062857600080fd5b50610631611211565b005b34801561063f57600080fd5b506106826004803603602081101561065657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112c1565b005b34801561069057600080fd5b506106bd600480360360208110156106a757600080fd5b8101908080359060200190929190505050611493565b604051808215151515815260200191505060405180910390f35b3480156106e357600080fd5b506106ec6114b3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561073a57600080fd5b506107436114dc565b604051808215151515815260200191505060405180910390f35b34801561076957600080fd5b50610772611533565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156107c057600080fd5b50610804600480360360608110156107d757600080fd5b810190808035906020019092919080359060200190929190803560ff169060200190929190505050611559565b005b34801561081257600080fd5b506108556004803603602081101561082957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611617565b005b34801561086357600080fd5b506109276004803603604081101561087a57600080fd5b8101908080359060200190929190803590602001906401000000008111156108a157600080fd5b8201836020820111156108b357600080fd5b803590602001918460018302840111640100000000831117156108d557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061166e565b604051808215151515815260200191505060405180910390f35b34801561094d57600080fd5b506109566117a6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109a457600080fd5b506109ad6117cc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109fb57600080fd5b50610a2860048036036020811015610a1257600080fd5b81019080803590602001909291905050506117f2565b604051808260ff1660ff16815260200191505060405180910390f35b348015610a5057600080fd5b50610a9360048036036020811015610a6757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061183b565b005b600084848484604051602001808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1661ffff168152602001945050505050604051602081830303815290604052805190602001209050949350505050565b600260009054906101000a900460ff16151515610b5c57600080fd5b6064600b54850111151515610bd9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c69642070657263656e74616765730000000000000000000000000081525060200191505060405180910390fd5b6007600034815260200190815260200160002060009054906101000a900460ff161515610c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f496e76616c6964206d73672e76616c756500000000000000000000000000000081525060200191505060405180910390fd5b610cc7610c7d33878787610a95565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061166e565b1515610d3b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f496e76616c6964207369676e617475726500000000000000000000000000000081525060200191505060405180910390fd5b6000610d47868661185a565b90506000610d548561194b565b90506000610d7d82610d6f8534611bc890919063ffffffff16565b611bc890919063ffffffff16565b90508561ffff168873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fef8be8195589a8a6990d8ec940c79dd6a43c0ac18064d5682feeb99c599dd3e5610ddc436117f2565b34888888604051808660ff1660ff1681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a45050505050505050565b610e296114dc565b1515610e3457600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e8133610f53565b1515610e8c57600080fd5b600260009054906101000a900460ff161515610ea757600080fd5b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b610f2f6114dc565b1515610f3a57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff16ff5b6000610f69826001611bea90919063ffffffff16565b9050919050565b600b5481565b6000600260009054906101000a900460ff16905090565b610f956114dc565b1515610fa057600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610fec6114dc565b1515610ff757600080fd5b806007600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61102f33611c7e565b565b6110396114dc565b151561104457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61110b6114dc565b151561111657600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015611173573d6000803e3d6000fd5b50565b61117e6114dc565b151561118957600080fd5b80600b819055507f91b44a7a4ce6e4f9b48fdbde6dac3ab5a404e28ba7b2c91414156c5f7c8e62ed600b546040518082815260200191505060405180910390a150565b60048060000154908060010154908060020160009054906101000a900460ff16905083565b6111fa33610f53565b151561120557600080fd5b61120e81611cd8565b50565b61121a33610f53565b151561122557600080fd5b600260009054906101000a900460ff1615151561124157600080fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6112c96114dc565b15156112d457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561138a57600080fd5b505afa15801561139e573d6000803e3d6000fd5b505050506040513d60208110156113b457600080fd5b81019080805190602001909291905050506040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561144a57600080fd5b505af115801561145e573d6000803e3d6000fd5b505050506040513d602081101561147457600080fd5b8101908080519060200190929190505050151561149057600080fd5b50565b60076020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115616114dc565b151561156c57600080fd5b6060604051908101604052808481526020018381526020018260ff168152506004600082015181600001556020820151816001015560408201518160020160006101000a81548160ff021916908360ff1602179055509050507feb839054d741027646991567a20472652cff958f8cd4dc24603baebff20c9d6f838383604051808481526020018381526020018260ff1660ff168152602001935050505060405180910390a1505050565b61161f6114dc565b151561162a57600080fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515611736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f76616c696461746572206d75737420626520736574746564000000000000000081525060200191505060405180910390fd5b600061174a61174485611d32565b84611d8a565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081600460010154101561180a5760009050611836565b8160046000015411156118205760009050611836565b600460020160009054906101000a900460ff1690505b919050565b6118436114dc565b151561184e57600080fd5b61185781611e6e565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806118c157503373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156118cf5760009050611945565b60006118f760646118e98534611f6890919063ffffffff16565b611fa690919063ffffffff16565b90508373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561193f573d6000803e3d6000fd5b50809150505b92915050565b6000808261ffff1614156119625760009050611bc3565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fbba7b62846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808261ffff1661ffff16815260200191505060206040518083038186803b1580156119fb57600080fd5b505afa158015611a0f573d6000803e3d6000fd5b505050506040513d6020811015611a2557600080fd5b810190808051906020019092919050505014151515611aac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f496e76616c6964205f6c616e645479706500000000000000000000000000000081525060200191505060405180910390fd5b6000611ad66064611ac8600b5434611f6890919063ffffffff16565b611fa690919063ffffffff16565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e274e18e8285336040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808361ffff1661ffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001925050506000604051808303818588803b158015611ba557600080fd5b505af1158015611bb9573d6000803e3d6000fd5b5050505050809150505b919050565b6000828211151515611bd957600080fd5b600082840390508091505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611c2757600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c92816001611fd090919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e60405160405180910390a250565b611cec81600161207f90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b60008160405160200180807f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250601c01828152602001915050604051602081830303815290604052805190602001209050919050565b60008060008060418551141515611da75760009350505050611e68565b6020850151925060408501519150606085015160001a9050601b8160ff161015611dd257601b810190505b601b8160ff1614158015611dea5750601c8160ff1614155b15611dfb5760009350505050611e68565b60018682858560405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611e58573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611eaa57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080831415611f7b5760009050611fa0565b60008284029050828482811515611f8e57fe5b04141515611f9b57600080fd5b809150505b92915050565b60008082111515611fb657600080fd5b60008284811515611fc357fe5b0490508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561200c57600080fd5b6120168282611bea565b151561202157600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156120bb57600080fd5b6120c58282611bea565b1515156120d157600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505056fea165627a7a723058201a319efe76b6fdd9e78b9ddc2d49a4541dfb9ffdf233517f8008efbbc8ab48700029000000000000000000000000984e7b0f2cb06b847dd465eec65a3a41c1e27c06000000000000000000000000617913dd43dbdf4236b85ec7bdf9adfd7e35b3400000000000000000000000004a627b324189014fa757ed7cc730b180879232d7

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

000000000000000000000000984e7b0f2cb06b847dd465eec65a3a41c1e27c06000000000000000000000000617913dd43dbdf4236b85ec7bdf9adfd7e35b3400000000000000000000000004a627b324189014fa757ed7cc730b180879232d7

-----Decoded View---------------
Arg [0] : _validater (address): 0x984E7B0f2cB06B847dd465EEc65a3A41C1E27c06
Arg [1] : _landSectorAssetAddress (address): 0x617913Dd43dbDf4236B85Ec7BdF9aDFD7E35b340
Arg [2] : _landPoolAddress (address): 0x4A627B324189014fA757eD7cc730b180879232D7

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000984e7b0f2cb06b847dd465eec65a3a41c1e27c06
Arg [1] : 000000000000000000000000617913dd43dbdf4236b85ec7bdf9adfd7e35b340
Arg [2] : 0000000000000000000000004a627b324189014fa757ed7cc730b180879232d7


Deployed ByteCode Sourcemap

52224:5165:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56596:416;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56596:416:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;56596:416:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54549:917;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;54549:917:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;54549:917:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;54549:917:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;54549:917:0;;;;;;;;;;;;:::i;:::-;;54045:160;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54045:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;54045:160:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;14851:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14851:118:0;;;:::i;:::-;;57312:74;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57312:74:0;;;:::i;:::-;;11167:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11167:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11167:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;52548:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52548:29:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14104:78;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14104:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;54211:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54211:136:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;54211:136:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;53693:124;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53693:124:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;53693:124:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;11384:77;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11384:77:0;;;:::i;:::-;;8462:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8462:140:0;;;:::i;:::-;;15014:99;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15014:99:0;;;:::i;:::-;;54353:190;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54353:190:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;54353:190:0;;;;;;;;;;;;;;;;;:::i;:::-;;52360:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52360:24:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11284:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11284:92:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11284:92:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;14640:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14640:116:0;;;:::i;:::-;;15119:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15119:139:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15119:139:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;52391:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52391:46:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;52391:46:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;7749:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7749:79:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8084:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8084:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;52516:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52516:27:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;53823:216;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53823:216:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;53823:216:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53589:98;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53589:98:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;53589:98:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;57018:288;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57018:288:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;57018:288:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;57018:288:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;57018:288:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;57018:288:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;57018:288:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;52442:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52442:24:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;52473:38;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52473:38:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;55472:358;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55472:358:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55472:358:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8779:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8779:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8779:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;56596:416;56720:7;56798;56840:9;56884:19;56938:9;56753:229;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;56753:229:0;;;56743:263;;;;;;56736:270;;56596:416;;;;;;:::o;54549:917::-;14341:7;;;;;;;;;;;14340:8;14332:17;;;;;;;;54853:3;54835:14;;54813:19;:36;:43;;54805:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54895:14;:25;54910:9;54895:25;;;;;;;;;;;;;;;;;;;;;54887:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54957:90;54969:65;54980:10;54992:9;55003:19;55024:9;54969:10;:65::i;:::-;55036:10;;54957:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;54957:90:0;;;;;;:11;:90::i;:::-;54949:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55078:21;55102:45;55116:9;55127:19;55102:13;:45::i;:::-;55078:69;;55154:17;55174:24;55188:9;55174:13;:24::i;:::-;55154:44;;55205:16;55224:43;55257:9;55224:28;55238:13;55224:9;:13;;:28;;;;:::i;:::-;:32;;:43;;;;:::i;:::-;55205:62;;55444:9;55281:179;;55313:9;55281:179;;55294:10;55281:179;;;55331:29;55347:12;55331:15;:29::i;:::-;55369:9;55387:13;55409:9;55427:8;55281:179;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14360:1;;;54549:917;;;;;:::o;54045:160::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;54175:23;54141:15;;:58;;;;;;;;;;;;;;;;;;54045:160;:::o;14851:118::-;11118:20;11127:10;11118:8;:20::i;:::-;11110:29;;;;;;;;14520:7;;;;;;;;;;;14512:16;;;;;;;;14920:5;14910:7;;:15;;;;;;;;;;;;;;;;;;14941:20;14950:10;14941:20;;;;;;;;;;;;;;;;;;;;;;14851:118::o;57312:74::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;57369:10;57356:24;;;11167:109;11223:4;11247:21;11260:7;11247:8;:12;;:21;;;;:::i;:::-;11240:28;;11167:109;;;:::o;52548:29::-;;;;:::o;14104:78::-;14143:4;14167:7;;;;;;;;;;;14160:14;;14104:78;:::o;54211:136::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;54324:16;54301:8;;:40;;;;;;;;;;;;;;;;;;54211:136;:::o;53693:124::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;53804:7;53778:14;:23;53793:7;53778:23;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;53693:124;;:::o;11384:77::-;11428:25;11442:10;11428:13;:25::i;:::-;11384:77::o;8462:140::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;8561:1;8524:40;;8545:6;;;;;;;;;;;8524:40;;;;;;;;;;;;8592:1;8575:6;;:19;;;;;;;;;;;;;;;;;;8462:140::o;15014:99::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;15065:10;:19;;:42;15093:4;15085:21;;;15065:42;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15065:42:0;15014:99::o;54353:190::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;54456;54439:14;:35;;;;54486:51;54516:14;;54486:51;;;;;;;;;;;;;;;;;;54353:190;:::o;52360:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;11284:92::-;11118:20;11127:10;11118:8;:20::i;:::-;11110:29;;;;;;;;11349:19;11360:7;11349:10;:19::i;:::-;11284:92;:::o;14640:116::-;11118:20;11127:10;11118:8;:20::i;:::-;11110:29;;;;;;;;14341:7;;;;;;;;;;;14340:8;14332:17;;;;;;;;14710:4;14700:7;;:14;;;;;;;;;;;;;;;;;;14730:18;14737:10;14730:18;;;;;;;;;;;;;;;;;;;;;;14640:116::o;15119:139::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;15191:6;:15;;;15207:10;15219:6;:16;;;15244:4;15219:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15219:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15219:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15219:31:0;;;;;;;;;;;;;;;;15191:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15191:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15191:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15191:60:0;;;;;;;;;;;;;;;;15183:69;;;;;;;;15119:139;:::o;52391:46::-;;;;;;;;;;;;;;;;;;;;;;:::o;7749:79::-;7787:7;7814:6;;;;;;;;;;;7807:13;;7749:79;:::o;8084:92::-;8124:4;8162:6;;;;;;;;;;;8148:20;;:10;:20;;;8141:27;;8084:92;:::o;52516:27::-;;;;;;;;;;;;;:::o;53823:216::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;53936:39;;;;;;;;;53945:6;53936:39;;;;53953:6;53936:39;;;;53961:13;53936:39;;;;;53925:8;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53987:46;54003:6;54011;54019:13;53987:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53823:216;;;:::o;53589:98::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;53671:10;53659:9;;:22;;;;;;;;;;;;;;;;;;53589:98;:::o;57018:288::-;57103:4;57145:1;57124:23;;:9;;;;;;;;;;;:23;;;;57116:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57183:14;57200:65;57214:38;57243:8;57214:28;:38::i;:::-;57254:10;57200:13;:65::i;:::-;57183:82;;57290:9;;;;;;;;;;;57280:19;;:6;:19;;;57272:28;;;57018:288;;;;:::o;52442:24::-;;;;;;;;;;;;;:::o;52473:38::-;;;;;;;;;;;;;:::o;55472:358::-;55534:5;55698:6;55681:8;:14;;;:23;55678:53;;;55722:1;55715:8;;;;55678:53;55757:6;55740:8;:14;;;:23;55737:53;;;55781:1;55774:8;;;;55737:53;55803:8;:21;;;;;;;;;;;;55796:28;;55472:358;;;;:::o;8779:109::-;7961:9;:7;:9::i;:::-;7953:18;;;;;;;;8852:28;8871:8;8852:18;:28::i;:::-;8779:109;:::o;56227:363::-;56324:7;56364:3;56343:25;;:9;:25;;;:52;;;;56385:10;56372:23;;:9;:23;;;56343:52;56340:82;;;56413:1;56406:8;;;;56340:82;56430:21;56474:43;56513:3;56474:34;56488:19;56474:9;:13;;:34;;;;:::i;:::-;:38;;:43;;;;:::i;:::-;56458:59;;56524:9;:18;;:33;56543:13;56524:33;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56524:33:0;56571:13;56564:20;;;56227:363;;;;;:::o;55836:385::-;55895:7;55927:1;55914:9;:14;;;55911:44;;;55946:1;55939:8;;;;55911:44;56014:1;55969:15;;;;;;;;;;;:30;;;56000:9;55969:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55969:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55969:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55969:41:0;;;;;;;;;;;;;;;;:46;;55961:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56046:17;56082:38;56116:3;56082:29;56096:14;;56082:9;:13;;:29;;;;:::i;:::-;:33;;:38;;;;:::i;:::-;56070:50;;56127:8;;;;;;;;;;;:25;;;56159:9;56170;56181:10;56127:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56127:65:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56127:65:0;;;;;56206:9;56199:16;;;55836:385;;;;:::o;6613:150::-;6671:7;6704:1;6699;:6;;6691:15;;;;;;;;6717:9;6733:1;6729;:5;6717:17;;6754:1;6747:8;;;6613:150;;;;:::o;2906:165::-;2978:4;3022:1;3003:21;;:7;:21;;;;2995:30;;;;;;;;3043:4;:11;;:20;3055:7;3043:20;;;;;;;;;;;;;;;;;;;;;;;;;3036:27;;2906:165;;;;:::o;11599:130::-;11659:24;11675:7;11659:8;:15;;:24;;;;:::i;:::-;11713:7;11699:22;;;;;;;;;;;;11599:130;:::o;11469:122::-;11526:21;11539:7;11526:8;:12;;:21;;;;:::i;:::-;11575:7;11563:20;;;;;;;;;;;;11469:122;:::o;1923:269::-;1992:7;2178:4;2125:58;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2125:58:0;;;2115:69;;;;;;2108:76;;1923:269;;;:::o;709:1057::-;787:7;807:9;827;847:7;930:2;910:9;:16;:22;;906:74;;;965:1;949:19;;;;;;;906:74;1281:4;1270:9;1266:20;1260:27;1255:32;;1327:4;1316:9;1312:20;1306:27;1301:32;;1381:4;1370:9;1366:20;1360:27;1357:1;1352:36;1347:41;;1511:2;1507:1;:6;;;1503:46;;;1535:2;1530:7;;;;1503:46;1634:2;1629:1;:7;;;;:18;;;;;1645:2;1640:1;:7;;;;1629:18;1625:134;;;1680:1;1664:19;;;;;;;1625:134;1723:24;1733:4;1739:1;1742;1745;1723:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1723:24:0;;;;;;;;1716:31;;;;;709:1057;;;;;:::o;9038:187::-;9132:1;9112:22;;:8;:22;;;;9104:31;;;;;;;;9180:8;9151:38;;9172:6;;;;;;;;;;;9151:38;;;;;;;;;;;;9209:8;9200:6;;:17;;;;;;;;;;;;;;;;;;9038:187;:::o;5608:433::-;5666:7;5915:1;5910;:6;5906:47;;;5940:1;5933:8;;;;5906:47;5965:9;5981:1;5977;:5;5965:17;;6010:1;6005;6001;:5;;;;;;;;:10;5993:19;;;;;;;;6032:1;6025:8;;;5608:433;;;;;:::o;6174:303::-;6232:7;6331:1;6327;:5;6319:14;;;;;;;;6344:9;6360:1;6356;:5;;;;;;;;6344:17;;6468:1;6461:8;;;6174:303;;;;:::o;2623:189::-;2722:1;2703:21;;:7;:21;;;;2695:30;;;;;;;;2744:18;2748:4;2754:7;2744:3;:18::i;:::-;2736:27;;;;;;;;2799:5;2776:4;:11;;:20;2788:7;2776:20;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;2623:189;;:::o;2358:186::-;2454:1;2435:21;;:7;:21;;;;2427:30;;;;;;;;2477:18;2481:4;2487:7;2477:3;:18::i;:::-;2476:19;2468:28;;;;;;;;2532:4;2509;:11;;:20;2521:7;2509:20;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;2358:186;;:::o

Swarm Source

bzzr://1a319efe76b6fdd9e78b9ddc2d49a4541dfb9ffdf233517f8008efbbc8ab4870
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.