ETH Price: $3,645.51 (-6.37%)

Token

ERC-20: EtherCities.io City (EC)
 

Overview

Max Total Supply

28 EC

Holders

13

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Balance
1 EC

Value
$0.00
0x305ce3ca65d9b84b8561b0055ecaefeba2217fc8
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:
CityToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-03-04
*/

pragma solidity ^0.4.18;

/**
 * @title ERC721 interface
 * @dev see https://github.com/ethereum/eips/issues/721
 */
contract ERC721 {
  event Transfer(address indexed _from, address indexed _to, uint256 _tokenId);
  event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId);

  function balanceOf(address _owner) public view returns (uint256 _balance);
  function ownerOf(uint256 _tokenId) public view returns (address _owner);
  function transfer(address _to, uint256 _tokenId) public;
  function approve(address _to, uint256 _tokenId) public;
  function takeOwnership(uint256 _tokenId) public;
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;

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

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }


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


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

}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal constant returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b) internal constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }
  
  function add(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract CountryToken {
  function getCountryData (uint256 _tokenId) external view returns (address _owner, uint256 _startingPrice, uint256 _price, uint256 _nextPrice, uint256 _payout);
}

/**
 * @title ERC721Token
 * Generic implementation for the required functionality of the ERC721 standard
 */
contract CityToken is ERC721, Ownable {
  using SafeMath for uint256;

  address cAddress = 0x0c507D48C0cd1232B82aA950d487d01Cfc6442Db;
  
  CountryToken countryContract = CountryToken(cAddress);

  //CountryToken private countryContract;
  uint32 constant COUNTRY_IDX = 100;
  uint256 constant COUNTRY_PAYOUT = 15; // 15%

  // Total amount of tokens
  uint256 private totalTokens;
  uint256[] private listedCities;
  uint256 public devOwed;
  uint256 public poolTotal;
  uint256 public lastPurchase;

  // City Data
  mapping (uint256 => City) public cityData;

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

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

  // Mapping from owner to list of owned token IDs
  mapping (address => uint256[]) private ownedTokens;

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

  // Balances from % payouts.
  mapping (address => uint256) private payoutBalances; 

  // The amount of Eth this country has withdrawn from the pool.
  mapping (uint256 => uint256) private countryWithdrawn;

  // Events
  event CityPurchased(uint256 indexed _tokenId, address indexed _owner, uint256 _purchasePrice);

  // Purchasing Caps for Determining Next Pool Cut
  uint256 private firstCap  = 0.12 ether;
  uint256 private secondCap = 0.5 ether;
  uint256 private thirdCap  = 1.5 ether;

  // Struct to store City Data
  struct City {
      uint256 price;         // Current price of the item.
      uint256 lastPrice;     // lastPrice this was sold for, used for adding to pool.
      uint256 payout;        // The percent of the pool rewarded.
      uint256 withdrawn;     // The amount of Eth this city has withdrawn from the pool.
      address owner;         // Current owner of the item.
  }

  /**
   * @param _tokenId uint256 ID of new token
   * @param _payoutPercentage uint256 payout percentage (divisible by 10)
   */
   function createPromoListing(uint256 _tokenId, uint256 _startingPrice, uint256 _payoutPercentage) onlyOwner() public {
     uint256 countryId = _tokenId % COUNTRY_IDX;
     address countryOwner;
     uint256 price;
     (countryOwner,,price,,) = countryContract.getCountryData(countryId);
     require (countryOwner != address(0));

     if (_startingPrice == 0) {
       if (price >= thirdCap) _startingPrice = price.div(80);
       else if (price >= secondCap) _startingPrice = price.div(75);
       else _startingPrice = 0.002 ether;
     }

     createListing(_tokenId, _startingPrice, _payoutPercentage, countryOwner);
   }

  /**
  * @dev createListing Adds new ERC721 Token
  * @param _tokenId uint256 ID of new token
  * @param _payoutPercentage uint256 payout percentage (divisible by 10)
  * @param _owner address of new owner
  */
  function createListing(uint256 _tokenId, uint256 _startingPrice, uint256 _payoutPercentage, address _owner) onlyOwner() public {

    // make sure price > 0
    require(_startingPrice > 0);
    // make sure token hasn't been used yet
    require(cityData[_tokenId].price == 0);
    
    // create new token
    City storage newCity = cityData[_tokenId];

    newCity.owner = _owner;
    newCity.price = _startingPrice;
    newCity.lastPrice = 0;
    newCity.payout = _payoutPercentage;

    // store city in storage
    listedCities.push(_tokenId);
    
    // mint new token
    _mint(_owner, _tokenId);
  }

  function createMultiple (uint256[] _itemIds, uint256[] _prices, uint256[] _payouts, address _owner) onlyOwner() external {
    for (uint256 i = 0; i < _itemIds.length; i++) {
      createListing(_itemIds[i], _prices[i], _payouts[i], _owner);
    }
  }

  /**
  * @dev Determines next price of token
  * @param _price uint256 ID of current price
  */
  function getNextPrice (uint256 _price) private view returns (uint256 _nextPrice) {
    if (_price < firstCap) {
      return _price.mul(200).div(94);
    } else if (_price < secondCap) {
      return _price.mul(135).div(95);
    } else if (_price < thirdCap) {
      return _price.mul(118).div(96);
    } else {
      return _price.mul(115).div(97);
    }
  }

  function calculatePoolCut (uint256 _price) public view returns (uint256 _poolCut) {
    if (_price < firstCap) {
      return _price.mul(10).div(100); // 10%
    } else if (_price < secondCap) {
      return _price.mul(9).div(100); // 9%
    } else if (_price < thirdCap) {
      return _price.mul(8).div(100); // 8%
    } else {
      return _price.mul(7).div(100); // 7%
    }
  }

  /**
  * @dev Purchase city from previous owner
  * @param _tokenId uint256 of token
  */
  function purchaseCity(uint256 _tokenId) public 
    payable
    isNotContract(msg.sender)
  {

    // get data from storage
    City storage city = cityData[_tokenId];
    uint256 price = city.price;
    address oldOwner = city.owner;
    address newOwner = msg.sender;

    // revert checks
    require(price > 0);
    require(msg.value >= price);
    require(oldOwner != msg.sender);

    uint256 excess = msg.value.sub(price);

    // Calculate pool cut for taxes.
    uint256 profit = price.sub(city.lastPrice);
    uint256 poolCut = calculatePoolCut(profit);
    poolTotal += poolCut;

    // 3% goes to developers
    uint256 devCut = price.mul(3).div(100);
    devOwed = devOwed.add(devCut);

    transferCity(oldOwner, newOwner, _tokenId);

    // set new prices
    city.lastPrice = price;
    city.price = getNextPrice(price);

    // raise event
    CityPurchased(_tokenId, newOwner, price);

    // Transfer payment to old owner minus the developer's and pool's cut.
    oldOwner.transfer(price.sub(devCut.add(poolCut)));

    // Transfer 10% profit to current country owner
    uint256 countryId = _tokenId % COUNTRY_IDX;
    address countryOwner;
    (countryOwner,,,,) = countryContract.getCountryData(countryId);
    require (countryOwner != address(0));
    countryOwner.transfer(poolCut.mul(COUNTRY_PAYOUT).div(100));

    // Send refund to owner if needed
    if (excess > 0) {
      newOwner.transfer(excess);
    }

    // set last purchase price to storage
    lastPurchase = now;

  }

  /**
  * @dev Transfer City from Previous Owner to New Owner
  * @param _from previous owner address
  * @param _to new owner address
  * @param _tokenId uint256 ID of token
  */
  function transferCity(address _from, address _to, uint256 _tokenId) internal {

    // check token exists
    require(tokenExists(_tokenId));

    // make sure previous owner is correct
    require(cityData[_tokenId].owner == _from);

    require(_to != address(0));
    require(_to != address(this));

    // pay any unpaid payouts to previous owner of city
    updateSinglePayout(_from, _tokenId);

    // clear approvals linked to this token
    clearApproval(_from, _tokenId);

    // remove token from previous owner
    removeToken(_from, _tokenId);

    // update owner and add token to new owner
    cityData[_tokenId].owner = _to;
    addToken(_to, _tokenId);

   //raise event
    Transfer(_from, _to, _tokenId);
  }

  /**
  * @dev Withdraw dev's cut
  */
  function withdraw() onlyOwner public {
    owner.transfer(devOwed);
    devOwed = 0;
  }

  /**
  * @dev Sets item's payout
  * @param _itemId itemId to be changed
  */
  function setPayout(uint256 _itemId, uint256 _newPayout) onlyOwner public {
    City storage city = cityData[_itemId];
    city.payout = _newPayout;
  }

  /**
  * @dev Updates the payout for the cities the owner has
  * @param _owner address of token owner
  */
  function updatePayout(address _owner) public {
    uint256[] memory cities = ownedTokens[_owner];
    uint256 owed;
    for (uint256 i = 0; i < cities.length; i++) {
        uint256 totalCityOwed = poolTotal * cityData[cities[i]].payout / 10000;
        uint256 cityOwed = totalCityOwed.sub(cityData[cities[i]].withdrawn);
        owed += cityOwed;
        
        cityData[cities[i]].withdrawn += cityOwed;
    }
    payoutBalances[_owner] += owed;
  }

  /**
   * @dev Update a single city payout for transfers.
   * @param _owner Address of the owner of the city.
   * @param _itemId Unique Id of the token.
  **/
  function updateSinglePayout(address _owner, uint256 _itemId) internal {
    uint256 totalCityOwed = poolTotal * cityData[_itemId].payout / 10000;
    uint256 cityOwed = totalCityOwed.sub(cityData[_itemId].withdrawn);
        
    cityData[_itemId].withdrawn += cityOwed;
    payoutBalances[_owner] += cityOwed;
  }

  /**
  * @dev Owner can withdraw their accumulated payouts
  * @param _owner address of token owner
  */
  function withdrawRent(address _owner) public {
      updatePayout(_owner);
      uint256 payout = payoutBalances[_owner];
      payoutBalances[_owner] = 0;
      _owner.transfer(payout);
  }

  function getRentOwed(address _owner) public view returns (uint256 owed) {
    updatePayout(_owner);
    return payoutBalances[_owner];
  }

  /**
  * @dev Return all city data
  * @param _tokenId uint256 of token
  */
  function getCityData (uint256 _tokenId) external view 
  returns (address _owner, uint256 _price, uint256 _nextPrice, uint256 _payout, address _cOwner, uint256 _cPrice, uint256 _cPayout) 
  {
    City memory city = cityData[_tokenId];
    address countryOwner;
    uint256 countryPrice;
    uint256 countryPayout;
    (countryOwner,,countryPrice,,countryPayout) = countryContract.getCountryData(_tokenId % COUNTRY_IDX);
    return (city.owner, city.price, getNextPrice(city.price), city.payout, countryOwner, countryPrice, countryPayout);
  }

  /**
  * @dev Determines if token exists by checking it's price
  * @param _tokenId uint256 ID of token
  */
  function tokenExists (uint256 _tokenId) public view returns (bool _exists) {
    return cityData[_tokenId].price > 0;
  }

  /**
  * @dev Guarantees msg.sender is owner of the given token
  * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender
  */
  modifier onlyOwnerOf(uint256 _tokenId) {
    require(ownerOf(_tokenId) == msg.sender);
    _;
  }

  /**
  * @dev Guarantees msg.sender is not a contract
  * @param _buyer address of person buying city
  */
  modifier isNotContract(address _buyer) {
    uint size;
    assembly { size := extcodesize(_buyer) }
    require(size == 0);
    _;
  }

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

  /**
  * @dev Gets the balance of the specified address
  * @param _owner address to query the balance of
  * @return uint256 representing the amount owned by the passed address
  */
  function balanceOf(address _owner) public view returns (uint256) {
    return ownedTokens[_owner].length;
  }

  /**
  * @dev Gets the list of tokens owned by a given address
  * @param _owner address to query the tokens of
  * @return uint256[] representing the list of tokens owned by the passed address
  */
  function tokensOf(address _owner) public view returns (uint256[]) {
    return ownedTokens[_owner];
  }

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

  /**
   * @dev Gets the approved address to take ownership of a given token ID
   * @param _tokenId uint256 ID of the token to query the approval of
   * @return address currently approved to take ownership of the given token ID
   */
  function approvedFor(uint256 _tokenId) public view returns (address) {
    return tokenApprovals[_tokenId];
  }

  /**
  * @dev Transfers the ownership of a given token ID to another address
  * @param _to address to receive the ownership of the given token ID
  * @param _tokenId uint256 ID of the token to be transferred
  */
  function transfer(address _to, uint256 _tokenId) public onlyOwnerOf(_tokenId) {
    clearApprovalAndTransfer(msg.sender, _to, _tokenId);
  }

  /**
  * @dev Approves another address to claim for the ownership of the given token ID
  * @param _to address to be approved for the given token ID
  * @param _tokenId uint256 ID of the token to be approved
  */
  function approve(address _to, uint256 _tokenId) public onlyOwnerOf(_tokenId) {
    address owner = ownerOf(_tokenId);
    require(_to != owner);
    if (approvedFor(_tokenId) != 0 || _to != 0) {
      tokenApprovals[_tokenId] = _to;
      Approval(owner, _to, _tokenId);
    }
  }

  /**
  * @dev Claims the ownership of a given token ID
  * @param _tokenId uint256 ID of the token being claimed by the msg.sender
  */
  function takeOwnership(uint256 _tokenId) public {
    require(isApprovedFor(msg.sender, _tokenId));
    clearApprovalAndTransfer(ownerOf(_tokenId), msg.sender, _tokenId);
  }

  /**
   * @dev Tells whether the msg.sender is approved for the given token ID or not
   * This function is not private so it can be extended in further implementations like the operatable ERC721
   * @param _owner address of the owner to query the approval of
   * @param _tokenId uint256 ID of the token to query the approval of
   * @return bool whether the msg.sender is approved for the given token ID or not
   */
  function isApprovedFor(address _owner, uint256 _tokenId) internal view returns (bool) {
    return approvedFor(_tokenId) == _owner;
  }
  
  /**
  * @dev Internal function to clear current approval and transfer the ownership of a given token ID
  * @param _from address which you want to send tokens from
  * @param _to address which you want to transfer the token to
  * @param _tokenId uint256 ID of the token to be transferred
  */
  function clearApprovalAndTransfer(address _from, address _to, uint256 _tokenId) internal isNotContract(_to) {
    require(_to != address(0));
    require(_to != ownerOf(_tokenId));
    require(ownerOf(_tokenId) == _from);

    clearApproval(_from, _tokenId);
    updateSinglePayout(_from, _tokenId);
    removeToken(_from, _tokenId);
    addToken(_to, _tokenId);
    Transfer(_from, _to, _tokenId);
  }

  /**
  * @dev Internal function to clear current approval of a given token ID
  * @param _tokenId uint256 ID of the token to be transferred
  */
  function clearApproval(address _owner, uint256 _tokenId) private {
    require(ownerOf(_tokenId) == _owner);
    tokenApprovals[_tokenId] = 0;
    Approval(_owner, 0, _tokenId);
  }


    /**
  * @dev Mint token function
  * @param _to The address that will own the minted token
  * @param _tokenId uint256 ID of the token to be minted by the msg.sender
  */
  function _mint(address _to, uint256 _tokenId) internal {
    require(_to != address(0));
    addToken(_to, _tokenId);
    Transfer(0x0, _to, _tokenId);
  }

  /**
  * @dev Internal function to add a token ID to the list of a given address
  * @param _to address representing the new owner of the given token ID
  * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
  */
  function addToken(address _to, uint256 _tokenId) private {
    require(tokenOwner[_tokenId] == address(0));
    tokenOwner[_tokenId] = _to;
    cityData[_tokenId].owner = _to;
    uint256 length = balanceOf(_to);
    ownedTokens[_to].push(_tokenId);
    ownedTokensIndex[_tokenId] = length;
    totalTokens = totalTokens.add(1);
  }

  /**
  * @dev Internal function to remove a token ID from the list of a given address
  * @param _from address representing the previous owner of the given token ID
  * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
  */
  function removeToken(address _from, uint256 _tokenId) private {
    require(ownerOf(_tokenId) == _from);

    uint256 tokenIndex = ownedTokensIndex[_tokenId];
    uint256 lastTokenIndex = balanceOf(_from).sub(1);
    uint256 lastToken = ownedTokens[_from][lastTokenIndex];

    tokenOwner[_tokenId] = 0;
    ownedTokens[_from][tokenIndex] = lastToken;
    ownedTokens[_from][lastTokenIndex] = 0;
    // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to
    // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping
    // the lastToken to the first position, and then dropping the element placed in the last position of the list

    ownedTokens[_from].length--;
    ownedTokensIndex[_tokenId] = 0;
    ownedTokensIndex[lastToken] = tokenIndex;
    totalTokens = totalTokens.sub(1);
  }

  function name() public pure returns (string _name) {
    return "EtherCities.io City";
  }

  function symbol() public pure returns (string _symbol) {
    return "EC";
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"name":"_exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"getRentOwed","outputs":[{"name":"owed","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"_name","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"approvedFor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"cityData","outputs":[{"name":"price","type":"uint256"},{"name":"lastPrice","type":"uint256"},{"name":"payout","type":"uint256"},{"name":"withdrawn","type":"uint256"},{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastPurchase","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_price","type":"uint256"}],"name":"calculatePoolCut","outputs":[{"name":"_poolCut","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_itemIds","type":"uint256[]"},{"name":"_prices","type":"uint256[]"},{"name":"_payouts","type":"uint256[]"},{"name":"_owner","type":"address"}],"name":"createMultiple","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"tokensOf","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"withdrawRent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getCityData","outputs":[{"name":"_owner","type":"address"},{"name":"_price","type":"uint256"},{"name":"_nextPrice","type":"uint256"},{"name":"_payout","type":"uint256"},{"name":"_cOwner","type":"address"},{"name":"_cPrice","type":"uint256"},{"name":"_cPayout","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"poolTotal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_payoutPercentage","type":"uint256"}],"name":"createPromoListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_payoutPercentage","type":"uint256"},{"name":"_owner","type":"address"}],"name":"createListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"_symbol","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"takeOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"devOwed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"updatePayout","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_itemId","type":"uint256"},{"name":"_newPayout","type":"uint256"}],"name":"setPayout","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"purchaseCity","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_purchasePrice","type":"uint256"}],"name":"CityPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"}]

606060405260018054600160a060020a0319908116730c507d48c0cd1232b82aa950d487d01cfc6442db1791829055600280548216600160a060020a039384161790556701aa535d3d0c0000600f556706f05b59d3b200006010556714d1120d7b160000601155600080543390931692909116919091179055611a16806100876000396000f30060606040526004361061014f5763ffffffff60e060020a600035041662923f9e811461015457806303dec4631461017e57806306fdde03146101af578063095ea7b31461023957806318160ddd1461025d5780632a6dd48f146102705780633ccfd60b146102a257806342afa385146102b55780634528f3ec146103045780634ba336e51461031757806356e623261461032d5780635a3f26721461036f5780635a5ebebf146103e15780636352211e146104005780636c241bb114610416578063704d4db01461047757806370a082311461048a57806370ce0765146104a95780638da5cb5b146104c55780638ebaae08146104d857806395d89b4114610500578063a9059cbb14610513578063b2e6ceeb14610535578063bf37b8f11461054b578063edcb9e9e1461055e578063f2fde38b1461057d578063fafb23301461059c578063ff09ff99146105b5575b600080fd5b341561015f57600080fd5b61016a6004356105c0565b604051901515815260200160405180910390f35b341561018957600080fd5b61019d600160a060020a03600435166105d6565b60405190815260200160405180910390f35b34156101ba57600080fd5b6101c26105fd565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101fe5780820151838201526020016101e6565b50505050905090810190601f16801561022b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561024457600080fd5b61025b600160a060020a036004351660243561063f565b005b341561026857600080fd5b61019d610724565b341561027b57600080fd5b61028660043561072a565b604051600160a060020a03909116815260200160405180910390f35b34156102ad57600080fd5b61025b610745565b34156102c057600080fd5b6102cb6004356107a0565b60405194855260208501939093526040808501929092526060840152600160a060020a03909116608083015260a0909101905180910390f35b341561030f57600080fd5b61019d6107d8565b341561032257600080fd5b61019d6004356107de565b341561033857600080fd5b61025b6024600480358281019290820135918135808301929082013591604435918201910135600160a060020a0360643516610869565b341561037a57600080fd5b61038e600160a060020a03600435166108e9565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156103cd5780820151838201526020016103b5565b505050509050019250505060405180910390f35b34156103ec57600080fd5b61025b600160a060020a036004351661096c565b341561040b57600080fd5b6102866004356109c4565b341561042157600080fd5b61042c6004356109ee565b604051600160a060020a039788168152602081019690965260408087019590955260608601939093529416608084015260a083019390935260c082019290925260e001905180910390f35b341561048257600080fd5b61019d610b16565b341561049557600080fd5b61019d600160a060020a0360043516610b1c565b34156104b457600080fd5b61025b600435602435604435610b37565b34156104d057600080fd5b610286610c5f565b34156104e357600080fd5b61025b600435602435604435600160a060020a0360643516610c6e565b341561050b57600080fd5b6101c2610d23565b341561051e57600080fd5b61025b600160a060020a0360043516602435610d64565b341561054057600080fd5b61025b600435610d9b565b341561055657600080fd5b61019d610dc6565b341561056957600080fd5b61025b600160a060020a0360043516610dcc565b341561058857600080fd5b61025b600160a060020a0360043516610f49565b34156105a757600080fd5b61025b600435602435610fd7565b61025b600435611009565b600081815260086020526040812054115b919050565b60006105e182610dcc565b50600160a060020a03166000908152600d602052604090205490565b610605611962565b60408051908101604052601381527f45746865724369746965732e696f204369747900000000000000000000000000602082015290505b90565b60008133600160a060020a0316610655826109c4565b600160a060020a03161461066857600080fd5b610671836109c4565b9150600160a060020a03848116908316141561068c57600080fd5b6106958361072a565b600160a060020a03161515806106b35750600160a060020a03841615155b1561071e576000838152600a6020526040908190208054600160a060020a031916600160a060020a0387811691821790925591908416907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a35b50505050565b60035490565b6000908152600a6020526040902054600160a060020a031690565b60005433600160a060020a0390811691161461076057600080fd5b600054600554600160a060020a039091169080156108fc0290604051600060405180830381858888f19350505050151561079957600080fd5b6000600555565b6008602052600090815260409020805460018201546002830154600384015460049094015492939192909190600160a060020a031685565b60075481565b6000600f548210156108135761080c606461080084600a63ffffffff6112d916565b9063ffffffff61130416565b90506105d1565b6010548210156108335761080c606461080084600963ffffffff6112d916565b6011548210156108535761080c606461080084600863ffffffff6112d916565b61080c606461080084600763ffffffff6112d916565b6000805433600160a060020a0390811691161461088557600080fd5b5060005b868110156108df576108d78888838181106108a057fe5b9050602002013587878481811015156108b557fe5b9050602002013586868581811015156108ca57fe5b9050602002013585610c6e565b600101610889565b5050505050505050565b6108f1611962565b600b600083600160a060020a0316600160a060020a0316815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561096057602002820191906000526020600020905b81548152602001906001019080831161094c575b50505050509050919050565b600061097782610dcc565b50600160a060020a0381166000818152600d6020526040808220805492905590919082156108fc0290839051600060405180830381858888f1935050505015156109c057600080fd5b5050565b600081815260096020526040812054600160a060020a03168015156109e857600080fd5b92915050565b6000806000806000806000610a01611974565b600089815260086020526040808220829182919060a09051908101604090815282548252600183015460208301526002808401549183019190915260038301546060830152600490920154600160a060020a03908116608083015291549095501663acf3603760648e06600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b1515610aaa57600080fd5b6102c65a03f11515610abb57600080fd5b50505060405180519060200180519060200180519060200180519060200180519497509195509293505060808601915050518451610af9865161131b565b8660400151929f919e509c50909a50929850909650945092505050565b60065481565b600160a060020a03166000908152600b602052604090205490565b600080548190819033600160a060020a03908116911614610b5757600080fd5b600254606487069350600160a060020a031663acf3603784600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b1515610bae57600080fd5b6102c65a03f11515610bbf57600080fd5b505050604051805190602001805190602001805190602001805190602001805150939550909350505050600160a060020a0382161515610bfe57600080fd5b841515610c4b576011548110610c2657610c1f81605063ffffffff61130416565b9450610c4b565b6010548110610c4057610c1f81604b63ffffffff61130416565b66071afd498d000094505b610c5786868685610c6e565b505050505050565b600054600160a060020a031681565b6000805433600160a060020a03908116911614610c8a57600080fd5b60008411610c9757600080fd5b60008581526008602052604090205415610cb057600080fd5b50600084815260086020526040812060048082018054600160a060020a031916600160a060020a03861617905585825560018083019390935560028201859055805491929091908101610d0383826119ad565b506000918252602090912001859055610d1c8286611393565b5050505050565b610d2b611962565b60408051908101604052600281527f45430000000000000000000000000000000000000000000000000000000000006020820152905090565b8033600160a060020a0316610d78826109c4565b600160a060020a031614610d8b57600080fd5b610d963384846113f5565b505050565b610da533826114d5565b1515610db057600080fd5b610dc3610dbc826109c4565b33836113f5565b50565b60055481565b610dd4611962565b600080600080600b600087600160a060020a0316600160a060020a03168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610e4957602002820191906000526020600020905b815481526020019060010190808311610e35575b50505050509450600092505b8451831015610f225761271060086000878681518110610e7157fe5b9060200190602002015181526020019081526020016000206002015460065402811515610e9a57fe5b049150610edb60086000878681518110610eb057fe5b90602001906020020151815260200190815260200160002060030154836114fb90919063ffffffff16565b9384019390508060086000878681518110610ef257fe5b90602001906020020151815260208101919091526040016000206003018054909101905560019290920191610e55565b505050600160a060020a039092166000908152600d60205260409020805490920190915550565b60005433600160a060020a03908116911614610f6457600080fd5b600160a060020a0381161515610f7957600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b6000805433600160a060020a03908116911614610ff357600080fd5b5060009182526008602052604090912060020155565b600080808080808080808033803b801561102257600080fd5b60008d815260086020526040812080546004820154919e509c50600160a060020a03169a503399508b1161105557600080fd5b348b90101561106357600080fd5b33600160a060020a03168a600160a060020a03161415151561108457600080fd5b611094348c63ffffffff6114fb16565b97506110ad8c600101548c6114fb90919063ffffffff16565b96506110b8876107de565b600680548201905595506110d860646108008d600363ffffffff6112d916565b6005549095506110ee908663ffffffff61150d16565b6005556110fc8a8a8f61151c565b60018c018b905561110c8b61131b565b8c55600160a060020a0389168d7f593a828ed4fba31d01a050f24d9bdbdc7ef9084280e88b39be6b68c565f164008d60405190815260200160405180910390a3600160a060020a038a166108fc61117961116c888a63ffffffff61150d16565b8e9063ffffffff6114fb16565b9081150290604051600060405180830381858888f19350505050151561119e57600080fd5b60025460648e069450600160a060020a031663acf3603785600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b15156111f557600080fd5b6102c65a03f1151561120657600080fd5b505050604051805190602001805190602001805190602001805190602001805150939650505050600160a060020a0384161515905061124457600080fd5b600160a060020a0383166108fc61126760646108008a600f63ffffffff6112d916565b9081150290604051600060405180830381858888f19350505050151561128c57600080fd5b60008811156112c657600160a060020a03891688156108fc0289604051600060405180830381858888f1935050505015156112c657600080fd5b5050426007555050505050505050505050565b60008282028315806112f557508284828115156112f257fe5b04145b15156112fd57fe5b9392505050565b600080828481151561131257fe5b04949350505050565b6000600f5482101561133d5761080c605e6108008460c863ffffffff6112d916565b60105482101561135d5761080c605f61080084608763ffffffff6112d916565b60115482101561137d5761080c606061080084607663ffffffff6112d916565b61080c606161080084607363ffffffff6112d916565b600160a060020a03821615156113a857600080fd5b6113b2828261162d565b81600160a060020a031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35050565b81803b801561140357600080fd5b600160a060020a038416151561141857600080fd5b611421836109c4565b600160a060020a038581169116141561143957600080fd5b84600160a060020a031661144c846109c4565b600160a060020a03161461145f57600080fd5b6114698584611702565b6114738584611787565b61147d85846117f6565b611487848461162d565b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a35050505050565b600082600160a060020a03166114ea8361072a565b600160a060020a0316149392505050565b60008282111561150757fe5b50900390565b6000828201838110156112fd57fe5b611525816105c0565b151561153057600080fd5b600081815260086020526040902060040154600160a060020a0384811691161461155957600080fd5b600160a060020a038216151561156e57600080fd5b30600160a060020a031682600160a060020a03161415151561158f57600080fd5b6115998382611787565b6115a38382611702565b6115ad83826117f6565b60008181526008602052604090206004018054600160a060020a031916600160a060020a0384161790556115e1828261162d565b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a3505050565b600081815260096020526040812054600160a060020a03161561164f57600080fd5b60008281526009602090815260408083208054600160a060020a038816600160a060020a03199182168117909255600890935292206004018054909116909117905561169a83610b1c565b600160a060020a0384166000908152600b60205260409020805491925090600181016116c683826119ad565b506000918252602080832091909101849055838252600c9052604090208190556003546116fa90600163ffffffff61150d16565b600355505050565b81600160a060020a0316611715826109c4565b600160a060020a03161461172857600080fd5b6000818152600a60205260408082208054600160a060020a0319169055600160a060020a038416907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60008181526008602052604081206002810154600654600390920154612710929091029190910491906117bb9083906114fb565b6000938452600860209081526040808620600301805484019055600160a060020a039096168552600d90529390922080549093019092555050565b600080600084600160a060020a031661180e856109c4565b600160a060020a03161461182157600080fd5b6000848152600c6020526040902054925061184c600161184087610b1c565b9063ffffffff6114fb16565b600160a060020a0386166000908152600b602052604090208054919350908390811061187457fe5b60009182526020808320909101548683526009825260408084208054600160a060020a0319169055600160a060020a0389168452600b909252912080549192508291859081106118c057fe5b6000918252602080832090910192909255600160a060020a0387168152600b909152604081208054849081106118f257fe5b6000918252602080832090910192909255600160a060020a0387168152600b909152604090208054906119299060001983016119ad565b506000848152600c6020526040808220829055828252902083905560035461195890600163ffffffff6114fb16565b6003555050505050565b60206040519081016040526000815290565b60a060405190810160405280600081526020016000815260200160008152602001600081526020016000600160a060020a031681525090565b815481835581811511610d9657600083815260209020610d9691810190830161063c91905b808211156119e657600081556001016119d2565b50905600a165627a7a72305820fc7549c0f8bb36ac95b2109f21815b097100a5ecdd99235a4df90c7d91aa100b0029

Deployed Bytecode

0x60606040526004361061014f5763ffffffff60e060020a600035041662923f9e811461015457806303dec4631461017e57806306fdde03146101af578063095ea7b31461023957806318160ddd1461025d5780632a6dd48f146102705780633ccfd60b146102a257806342afa385146102b55780634528f3ec146103045780634ba336e51461031757806356e623261461032d5780635a3f26721461036f5780635a5ebebf146103e15780636352211e146104005780636c241bb114610416578063704d4db01461047757806370a082311461048a57806370ce0765146104a95780638da5cb5b146104c55780638ebaae08146104d857806395d89b4114610500578063a9059cbb14610513578063b2e6ceeb14610535578063bf37b8f11461054b578063edcb9e9e1461055e578063f2fde38b1461057d578063fafb23301461059c578063ff09ff99146105b5575b600080fd5b341561015f57600080fd5b61016a6004356105c0565b604051901515815260200160405180910390f35b341561018957600080fd5b61019d600160a060020a03600435166105d6565b60405190815260200160405180910390f35b34156101ba57600080fd5b6101c26105fd565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101fe5780820151838201526020016101e6565b50505050905090810190601f16801561022b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561024457600080fd5b61025b600160a060020a036004351660243561063f565b005b341561026857600080fd5b61019d610724565b341561027b57600080fd5b61028660043561072a565b604051600160a060020a03909116815260200160405180910390f35b34156102ad57600080fd5b61025b610745565b34156102c057600080fd5b6102cb6004356107a0565b60405194855260208501939093526040808501929092526060840152600160a060020a03909116608083015260a0909101905180910390f35b341561030f57600080fd5b61019d6107d8565b341561032257600080fd5b61019d6004356107de565b341561033857600080fd5b61025b6024600480358281019290820135918135808301929082013591604435918201910135600160a060020a0360643516610869565b341561037a57600080fd5b61038e600160a060020a03600435166108e9565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156103cd5780820151838201526020016103b5565b505050509050019250505060405180910390f35b34156103ec57600080fd5b61025b600160a060020a036004351661096c565b341561040b57600080fd5b6102866004356109c4565b341561042157600080fd5b61042c6004356109ee565b604051600160a060020a039788168152602081019690965260408087019590955260608601939093529416608084015260a083019390935260c082019290925260e001905180910390f35b341561048257600080fd5b61019d610b16565b341561049557600080fd5b61019d600160a060020a0360043516610b1c565b34156104b457600080fd5b61025b600435602435604435610b37565b34156104d057600080fd5b610286610c5f565b34156104e357600080fd5b61025b600435602435604435600160a060020a0360643516610c6e565b341561050b57600080fd5b6101c2610d23565b341561051e57600080fd5b61025b600160a060020a0360043516602435610d64565b341561054057600080fd5b61025b600435610d9b565b341561055657600080fd5b61019d610dc6565b341561056957600080fd5b61025b600160a060020a0360043516610dcc565b341561058857600080fd5b61025b600160a060020a0360043516610f49565b34156105a757600080fd5b61025b600435602435610fd7565b61025b600435611009565b600081815260086020526040812054115b919050565b60006105e182610dcc565b50600160a060020a03166000908152600d602052604090205490565b610605611962565b60408051908101604052601381527f45746865724369746965732e696f204369747900000000000000000000000000602082015290505b90565b60008133600160a060020a0316610655826109c4565b600160a060020a03161461066857600080fd5b610671836109c4565b9150600160a060020a03848116908316141561068c57600080fd5b6106958361072a565b600160a060020a03161515806106b35750600160a060020a03841615155b1561071e576000838152600a6020526040908190208054600160a060020a031916600160a060020a0387811691821790925591908416907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a35b50505050565b60035490565b6000908152600a6020526040902054600160a060020a031690565b60005433600160a060020a0390811691161461076057600080fd5b600054600554600160a060020a039091169080156108fc0290604051600060405180830381858888f19350505050151561079957600080fd5b6000600555565b6008602052600090815260409020805460018201546002830154600384015460049094015492939192909190600160a060020a031685565b60075481565b6000600f548210156108135761080c606461080084600a63ffffffff6112d916565b9063ffffffff61130416565b90506105d1565b6010548210156108335761080c606461080084600963ffffffff6112d916565b6011548210156108535761080c606461080084600863ffffffff6112d916565b61080c606461080084600763ffffffff6112d916565b6000805433600160a060020a0390811691161461088557600080fd5b5060005b868110156108df576108d78888838181106108a057fe5b9050602002013587878481811015156108b557fe5b9050602002013586868581811015156108ca57fe5b9050602002013585610c6e565b600101610889565b5050505050505050565b6108f1611962565b600b600083600160a060020a0316600160a060020a0316815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561096057602002820191906000526020600020905b81548152602001906001019080831161094c575b50505050509050919050565b600061097782610dcc565b50600160a060020a0381166000818152600d6020526040808220805492905590919082156108fc0290839051600060405180830381858888f1935050505015156109c057600080fd5b5050565b600081815260096020526040812054600160a060020a03168015156109e857600080fd5b92915050565b6000806000806000806000610a01611974565b600089815260086020526040808220829182919060a09051908101604090815282548252600183015460208301526002808401549183019190915260038301546060830152600490920154600160a060020a03908116608083015291549095501663acf3603760648e06600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b1515610aaa57600080fd5b6102c65a03f11515610abb57600080fd5b50505060405180519060200180519060200180519060200180519060200180519497509195509293505060808601915050518451610af9865161131b565b8660400151929f919e509c50909a50929850909650945092505050565b60065481565b600160a060020a03166000908152600b602052604090205490565b600080548190819033600160a060020a03908116911614610b5757600080fd5b600254606487069350600160a060020a031663acf3603784600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b1515610bae57600080fd5b6102c65a03f11515610bbf57600080fd5b505050604051805190602001805190602001805190602001805190602001805150939550909350505050600160a060020a0382161515610bfe57600080fd5b841515610c4b576011548110610c2657610c1f81605063ffffffff61130416565b9450610c4b565b6010548110610c4057610c1f81604b63ffffffff61130416565b66071afd498d000094505b610c5786868685610c6e565b505050505050565b600054600160a060020a031681565b6000805433600160a060020a03908116911614610c8a57600080fd5b60008411610c9757600080fd5b60008581526008602052604090205415610cb057600080fd5b50600084815260086020526040812060048082018054600160a060020a031916600160a060020a03861617905585825560018083019390935560028201859055805491929091908101610d0383826119ad565b506000918252602090912001859055610d1c8286611393565b5050505050565b610d2b611962565b60408051908101604052600281527f45430000000000000000000000000000000000000000000000000000000000006020820152905090565b8033600160a060020a0316610d78826109c4565b600160a060020a031614610d8b57600080fd5b610d963384846113f5565b505050565b610da533826114d5565b1515610db057600080fd5b610dc3610dbc826109c4565b33836113f5565b50565b60055481565b610dd4611962565b600080600080600b600087600160a060020a0316600160a060020a03168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610e4957602002820191906000526020600020905b815481526020019060010190808311610e35575b50505050509450600092505b8451831015610f225761271060086000878681518110610e7157fe5b9060200190602002015181526020019081526020016000206002015460065402811515610e9a57fe5b049150610edb60086000878681518110610eb057fe5b90602001906020020151815260200190815260200160002060030154836114fb90919063ffffffff16565b9384019390508060086000878681518110610ef257fe5b90602001906020020151815260208101919091526040016000206003018054909101905560019290920191610e55565b505050600160a060020a039092166000908152600d60205260409020805490920190915550565b60005433600160a060020a03908116911614610f6457600080fd5b600160a060020a0381161515610f7957600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b6000805433600160a060020a03908116911614610ff357600080fd5b5060009182526008602052604090912060020155565b600080808080808080808033803b801561102257600080fd5b60008d815260086020526040812080546004820154919e509c50600160a060020a03169a503399508b1161105557600080fd5b348b90101561106357600080fd5b33600160a060020a03168a600160a060020a03161415151561108457600080fd5b611094348c63ffffffff6114fb16565b97506110ad8c600101548c6114fb90919063ffffffff16565b96506110b8876107de565b600680548201905595506110d860646108008d600363ffffffff6112d916565b6005549095506110ee908663ffffffff61150d16565b6005556110fc8a8a8f61151c565b60018c018b905561110c8b61131b565b8c55600160a060020a0389168d7f593a828ed4fba31d01a050f24d9bdbdc7ef9084280e88b39be6b68c565f164008d60405190815260200160405180910390a3600160a060020a038a166108fc61117961116c888a63ffffffff61150d16565b8e9063ffffffff6114fb16565b9081150290604051600060405180830381858888f19350505050151561119e57600080fd5b60025460648e069450600160a060020a031663acf3603785600060405160a0015260405160e060020a63ffffffff8416028152600481019190915260240160a060405180830381600087803b15156111f557600080fd5b6102c65a03f1151561120657600080fd5b505050604051805190602001805190602001805190602001805190602001805150939650505050600160a060020a0384161515905061124457600080fd5b600160a060020a0383166108fc61126760646108008a600f63ffffffff6112d916565b9081150290604051600060405180830381858888f19350505050151561128c57600080fd5b60008811156112c657600160a060020a03891688156108fc0289604051600060405180830381858888f1935050505015156112c657600080fd5b5050426007555050505050505050505050565b60008282028315806112f557508284828115156112f257fe5b04145b15156112fd57fe5b9392505050565b600080828481151561131257fe5b04949350505050565b6000600f5482101561133d5761080c605e6108008460c863ffffffff6112d916565b60105482101561135d5761080c605f61080084608763ffffffff6112d916565b60115482101561137d5761080c606061080084607663ffffffff6112d916565b61080c606161080084607363ffffffff6112d916565b600160a060020a03821615156113a857600080fd5b6113b2828261162d565b81600160a060020a031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35050565b81803b801561140357600080fd5b600160a060020a038416151561141857600080fd5b611421836109c4565b600160a060020a038581169116141561143957600080fd5b84600160a060020a031661144c846109c4565b600160a060020a03161461145f57600080fd5b6114698584611702565b6114738584611787565b61147d85846117f6565b611487848461162d565b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a35050505050565b600082600160a060020a03166114ea8361072a565b600160a060020a0316149392505050565b60008282111561150757fe5b50900390565b6000828201838110156112fd57fe5b611525816105c0565b151561153057600080fd5b600081815260086020526040902060040154600160a060020a0384811691161461155957600080fd5b600160a060020a038216151561156e57600080fd5b30600160a060020a031682600160a060020a03161415151561158f57600080fd5b6115998382611787565b6115a38382611702565b6115ad83826117f6565b60008181526008602052604090206004018054600160a060020a031916600160a060020a0384161790556115e1828261162d565b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a3505050565b600081815260096020526040812054600160a060020a03161561164f57600080fd5b60008281526009602090815260408083208054600160a060020a038816600160a060020a03199182168117909255600890935292206004018054909116909117905561169a83610b1c565b600160a060020a0384166000908152600b60205260409020805491925090600181016116c683826119ad565b506000918252602080832091909101849055838252600c9052604090208190556003546116fa90600163ffffffff61150d16565b600355505050565b81600160a060020a0316611715826109c4565b600160a060020a03161461172857600080fd5b6000818152600a60205260408082208054600160a060020a0319169055600160a060020a038416907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60008181526008602052604081206002810154600654600390920154612710929091029190910491906117bb9083906114fb565b6000938452600860209081526040808620600301805484019055600160a060020a039096168552600d90529390922080549093019092555050565b600080600084600160a060020a031661180e856109c4565b600160a060020a03161461182157600080fd5b6000848152600c6020526040902054925061184c600161184087610b1c565b9063ffffffff6114fb16565b600160a060020a0386166000908152600b602052604090208054919350908390811061187457fe5b60009182526020808320909101548683526009825260408084208054600160a060020a0319169055600160a060020a0389168452600b909252912080549192508291859081106118c057fe5b6000918252602080832090910192909255600160a060020a0387168152600b909152604081208054849081106118f257fe5b6000918252602080832090910192909255600160a060020a0387168152600b909152604090208054906119299060001983016119ad565b506000848152600c6020526040808220829055828252902083905560035461195890600163ffffffff6114fb16565b6003555050505050565b60206040519081016040526000815290565b60a060405190810160405280600081526020016000815260200160008152602001600081526020016000600160a060020a031681525090565b815481835581811511610d9657600083815260209020610d9691810190830161063c91905b808211156119e657600081556001016119d2565b50905600a165627a7a72305820fc7549c0f8bb36ac95b2109f21815b097100a5ecdd99235a4df90c7d91aa100b0029

Swarm Source

bzzr://fc7549c0f8bb36ac95b2109f21815b097100a5ecdd99235a4df90c7d91aa100b
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.