Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 8599 txns
Token Tracker: CashBetCoin (CBC)
 Latest 25 transactions from a total of 8599 transactions

TxHash Age From To Value [TxFee]
0x687105b4f25fe29fd6b111fde9acefd76776121cb952ac8d66f87cc27f7d65de14 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000786375
0xe52bcea7449897393ce63d20eadae65a4d180696a93404a37f0355954fc3290825 mins ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00023350625
0xda8aff683c0b084e4b25882c0dbaccb14e57a00ae917105acf6b4aaee77b304826 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0xe11eb640df5f7fafd6b6fd6cfaa7713b9f5606258662a95e1c2e96a9edafdd012 hrs 40 mins ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0002428465
0xdd1d8d0d404bb329e1af5456217fd2829a8319e8ed4912b1768783067eb23d3b2 hrs 41 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0xb14f203d665801b9a482a0112238a4448fff5ee4a6b5e5da90e4083c15e93ba810 hrs 39 mins ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000224166
0xcba82dccfc3e8f16965ca61bdc045a143175c2580b91b530b5f142c9bd9e917e10 hrs 40 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0xe1e9a7ab79787fc060f1c2022d3f5bb76dc8cd5144d32f9e58562add8a531b0813 hrs 14 mins ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0003997627
0x27c8703003d0fb02b44d7d56916546166934a2ecb67fbf192c1a6e72c5ba599313 hrs 15 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0x8f116cdec2d96e6405a02ea66c914750b14f1147c7bf2884efdd4e63714e8c0214 hrs 57 mins ago0x88e3c36fb43d9e788657adb985742377558f196c  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000733054
0xa2a09e9cee99315d23a196ba5341ace3bf909060ab179edb2cca50f4d5cc4b8915 hrs 5 mins agoBittrex_1  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00187125
0xb1262fbf2cedffeff306ca69766bbdf67a4152226d805e28fd24aa74662282ce15 hrs 7 mins ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0002503187
0x2f009912ec5f09cf96e166da3e5222cab324a33fab743f730766504c7ba9d75f15 hrs 8 mins agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0x6f08fd2ffc1de0d9a3cab071d22601cd27c5f12465d74090950c29b71cf0d7f71 day 17 mins agoBittrex_1  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00187445
0xbe5079c8e1b1cf89a1d875afe73d8be76326a6b676b00c57ca44c30dc6be85fe1 day 30 mins agoBittrex_1  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00261805
0x6a6370accb3b473ecd278eb438a3f3e68ed01512a7794aebdfbd3a9cb19144531 day 7 hrs ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0002129577
0x2e1b93a4716c3a26f3e985c24fe5283cf5c18c3c6c52d286cf3d12b6570193f91 day 7 hrs agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0xd439132fa7fae0daa9b2fe59e57bd737b1d5c5ab525ed6a56424af02c2d512a61 day 9 hrs ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0002129577
0xec51b74ba6d6c0e8639203f464a91d8a7b63206352612846cce4f22f74a5771b1 day 9 hrs agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0x096e31ce3997ede47518ceaee621153f1e545d3532a37ec7bad9cae3be510db51 day 9 hrs ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00021856185
0xf6e1c174563bd70ece8b05cf55501a0ba48bc8fdae215804f4e9f8a6305061de1 day 9 hrs agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0x47598a033748d0688974491042f3719958e75eb0d3608676747fd509673a7cbc1 day 10 hrs ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.00022603405
0x183b75d2adea9892b410c93029b2e98eba7a8b019650bbd4bc338d40b5453ab01 day 10 hrs agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
0x9c81495354a03c0a3a98ebe12d75d1f728c6f42a44e737d97baf79ad2d1f76de1 day 10 hrs ago0x8333c7deb462dc2cb8e20c24f64ec21dfc80a53a  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.0002428465
0xb5c2dc2ce0a777de962e3ed48d97d0840b6193b11b19ddc7d511098cfccae5be1 day 10 hrs agoKucoin  IN   0x26db5439f651caf491a87d48799da81f191bdb6b0 Ether0.000785415
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: CashBetCoin
Compiler Text: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.4.19;

pragma solidity ^0.4.18;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure 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;
  }

  /**
  * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}
pragma solidity ^0.4.18;

pragma solidity ^0.4.18;


/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}


/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * CashBetCoin ERC20 token
 * Based on the OpenZeppelin Standard Token
 * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol
 */

contract MigrationSource {
  function vacate(address _addr) public returns (uint256 o_balance,
                                                 uint256 o_lock_value,
                                                 uint256 o_lock_endTime,
                                                 bytes32 o_operatorId,
                                                 bytes32 o_playerId);
}

contract CashBetCoin is MigrationSource, ERC20 {
  using SafeMath for uint256;

  string public constant name = "CashBetCoin";
  string public constant symbol = "CBC";
  uint8 public constant decimals = 8;
  uint internal totalSupply_;

  address public owner;

  mapping(bytes32 => bool) public operators;
  mapping(address => User) public users;
  mapping(address => mapping(bytes32 => bool)) public employees;
  
  MigrationSource public migrateFrom;
  address public migrateTo;

  struct User {
    uint256 balance;
    uint256 lock_value;
    uint256 lock_endTime;
    bytes32 operatorId;
    bytes32 playerId;
      
    mapping(address => uint256) authorized;
  }

  modifier only_owner(){
    require(msg.sender == owner);
    _;
  }

  modifier only_employees(address _user){
    require(employees[msg.sender][users[_user].operatorId]);
    _;
  }

  // PlayerId may only be set if operatorId is set too.
  modifier playerid_iff_operatorid(bytes32 _opId, bytes32 _playerId){
    require(_opId != bytes32(0) || _playerId == bytes32(0));
    _;
  }

  // Value argument must be less than unlocked balance.
  modifier value_less_than_unlocked_balance(address _user, uint256 _value){
    User storage user = users[_user];
    require(user.lock_endTime < block.timestamp ||
            _value <= user.balance - user.lock_value);
    require(_value <= user.balance);
    _;
  }

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

  event LockIncrease(address indexed user, uint256 amount, uint256 time);
  event LockDecrease(address indexed user, address employee,  uint256 amount, uint256 time);

  event Associate(address indexed user, address agent, bytes32 indexed operatorId, bytes32 playerId);
  
  event Burn(address indexed owner, uint256 value);

  event OptIn(address indexed owner, uint256 value);
  event Vacate(address indexed owner, uint256 value);

  event Employee(address indexed empl, bytes32 indexed operatorId, bool allowed);
  event Operator(bytes32 indexed operatorId, bool allowed);

  function CashBetCoin(uint _totalSupply) public {
    totalSupply_ = _totalSupply;
    owner = msg.sender;
    User storage user = users[owner];
    user.balance = totalSupply_;
    user.lock_value = 0;
    user.lock_endTime = 0;
    user.operatorId = bytes32(0);
    user.playerId = bytes32(0);
    Transfer(0, owner, _totalSupply);
  }

  function totalSupply() public view returns (uint256){
    return totalSupply_;
  }

  function balanceOf(address _addr) public view returns (uint256 balance) {
    return users[_addr].balance;
  }

  function transfer(address _to, uint256 _value) public value_less_than_unlocked_balance(msg.sender, _value) returns (bool success) {
    User storage user = users[msg.sender];
    user.balance = user.balance.sub(_value);
    users[_to].balance = users[_to].balance.add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  function transferFrom(address _from, address _to, uint256 _value) public value_less_than_unlocked_balance(_from, _value) returns (bool success) {
    User storage user = users[_from];
    user.balance = user.balance.sub(_value);
    users[_to].balance = users[_to].balance.add(_value);
    user.authorized[msg.sender] = user.authorized[msg.sender].sub(_value);
    Transfer(_from, _to, _value);
    return true;
  }

  function approve(address _spender, uint256 _value) public returns (bool success){
    // To change the approve amount you first have to reduce the addresses`
    //  allowance to zero by calling `approve(_spender, 0)` if it is not
    //  already 0 to mitigate the race condition described here:
    //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    require((_value == 0) || (users[msg.sender].authorized[_spender] == 0));
    users[msg.sender].authorized[_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  function allowance(address _user, address _spender) public view returns (uint256){
    return users[_user].authorized[_spender];
  }

  // Returns the number of locked tokens at the specified address.
  //
  function lockedValueOf(address _addr) public view returns (uint256 value) {
    User storage user = users[_addr];
    // Is the lock expired?
    if (user.lock_endTime < block.timestamp) {
      // Lock is expired, no locked value.
      return 0;
    } else {
      return user.lock_value;
    }
  }

  // Returns the unix time that the current token lock will expire.
  //
  function lockedEndTimeOf(address _addr) public view returns (uint256 time) {
    return users[_addr].lock_endTime;
  }

  // Lock the specified number of tokens until the specified unix
  // time.  The locked value and expiration time are both absolute (if
  // the account already had some locked tokens the count will be
  // increased to this value.)  If the user already has locked tokens
  // the locked token count and expiration time may not be smaller
  // than the previous values.
  //
  function increaseLock(uint256 _value, uint256 _time) public returns (bool success) {
    User storage user = users[msg.sender];

    // Is there a lock in effect?
    if (block.timestamp < user.lock_endTime) {
      // Lock in effect, ensure nothing gets smaller.
      require(_value >= user.lock_value);
      require(_time >= user.lock_endTime);
      // Ensure something has increased.
      require(_value > user.lock_value || _time > user.lock_endTime);
    }

    // Things we always require.
    require(_value <= user.balance);
    require(_time > block.timestamp);

    user.lock_value = _value;
    user.lock_endTime = _time;
    LockIncrease(msg.sender, _value, _time);
    return true;
  }

  // Employees of CashBet may decrease the locked token value and/or
  // decrease the locked token expiration date.  These values may not
  // ever be increased by an employee.
  //
  function decreaseLock(uint256 _value, uint256 _time, address _user) public only_employees(_user) returns (bool success) {
    User storage user = users[_user];

    // We don't modify expired locks (they are already 0)
    require(user.lock_endTime > block.timestamp);
    // Ensure nothing gets bigger.
    require(_value <= user.lock_value);
    require(_time <= user.lock_endTime);
    // Ensure something has decreased.
    require(_value < user.lock_value || _time < user.lock_endTime);

    user.lock_value = _value;
    user.lock_endTime = _time;
    LockDecrease(_user, msg.sender, _value, _time);
    return true;
  }

  function associate(bytes32 _opId, bytes32 _playerId) public playerid_iff_operatorid(_opId, _playerId) returns (bool success) {
    User storage user = users[msg.sender];

    // Players can associate their playerId once while the token is
    // locked.  They can't change this association until the lock
    // expires ...
    require(user.lock_value == 0 ||
            user.lock_endTime < block.timestamp ||
            user.playerId == 0);

    // OperatorId argument must be empty or in the approved operators set.
    require(_opId == bytes32(0) || operators[_opId]);

    user.operatorId = _opId;
    user.playerId = _playerId;
    Associate(msg.sender, msg.sender, _opId, _playerId);
    return true;
  }

  function associationOf(address _addr) public view returns (bytes32 opId, bytes32 playerId) {
    return (users[_addr].operatorId, users[_addr].playerId);
  }

  function setAssociation(address _user, bytes32 _opId, bytes32 _playerId) public only_employees(_user) playerid_iff_operatorid(_opId, _playerId) returns (bool success) {
    User storage user = users[_user];

    // Employees may only set opId to empty or something they are an
    // employee of.
    require(_opId == bytes32(0) || employees[msg.sender][_opId]);
    
    user.operatorId = _opId;
    user.playerId = _playerId;
    Associate(_user, msg.sender, _opId, _playerId);
    return true;
  }
  
  function setEmployee(address _addr, bytes32 _opId, bool _allowed) public only_owner {
    employees[_addr][_opId] = _allowed;
    Employee(_addr, _opId, _allowed);
  }

  function setOperator(bytes32 _opId, bool _allowed) public only_owner {
    operators[_opId] = _allowed;
    Operator(_opId, _allowed);
  }

  function setOwner(address _addr) public only_owner {
    owner = _addr;
  }

  function burnTokens(uint256 _value) public value_less_than_unlocked_balance(msg.sender, _value) returns (bool success) {
    User storage user = users[msg.sender];
    user.balance = user.balance.sub(_value);
    totalSupply_ = totalSupply_.sub(_value);
    Burn(msg.sender, _value);
    return true;
  }

  // Sets the contract address that this contract will migrate
  // from when the optIn() interface is used.
  //
  function setMigrateFrom(address _addr) public only_owner {
    require(migrateFrom == MigrationSource(0));
    migrateFrom = MigrationSource(_addr);
  }

  // Sets the contract address that is allowed to call vacate on this
  // contract.
  //
  function setMigrateTo(address _addr) public only_owner {
    migrateTo = _addr;
  }

  // Called by a token holding address, this method migrates the
  // tokens from an older version of the contract to this version.
  // The migrated tokens are merged with any existing tokens in this
  // version of the contract, resulting in the locked token count
  // being set to the sum of locked tokens in the old and new
  // contracts and the lock expiration being set the longest lock
  // duration for this address in either contract.  The playerId is
  // transferred unless it was already set in the new contract.
  //
  // NOTE - allowances (approve) are *not* transferred.  If you gave
  // another address an allowance in the old contract you need to
  // re-approve it in the new contract.
  //
  function optIn() public returns (bool success) {
    require(migrateFrom != MigrationSource(0));
    User storage user = users[msg.sender];
    uint256 balance;
    uint256 lock_value;
    uint256 lock_endTime;
    bytes32 opId;
    bytes32 playerId;
    (balance, lock_value, lock_endTime, opId, playerId) =
        migrateFrom.vacate(msg.sender);

    OptIn(msg.sender, balance);
    
    user.balance = user.balance.add(balance);

    bool lockTimeIncreased = false;
    user.lock_value = user.lock_value.add(lock_value);
    if (user.lock_endTime < lock_endTime) {
      user.lock_endTime = lock_endTime;
      lockTimeIncreased = true;
    }
    if (lock_value > 0 || lockTimeIncreased) {
      LockIncrease(msg.sender, user.lock_value, user.lock_endTime);
    }

    if (user.operatorId == bytes32(0) && opId != bytes32(0)) {
      user.operatorId = opId;
      user.playerId = playerId;
      Associate(msg.sender, msg.sender, opId, playerId);
    }

    totalSupply_ = totalSupply_.add(balance);

    return true;
  }

  // The vacate method is called by a newer version of the CashBetCoin
  // contract to extract the token state for an address and migrate it
  // to the new contract.
  //
  function vacate(address _addr) public returns (uint256 o_balance,
                                                 uint256 o_lock_value,
                                                 uint256 o_lock_endTime,
                                                 bytes32 o_opId,
                                                 bytes32 o_playerId) {
    require(msg.sender == migrateTo);
    User storage user = users[_addr];
    require(user.balance > 0);

    o_balance = user.balance;
    o_lock_value = user.lock_value;
    o_lock_endTime = user.lock_endTime;
    o_opId = user.operatorId;
    o_playerId = user.playerId;

    totalSupply_ = totalSupply_.sub(user.balance);

    user.balance = 0;
    user.lock_value = 0;
    user.lock_endTime = 0;
    user.operatorId = bytes32(0);
    user.playerId = bytes32(0);

    Vacate(_addr, o_balance);
  }

  // Don't accept ETH.
  function () public payable {
    revert();
  }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"migrateFrom","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"setMigrateFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_opId","type":"bytes32"},{"name":"_allowed","type":"bool"}],"name":"setEmployee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"lockedEndTimeOf","outputs":[{"name":"time","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"employees","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"optIn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_time","type":"uint256"}],"name":"increaseLock","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"lockedValueOf","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnTokens","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"setMigrateTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_opId","type":"bytes32"},{"name":"_playerId","type":"bytes32"}],"name":"associate","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_opId","type":"bytes32"},{"name":"_allowed","type":"bool"}],"name":"setOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"migrateTo","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"users","outputs":[{"name":"balance","type":"uint256"},{"name":"lock_value","type":"uint256"},{"name":"lock_endTime","type":"uint256"},{"name":"operatorId","type":"bytes32"},{"name":"playerId","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_user","type":"address"},{"name":"_opId","type":"bytes32"},{"name":"_playerId","type":"bytes32"}],"name":"setAssociation","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"operators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"vacate","outputs":[{"name":"o_balance","type":"uint256"},{"name":"o_lock_value","type":"uint256"},{"name":"o_lock_endTime","type":"uint256"},{"name":"o_opId","type":"bytes32"},{"name":"o_playerId","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_time","type":"uint256"},{"name":"_user","type":"address"}],"name":"decreaseLock","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"associationOf","outputs":[{"name":"opId","type":"bytes32"},{"name":"playerId","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"time","type":"uint256"}],"name":"LockIncrease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"employee","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"time","type":"uint256"}],"name":"LockDecrease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"agent","type":"address"},{"indexed":true,"name":"operatorId","type":"bytes32"},{"indexed":false,"name":"playerId","type":"bytes32"}],"name":"Associate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"OptIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Vacate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"empl","type":"address"},{"indexed":true,"name":"operatorId","type":"bytes32"},{"indexed":false,"name":"allowed","type":"bool"}],"name":"Employee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"operatorId","type":"bytes32"},{"indexed":false,"name":"allowed","type":"bool"}],"name":"Operator","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60405160208061165283398101604052808051600081815560018054600160a060020a03191633600160a060020a03908116919091178083558116835260036020819052604080852086815580850186905560028101869055918201859055600482018590559254949650945092909216917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3505061158d806100c56000396000f30060606040526004361061017f5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610184578063093c52841461020e578063095ea7b31461023d57806313af40351461027357806318160ddd1461029457806323b872dd146102b9578063313ce567146102e15780633a6776961461030a5780633ea69d761461032957806340bea8d214610350578063465f21401461036f5780635b48684e146103915780635e70a6dc146103a457806368624bd7146103bd5780636d1b229d146103dc57806370a08231146103f2578063736ec05c146104115780637893d936146104305780638cb5497c146104495780638da5cb5b1461046457806395d89b411461047757806398c6e7601461048a578063a87430ba1461049d578063a9059cbb146104ed578063ba873f601461050f578063d04eed0614610534578063dd62ed3e1461054a578063dd8a0c561461056f578063e0b86c531461058e578063e1af0121146105b3575b600080fd5b341561018f57600080fd5b6101976105ea565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101d35780820151838201526020016101bb565b50505050905090810190601f1680156102005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021957600080fd5b610221610621565b604051600160a060020a03909116815260200160405180910390f35b341561024857600080fd5b61025f600160a060020a0360043516602435610630565b604051901515815260200160405180910390f35b341561027e57600080fd5b610292600160a060020a03600435166106de565b005b341561029f57600080fd5b6102a7610728565b60405190815260200160405180910390f35b34156102c457600080fd5b61025f600160a060020a036004358116906024351660443561072e565b34156102ec57600080fd5b6102f4610897565b60405160ff909116815260200160405180910390f35b341561031557600080fd5b610292600160a060020a036004351661089c565b341561033457600080fd5b610292600160a060020a036004351660243560443515156108fc565b341561035b57600080fd5b6102a7600160a060020a0360043516610985565b341561037a57600080fd5b61025f600160a060020a03600435166024356109a3565b341561039c57600080fd5b61025f6109c3565b34156103af57600080fd5b61025f600435602435610c33565b34156103c857600080fd5b6102a7600160a060020a0360043516610d0f565b34156103e757600080fd5b61025f600435610d4b565b34156103fd57600080fd5b6102a7600160a060020a0360043516610e2d565b341561041c57600080fd5b610292600160a060020a0360043516610e48565b341561043b57600080fd5b61025f600435602435610e92565b341561045457600080fd5b6102926004356024351515610f86565b341561046f57600080fd5b610221610ff8565b341561048257600080fd5b610197611007565b341561049557600080fd5b61022161103e565b34156104a857600080fd5b6104bc600160a060020a036004351661104d565b60405194855260208501939093526040808501929092526060840152608083019190915260a0909101905180910390f35b34156104f857600080fd5b61025f600160a060020a036004351660243561107d565b341561051a57600080fd5b61025f600160a060020a036004351660243560443561118e565b341561053f57600080fd5b61025f6004356112ad565b341561055557600080fd5b6102a7600160a060020a03600435811690602435166112c2565b341561057a57600080fd5b6104bc600160a060020a03600435166112f1565b341561059957600080fd5b61025f600435602435600160a060020a03604435166113e0565b34156105be57600080fd5b6105d2600160a060020a0360043516611511565b60405191825260208201526040908101905180910390f35b60408051908101604052600b81527f43617368426574436f696e000000000000000000000000000000000000000000602082015281565b600554600160a060020a031681565b60008115806106665750600160a060020a0333811660009081526003602090815260408083209387168352600590930190522054155b151561067157600080fd5b600160a060020a0333811660008181526003602090815260408083209488168084526005909501909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015433600160a060020a039081169116146106f957600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005490565b600160a060020a038316600090815260036020526040812060028101548291869185919042901080610767575060018101548154038211155b151561077257600080fd5b805482111561078057600080fd5b600160a060020a038816600090815260036020526040902080549094506107ad908763ffffffff61153916565b8455600160a060020a0387166000908152600360205260409020546107d8908763ffffffff61154b16565b600160a060020a03808916600090815260036020908152604080832094909455339092168152600587019091522054610817908763ffffffff61153916565b84600501600033600160a060020a0316600160a060020a031681526020019081526020016000208190555086600160a060020a031688600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8860405190815260200160405180910390a3506001979650505050505050565b600881565b60015433600160a060020a039081169116146108b757600080fd5b600554600160a060020a0316156108cd57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60015433600160a060020a0390811691161461091757600080fd5b600160a060020a038316600081815260046020908152604080832086845290915290819020805460ff19168415151790558391907fb0352cd8f3667aa88484d4ddf6d0b2142edbc11509eced7cd5fd2752450b42e990849051901515815260200160405180910390a3505050565b600160a060020a031660009081526003602052604090206002015490565b600460209081526000928352604080842090915290825290205460ff1681565b6005546000908190819081908190819081908190600160a060020a031615156109eb57600080fd5b600160a060020a0333818116600090815260036020526040808220600554909b509093169263dd8a0c569291905160a001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff8416028152600160a060020a03909116600482015260240160a060405180830381600087803b1515610a7457600080fd5b6102c65a03f11515610a8557600080fd5b5050506040518051906020018051906020018051906020018051906020018051949a50929850909650945090925050600160a060020a0333167ff0e520acbece39466904841cb17dfd01cca67691e7574631f04c27a5518ce8be8760405190815260200160405180910390a28654610b03908763ffffffff61154b16565b8755506001860154600090610b1e908663ffffffff61154b16565b6001880155600287015484901015610b3b57506002860183905560015b6000851180610b475750805b15610b995733600160a060020a03167f86221e8ae433c04d4e775c38b24eaa87361e2b2e20b8a45b751332e3c10085298860010154896002015460405191825260208201526040908101905180910390a25b6003870154158015610baa57508215155b15610c0f5760038701839055600487018290558233600160a060020a038116907f5594352b0765c96adbf0763aaa4c0b5ff8c7b10f2188a14ed95f816153e536849085604051600160a060020a03909216825260208201526040908101905180910390a35b600054610c22908763ffffffff61154b16565b600055600197505050505050505090565b600160a060020a03331660009081526003602052604081206002810154421015610c99576001810154841015610c6857600080fd5b6002810154831015610c7957600080fd5b8060010154841180610c8e5750806002015483115b1515610c9957600080fd5b8054841115610ca757600080fd5b428311610cb357600080fd5b6001810184905560028101839055600160a060020a0333167f86221e8ae433c04d4e775c38b24eaa87361e2b2e20b8a45b751332e3c1008529858560405191825260208201526040908101905180910390a25060019392505050565b600160a060020a0381166000908152600360205260408120600281015442901015610d3d5760009150610d45565b806001015491505b50919050565b33600160a060020a03811660009081526003602052604081206002810154919283929091859142901080610d86575060018101548154038211155b1515610d9157600080fd5b8054821115610d9f57600080fd5b600160a060020a03331660009081526003602052604090208054909450610dcc908763ffffffff61153916565b8455600054610de1908763ffffffff61153916565b600055600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58760405190815260200160405180910390a250600195945050505050565b600160a060020a031660009081526003602052604090205490565b60015433600160a060020a03908116911614610e6357600080fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080838381151580610ea3575080155b1515610eae57600080fd5b600160a060020a033316600090815260036020526040902060018101549093501580610edd5750428360020154105b80610eea57506004830154155b1515610ef557600080fd5b851580610f10575060008681526002602052604090205460ff165b1515610f1b57600080fd5b60038301869055600483018590558533600160a060020a038116907f5594352b0765c96adbf0763aaa4c0b5ff8c7b10f2188a14ed95f816153e536849088604051600160a060020a03909216825260208201526040908101905180910390a350600195945050505050565b60015433600160a060020a03908116911614610fa157600080fd5b60008281526002602052604090819020805460ff191683151517905582907fe81fe697f474ea10e3460ff3510e9315131b0f107afefcc1bbaac89f370d4d1890839051901515815260200160405180910390a25050565b600154600160a060020a031681565b60408051908101604052600381527f4342430000000000000000000000000000000000000000000000000000000000602082015281565b600654600160a060020a031681565b60036020819052600091825260409091208054600182015460028301549383015460049093015491939092909185565b33600160a060020a038116600090815260036020526040812060028101549192839290918591429010806110b8575060018101548154038211155b15156110c357600080fd5b80548211156110d157600080fd5b600160a060020a033316600090815260036020526040902080549094506110fe908763ffffffff61153916565b8455600160a060020a038716600090815260036020526040902054611129908763ffffffff61154b16565b600160a060020a0380891660008181526003602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9089905190815260200160405180910390a35060019695505050505050565b600160a060020a0333811660009081526004602090815260408083209387168352600380835281842001548352929052908120548190859060ff1615156111d457600080fd5b8484811515806111e2575080155b15156111ed57600080fd5b600160a060020a038816600090815260036020526040902093508615806112375750600160a060020a03331660009081526004602090815260408083208a845290915290205460ff165b151561124257600080fd5b600384018790556004840186905586600160a060020a0389167f5594352b0765c96adbf0763aaa4c0b5ff8c7b10f2188a14ed95f816153e536843389604051600160a060020a03909216825260208201526040908101905180910390a3506001979650505050505050565b60026020526000908152604090205460ff1681565b600160a060020a0391821660009081526003602090815260408083209390941682526005909201909152205490565b6006546000908190819081908190819033600160a060020a0390811691161461131957600080fd5b50600160a060020a038616600090815260036020526040812080549091901161134157600080fd5b80546001820154600283015460038401546004850154600054949a5092985090965094509250611377908763ffffffff61153916565b60009081558082556001820181905560028201819055600382018190556004820155600160a060020a0387167ff6f656546545eaa9657159fbaa12d4918f381295f67c651d353f781b518a59c98760405190815260200160405180910390a25091939590929450565b600160a060020a0333811660009081526004602090815260408083209385168352600380835281842001548352929052908120548190839060ff16151561142657600080fd5b600160a060020a0384166000908152600360205260409020600281015490925042901161145257600080fd5b600182015486111561146357600080fd5b600282015485111561147457600080fd5b81600101548610806114895750816002015485105b151561149457600080fd5b6001820186905560028201859055600160a060020a0384167ff64ab2f72bb8f0fa3002f35d72debc8325fdc2d2e5e8e25022a43642b3e1e36d3388886040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a250600195945050505050565b600160a060020a03166000908152600360208190526040909120908101546004909101549091565b60008282111561154557fe5b50900390565b60008282018381101561155a57fe5b93925050505600a165627a7a72305820f5804cf8f34bf96d33e3dab7c030b33af38748e7a81d75d9c6fb704b007abe2f00290000000000000000000000000000000000000000000000000098c445ad578000

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000098c445ad578000


   Swarm Source:
bzzr://f5804cf8f34bf96d33e3dab7c030b33af38748e7a81d75d9c6fb704b007abe2f

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.