ETH Price: $2,682.81 (+2.00%)
Gas: 1 Gwei

Token

Lair Ownership Token (LOT)
 

Overview

Max Total Supply

0 LOT

Holders

79

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xdc6c760b824fced2bb8d6c528e519f81e4e5bc9d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LairOwnershipToken

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-08
*/

pragma solidity >=0.5.0;


/**
 * @title ERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface IERC165 {

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

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
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, "SafeMath#mul: OVERFLOW");

    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, "SafeMath#div: DIVISION_BY_ZERO");
    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, "SafeMath#sub: UNDERFLOW");
    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, "SafeMath#add: OVERFLOW");

    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, "SafeMath#mod: DIVISION_BY_ZERO");
    return a % b;
  }

}

/**
 * @dev ERC-1155 interface for accepting safe transfers.
 */
interface IERC1155TokenReceiver {

  /**
   * @notice Handle the receipt of a single ERC1155 token type
   * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated
   * This function MAY throw to revert and reject the transfer
   * Return of other amount than the magic value MUST result in the transaction being reverted
   * Note: The token contract address is always the message sender
   * @param _operator  The address which called the `safeTransferFrom` function
   * @param _from      The address which previously owned the token
   * @param _id        The id of the token being transferred
   * @param _amount    The amount of tokens being transferred
   * @param _data      Additional data with no specified format
   * @return           `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
   */
  function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes calldata _data) external returns(bytes4);

  /**
   * @notice Handle the receipt of multiple ERC1155 token types
   * @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated
   * This function MAY throw to revert and reject the transfer
   * Return of other amount than the magic value WILL result in the transaction being reverted
   * Note: The token contract address is always the message sender
   * @param _operator  The address which called the `safeBatchTransferFrom` function
   * @param _from      The address which previously owned the token
   * @param _ids       An array containing ids of each token being transferred
   * @param _amounts   An array containing amounts of each token being transferred
   * @param _data      Additional data with no specified format
   * @return           `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
   */
  function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _amounts, bytes calldata _data) external returns(bytes4);

  /**
   * @notice Indicates whether a contract implements the `ERC1155TokenReceiver` functions and so can accept ERC1155 token types.
   * @param  interfaceID The ERC-165 interface ID that is queried for support.s
   * @dev This function MUST return true if it implements the ERC1155TokenReceiver interface and ERC-165 interface.
   *      This function MUST NOT consume more than 5,000 gas.
   * @return Wheter ERC-165 or ERC1155TokenReceiver interfaces are supported.
   */
  function supportsInterface(bytes4 interfaceID) external view returns (bool);

}

interface IERC1155 {
  // Events

  /**
   * @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero amount transfers as well as minting or burning
   *   Operator MUST be msg.sender
   *   When minting/creating tokens, the `_from` field MUST be set to `0x0`
   *   When burning/destroying tokens, the `_to` field MUST be set to `0x0`
   *   The total amount transferred from address 0x0 minus the total amount transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID
   *   To broadcast the existence of a token ID with no initial balance, the contract SHOULD emit the TransferSingle event from `0x0` to `0x0`, with the token creator as `_operator`, and a `_amount` of 0
   */
  event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount);

  /**
   * @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero amount transfers as well as minting or burning
   *   Operator MUST be msg.sender
   *   When minting/creating tokens, the `_from` field MUST be set to `0x0`
   *   When burning/destroying tokens, the `_to` field MUST be set to `0x0`
   *   The total amount transferred from address 0x0 minus the total amount transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID
   *   To broadcast the existence of multiple token IDs with no initial balance, this SHOULD emit the TransferBatch event from `0x0` to `0x0`, with the token creator as `_operator`, and a `_amount` of 0
   */
  event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts);

  /**
   * @dev MUST emit when an approval is updated
   */
  event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

  /**
   * @dev MUST emit when the URI is updated for a token ID
   *   URIs are defined in RFC 3986
   *   The URI MUST point a JSON file that conforms to the "ERC-1155 Metadata JSON Schema"
   */
  event URI(string _amount, uint256 indexed _id);

  /**
   * @notice Transfers amount of an _id from the _from address to the _to address specified
   * @dev MUST emit TransferSingle event on success
   * Caller must be approved to manage the _from account's tokens (see isApprovedForAll)
   * MUST throw if `_to` is the zero address
   * MUST throw if balance of sender for token `_id` is lower than the `_amount` sent
   * MUST throw on any other error
   * When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0). If so, it MUST call `onERC1155Received` on `_to` and revert if the return amount is not `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
   * @param _from    Source address
   * @param _to      Target address
   * @param _id      ID of the token type
   * @param _amount  Transfered amount
   * @param _data    Additional data with no specified format, sent in call to `_to`
   */
  function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes calldata _data) external;

  /**
   * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call)
   * @dev MUST emit TransferBatch event on success
   * Caller must be approved to manage the _from account's tokens (see isApprovedForAll)
   * MUST throw if `_to` is the zero address
   * MUST throw if length of `_ids` is not the same as length of `_amounts`
   * MUST throw if any of the balance of sender for token `_ids` is lower than the respective `_amounts` sent
   * MUST throw on any other error
   * When transfer is complete, this function MUST check if `_to` is a smart contract (code size > 0). If so, it MUST call `onERC1155BatchReceived` on `_to` and revert if the return amount is not `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
   * Transfers and events MUST occur in the array order they were submitted (_ids[0] before _ids[1], etc)
   * @param _from     Source addresses
   * @param _to       Target addresses
   * @param _ids      IDs of each token type
   * @param _amounts  Transfer amounts per token type
   * @param _data     Additional data with no specified format, sent in call to `_to`
  */
  function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _amounts, bytes calldata _data) external;
  
  /**
   * @notice Get the balance of an account's Tokens
   * @param _owner  The address of the token holder
   * @param _id     ID of the Token
   * @return        The _owner's balance of the Token type requested
   */
  function balanceOf(address _owner, uint256 _id) external view returns (uint256);

  /**
   * @notice Get the balance of multiple account/token pairs
   * @param _owners The addresses of the token holders
   * @param _ids    ID of the Tokens
   * @return        The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair)
   */
  function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory);

  /**
   * @notice Enable or disable approval for a third party ("operator") to manage all of caller's tokens
   * @dev MUST emit the ApprovalForAll event on success
   * @param _operator  Address to add to the set of authorized operators
   * @param _approved  True if the operator is approved, false to revoke approval
   */
  function setApprovalForAll(address _operator, bool _approved) external;

  /**
   * @notice Queries the approval status of an operator for a given owner
   * @param _owner     The owner of the Tokens
   * @param _operator  Address of authorized operator
   * @return           True if the operator is approved, false if not
   */
  function isApprovedForAll(address _owner, address _operator) external view returns (bool isOperator);

}

/**
 * Copyright 2018 ZeroEx Intl.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *   http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * Utility library of inline functions on addresses
 */
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) {
    bytes32 codehash;
    bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;

    // 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.
    assembly { codehash := extcodehash(account) }
    return (codehash != 0x0 && codehash != accountHash);
  }

}

/**
 * @dev Implementation of Multi-Token Standard contract
 */
contract ERC1155 is IERC165 {
  using SafeMath for uint256;
  using Address for address;


  /***********************************|
  |        Variables and Events       |
  |__________________________________*/

  // onReceive function signatures
  bytes4 constant internal ERC1155_RECEIVED_VALUE = 0xf23a6e61;
  bytes4 constant internal ERC1155_BATCH_RECEIVED_VALUE = 0xbc197c81;

  // Objects balances
  mapping (address => mapping(uint256 => uint256)) internal balances;

  // Operator Functions
  mapping (address => mapping(address => bool)) internal operators;

  // Events
  event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount);
  event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts);
  event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);
  event URI(string _uri, uint256 indexed _id);


  /***********************************|
  |     Public Transfer Functions     |
  |__________________________________*/

  /**
   * @notice Transfers amount amount of an _id from the _from address to the _to address specified
   * @param _from    Source address
   * @param _to      Target address
   * @param _id      ID of the token type
   * @param _amount  Transfered amount
   * @param _data    Additional data with no specified format, sent in call to `_to`
   */
  function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes memory _data)
    public
  {
    require((msg.sender == _from) || isApprovedForAll(_from, msg.sender), "ERC1155#safeTransferFrom: INVALID_OPERATOR");
    require(_to != address(0),"ERC1155#safeTransferFrom: INVALID_RECIPIENT");
    // require(_amount >= balances[_from][_id]) is not necessary since checked with safemath operations

    _safeTransferFrom(_from, _to, _id, _amount);
    _callonERC1155Received(_from, _to, _id, _amount, _data);
  }

  /**
   * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call)
   * @param _from     Source addresses
   * @param _to       Target addresses
   * @param _ids      IDs of each token type
   * @param _amounts  Transfer amounts per token type
   * @param _data     Additional data with no specified format, sent in call to `_to`
   */
  function safeBatchTransferFrom(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data)
    public
  {
    // Requirements
    require((msg.sender == _from) || isApprovedForAll(_from, msg.sender), "ERC1155#safeBatchTransferFrom: INVALID_OPERATOR");
    require(_to != address(0), "ERC1155#safeBatchTransferFrom: INVALID_RECIPIENT");

    _safeBatchTransferFrom(_from, _to, _ids, _amounts);
    _callonERC1155BatchReceived(_from, _to, _ids, _amounts, _data);
  }


  /***********************************|
  |    Internal Transfer Functions    |
  |__________________________________*/

  /**
   * @notice Transfers amount amount of an _id from the _from address to the _to address specified
   * @param _from    Source address
   * @param _to      Target address
   * @param _id      ID of the token type
   * @param _amount  Transfered amount
   */
  function _safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount)
    internal
  {
    // Update balances
    balances[_from][_id] = balances[_from][_id].sub(_amount); // Subtract amount
    balances[_to][_id] = balances[_to][_id].add(_amount);     // Add amount

    // Emit event
    emit TransferSingle(msg.sender, _from, _to, _id, _amount);
  }

  /**
   * @notice Verifies if receiver is contract and if so, calls (_to).onERC1155Received(...)
   */
  function _callonERC1155Received(address _from, address _to, uint256 _id, uint256 _amount, bytes memory _data)
    internal
  {
    // Check if recipient is contract
    if (_to.isContract()) {
      bytes4 retval = IERC1155TokenReceiver(_to).onERC1155Received(msg.sender, _from, _id, _amount, _data);
      require(retval == ERC1155_RECEIVED_VALUE, "ERC1155#_callonERC1155Received: INVALID_ON_RECEIVE_MESSAGE");
    }
  }

  /**
   * @notice Send multiple types of Tokens from the _from address to the _to address (with safety call)
   * @param _from     Source addresses
   * @param _to       Target addresses
   * @param _ids      IDs of each token type
   * @param _amounts  Transfer amounts per token type
   */
  function _safeBatchTransferFrom(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts)
    internal
  {
    require(_ids.length == _amounts.length, "ERC1155#_safeBatchTransferFrom: INVALID_ARRAYS_LENGTH");

    // Number of transfer to execute
    uint256 nTransfer = _ids.length;

    // Executing all transfers
    for (uint256 i = 0; i < nTransfer; i++) {
      // Update storage balance of previous bin
      balances[_from][_ids[i]] = balances[_from][_ids[i]].sub(_amounts[i]);
      balances[_to][_ids[i]] = balances[_to][_ids[i]].add(_amounts[i]);
    }

    // Emit event
    emit TransferBatch(msg.sender, _from, _to, _ids, _amounts);
  }

  /**
   * @notice Verifies if receiver is contract and if so, calls (_to).onERC1155BatchReceived(...)
   */
  function _callonERC1155BatchReceived(address _from, address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data)
    internal
  {
    // Pass data if recipient is contract
    if (_to.isContract()) {
      bytes4 retval = IERC1155TokenReceiver(_to).onERC1155BatchReceived(msg.sender, _from, _ids, _amounts, _data);
      require(retval == ERC1155_BATCH_RECEIVED_VALUE, "ERC1155#_callonERC1155BatchReceived: INVALID_ON_RECEIVE_MESSAGE");
    }
  }


  /***********************************|
  |         Operator Functions        |
  |__________________________________*/

  /**
   * @notice Enable or disable approval for a third party ("operator") to manage all of caller's tokens
   * @param _operator  Address to add to the set of authorized operators
   * @param _approved  True if the operator is approved, false to revoke approval
   */
  function setApprovalForAll(address _operator, bool _approved)
    external
  {
    // Update operator status
    operators[msg.sender][_operator] = _approved;
    emit ApprovalForAll(msg.sender, _operator, _approved);
  }

  /**
   * @notice Queries the approval status of an operator for a given owner
   * @param _owner     The owner of the Tokens
   * @param _operator  Address of authorized operator
   * @return True if the operator is approved, false if not
   */
  function isApprovedForAll(address _owner, address _operator)
    public view returns (bool isOperator)
  {
    return operators[_owner][_operator];
  }


  /***********************************|
  |         Balance Functions         |
  |__________________________________*/

  /**
   * @notice Get the balance of an account's Tokens
   * @param _owner  The address of the token holder
   * @param _id     ID of the Token
   * @return The _owner's balance of the Token type requested
   */
  function balanceOf(address _owner, uint256 _id)
    public view returns (uint256)
  {
    return balances[_owner][_id];
  }

  /**
   * @notice Get the balance of multiple account/token pairs
   * @param _owners The addresses of the token holders
   * @param _ids    ID of the Tokens
   * @return        The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair)
   */
  function balanceOfBatch(address[] memory _owners, uint256[] memory _ids)
    public view returns (uint256[] memory)
  {
    require(_owners.length == _ids.length, "ERC1155#balanceOfBatch: INVALID_ARRAY_LENGTH");

    // Variables
    uint256[] memory batchBalances = new uint256[](_owners.length);

    // Iterate over each owner and token ID
    for (uint256 i = 0; i < _owners.length; i++) {
      batchBalances[i] = balances[_owners[i]][_ids[i]];
    }

    return batchBalances;
  }


  /***********************************|
  |          ERC165 Functions         |
  |__________________________________*/

  /**
   * INTERFACE_SIGNATURE_ERC165 = bytes4(keccak256("supportsInterface(bytes4)"));
   */
  bytes4 constant private INTERFACE_SIGNATURE_ERC165 = 0x01ffc9a7;

  /**
   * INTERFACE_SIGNATURE_ERC1155 =
   * bytes4(keccak256("safeTransferFrom(address,address,uint256,uint256,bytes)")) ^
   * bytes4(keccak256("safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)")) ^
   * bytes4(keccak256("balanceOf(address,uint256)")) ^
   * bytes4(keccak256("balanceOfBatch(address[],uint256[])")) ^
   * bytes4(keccak256("setApprovalForAll(address,bool)")) ^
   * bytes4(keccak256("isApprovedForAll(address,address)"));
   */
  bytes4 constant private INTERFACE_SIGNATURE_ERC1155 = 0xd9b67a26;

  /**
   * @notice Query if a contract implements an interface
   * @param _interfaceID  The interface identifier, as specified in ERC-165
   * @return `true` if the contract implements `_interfaceID` and
   */
  function supportsInterface(bytes4 _interfaceID) external view returns (bool) {
    if (_interfaceID == INTERFACE_SIGNATURE_ERC165 ||
        _interfaceID == INTERFACE_SIGNATURE_ERC1155) {
      return true;
    }
    return false;
  }

}

/**
 * @notice Contract that handles metadata related methods.
 * @dev Methods assume a deterministic generation of URI based on token IDs.
 *      Methods also assume that URI uses hex representation of token IDs.
 */
contract ERC1155Metadata {

  // URI's default URI prefix
  string internal baseMetadataURI;
  event URI(string _uri, uint256 indexed _id);


  /***********************************|
  |     Metadata Public Function s    |
  |__________________________________*/

  /**
   * @notice A distinct Uniform Resource Identifier (URI) for a given token.
   * @dev URIs are defined in RFC 3986.
   *      URIs are assumed to be deterministically generated based on token ID
   *      Token IDs are assumed to be represented in their hex format in URIs
   * @return URI string
   */
  function uri(uint256 _id) public view returns (string memory) {
    return string(abi.encodePacked(baseMetadataURI, _uint2str(_id), ".json"));
  }


  /***********************************|
  |    Metadata Internal Functions    |
  |__________________________________*/

  /**
   * @notice Will emit default URI log event for corresponding token _id
   * @param _tokenIDs Array of IDs of tokens to log default URI
   */
  function _logURIs(uint256[] memory _tokenIDs) internal {
    string memory baseURL = baseMetadataURI;
    string memory tokenURI;

    for (uint256 i = 0; i < _tokenIDs.length; i++) {
      tokenURI = string(abi.encodePacked(baseURL, _uint2str(_tokenIDs[i]), ".json"));
      emit URI(tokenURI, _tokenIDs[i]);
    }
  }

  /**
   * @notice Will emit a specific URI log event for corresponding token
   * @param _tokenIDs IDs of the token corresponding to the _uris logged
   * @param _URIs    The URIs of the specified _tokenIDs
   */
  function _logURIs(uint256[] memory _tokenIDs, string[] memory _URIs) internal {
    require(_tokenIDs.length == _URIs.length, "ERC1155Metadata#_logURIs: INVALID_ARRAYS_LENGTH");
    for (uint256 i = 0; i < _tokenIDs.length; i++) {
      emit URI(_URIs[i], _tokenIDs[i]);
    }
  }

  /**
   * @notice Will update the base URL of token's URI
   * @param _newBaseMetadataURI New base URL of token's URI
   */
  function _setBaseMetadataURI(string memory _newBaseMetadataURI) internal {
    baseMetadataURI = _newBaseMetadataURI;
  }


  /***********************************|
  |    Utility Internal Functions     |
  |__________________________________*/

  /**
   * @notice Convert uint256 to string
   * @param _i Unsigned integer to convert to string
   */
  function _uint2str(uint256 _i) internal pure returns (string memory _uintAsString) {
    if (_i == 0) {
      return "0";
    }

    uint256 j = _i;
    uint256 ii = _i;
    uint256 len;

    // Get number of bytes
    while (j != 0) {
      len++;
      j /= 10;
    }

    bytes memory bstr = new bytes(len);
    uint256 k = len - 1;

    // Get each individual ASCII
    while (ii != 0) {
      bstr[k--] = byte(uint8(48 + ii % 10));
      ii /= 10;
    }

    // Convert to string
    return string(bstr);
  }

}

/**
 * @dev Multi-Fungible Tokens with minting and burning methods. These methods assume
 *      a parent contract to be executed as they are `internal` functions
 */
contract ERC1155MintBurn is ERC1155 {


  /****************************************|
  |            Minting Functions           |
  |_______________________________________*/

  /**
   * @notice Mint _amount of tokens of a given id
   * @param _to      The address to mint tokens to
   * @param _id      Token id to mint
   * @param _amount  The amount to be minted
   * @param _data    Data to pass if receiver is contract
   */
  function _mint(address _to, uint256 _id, uint256 _amount, bytes memory _data)
    internal
  {
    // Add _amount
    balances[_to][_id] = balances[_to][_id].add(_amount);

    // Emit event
    emit TransferSingle(msg.sender, address(0x0), _to, _id, _amount);

    // Calling onReceive method if recipient is contract
    _callonERC1155Received(address(0x0), _to, _id, _amount, _data);
  }

  /**
   * @notice Mint tokens for each ids in _ids
   * @param _to       The address to mint tokens to
   * @param _ids      Array of ids to mint
   * @param _amounts  Array of amount of tokens to mint per id
   * @param _data    Data to pass if receiver is contract
   */
  function _batchMint(address _to, uint256[] memory _ids, uint256[] memory _amounts, bytes memory _data)
    internal
  {
    require(_ids.length == _amounts.length, "ERC1155MintBurn#batchMint: INVALID_ARRAYS_LENGTH");

    // Number of mints to execute
    uint256 nMint = _ids.length;

     // Executing all minting
    for (uint256 i = 0; i < nMint; i++) {
      // Update storage balance
      balances[_to][_ids[i]] = balances[_to][_ids[i]].add(_amounts[i]);
    }

    // Emit batch mint event
    emit TransferBatch(msg.sender, address(0x0), _to, _ids, _amounts);

    // Calling onReceive method if recipient is contract
    _callonERC1155BatchReceived(address(0x0), _to, _ids, _amounts, _data);
  }


  /****************************************|
  |            Burning Functions           |
  |_______________________________________*/

  /**
   * @notice Burn _amount of tokens of a given token id
   * @param _from    The address to burn tokens from
   * @param _id      Token id to burn
   * @param _amount  The amount to be burned
   */
  function _burn(address _from, uint256 _id, uint256 _amount)
    internal
  {
    //Substract _amount
    balances[_from][_id] = balances[_from][_id].sub(_amount);

    // Emit event
    emit TransferSingle(msg.sender, _from, address(0x0), _id, _amount);
  }

  /**
   * @notice Burn tokens of given token id for each (_ids[i], _amounts[i]) pair
   * @param _from     The address to burn tokens from
   * @param _ids      Array of token ids to burn
   * @param _amounts  Array of the amount to be burned
   */
  function _batchBurn(address _from, uint256[] memory _ids, uint256[] memory _amounts)
    internal
  {
    require(_ids.length == _amounts.length, "ERC1155MintBurn#batchBurn: INVALID_ARRAYS_LENGTH");

    // Number of mints to execute
    uint256 nBurn = _ids.length;

     // Executing all minting
    for (uint256 i = 0; i < nBurn; i++) {
      // Update storage balance
      balances[_from][_ids[i]] = balances[_from][_ids[i]].sub(_amounts[i]);
    }

    // Emit batch mint event
    emit TransferBatch(msg.sender, _from, address(0x0), _ids, _amounts);
  }

}

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
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(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        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), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

contract LCPRole is Context {
	using Roles for Roles.Role;

	event LCPAdded(address indexed account);
	event LCPRemoved(address indexed account);

	Roles.Role private _lcp;

	constructor() internal {
		_addLCP(_msgSender());
	}

	modifier onlyLCP() {
		require(isLCP(_msgSender()), "LCPRole: caller does not have the LCP role");
		_;
	}

	function isLCP(address account) public view returns (bool) {
		return _lcp.has(account);
	}

	function addLCP(address account) public onlyLCP {
		_addLCP(account);
	}

	function _addLCP(address account) internal {
		_lcp.add(account);
		emit LCPAdded(account);
	}

	function _removeLCP(address account) internal {
		_lcp.remove(account);
		emit LCPRemoved(account);
	}
}

contract ILCPSignaling {
	mapping(uint256 => bool) private _generated;

	event Deposited(address indexed user, uint256 indexed id, uint256 amount);
	event Withdrawn(address indexed user, uint256 indexed id, uint256 amount);
	event Claimed(address indexed user, uint256 indexed id, uint256 amount);
	event Generated(address indexed user, uint256 id);

	function deposit(uint256 id, uint256 amount) public;

	function withdraw(uint256 id, uint256 amount) public;

	function claim(uint256 id) public;

	function claimable(address account, uint256 id) public view returns (uint256);

	function generate(uint256 id) public returns (uint256);
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20Burnable {
	/**
	 * @dev Returns the amount of tokens in existence.
	 */
	function totalSupply() external view returns (uint256);

	/**
	 * @dev Returns the amount of tokens owned by `account`.
	 */
	function balanceOf(address account) external view returns (uint256);

	/**
	 * @dev Moves `amount` tokens from the caller's account to `recipient`.
	 *
	 * Returns a boolean value indicating whether the operation succeeded.
	 *
	 * Emits a {Transfer} event.
	 */
	function transfer(address recipient, uint256 amount) external returns (bool);

	/**
	 * @dev Returns the remaining number of tokens that `spender` will be
	 * allowed to spend on behalf of `owner` through {transferFrom}. This is
	 * zero by default.
	 *
	 * This value changes when {approve} or {transferFrom} are called.
	 */
	function allowance(address owner, address spender) external view returns (uint256);

	/**
	 * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
	 *
	 * Returns a boolean value indicating whether the operation succeeded.
	 *
	 * IMPORTANT: Beware that changing an allowance with this method brings the risk
	 * that someone may use both the old and the new allowance by unfortunate
	 * transaction ordering. One possible solution to mitigate this race
	 * condition is to first reduce the spender's allowance to 0 and set the
	 * desired value afterwards:
	 * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
	 *
	 * Emits an {Approval} event.
	 */
	function approve(address spender, uint256 amount) external returns (bool);

	/**
	 * @dev Moves `amount` tokens from `sender` to `recipient` using the
	 * allowance mechanism. `amount` is then deducted from the caller's
	 * allowance.
	 *
	 * Returns a boolean value indicating whether the operation succeeded.
	 *
	 * Emits a {Transfer} event.
	 */
	function transferFrom(
		address sender,
		address recipient,
		uint256 amount
	) external returns (bool);

	function burn(uint256 amount) external;

	/**
	 * @dev Emitted when `value` tokens are moved from one account (`from`) to
	 * another (`to`).
	 *
	 * Note that `value` may be zero.
	 */
	event Transfer(address indexed from, address indexed to, uint256 value);

	/**
	 * @dev Emitted when the allowance of a `spender` for an `owner` is set by
	 * a call to {approve}. `value` is the new allowance.
	 */
	event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
	using SafeMath for uint256;
	using Address for address;

	function safeBurn(IERC20Burnable token, uint256 value) internal {
		callOptionalReturn(token, abi.encodeWithSelector(token.burn.selector, value));
	}

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

	function safeTransferFrom(
		IERC20Burnable token,
		address from,
		address to,
		uint256 value
	) internal {
		callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
	}

	/**
	 * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
	 * on the return value: the return value is optional (but if data is returned, it must not be false).
	 * @param token The token targeted by the call.
	 * @param data The call data (encoded using abi.encode or one of its variants).
	 */
	function callOptionalReturn(IERC20Burnable token, bytes memory data) private {
		// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
		// we're implementing it ourselves.

		// A Solidity high level call has three parts:
		//  1. The target address is checked to verify it contains contract code
		//  2. The call itself is made, and success asserted
		//  3. The return value is decoded, which in turn checks the size of the returned data.
		// solhint-disable-next-line max-line-length
		require(address(token).isContract(), "SafeERC20: call to non-contract");

		// solhint-disable-next-line avoid-low-level-calls
		(bool success, bytes memory returndata) = address(token).call(data);
		require(success, "SafeERC20: low-level call failed");

		if (returndata.length > 0) {
			// Return data is optional
			// solhint-disable-next-line max-line-length
			require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
		}
	}
}

library Strings {
	// via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
	function strConcat(
		string memory _a,
		string memory _b,
		string memory _c,
		string memory _d,
		string memory _e
	) internal pure returns (string memory) {
		bytes memory _ba = bytes(_a);
		bytes memory _bb = bytes(_b);
		bytes memory _bc = bytes(_c);
		bytes memory _bd = bytes(_d);
		bytes memory _be = bytes(_e);
		string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
		bytes memory babcde = bytes(abcde);
		uint256 k = 0;
		for (uint256 i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
		for (uint256 j = 0; j < _bb.length; j++) babcde[k++] = _bb[j];
		for (uint256 l = 0; l < _bc.length; l++) babcde[k++] = _bc[l];
		for (uint256 m = 0; m < _bd.length; m++) babcde[k++] = _bd[m];
		for (uint256 n = 0; n < _be.length; n++) babcde[k++] = _be[n];
		return string(babcde);
	}

	function strConcat(
		string memory _a,
		string memory _b,
		string memory _c,
		string memory _d
	) internal pure returns (string memory) {
		return strConcat(_a, _b, _c, _d, "");
	}

	function strConcat(
		string memory _a,
		string memory _b,
		string memory _c
	) internal pure returns (string memory) {
		return strConcat(_a, _b, _c, "", "");
	}

	function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
		return strConcat(_a, _b, "", "", "");
	}

	function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) {
		if (_i == 0) {
			return "0";
		}
		uint256 j = _i;
		uint256 len;
		while (j != 0) {
			len++;
			j /= 10;
		}
		bytes memory bstr = new bytes(len);
		uint256 k = len - 1;
		while (_i != 0) {
			bstr[k--] = bytes1(uint8(48 + (_i % 10)));
			_i /= 10;
		}
		return string(bstr);
	}
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
	mapping(address => OwnableDelegateProxy) public proxies;
}

contract LairOwnershipToken is ERC1155, ERC1155MintBurn, ERC1155Metadata, LCPRole {
	using SafeERC20 for IERC20Burnable;
	using Strings for string;

	IERC20Burnable public lor;

	string public name;
	string public symbol;

	uint256 public communityBurnFee;
	uint256 public denBurnFee;

	uint256 internal _totalStaked;
	uint256 internal _unallocated;

	address public denMultiSig;
	address public denCommunity;
	address public activeLCPAddress;
	address proxyRegistryAddress;

	mapping(uint256 => address) internal _creators;
	mapping(uint256 => uint256) internal _tokenSupply;

	mapping(uint256 => uint256) internal _stakedBalances;
	mapping(uint256 => bool) internal _mintable;

	event MintDisabled(uint256 indexed id, address operator);
	event Allocated(uint256 indexed id, uint256 amount);

	constructor(
		string memory _name,
		string memory _symbol,
		string memory _metadataUri,
		uint256 _communityBurnFee,
		uint256 _denBurnFee,
		address _denCommunityAddress,
		address _proxyRegistryAddress,
		IERC20Burnable _lor
	) public {
		name = _name;
		symbol = _symbol;
		proxyRegistryAddress = _proxyRegistryAddress;
		communityBurnFee = _communityBurnFee;
		denBurnFee = _denBurnFee;
		denMultiSig = msg.sender;
		denCommunity = _denCommunityAddress;
		lor = _lor;

		_setBaseMetadataURI(_metadataUri);
	}

	modifier onlyDenMultiSig {
		require(msg.sender == denMultiSig, "not owner");
		_;
	}

	modifier onlyDenCommunity {
		require(msg.sender == denCommunity, "not community");
		_;
	}

	modifier creatorOnly(uint256 _id) {
		require(creatorOf(_id) == msg.sender, "only creator allowed");
		_;
	}

	modifier ownersOnly(uint256 _id) {
		require(balanceOf(msg.sender, _id) > 0, "only owners allowed");
		_;
	}

	/* ********** VIEWS ********** */

	function owner() public view returns (address) {
		return denMultiSig;
	}

	function contractURI() public pure returns (string memory) {
		return "https://api.den.social/api/v1/lairs/lot";
	}

	function unallocated() public view returns (uint256) {
		return _unallocated;
	}

	function totalStaked() public view returns (uint256) {
		return _totalStaked;
	}

	function stakedBalanceOf(uint256 id) public view returns (uint256) {
		return _stakedBalances[id];
	}

	function creatorOf(uint256 id) public view returns (address) {
		return _creators[id];
	}

	function mintable(uint256 id) public view returns (bool) {
		return _mintable[id];
	}

	function totalSupply(uint256 id) public view returns (uint256) {
		return _tokenSupply[id];
	}

	function uri(uint256 id) public view returns (string memory) {
		require(_exists(id), "token does not exist");
		return Strings.strConcat(baseMetadataURI, Strings.uint2str(id));
	}

	/* ********** COMMUNITY FUNCTIONS ********** */

	function setCommunityAddress(address _communityAddress) public onlyDenCommunity {
		denCommunity = _communityAddress;
	}

	function setDenFee(uint256 fee) public onlyDenCommunity {
		require(fee.add(communityBurnFee) <= 100, "total fees cannot exceed 100");
		denBurnFee = fee;
	}

	function setCommunityFee(uint256 fee) public onlyDenCommunity {
		require(fee.add(denBurnFee) <= 100, "total fees cannot exceed 100");
		communityBurnFee = fee;
	}

	/* ********** CREATOR FUNCTIONS ********** */

	function setCreator(address _to, uint256 _id) public {
		require(_to != address(0), "invalid address");
		_setCreator(_to, _id);
	}

	function disableMint(uint256 _id) public creatorOnly(_id) {
		require(_exists(_id), "token does not exist");
		_disableMint(_id);
		emit MintDisabled(_id, msg.sender);
	}

	function mint(
		uint256 id,
		address to,
		uint256 amount
	) public creatorOnly(id) {
		require(_exists(id), "token does not exist");
		require(_mintable[id], "token not mintable");

		uint256 aWei = _toWei(amount);

		_totalStaked = _totalStaked.add(aWei);
		_stakedBalances[id] = _stakedBalances[id].add(aWei);
		_tokenSupply[id] = _tokenSupply[id].add(amount);
		lor.safeTransferFrom(msg.sender, address(this), aWei);
		_mint(to, id, amount, "");
	}

	/* ********** DEN FUNCTIONS ********** */

	function setMultiSig(address _denMultiSig) public onlyDenMultiSig {
		denMultiSig = _denMultiSig;
	}

	function setActiveLCPAddress(address _lcpAddress) public onlyDenMultiSig {
		activeLCPAddress = _lcpAddress;
		_addLCP(_lcpAddress);
	}

	function setBaseMetadataURI(string memory metadataURI) public onlyDenMultiSig {
		_setBaseMetadataURI(metadataURI);
	}

	function removeLCP(address lcpAddress) public onlyDenMultiSig {
		_removeLCP(lcpAddress);
	}

	function deposit(uint256 amount) public onlyDenMultiSig {
		_totalStaked = _totalStaked.add(amount);
		_unallocated = _unallocated.add(amount);
		lor.safeTransferFrom(msg.sender, address(this), amount);
	}

	function create(
		uint256 id,
		address to,
		uint256 supply,
		bool lcp,
		bool allowMint
	) public onlyDenMultiSig {
		require(!_exists(id), "token exists");
		require(_unallocated >= supply, "add more LOR");

		_mintable[id] = allowMint;
		_creators[id] = msg.sender;
		_tokenSupply[id] = _tokenSupply[id].add(supply);
		_stakedBalances[id] = _stakedBalances[id].add(_toWei(supply));
		_unallocated = _unallocated.sub(_toWei(supply));

		if (lcp) ILCPSignaling(activeLCPAddress).generate(id);
		_mint(to, id, supply, "");

		emit Allocated(id, _toWei(supply));
		emit URI(baseMetadataURI, id);
	}

	///////////////////////////////////////////////////////

	function lcpMint(
		uint256 id,
		address to,
		uint256 amount,
		bytes memory data
	) public onlyLCP {
		require(_exists(id), "token does not exist");
		_totalStaked = _totalStaked.add(_toWei(amount));
		_stakedBalances[id] = _stakedBalances[id].add(_toWei(amount));
		_tokenSupply[id] = _tokenSupply[id].add(amount);
		lor.safeTransferFrom(msg.sender, address(this), _toWei(amount));
		_mint(to, id, amount, data);
	}

	function burn(uint256 id, uint256 amount) public ownersOnly(id) {
		require(_exists(id), "token does not exist");
		require(balanceOf(msg.sender, id) >= amount, "insufficient balance");

		uint256 aWei = _toWei(amount);
		uint256 communityFeeAmount = aWei.mul(communityBurnFee).div(100);
		uint256 denFeeAmount = aWei.mul(denBurnFee).div(100);
		uint256 returnAmount = aWei.sub(communityFeeAmount).sub(denFeeAmount);
		require(returnAmount.add(denFeeAmount).add(communityFeeAmount) == aWei, "overflow");

		_totalStaked = _totalStaked.sub(aWei);
		_stakedBalances[id] = _stakedBalances[id].sub(aWei);
		_tokenSupply[id] = _tokenSupply[id].sub(amount);

		_burn(msg.sender, id, amount);

		lor.safeTransfer(msg.sender, returnAmount);
		lor.safeTransfer(denMultiSig, denFeeAmount);
		lor.safeTransfer(denCommunity, communityFeeAmount);
	}

	/**
	 * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
	 */
	function isApprovedForAll(address _owner, address _operator) public view returns (bool isOperator) {
		// Whitelist OpenSea proxy contract for easy trading.
		ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
		if (address(proxyRegistry.proxies(_owner)) == _operator) {
			return true;
		}

		return ERC1155.isApprovedForAll(_owner, _operator);
	}

	/* ********** INTERNAL FUNCTIONS ********** */

	function _setCreator(address _to, uint256 _id) internal creatorOnly(_id) {
		_creators[_id] = _to;
	}

	function _disableMint(uint256 _id) internal creatorOnly(_id) {
		_mintable[_id] = false;
	}

	function _exists(uint256 _id) internal view returns (bool) {
		return creatorOf(_id) != address(0);
	}

	function _toWei(uint256 _amount) internal pure returns (uint256) {
		return _amount * (1 ether);
	}

	function _toEther(uint256 _amount) internal pure returns (uint256) {
		return _amount / (1 ether);
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_metadataUri","type":"string"},{"internalType":"uint256","name":"_communityBurnFee","type":"uint256"},{"internalType":"uint256","name":"_denBurnFee","type":"uint256"},{"internalType":"address","name":"_denCommunityAddress","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"contract IERC20Burnable","name":"_lor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Allocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LCPAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LCPRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"MintDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_uri","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"URI","type":"event"},{"constant":true,"inputs":[],"name":"activeLCPAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addLCP","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"communityBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bool","name":"lcp","type":"bool"},{"internalType":"bool","name":"allowMint","type":"bool"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"creatorOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"denBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"denCommunity","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"denMultiSig","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableMint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isLCP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"lcpMint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lor","outputs":[{"internalType":"contract IERC20Burnable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"lcpAddress","type":"address"}],"name":"removeLCP","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_lcpAddress","type":"address"}],"name":"setActiveLCPAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"metadataURI","type":"string"}],"name":"setBaseMetadataURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_communityAddress","type":"address"}],"name":"setCommunityAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setCommunityFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setCreator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setDenFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_denMultiSig","type":"address"}],"name":"setMultiSig","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"stakedBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"_interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"unallocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620041a4380380620041a483398181016040526101008110156200003857600080fd5b81019080805160405193929190846401000000008211156200005957600080fd5b9083019060208201858111156200006f57600080fd5b82516401000000008111828201881017156200008a57600080fd5b82525081516020918201929091019080838360005b83811015620000b95781810151838201526020016200009f565b50505050905090810190601f168015620000e75780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010b57600080fd5b9083019060208201858111156200012157600080fd5b82516401000000008111828201881017156200013c57600080fd5b82525081516020918201929091019080838360005b838110156200016b57818101518382015260200162000151565b50505050905090810190601f168015620001995780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bd57600080fd5b908301906020820185811115620001d357600080fd5b8251640100000000811182820188101715620001ee57600080fd5b82525081516020918201929091019080838360005b838110156200021d57818101518382015260200162000203565b50505050905090810190601f1680156200024b5780820380516001836020036101000a031916815260200191505b5060409081526020820151908201516060830151608084015160a090940151929550909350919062000298620002896001600160e01b036200033716565b6001600160e01b036200033c16565b8751620002ad9060059060208b0190620004d1565b508651620002c39060069060208a0190620004d1565b50600e80546001600160a01b038085166001600160a01b03199283161790925560078790556008869055600b8054821633179055600c8054868416908316179055600480549284169290911691909117905562000329866001600160e01b036200038e16565b505050505050505062000573565b335b90565b62000357816003620003a760201b620037fe1790919060201c565b6040516001600160a01b038216907fa3b42cf788d5404289281826055a157ecc3c5da36cc933f50269b46c5cfdb95190600090a250565b8051620003a3906002906020840190620004d1565b5050565b620003bc82826001600160e01b036200044e16565b156200042957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620004b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620041826022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200051457805160ff191683800117855562000544565b8280016001018555821562000544579182015b828111156200054457825182559160200191906001019062000527565b506200055292915062000556565b5090565b6200033991905b808211156200055257600081556001016200055d565b613bff80620005836000396000f3fe608060405234801561001057600080fd5b50600436106102c75760003560e01c8063836a10401161017b578063b6b55f25116100d8578063e8a3d4851161008c578063f242432a11610071578063f242432a14610bb2578063f6d16e0314610c7d578063f7ce447914610ca3576102c7565b8063e8a3d48514610b7c578063e985e9c514610b84576102c7565b8063bd85b039116100bd578063bd85b03914610b2b578063c8cb8a7514610b48578063df1c455c14610b74576102c7565b8063b6b55f2514610b06578063b6d6000914610b23576102c7565b8063a9312a881161012f578063aa04295f11610114578063aa04295f14610aa0578063b324170814610abd578063b390c0ab14610ae3576102c7565b8063a9312a8814610a7b578063a9a0003914610a83576102c7565b806395d89b411161016057806395d89b4114610a1f5780639b43681614610a27578063a22cb46514610a4d576102c7565b8063836a1040146109e55780638da5cb5b14610a17576102c7565b80633baa380d11610229578063551461d0116101dd57806378275c78116101c257806378275c78146108f55780637e518ec814610937578063817b1cd2146109dd576102c7565b8063551461d0146108b2578063589a1743146108d8576102c7565b80634cd423381161020e5780634cd42338146106715780634e1273f414610679578063514a783c146107f0576102c7565b80633baa380d146106615780633d0fb37514610669576102c7565b80630e89341c116102805780631172485a116102655780631172485a14610457578063284d30ef146104745780632eb2c2d61461049a576102c7565b80630e89341c1461041d5780630f7849431461043a576102c7565b806306fdde03116102b157806306fdde031461035d578063099c3c98146103da5780630d12bbdb146103fe576102c7565b8062fdd58e146102cc57806301ffc9a71461030a575b600080fd5b6102f8600480360360408110156102e257600080fd5b506001600160a01b038135169060200135610cc9565b60408051918252519081900360200190f35b6103496004803603602081101561032057600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610cf2565b604080519115158252519081900360200190f35b610365610d9b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039f578181015183820152602001610387565b50505050905090810190601f1680156103cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103e2610e29565b604080516001600160a01b039092168252519081900360200190f35b61041b6004803603602081101561041457600080fd5b5035610e38565b005b6103656004803603602081101561043357600080fd5b5035610f06565b6103496004803603602081101561045057600080fd5b5035610fff565b61041b6004803603602081101561046d57600080fd5b5035611014565b61041b6004803603602081101561048a57600080fd5b50356001600160a01b0316611117565b61041b600480360360a08110156104b057600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156104e457600080fd5b8201836020820111156104f657600080fd5b8035906020019184602083028401116401000000008311171561051857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561056857600080fd5b82018360208201111561057a57600080fd5b8035906020019184602083028401116401000000008311171561059c57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156105ec57600080fd5b8201836020820111156105fe57600080fd5b8035906020019184600183028401116401000000008311171561062057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b0945050505050565b6103e261126c565b6103e261127b565b6102f861128a565b6107a06004803603604081101561068f57600080fd5b8101906020810181356401000000008111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111640100000000831117156106de57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561072e57600080fd5b82018360208201111561074057600080fd5b8035906020019184602083028401116401000000008311171561076257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611290945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107dc5781810151838201526020016107c4565b505050509050019250505060405180910390f35b61041b6004803603608081101561080657600080fd5b8135916001600160a01b03602082013516916040820135919081019060808101606082013564010000000081111561083d57600080fd5b82018360208201111561084f57600080fd5b8035906020019184600183028401116401000000008311171561087157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611391945050505050565b61041b600480360360208110156108c857600080fd5b50356001600160a01b03166114ef565b6103e2600480360360208110156108ee57600080fd5b503561158d565b61041b600480360360a081101561090b57600080fd5b508035906001600160a01b036020820135169060408101359060608101351515906080013515156115a8565b61041b6004803603602081101561094d57600080fd5b81019060208101813564010000000081111561096857600080fd5b82018360208201111561097a57600080fd5b8035906020019184600183028401116401000000008311171561099c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611926945050505050565b6102f861198e565b61041b600480360360608110156109fb57600080fd5b508035906001600160a01b036020820135169060400135611995565b6103e2611b6e565b610365611b7d565b61041b60048036036020811015610a3d57600080fd5b50356001600160a01b0316611bd8565b61041b60048036036040811015610a6357600080fd5b506001600160a01b0381351690602001351515611c40565b6102f8611cae565b61041b60048036036020811015610a9957600080fd5b5035611cb4565b6102f860048036036020811015610ab657600080fd5b5035611d82565b61041b60048036036020811015610ad357600080fd5b50356001600160a01b0316611d94565b61041b60048036036040811015610af957600080fd5b5080359060200135611de3565b61041b60048036036020811015610b1c57600080fd5b50356120cc565b6103e2612175565b6102f860048036036020811015610b4157600080fd5b5035612184565b61041b60048036036040811015610b5e57600080fd5b506001600160a01b038135169060200135612196565b6102f86121ff565b610365612205565b61034960048036036040811015610b9a57600080fd5b506001600160a01b0381358116916020013516612225565b61041b600480360360a0811015610bc857600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135640100000000811115610c0857600080fd5b820183602082011115610c1a57600080fd5b80359060200191846001830284011164010000000083111715610c3c57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122e9945050505050565b61034960048036036020811015610c9357600080fd5b50356001600160a01b031661239e565b61041b60048036036020811015610cb957600080fd5b50356001600160a01b03166123b1565b6001600160a01b0382166000908152602081815260408083208484529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a7000000000000000000000000000000000000000000000000000000001480610d8557507fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000145b15610d9257506001610d96565b5060005b919050565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e215780601f10610df657610100808354040283529160200191610e21565b820191906000526020600020905b815481529060010190602001808311610e0457829003601f168201915b505050505081565b600d546001600160a01b031681565b600c546001600160a01b03163314610e97576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b6064610eae6008548361244a90919063ffffffff16565b1115610f01576040805162461bcd60e51b815260206004820152601c60248201527f746f74616c20666565732063616e6e6f74206578636565642031303000000000604482015290519081900360640190fd5b600755565b6060610f11826124ab565b610f62576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152610cec9390929091830182828015610fec5780601f10610fc157610100808354040283529160200191610fec565b820191906000526020600020905b815481529060010190602001808311610fcf57829003601f168201915b5050505050610ffa846124c8565b6125bd565b60009081526012602052604090205460ff1690565b803361101f8261158d565b6001600160a01b03161461107a576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b611083826124ab565b6110d4576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b6110dd826125f9565b60408051338152905183917f2e65ea4f9e1ccd2ceb1f37820349cb6bf43ccb2efcf535a7236231b027cdd3a9919081900360200190a25050565b600b546001600160a01b03163314611176576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b336001600160a01b03861614806111cc57506111cc8533612225565b6112075760405162461bcd60e51b815260040180806020018281038252602f815260200180613af9602f913960400191505060405180910390fd5b6001600160a01b03841661124c5760405162461bcd60e51b8152600401808060200182810382526030815260200180613a7b6030913960400191505060405180910390fd5b61125885858585612678565b6112658585858585612923565b5050505050565b6004546001600160a01b031681565b600c546001600160a01b031681565b60085481565b606081518351146112d25760405162461bcd60e51b815260040180806020018281038252602c815260200180613acd602c913960400191505060405180910390fd5b606083516040519080825280602002602001820160405280156112ff578160200160208202803883390190505b50905060005b84518110156113895760008086838151811061131d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600085838151811061135357fe5b602002602001015181526020019081526020016000205482828151811061137657fe5b6020908102919091010152600101611305565b509392505050565b6113a161139c612b5a565b61239e565b6113dc5760405162461bcd60e51b815260040180806020018281038252602a815260200180613a09602a913960400191505060405180910390fd5b6113e5846124ab565b611436576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b61145161144283612b5e565b6009549063ffffffff61244a16565b60095561147b61146083612b5e565b6000868152601160205260409020549063ffffffff61244a16565b6000858152601160209081526040808320939093556010905220546114a6908363ffffffff61244a16565b6000858152601060205260409020556114dd33306114c385612b5e565b6004546001600160a01b031692919063ffffffff612b6b16565b6114e983858484612bf3565b50505050565b600b546001600160a01b0316331461154e576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831617905561158a81612c93565b50565b6000908152600f60205260409020546001600160a01b031690565b600b546001600160a01b03163314611607576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b611610856124ab565b15611662576040805162461bcd60e51b815260206004820152600c60248201527f746f6b656e206578697374730000000000000000000000000000000000000000604482015290519081900360640190fd5b82600a5410156116b9576040805162461bcd60e51b815260206004820152600c60248201527f616464206d6f7265204c4f520000000000000000000000000000000000000000604482015290519081900360640190fd5b6000858152601260209081526040808320805485151560ff19909116179055600f825280832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055601090915290205461171f908463ffffffff61244a16565b60008681526010602052604090205561175561173a84612b5e565b6000878152601160205260409020549063ffffffff61244a16565b60008681526011602052604090205561177f61177084612b5e565b600a549063ffffffff612cdb16565b600a55811561181c57600d54604080517f4a7dd5230000000000000000000000000000000000000000000000000000000081526004810188905290516001600160a01b0390921691634a7dd523916024808201926020929091908290030181600087803b1580156117ef57600080fd5b505af1158015611803573d6000803e3d6000fd5b505050506040513d602081101561181957600080fd5b50505b61183784868560405180602001604052806000815250612bf3565b847f06686aaa593b19d01617ac400575a79693899102504b038ef5e3371ff51e4d9f61186285612b5e565b60408051918252519081900360200190a260408051602080825260028054600019610100600183161502011681900491830182905288937f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b9391928291820190849080156119115780601f106118e657610100808354040283529160200191611911565b820191906000526020600020905b8154815290600101906020018083116118f457829003601f168201915b50509250505060405180910390a25050505050565b600b546001600160a01b03163314611985576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61158a81612d38565b6009545b90565b82336119a08261158d565b6001600160a01b0316146119fb576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b611a04846124ab565b611a55576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b60008481526012602052604090205460ff16611ab8576040805162461bcd60e51b815260206004820152601260248201527f746f6b656e206e6f74206d696e7461626c650000000000000000000000000000604482015290519081900360640190fd5b6000611ac383612b5e565b600954909150611ad9908263ffffffff61244a16565b600955600085815260116020526040902054611afb908263ffffffff61244a16565b600086815260116020908152604080832093909355601090522054611b26908463ffffffff61244a16565b600086815260106020526040902055600454611b53906001600160a01b031633308463ffffffff612b6b16565b61126584868560405180602001604052806000815250612bf3565b600b546001600160a01b031690565b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e215780601f10610df657610100808354040283529160200191610e21565b600b546001600160a01b03163314611c37576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61158a81612d4b565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60075481565b600c546001600160a01b03163314611d13576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b6064611d2a6007548361244a90919063ffffffff16565b1115611d7d576040805162461bcd60e51b815260206004820152601c60248201527f746f74616c20666565732063616e6e6f74206578636565642031303000000000604482015290519081900360640190fd5b600855565b60009081526011602052604090205490565b611d9f61139c612b5a565b611dda5760405162461bcd60e51b815260040180806020018281038252602a815260200180613a09602a913960400191505060405180910390fd5b61158a81612c93565b816000611df03383610cc9565b11611e42576040805162461bcd60e51b815260206004820152601360248201527f6f6e6c79206f776e65727320616c6c6f77656400000000000000000000000000604482015290519081900360640190fd5b611e4b836124ab565b611e9c576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b81611ea73385610cc9565b1015611efa576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b6000611f0583612b5e565b90506000611f2f6064611f2360075485612d9390919063ffffffff16565b9063ffffffff612e0216565b90506000611f4d6064611f2360085486612d9390919063ffffffff16565b90506000611f7182611f65868663ffffffff612cdb16565b9063ffffffff612cdb16565b905083611f9484611f88848663ffffffff61244a16565b9063ffffffff61244a16565b14611fe6576040805162461bcd60e51b815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600954611ff9908563ffffffff612cdb16565b60095560008781526011602052604090205461201b908563ffffffff612cdb16565b600088815260116020908152604080832093909355601090522054612046908763ffffffff612cdb16565b600088815260106020526040902055612060338888612e6c565b60045461207d906001600160a01b0316338363ffffffff612f0316565b600b546004546120a0916001600160a01b0391821691168463ffffffff612f0316565b600c546004546120c3916001600160a01b0391821691168563ffffffff612f0316565b50505050505050565b600b546001600160a01b0316331461212b576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60095461213e908263ffffffff61244a16565b600955600a54612154908263ffffffff61244a16565b600a5560045461158a906001600160a01b031633308463ffffffff612b6b16565b600b546001600160a01b031681565b60009081526010602052604090205490565b6001600160a01b0382166121f1576040805162461bcd60e51b815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b6121fb8282612f88565b5050565b600a5490565b6060604051806060016040528060278152602001613a5460279139905090565b600e54604080517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301529151600093831692851691839163c455279191602480820192602092909190829003018186803b15801561229257600080fd5b505afa1580156122a6573d6000803e3d6000fd5b505050506040513d60208110156122bc57600080fd5b50516001600160a01b031614156122d7576001915050610cec565b6122e18484613035565b949350505050565b336001600160a01b038616148061230557506123058533612225565b6123405760405162461bcd60e51b815260040180806020018281038252602a8152602001806139aa602a913960400191505060405180910390fd5b6001600160a01b0384166123855760405162461bcd60e51b815260040180806020018281038252602b81526020018061397f602b913960400191505060405180910390fd5b61239185858585613063565b611265858585858561314b565b6000610cec60038363ffffffff6132fe16565b600c546001600160a01b03163314612410576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000828201838110156124a4576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b9392505050565b6000806124b78361158d565b6001600160a01b0316141592915050565b606081612509575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610d96565b8160005b811561252157600101600a8204915061250d565b6060816040519080825280601f01601f19166020018201604052801561254e576020820181803883390190505b50905060001982015b85156125b457600a860660300160f81b8282806001900393508151811061257a57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a86049550612557565b50949350505050565b60606124a48383604051806020016040528060008152506040518060200160405280600081525060405180602001604052806000815250613365565b80336126048261158d565b6001600160a01b03161461265f576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b506000908152601260205260409020805460ff19169055565b80518251146126b85760405162461bcd60e51b81526004018080602001828103825260358152602001806139d46035913960400191505060405180910390fd5b815160005b81811015612842576127338382815181106126d457fe5b6020026020010151600080896001600160a01b03166001600160a01b03168152602001908152602001600020600087858151811061270e57fe5b6020026020010151815260200190815260200160002054612cdb90919063ffffffff16565b600080886001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061276557fe5b60200260200101518152602001908152602001600020819055506127ed83828151811061278e57fe5b6020026020010151600080886001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106127c857fe5b602002602001015181526020019081526020016000205461244a90919063ffffffff16565b600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061281f57fe5b6020908102919091018101518252810191909152604001600020556001016126bd565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156128c85781810151838201526020016128b0565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156129075781810151838201526020016128ef565b5050505090500194505050505060405180910390a45050505050565b612935846001600160a01b03166135f1565b15611265576000846001600160a01b031663bc197c8133888787876040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156129d75781810151838201526020016129bf565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612a165781810151838201526020016129fe565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015612a52578181015183820152602001612a3a565b50505050905090810190601f168015612a7f5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015612aa457600080fd5b505af1158015612ab8573d6000803e3d6000fd5b505050506040513d6020811015612ace57600080fd5b505190507fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014612b525760405162461bcd60e51b815260040180806020018281038252603f815260200180613b28603f913960400191505060405180910390fd5b505050505050565b3390565b670de0b6b3a76400000290565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526114e9908590613628565b6001600160a01b038416600090815260208181526040808320868452909152902054612c25908363ffffffff61244a16565b6001600160a01b038516600081815260208181526040808320888452825280832094909455835187815290810186905283519293919233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62928290030190a46114e960008585858561314b565b612ca460038263ffffffff6137fe16565b6040516001600160a01b038216907fa3b42cf788d5404289281826055a157ecc3c5da36cc933f50269b46c5cfdb95190600090a250565b600082821115612d32576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b80516121fb9060029060208401906138e6565b612d5c60038263ffffffff61387f16565b6040516001600160a01b038216907ff63c009bd9abdbb74fa2883e811473dbb513004375ab808acfe461d9251e830890600090a250565b600082612da257506000610cec565b82820282848281612daf57fe5b04146124a4576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6000808211612e58576040805162461bcd60e51b815260206004820152601e60248201527f536166654d617468236469763a204449564953494f4e5f42595f5a45524f0000604482015290519081900360640190fd5b6000828481612e6357fe5b04949350505050565b6001600160a01b038316600090815260208181526040808320858452909152902054612e9e908263ffffffff612cdb16565b6001600160a01b03841660008181526020818152604080832087845282528083209490945583518681529081018590528351919333927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629281900390910190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052612f83908490613628565b505050565b8033612f938261158d565b6001600160a01b031614612fee576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b506000908152600f6020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416600090815260208181526040808320858452909152902054613095908263ffffffff612cdb16565b6001600160a01b03808616600090815260208181526040808320878452825280832094909455918616815280825282812085825290915220546130de908263ffffffff61244a16565b6001600160a01b03808516600081815260208181526040808320888452825291829020949094558051868152938401859052805191939288169233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62929181900390910190a450505050565b61315d846001600160a01b03166135f1565b15611265576000846001600160a01b031663f23a6e6133888787876040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156132005781810151838201526020016131e8565b50505050905090810190601f16801561322d5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561325057600080fd5b505af1158015613264573d6000803e3d6000fd5b505050506040513d602081101561327a57600080fd5b505190507fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014612b525760405162461bcd60e51b815260040180806020018281038252603a815260200180613b67603a913960400191505060405180910390fd5b60006001600160a01b0382166133455760405162461bcd60e51b8152600401808060200182810382526022815260200180613aab6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f1916602001820160405280156133b9576020820181803883390190505b509050806000805b885181101561342a578881815181106133d657fe5b602001015160f81c60f81b8383806001019450815181106133f357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016133c1565b5060005b87518110156134975787818151811061344357fe5b602001015160f81c60f81b83838060010194508151811061346057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161342e565b5060005b8651811015613504578681815181106134b057fe5b602001015160f81c60f81b8383806001019450815181106134cd57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161349b565b5060005b85518110156135715785818151811061351d57fe5b602001015160f81c60f81b83838060010194508151811061353a57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101613508565b5060005b84518110156135de5784818151811061358a57fe5b602001015160f81c60f81b8383806001019450815181106135a757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101613575565b50909d9c50505050505050505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906122e15750141592915050565b61363a826001600160a01b03166135f1565b61368b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106136e757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016136aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613749576040519150601f19603f3d011682016040523d82523d6000602084013e61374e565b606091505b5091509150816137a5576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156114e9578080602001905160208110156137c157600080fd5b50516114e95760405162461bcd60e51b815260040180806020018281038252602a815260200180613ba1602a913960400191505060405180910390fd5b61380882826132fe565b1561385a576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b61388982826132fe565b6138c45760405162461bcd60e51b8152600401808060200182810382526021815260200180613a336021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061392757805160ff1916838001178555613954565b82800160010185558215613954579182015b82811115613954578251825591602001919060010190613939565b50613960929150613964565b5090565b61199291905b80821115613960576000815560010161396a56fe4552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f524543495049454e544552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f7361666542617463685472616e7366657246726f6d3a20494e56414c49445f4152524159535f4c454e4754484c4350526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204c435020726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6568747470733a2f2f6170692e64656e2e736f6369616c2f6170692f76312f6c616972732f6c6f7445524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f524543495049454e54526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373455243313135352362616c616e63654f6642617463683a20494e56414c49445f41525241595f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f63616c6c6f6e45524331313535426174636852656365697665643a20494e56414c49445f4f4e5f524543454956455f4d45535341474545524331313535235f63616c6c6f6e4552433131353552656365697665643a20494e56414c49445f4f4e5f524543454956455f4d4553534147455361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820375b82c2eaf51e4961601a92e82d6f8197b583db06ca0f6c9840198369394aee64736f6c634300050c0032526f6c65733a206163636f756e7420697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000bd80c1bfe952e8c33d49acb5cb071efb60095dff000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000c3f18a746b7ca4b22976a7aacd289e83ca2faf4100000000000000000000000000000000000000000000000000000000000000144c616972204f776e65727368697020546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c4f540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170692e64656e2e736f6369616c2f6170692f76312f6c616972732f6c6f7400000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102c75760003560e01c8063836a10401161017b578063b6b55f25116100d8578063e8a3d4851161008c578063f242432a11610071578063f242432a14610bb2578063f6d16e0314610c7d578063f7ce447914610ca3576102c7565b8063e8a3d48514610b7c578063e985e9c514610b84576102c7565b8063bd85b039116100bd578063bd85b03914610b2b578063c8cb8a7514610b48578063df1c455c14610b74576102c7565b8063b6b55f2514610b06578063b6d6000914610b23576102c7565b8063a9312a881161012f578063aa04295f11610114578063aa04295f14610aa0578063b324170814610abd578063b390c0ab14610ae3576102c7565b8063a9312a8814610a7b578063a9a0003914610a83576102c7565b806395d89b411161016057806395d89b4114610a1f5780639b43681614610a27578063a22cb46514610a4d576102c7565b8063836a1040146109e55780638da5cb5b14610a17576102c7565b80633baa380d11610229578063551461d0116101dd57806378275c78116101c257806378275c78146108f55780637e518ec814610937578063817b1cd2146109dd576102c7565b8063551461d0146108b2578063589a1743146108d8576102c7565b80634cd423381161020e5780634cd42338146106715780634e1273f414610679578063514a783c146107f0576102c7565b80633baa380d146106615780633d0fb37514610669576102c7565b80630e89341c116102805780631172485a116102655780631172485a14610457578063284d30ef146104745780632eb2c2d61461049a576102c7565b80630e89341c1461041d5780630f7849431461043a576102c7565b806306fdde03116102b157806306fdde031461035d578063099c3c98146103da5780630d12bbdb146103fe576102c7565b8062fdd58e146102cc57806301ffc9a71461030a575b600080fd5b6102f8600480360360408110156102e257600080fd5b506001600160a01b038135169060200135610cc9565b60408051918252519081900360200190f35b6103496004803603602081101561032057600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610cf2565b604080519115158252519081900360200190f35b610365610d9b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039f578181015183820152602001610387565b50505050905090810190601f1680156103cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103e2610e29565b604080516001600160a01b039092168252519081900360200190f35b61041b6004803603602081101561041457600080fd5b5035610e38565b005b6103656004803603602081101561043357600080fd5b5035610f06565b6103496004803603602081101561045057600080fd5b5035610fff565b61041b6004803603602081101561046d57600080fd5b5035611014565b61041b6004803603602081101561048a57600080fd5b50356001600160a01b0316611117565b61041b600480360360a08110156104b057600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156104e457600080fd5b8201836020820111156104f657600080fd5b8035906020019184602083028401116401000000008311171561051857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561056857600080fd5b82018360208201111561057a57600080fd5b8035906020019184602083028401116401000000008311171561059c57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156105ec57600080fd5b8201836020820111156105fe57600080fd5b8035906020019184600183028401116401000000008311171561062057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b0945050505050565b6103e261126c565b6103e261127b565b6102f861128a565b6107a06004803603604081101561068f57600080fd5b8101906020810181356401000000008111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111640100000000831117156106de57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561072e57600080fd5b82018360208201111561074057600080fd5b8035906020019184602083028401116401000000008311171561076257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611290945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107dc5781810151838201526020016107c4565b505050509050019250505060405180910390f35b61041b6004803603608081101561080657600080fd5b8135916001600160a01b03602082013516916040820135919081019060808101606082013564010000000081111561083d57600080fd5b82018360208201111561084f57600080fd5b8035906020019184600183028401116401000000008311171561087157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611391945050505050565b61041b600480360360208110156108c857600080fd5b50356001600160a01b03166114ef565b6103e2600480360360208110156108ee57600080fd5b503561158d565b61041b600480360360a081101561090b57600080fd5b508035906001600160a01b036020820135169060408101359060608101351515906080013515156115a8565b61041b6004803603602081101561094d57600080fd5b81019060208101813564010000000081111561096857600080fd5b82018360208201111561097a57600080fd5b8035906020019184600183028401116401000000008311171561099c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611926945050505050565b6102f861198e565b61041b600480360360608110156109fb57600080fd5b508035906001600160a01b036020820135169060400135611995565b6103e2611b6e565b610365611b7d565b61041b60048036036020811015610a3d57600080fd5b50356001600160a01b0316611bd8565b61041b60048036036040811015610a6357600080fd5b506001600160a01b0381351690602001351515611c40565b6102f8611cae565b61041b60048036036020811015610a9957600080fd5b5035611cb4565b6102f860048036036020811015610ab657600080fd5b5035611d82565b61041b60048036036020811015610ad357600080fd5b50356001600160a01b0316611d94565b61041b60048036036040811015610af957600080fd5b5080359060200135611de3565b61041b60048036036020811015610b1c57600080fd5b50356120cc565b6103e2612175565b6102f860048036036020811015610b4157600080fd5b5035612184565b61041b60048036036040811015610b5e57600080fd5b506001600160a01b038135169060200135612196565b6102f86121ff565b610365612205565b61034960048036036040811015610b9a57600080fd5b506001600160a01b0381358116916020013516612225565b61041b600480360360a0811015610bc857600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135640100000000811115610c0857600080fd5b820183602082011115610c1a57600080fd5b80359060200191846001830284011164010000000083111715610c3c57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122e9945050505050565b61034960048036036020811015610c9357600080fd5b50356001600160a01b031661239e565b61041b60048036036020811015610cb957600080fd5b50356001600160a01b03166123b1565b6001600160a01b0382166000908152602081815260408083208484529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a7000000000000000000000000000000000000000000000000000000001480610d8557507fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000145b15610d9257506001610d96565b5060005b919050565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e215780601f10610df657610100808354040283529160200191610e21565b820191906000526020600020905b815481529060010190602001808311610e0457829003601f168201915b505050505081565b600d546001600160a01b031681565b600c546001600160a01b03163314610e97576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b6064610eae6008548361244a90919063ffffffff16565b1115610f01576040805162461bcd60e51b815260206004820152601c60248201527f746f74616c20666565732063616e6e6f74206578636565642031303000000000604482015290519081900360640190fd5b600755565b6060610f11826124ab565b610f62576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152610cec9390929091830182828015610fec5780601f10610fc157610100808354040283529160200191610fec565b820191906000526020600020905b815481529060010190602001808311610fcf57829003601f168201915b5050505050610ffa846124c8565b6125bd565b60009081526012602052604090205460ff1690565b803361101f8261158d565b6001600160a01b03161461107a576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b611083826124ab565b6110d4576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b6110dd826125f9565b60408051338152905183917f2e65ea4f9e1ccd2ceb1f37820349cb6bf43ccb2efcf535a7236231b027cdd3a9919081900360200190a25050565b600b546001600160a01b03163314611176576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b336001600160a01b03861614806111cc57506111cc8533612225565b6112075760405162461bcd60e51b815260040180806020018281038252602f815260200180613af9602f913960400191505060405180910390fd5b6001600160a01b03841661124c5760405162461bcd60e51b8152600401808060200182810382526030815260200180613a7b6030913960400191505060405180910390fd5b61125885858585612678565b6112658585858585612923565b5050505050565b6004546001600160a01b031681565b600c546001600160a01b031681565b60085481565b606081518351146112d25760405162461bcd60e51b815260040180806020018281038252602c815260200180613acd602c913960400191505060405180910390fd5b606083516040519080825280602002602001820160405280156112ff578160200160208202803883390190505b50905060005b84518110156113895760008086838151811061131d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600085838151811061135357fe5b602002602001015181526020019081526020016000205482828151811061137657fe5b6020908102919091010152600101611305565b509392505050565b6113a161139c612b5a565b61239e565b6113dc5760405162461bcd60e51b815260040180806020018281038252602a815260200180613a09602a913960400191505060405180910390fd5b6113e5846124ab565b611436576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b61145161144283612b5e565b6009549063ffffffff61244a16565b60095561147b61146083612b5e565b6000868152601160205260409020549063ffffffff61244a16565b6000858152601160209081526040808320939093556010905220546114a6908363ffffffff61244a16565b6000858152601060205260409020556114dd33306114c385612b5e565b6004546001600160a01b031692919063ffffffff612b6b16565b6114e983858484612bf3565b50505050565b600b546001600160a01b0316331461154e576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831617905561158a81612c93565b50565b6000908152600f60205260409020546001600160a01b031690565b600b546001600160a01b03163314611607576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b611610856124ab565b15611662576040805162461bcd60e51b815260206004820152600c60248201527f746f6b656e206578697374730000000000000000000000000000000000000000604482015290519081900360640190fd5b82600a5410156116b9576040805162461bcd60e51b815260206004820152600c60248201527f616464206d6f7265204c4f520000000000000000000000000000000000000000604482015290519081900360640190fd5b6000858152601260209081526040808320805485151560ff19909116179055600f825280832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055601090915290205461171f908463ffffffff61244a16565b60008681526010602052604090205561175561173a84612b5e565b6000878152601160205260409020549063ffffffff61244a16565b60008681526011602052604090205561177f61177084612b5e565b600a549063ffffffff612cdb16565b600a55811561181c57600d54604080517f4a7dd5230000000000000000000000000000000000000000000000000000000081526004810188905290516001600160a01b0390921691634a7dd523916024808201926020929091908290030181600087803b1580156117ef57600080fd5b505af1158015611803573d6000803e3d6000fd5b505050506040513d602081101561181957600080fd5b50505b61183784868560405180602001604052806000815250612bf3565b847f06686aaa593b19d01617ac400575a79693899102504b038ef5e3371ff51e4d9f61186285612b5e565b60408051918252519081900360200190a260408051602080825260028054600019610100600183161502011681900491830182905288937f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b9391928291820190849080156119115780601f106118e657610100808354040283529160200191611911565b820191906000526020600020905b8154815290600101906020018083116118f457829003601f168201915b50509250505060405180910390a25050505050565b600b546001600160a01b03163314611985576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61158a81612d38565b6009545b90565b82336119a08261158d565b6001600160a01b0316146119fb576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b611a04846124ab565b611a55576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b60008481526012602052604090205460ff16611ab8576040805162461bcd60e51b815260206004820152601260248201527f746f6b656e206e6f74206d696e7461626c650000000000000000000000000000604482015290519081900360640190fd5b6000611ac383612b5e565b600954909150611ad9908263ffffffff61244a16565b600955600085815260116020526040902054611afb908263ffffffff61244a16565b600086815260116020908152604080832093909355601090522054611b26908463ffffffff61244a16565b600086815260106020526040902055600454611b53906001600160a01b031633308463ffffffff612b6b16565b61126584868560405180602001604052806000815250612bf3565b600b546001600160a01b031690565b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e215780601f10610df657610100808354040283529160200191610e21565b600b546001600160a01b03163314611c37576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61158a81612d4b565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60075481565b600c546001600160a01b03163314611d13576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b6064611d2a6007548361244a90919063ffffffff16565b1115611d7d576040805162461bcd60e51b815260206004820152601c60248201527f746f74616c20666565732063616e6e6f74206578636565642031303000000000604482015290519081900360640190fd5b600855565b60009081526011602052604090205490565b611d9f61139c612b5a565b611dda5760405162461bcd60e51b815260040180806020018281038252602a815260200180613a09602a913960400191505060405180910390fd5b61158a81612c93565b816000611df03383610cc9565b11611e42576040805162461bcd60e51b815260206004820152601360248201527f6f6e6c79206f776e65727320616c6c6f77656400000000000000000000000000604482015290519081900360640190fd5b611e4b836124ab565b611e9c576040805162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b81611ea73385610cc9565b1015611efa576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b6000611f0583612b5e565b90506000611f2f6064611f2360075485612d9390919063ffffffff16565b9063ffffffff612e0216565b90506000611f4d6064611f2360085486612d9390919063ffffffff16565b90506000611f7182611f65868663ffffffff612cdb16565b9063ffffffff612cdb16565b905083611f9484611f88848663ffffffff61244a16565b9063ffffffff61244a16565b14611fe6576040805162461bcd60e51b815260206004820152600860248201527f6f766572666c6f77000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600954611ff9908563ffffffff612cdb16565b60095560008781526011602052604090205461201b908563ffffffff612cdb16565b600088815260116020908152604080832093909355601090522054612046908763ffffffff612cdb16565b600088815260106020526040902055612060338888612e6c565b60045461207d906001600160a01b0316338363ffffffff612f0316565b600b546004546120a0916001600160a01b0391821691168463ffffffff612f0316565b600c546004546120c3916001600160a01b0391821691168563ffffffff612f0316565b50505050505050565b600b546001600160a01b0316331461212b576040805162461bcd60e51b815260206004820152600960248201527f6e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60095461213e908263ffffffff61244a16565b600955600a54612154908263ffffffff61244a16565b600a5560045461158a906001600160a01b031633308463ffffffff612b6b16565b600b546001600160a01b031681565b60009081526010602052604090205490565b6001600160a01b0382166121f1576040805162461bcd60e51b815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b6121fb8282612f88565b5050565b600a5490565b6060604051806060016040528060278152602001613a5460279139905090565b600e54604080517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301529151600093831692851691839163c455279191602480820192602092909190829003018186803b15801561229257600080fd5b505afa1580156122a6573d6000803e3d6000fd5b505050506040513d60208110156122bc57600080fd5b50516001600160a01b031614156122d7576001915050610cec565b6122e18484613035565b949350505050565b336001600160a01b038616148061230557506123058533612225565b6123405760405162461bcd60e51b815260040180806020018281038252602a8152602001806139aa602a913960400191505060405180910390fd5b6001600160a01b0384166123855760405162461bcd60e51b815260040180806020018281038252602b81526020018061397f602b913960400191505060405180910390fd5b61239185858585613063565b611265858585858561314b565b6000610cec60038363ffffffff6132fe16565b600c546001600160a01b03163314612410576040805162461bcd60e51b815260206004820152600d60248201527f6e6f7420636f6d6d756e69747900000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000828201838110156124a4576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b9392505050565b6000806124b78361158d565b6001600160a01b0316141592915050565b606081612509575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610d96565b8160005b811561252157600101600a8204915061250d565b6060816040519080825280601f01601f19166020018201604052801561254e576020820181803883390190505b50905060001982015b85156125b457600a860660300160f81b8282806001900393508151811061257a57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a86049550612557565b50949350505050565b60606124a48383604051806020016040528060008152506040518060200160405280600081525060405180602001604052806000815250613365565b80336126048261158d565b6001600160a01b03161461265f576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b506000908152601260205260409020805460ff19169055565b80518251146126b85760405162461bcd60e51b81526004018080602001828103825260358152602001806139d46035913960400191505060405180910390fd5b815160005b81811015612842576127338382815181106126d457fe5b6020026020010151600080896001600160a01b03166001600160a01b03168152602001908152602001600020600087858151811061270e57fe5b6020026020010151815260200190815260200160002054612cdb90919063ffffffff16565b600080886001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061276557fe5b60200260200101518152602001908152602001600020819055506127ed83828151811061278e57fe5b6020026020010151600080886001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106127c857fe5b602002602001015181526020019081526020016000205461244a90919063ffffffff16565b600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061281f57fe5b6020908102919091018101518252810191909152604001600020556001016126bd565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156128c85781810151838201526020016128b0565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156129075781810151838201526020016128ef565b5050505090500194505050505060405180910390a45050505050565b612935846001600160a01b03166135f1565b15611265576000846001600160a01b031663bc197c8133888787876040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156129d75781810151838201526020016129bf565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612a165781810151838201526020016129fe565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015612a52578181015183820152602001612a3a565b50505050905090810190601f168015612a7f5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015612aa457600080fd5b505af1158015612ab8573d6000803e3d6000fd5b505050506040513d6020811015612ace57600080fd5b505190507fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014612b525760405162461bcd60e51b815260040180806020018281038252603f815260200180613b28603f913960400191505060405180910390fd5b505050505050565b3390565b670de0b6b3a76400000290565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526114e9908590613628565b6001600160a01b038416600090815260208181526040808320868452909152902054612c25908363ffffffff61244a16565b6001600160a01b038516600081815260208181526040808320888452825280832094909455835187815290810186905283519293919233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62928290030190a46114e960008585858561314b565b612ca460038263ffffffff6137fe16565b6040516001600160a01b038216907fa3b42cf788d5404289281826055a157ecc3c5da36cc933f50269b46c5cfdb95190600090a250565b600082821115612d32576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b80516121fb9060029060208401906138e6565b612d5c60038263ffffffff61387f16565b6040516001600160a01b038216907ff63c009bd9abdbb74fa2883e811473dbb513004375ab808acfe461d9251e830890600090a250565b600082612da257506000610cec565b82820282848281612daf57fe5b04146124a4576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b6000808211612e58576040805162461bcd60e51b815260206004820152601e60248201527f536166654d617468236469763a204449564953494f4e5f42595f5a45524f0000604482015290519081900360640190fd5b6000828481612e6357fe5b04949350505050565b6001600160a01b038316600090815260208181526040808320858452909152902054612e9e908263ffffffff612cdb16565b6001600160a01b03841660008181526020818152604080832087845282528083209490945583518681529081018590528351919333927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629281900390910190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052612f83908490613628565b505050565b8033612f938261158d565b6001600160a01b031614612fee576040805162461bcd60e51b815260206004820152601460248201527f6f6e6c792063726561746f7220616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b506000908152600f6020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416600090815260208181526040808320858452909152902054613095908263ffffffff612cdb16565b6001600160a01b03808616600090815260208181526040808320878452825280832094909455918616815280825282812085825290915220546130de908263ffffffff61244a16565b6001600160a01b03808516600081815260208181526040808320888452825291829020949094558051868152938401859052805191939288169233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62929181900390910190a450505050565b61315d846001600160a01b03166135f1565b15611265576000846001600160a01b031663f23a6e6133888787876040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156132005781810151838201526020016131e8565b50505050905090810190601f16801561322d5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561325057600080fd5b505af1158015613264573d6000803e3d6000fd5b505050506040513d602081101561327a57600080fd5b505190507fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014612b525760405162461bcd60e51b815260040180806020018281038252603a815260200180613b67603a913960400191505060405180910390fd5b60006001600160a01b0382166133455760405162461bcd60e51b8152600401808060200182810382526022815260200180613aab6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f1916602001820160405280156133b9576020820181803883390190505b509050806000805b885181101561342a578881815181106133d657fe5b602001015160f81c60f81b8383806001019450815181106133f357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016133c1565b5060005b87518110156134975787818151811061344357fe5b602001015160f81c60f81b83838060010194508151811061346057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161342e565b5060005b8651811015613504578681815181106134b057fe5b602001015160f81c60f81b8383806001019450815181106134cd57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161349b565b5060005b85518110156135715785818151811061351d57fe5b602001015160f81c60f81b83838060010194508151811061353a57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101613508565b5060005b84518110156135de5784818151811061358a57fe5b602001015160f81c60f81b8383806001019450815181106135a757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101613575565b50909d9c50505050505050505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906122e15750141592915050565b61363a826001600160a01b03166135f1565b61368b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106136e757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016136aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613749576040519150601f19603f3d011682016040523d82523d6000602084013e61374e565b606091505b5091509150816137a5576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156114e9578080602001905160208110156137c157600080fd5b50516114e95760405162461bcd60e51b815260040180806020018281038252602a815260200180613ba1602a913960400191505060405180910390fd5b61380882826132fe565b1561385a576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b61388982826132fe565b6138c45760405162461bcd60e51b8152600401808060200182810382526021815260200180613a336021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061392757805160ff1916838001178555613954565b82800160010185558215613954579182015b82811115613954578251825591602001919060010190613939565b50613960929150613964565b5090565b61199291905b80821115613960576000815560010161396a56fe4552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f524543495049454e544552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f7361666542617463685472616e7366657246726f6d3a20494e56414c49445f4152524159535f4c454e4754484c4350526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204c435020726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6568747470733a2f2f6170692e64656e2e736f6369616c2f6170692f76312f6c616972732f6c6f7445524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f524543495049454e54526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373455243313135352362616c616e63654f6642617463683a20494e56414c49445f41525241595f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f63616c6c6f6e45524331313535426174636852656365697665643a20494e56414c49445f4f4e5f524543454956455f4d45535341474545524331313535235f63616c6c6f6e4552433131353552656365697665643a20494e56414c49445f4f4e5f524543454956455f4d4553534147455361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820375b82c2eaf51e4961601a92e82d6f8197b583db06ca0f6c9840198369394aee64736f6c634300050c0032

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000bd80c1bfe952e8c33d49acb5cb071efb60095dff000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000c3f18a746b7ca4b22976a7aacd289e83ca2faf4100000000000000000000000000000000000000000000000000000000000000144c616972204f776e65727368697020546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c4f540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170692e64656e2e736f6369616c2f6170692f76312f6c616972732f6c6f7400000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Lair Ownership Token
Arg [1] : _symbol (string): LOT
Arg [2] : _metadataUri (string): https://api.den.social/api/v1/lairs/lot
Arg [3] : _communityBurnFee (uint256): 35
Arg [4] : _denBurnFee (uint256): 15
Arg [5] : _denCommunityAddress (address): 0xBD80c1BFE952E8C33d49aCB5cb071efB60095dfF
Arg [6] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [7] : _lor (address): 0xC3F18a746B7Ca4B22976A7aaCD289e83cA2faF41

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 000000000000000000000000bd80c1bfe952e8c33d49acb5cb071efb60095dff
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 000000000000000000000000c3f18a746b7ca4b22976a7aacd289e83ca2faf41
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [9] : 4c616972204f776e65727368697020546f6b656e000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 4c4f540000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [13] : 68747470733a2f2f6170692e64656e2e736f6369616c2f6170692f76312f6c61
Arg [14] : 6972732f6c6f7400000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.