Contract 0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd3

 

TxHash Block Age From To Value [TxFee]
0xe9ac1b3fd30202e0209c81e3e950999ee8f792132d701b99f9c378408126d3bf72572382 hrs 10 mins ago0x4243f2cd38c8bf9ecdd978c525fe8b94a552cf28 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00357068
0xdba2a5a97936e351a87f12786ea4f828f6043576b064ff63494dc79b6cb029e872566145 hrs 39 mins ago0x87eceaf208893e8c6aacf15bae9359b14a335827 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.000603889
0x2bce7277dfe265a11f5732d58b9907491ba6e72b9b6aedecb85f4a0cbc83704672561148 hrs 22 mins ago0x0bc9c04d57cf94a3801b54404454e1f2ad430de9 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.0005251
0xef6fef638602f900903b09d18ff6d704bcab6205350d815e79f5f8e5331c917e72560438 hrs 42 mins ago0x0bc9c04d57cf94a3801b54404454e1f2ad430de9 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.0003751
0xc79cc3541eedb68e1cf3cf9f7188d61e4197b5929063544077a7ba73430e2d1472560438 hrs 42 mins ago0x9280634a23db5d3dc98c849676354f6051309eb9 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.0005251
0x9c21f9c9a9c7048d5b6ece3d04c9bca8b8939128bdfe8d4481f69947f02b829872560428 hrs 42 mins ago0x0bc9c04d57cf94a3801b54404454e1f2ad430de9 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.0005251
0x26850d720d4bdeedabfb61b5ce0c2acddb9c6bdf74a292e03f2de53aed5b4d7372559249 hrs 19 mins ago0x8a5eb36b014f18ec435ace0b7aee334151467ba7 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.000299568
0x119857426cff75639a0c2721fb4f0d885bc90ca071494ffee06b4e43ade3e8d7725536912 hrs 22 mins ago0x15dd164a864c5b11dc983688a12070137a0aba0e IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.000329394
0x198e9daa0fa8abf6326be2f58de8f2ac6b57663ff0799c15cc11428d8d8f2535725509013 hrs 59 mins ago0x69b26d4fc37bee34f0ffbe35a582bd5bd65ed823 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0xfd7283a21fa37d28d7520c3921643acd4e04e170f88f5a0af90404dfd8c8e3ba725509013 hrs 59 mins ago0x6695831b5b9d88b22fb1f995c1c7bc2524be55cf IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0x78bd08ab6d2c811288c8b7c6405d21c5bb1318ce4908cf05ac14ce10a878db74725509013 hrs 59 mins ago0x05eacfb86c11b2f787a5341b50fe56d6b61a8efe IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0x8e659ed1b6f1b46c50402bdc25b3bd6dcf2c4db86c6f7177c4579b248f3abec4725509013 hrs 59 mins ago0x0cbbb3374f4329112a2503589205ef0050e84df8 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0xad3974889a623f55eb3f6d2973daa2e8da9b4711c7f1565e825ec92fa1dc6cf5725509013 hrs 59 mins ago0x4f27f4c73d69ad60c4c73d7ca97e6e0f7c9ff14d IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0x9c6380ab582a4853260bca125388b0d827ab8c2b5d03ac744b4e308450b79c8d725509013 hrs 59 mins ago0x1e26e6e3e6cc74d350780bc8179597190cdaa61f IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0x2531b62594f73225659ce45f97238dafec760ce7849d2d3870a380596a6a8be7725509013 hrs 59 mins ago0xee1dc499130679621f1a61b92ce0cd884e9cf3e8 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0xf7eea87d084fe45826f8f002cdc5e3d14be273c7d9e5ab77c0c8fc86a5967397725509013 hrs 59 mins ago0x66d063c81a489146d255e4ab53efc6c4b1e6f3de IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0x35ea89612917f96afcf84d8c4ae58818a2129d76ccbc6661b98ec004520a2e26725508914 hrs ago0x693caae747d3120c6d70dad2ee2715980d5b3f7a IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00020259
0xc630067064da64731c0fb6accc596890c631f0dcf9ce0d6852e9b326bb3ace1f72528791 day 2 hrs ago0xc41927a85a6bd0129260c1d77d3adccc705eb438 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00141777
0xe44e6f538a935e8382cd768ba717668db5980622101dd0739497a3fc6e8116ba72527891 day 3 hrs ago0x5fee3abc8a1025a9d633920285c62abc8d828878 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.000439192
0xffd8843cdede03eb8cf38a323b26eb0a4cfb8d731beb08b6633bbb7943e8a9a672527581 day 3 hrs ago0xe714580160f1ecc5ccbc708cc11984277a9c5bfa IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.000494091
0x6cfb0d4a869e46b7e841d93c7fafcd17c912c19959d11c824228f486cfb5566772522941 day 5 hrs ago0x10a893908c1ff7921d2f59468e4f588205d68a66 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.0003751
0xf99c01b8aaadeb0e00fdcd83fb4bc7918646322cf9b6a350e7489d62f107e54a72521591 day 6 hrs ago0x0c8bf637c4da9990139f404a0343c2f90003b15f IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00078765
0x45036a5e3b2acc6f5922137fb4fcd6a4ea114bc11c98f79cfc5fbd50a0f76ac372521011 day 7 hrs ago0xa10b2d0c2cd29d0da4078bdea31282f1cfcdc8c6 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00178534
0x098d1b723f02425b6c27a63b113e714750a91dadc9405714865d15b3aef0452972520971 day 7 hrs ago0xa10b2d0c2cd29d0da4078bdea31282f1cfcdc8c6 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.00173283
0x94f2e4cf68cb8008cb8da4bec032dc9d4eda22ca2e5114a9c1f7671efda6440872520951 day 7 hrs ago0xa10b2d0c2cd29d0da4078bdea31282f1cfcdc8c6 IN  0x5da8d37485b4374fc338fc1f1ea31d07eb7bedd30 Ether0.001678272
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: TuzyCoin
Compiler Version: v0.4.23+commit.124ca40d
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity 0.4.23;

/**
 * @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 Subtracts 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;
  }
}


/**
 * @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);
}


/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  uint256 totalSupply_;

  /**
  * @dev total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return totalSupply_;
  }

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

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

}


/**
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed).
 */
contract BurnableToken is BasicToken {

  event Burn(address indexed burner, uint256 value);

  /**
   * @dev Burns a specific amount of tokens.
   * @param _value The amount of token to be burned.
   */
  function burn(uint256 _value) public {
    _burn(msg.sender, _value);
  }

  function _burn(address _who, uint256 _value) internal {
    require(_value <= balances[_who]);
    // no need to require value <= totalSupply, since that would imply the
    // sender's balance is greater than the totalSupply, which *should* be an assertion failure

    balances[_who] = balances[_who].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);
    emit Burn(_who, _value);
    emit Transfer(_who, address(0), _value);
  }
}


/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}


/**
 * @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.
   */
  constructor() 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) public onlyOwner {
    require(newOwner != address(0));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}


/**
 * @title Claimable
 * @dev Extension for the Ownable contract, where the ownership needs to be claimed.
 * This allows the new owner to accept the transfer.
 */
contract Claimable is Ownable {
  address public pendingOwner;

  /**
   * @dev Modifier throws if called by any account other than the pendingOwner.
   */
  modifier onlyPendingOwner() {
    require(msg.sender == pendingOwner);
    _;
  }

  /**
   * @dev Allows the current owner to set the pendingOwner address.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) onlyOwner public {
    pendingOwner = newOwner;
  }

  /**
   * @dev Allows the pendingOwner address to finalize the transfer.
   */
  function claimOwnership() onlyPendingOwner public {
    emit OwnershipTransferred(owner, pendingOwner);
    owner = pendingOwner;
    pendingOwner = address(0);
  }
}



/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


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

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

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}


contract PausableToken is StandardToken, BurnableToken, Claimable, Pausable {
    function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
    	return super.transfer(_to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
    	return super.transferFrom(_from, _to, _value);
    }

    function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
    	return super.approve(_spender, _value);
    }

    function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
      return super.increaseApproval(_spender, _addedValue);
    }

    function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
      return super.decreaseApproval(_spender, _subtractedValue);
    }
}

contract LockableToken is PausableToken {
	using SafeMath for uint256;

	event Lock(address indexed owner, uint256 orderId, uint256 amount, uint256 releaseTimestamp);
	event UnLock(address indexed owner, uint256 orderId, uint256 amount);

	struct LockRecord {
	    
	    ///@dev order id
	    uint256 orderId;

	    ///@dev lock amount
	    uint256 amount;

	    ///@dev unlock timestamp
	    uint256 releaseTimestamp;
	}
	
	mapping (address => LockRecord[]) ownedLockRecords;
	mapping (address => uint256) ownedLockAmount;


	/**
	* @dev Lock token until _timeSpan second.
	* @param _orderId uint256
	* @param _amount uint256
	*/
	function lockTokenForNode(uint256 _orderId, uint256 _amount, uint256 _timeSpan) public whenNotPaused {
		require(balances[msg.sender] >= _amount);
		require(_timeSpan > 0 && _timeSpan <= 3 * 365 days);
	    
		uint256 releaseTimestamp = now + _timeSpan;

	 	_lockToken(_orderId, _amount, releaseTimestamp);
	}


	function unlockToken() public whenNotPaused {
		LockRecord[] memory list = ownedLockRecords[msg.sender];
    require(list.length > 0);
		for(uint i = list.length - 1; i >= 0; i--) {
			// If a record can be release.
			if (now >= list[i].releaseTimestamp) {
				_unlockTokenByIndex(i);
			}
			/// @dev i is a type of uint , so it must be break when i == 0.
			if (i == 0) {
				break;
			}
		}
	}

	/**
	* @param _index uint256 Lock record idnex.
	* @return Return a lock record (lock amount, releaseTimestamp)
	*/
	function getLockByIndex(uint256 _index) public view returns(uint256, uint256, uint256) {
        LockRecord memory record = ownedLockRecords[msg.sender][_index];
        
        return (record.orderId, record.amount, record.releaseTimestamp);
    }

  function getLockAmount() public view returns(uint256) {
  	LockRecord[] memory list = ownedLockRecords[msg.sender];
  	uint sum = 0;
  	for (uint i = 0; i < list.length; i++) {
  		sum += list[i].amount;
  	}

  	return sum;
  }

  /**
  * @dev Get lock records count
  */
  function getLockRecordCount() view public returns(uint256) {
    return ownedLockRecords[msg.sender].length;
  }

	/**
	* @param _amount uint256 Lock amount.
	* @param _releaseTimestamp uint256 Unlock timestamp.
	*/
	function _lockToken(uint256 _orderId, uint256 _amount, uint256 _releaseTimestamp) internal {
		require(ownedLockRecords[msg.sender].length <= 20);
    
    balances[msg.sender] = balances[msg.sender].sub(_amount);

		///@dev We don't care the orderId already exist or not. 
		/// Because the web server will detect it.
		ownedLockRecords[msg.sender].push( LockRecord(_orderId, _amount, _releaseTimestamp) );
		ownedLockAmount[msg.sender] = ownedLockAmount[msg.sender].add(_amount);

		emit Lock(msg.sender, _orderId, _amount, _releaseTimestamp);
	}

	/**
	* @dev using by internal.
	*/
	function _unlockTokenByIndex(uint256 _index) internal {
		LockRecord memory record = ownedLockRecords[msg.sender][_index];
		uint length = ownedLockRecords[msg.sender].length;

		ownedLockRecords[msg.sender][_index] = ownedLockRecords[msg.sender][length - 1];
		delete ownedLockRecords[msg.sender][length - 1];
		ownedLockRecords[msg.sender].length--;

		ownedLockAmount[msg.sender] = ownedLockAmount[msg.sender].sub(record.amount);
		balances[msg.sender] = balances[msg.sender].add(record.amount);

		emit UnLock(msg.sender, record.orderId, record.amount);
	}

}

contract TuzyPayableToken is LockableToken {
	
	event Pay(address indexed owner, uint256 orderId, uint256 amount, uint256 burnAmount);

	address public cooAddress;

	/// @dev User pay action will consume a certain amount of token.
	//uint256 public payAmount;

	/// @dev User pay action will brun a certain amount of token their owned.
	//uint256 public payBrunAmount;


	/**
	* @dev The TuzyPayableToken constructor sets the original `cooAddress` of the contract to the sender
	* account.
	*/
	constructor() public {
		cooAddress = msg.sender;
	}
	
/// @dev Assigns a new address to act as the COO.
  /// @param _newCOO The address of the new COO.
  function setCOO(address _newCOO) external onlyOwner {
      require(_newCOO != address(0));
      
      cooAddress = _newCOO;
  }

  /**
  * @dev Pay for order
  *
  */ 
  function payOrder(uint256 _orderId, uint256 _amount, uint256 _burnAmount) external whenNotPaused {
  	require(balances[msg.sender] >= _amount);
  	
  	/// @dev _burnAmount must be less then _amount, the code can be executed to the next line.
  	uint256 fee = _amount.sub(_burnAmount);
  	if (fee > 0) {
  		transfer(cooAddress, fee);
  	}
  	burn(_burnAmount);
  	emit Pay(msg.sender, _orderId, _amount, _burnAmount);
  }
}

contract TuzyCoin is TuzyPayableToken {
	string public name    = "Tuzy Coin";
	string public symbol  = "TUC";
	uint8 public decimals = 8;

	// 1.6 billion in initial supply
	uint256 public constant INITIAL_SUPPLY = 1600000000;

	constructor() public {
		totalSupply_ = INITIAL_SUPPLY * (10 ** uint256(decimals));
		balances[msg.sender] = totalSupply_;
	}

  function globalBurnAmount() public view returns(uint256) {
    return INITIAL_SUPPLY * (10 ** uint256(decimals)) - totalSupply_;
  }

}

Contract ABI
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"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":"unlockToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCOO","type":"address"}],"name":"setCOO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLockRecordCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"globalBurnAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"cooAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"getLockByIndex","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_orderId","type":"uint256"},{"name":"_amount","type":"uint256"},{"name":"_timeSpan","type":"uint256"}],"name":"lockTokenForNode","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_orderId","type":"uint256"},{"name":"_amount","type":"uint256"},{"name":"_burnAmount","type":"uint256"}],"name":"payOrder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getLockAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"orderId","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"burnAmount","type":"uint256"}],"name":"Pay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"orderId","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"releaseTimestamp","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"orderId","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"UnLock","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","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":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"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"}]

Contract Creation Code
6004805460a060020a60ff021916905560c0604052600960808190527f54757a7920436f696e000000000000000000000000000000000000000000000060a090815262000050916008919062000108565b506040805180820190915260038082527f54554300000000000000000000000000000000000000000000000000000000006020909201918252620000979160099162000108565b50600a805460ff19166008179055348015620000b257600080fd5b5060038054600160a060020a031990811633600160a060020a03169081179092556007805490911682179055600a805460ff16900a635f5e100002600181905560009182526020829052604090912055620001ad565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200014b57805160ff19168380011785556200017b565b828001600101855582156200017b579182015b828111156200017b5782518255916020019190600101906200015e565b50620001899291506200018d565b5090565b620001aa91905b8082111562000189576000815560010162000194565b90565b61174580620001bd6000396000f3006080604052600436106101745763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610179578063095ea7b31461020357806318160ddd1461023b57806318a24b5b1461026257806323b872dd146102795780632ba73c15146102a35780632ff2e9dc146102c4578063313ce567146102d95780633f4ba83a1461030457806342966c68146103195780634e71e0c8146103315780635c975abb14610346578063661884631461035b57806370a082311461037f57806379219a24146103a05780638456cb59146103b55780638da5cb5b146103ca57806395d89b41146103fb578063a5fbd80814610410578063a9059cbb14610425578063b047fb5014610449578063b8697dbd1461045e578063baff460914610494578063d2a3899c146104b2578063d64c34fc146104d0578063d73dd623146104e5578063dd62ed3e14610509578063e30c397814610530578063f2fde38b14610545575b600080fd5b34801561018557600080fd5b5061018e610566565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c85781810151838201526020016101b0565b50505050905090810190601f1680156101f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020f57600080fd5b50610227600160a060020a03600435166024356105f4565b604080519115158252519081900360200190f35b34801561024757600080fd5b5061025061061f565b60408051918252519081900360200190f35b34801561026e57600080fd5b50610277610626565b005b34801561028557600080fd5b50610227600160a060020a0360043581169060243516604435610731565b3480156102af57600080fd5b50610277600160a060020a036004351661075e565b3480156102d057600080fd5b506102506107bd565b3480156102e557600080fd5b506102ee6107c5565b6040805160ff9092168252519081900360200190f35b34801561031057600080fd5b506102776107ce565b34801561032557600080fd5b5061027760043561084a565b34801561033d57600080fd5b50610277610857565b34801561035257600080fd5b506102276108e5565b34801561036757600080fd5b50610227600160a060020a03600435166024356108f5565b34801561038b57600080fd5b50610250600160a060020a0360043516610901565b3480156103ac57600080fd5b5061025061091c565b3480156103c157600080fd5b50610277610938565b3480156103d657600080fd5b506103df6109b9565b60408051600160a060020a039092168252519081900360200190f35b34801561040757600080fd5b5061018e6109c8565b34801561041c57600080fd5b50610250610a23565b34801561043157600080fd5b50610227600160a060020a0360043516602435610a39565b34801561045557600080fd5b506103df610a5d565b34801561046a57600080fd5b50610476600435610a6c565b60408051938452602084019290925282820152519081900360600190f35b3480156104a057600080fd5b50610277600435602435604435610ae4565b3480156104be57600080fd5b50610277600435602435604435610b57565b3480156104dc57600080fd5b50610250610c24565b3480156104f157600080fd5b50610227600160a060020a0360043516602435610d08565b34801561051557600080fd5b50610250600160a060020a0360043581169060243516610d14565b34801561053c57600080fd5b506103df610d3f565b34801561055157600080fd5b50610277600160a060020a0360043516610d4e565b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105ec5780601f106105c1576101008083540402835291602001916105ec565b820191906000526020600020905b8154815290600101906020018083116105cf57829003601f168201915b505050505081565b60045460009060a060020a900460ff161561060e57600080fd5b6106188383610d98565b9392505050565b6001545b90565b60045460609060009060a060020a900460ff161561064357600080fd5b600160a060020a033316600090815260056020908152604080832080548251818502810185019093528083529193909284015b828210156106c7578382906000526020600020906003020160606040519081016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610676565b505050509150600082511115156106dd57600080fd5b508051600019015b6000811061072d5781818151811015156106fb57fe5b602090810290910101516040015142106107185761071881610e02565b8015156107245761072d565b600019016106e5565b5050565b60045460009060a060020a900460ff161561074b57600080fd5b610756848484611030565b949350505050565b60035433600160a060020a0390811691161461077957600080fd5b600160a060020a038116151561078e57600080fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b635f5e100081565b600a5460ff1681565b60035433600160a060020a039081169116146107e957600080fd5b60045460a060020a900460ff16151561080157600080fd5b6004805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b61085433826111b0565b50565b60045433600160a060020a0390811691161461087257600080fd5b600454600354604051600160a060020a0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600480546003805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b60045460a060020a900460ff1681565b600061061883836112b1565b600160a060020a031660009081526020819052604090205490565b600160a060020a03331660009081526005602052604090205490565b60035433600160a060020a0390811691161461095357600080fd5b60045460a060020a900460ff161561096a57600080fd5b6004805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600354600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105ec5780601f106105c1576101008083540402835291602001916105ec565b600154600a805460ff16900a635f5e1000020390565b60045460009060a060020a900460ff1615610a5357600080fd5b61061883836113aa565b600754600160a060020a031681565b6000806000610a7961169b565b600160a060020a0333166000908152600560205260409020805486908110610a9d57fe5b600091825260209182902060408051606081018252600393909302909101805480845260018201549484018590526002909101549290910182905297919650945092505050565b60045460009060a060020a900460ff1615610afe57600080fd5b600160a060020a033316600090815260208190526040902054831115610b2357600080fd5b600082118015610b3757506305a39a808211155b1515610b4257600080fd5b50428101610b518484836114a3565b50505050565b60045460009060a060020a900460ff1615610b7157600080fd5b600160a060020a033316600090815260208190526040902054831115610b9657600080fd5b610ba6838363ffffffff6115d816565b90506000811115610bc957600754610bc790600160a060020a031682610a39565b505b610bd28261084a565b60408051858152602081018590528082018490529051600160a060020a033316917fd133b80671e5a3f860649b812b907a135bacbba732b668f4f223f4ea55c34b1e919081900360600190a250505050565b600060606000806005600033600160a060020a0316600160a060020a03168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610cc1578382906000526020600020906003020160606040519081016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610c70565b50505050925060009150600090505b8251811015610d01578281815181101515610ce757fe5b602090810290910181015101519190910190600101610cd0565b5092915050565b600061061883836115ea565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600454600160a060020a031681565b60035433600160a060020a03908116911614610d6957600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a03338116600081815260026020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b610e0a61169b565b600160a060020a0333166000908152600560205260408120805484908110610e2e57fe5b60009182526020808320604080516060810182526003909402909101805484526001810154848401526002015483820152600160a060020a0333168452600590915290912080549193509091506000198201828110610e8957fe5b90600052602060002090600302016005600033600160a060020a0316600160a060020a0316815260200190815260200160002084815481101515610ec957fe5b600091825260208083208454600390930201918255600180850154908301556002938401549390910192909255600160a060020a033316815260059091526040902080546000198301908110610f1b57fe5b60009182526020808320600390920290910182815560018101839055600201829055600160a060020a03331682526005905260409020805490610f629060001983016116bd565b50602080830151600160a060020a03331660009081526006909252604090912054610f929163ffffffff6115d816565b600160a060020a033316600090815260066020908152604080832093909355848101519082905291902054610fcc9163ffffffff61168c16565b600160a060020a0333166000818152602081815260409182902093909355845185840151825191825293810193909352805191927fc56cef68903bdd36458fd80e70fac1fabcf0b8b37d32e6b9d02ccef26642570b929081900390910190a2505050565b6000600160a060020a038316151561104757600080fd5b600160a060020a03841660009081526020819052604090205482111561106c57600080fd5b600160a060020a038085166000908152600260209081526040808320339094168352929052205482111561109f57600080fd5b600160a060020a0384166000908152602081905260409020546110c8908363ffffffff6115d816565b600160a060020a0380861660009081526020819052604080822093909355908516815220546110fd908363ffffffff61168c16565b600160a060020a0380851660009081526020818152604080832094909455878316825260028152838220339093168252919091522054611143908363ffffffff6115d816565b600160a060020a038086166000818152600260209081526040808320338616845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600160a060020a0382166000908152602081905260409020548111156111d557600080fd5b600160a060020a0382166000908152602081905260409020546111fe908263ffffffff6115d816565b600160a060020a03831660009081526020819052604090205560015461122a908263ffffffff6115d816565b600155604080518281529051600160a060020a038416917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2604080518281529051600091600160a060020a038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600160a060020a0333811660009081526002602090815260408083209386168352929052908120548083111561130e57600160a060020a033381166000908152600260209081526040808320938816835292905290812055611345565b61131e818463ffffffff6115d816565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529482529182902054825190815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060019392505050565b6000600160a060020a03831615156113c157600080fd5b600160a060020a0333166000908152602081905260409020548211156113e657600080fd5b600160a060020a03331660009081526020819052604090205461140f908363ffffffff6115d816565b600160a060020a033381166000908152602081905260408082209390935590851681522054611444908363ffffffff61168c16565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600192915050565b600160a060020a033316600090815260056020526040902054601410156114c957600080fd5b600160a060020a0333166000908152602081905260409020546114f2908363ffffffff6115d816565b600160a060020a0333166000818152602081815260408083209490945560058152838220845160608101865288815280830188815281870188815283546001818101865594875285872093516003909102909301928355905192820192909255905160029091015591815260069091522054611574908363ffffffff61168c16565b600160a060020a0333166000818152600660209081526040918290209390935580518681529283018590528281018490525190917f0e31f07bae79135368ff475cf6c7f6abb31e0fd731e03c18ad425bd9406cf0c0919081900360600190a2505050565b6000828211156115e457fe5b50900390565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054611622908363ffffffff61168c16565b600160a060020a0333811660008181526002602090815260408083209489168084529482529182902085905581519485529051929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350600192915050565b60008282018381101561061857fe5b6060604051908101604052806000815260200160008152602001600081525090565b8154818355818111156116e9576003028160030283600052602060002091820191016116e991906116ee565b505050565b61062391905b808211156117155760008082556001820181905560028201556003016116f4565b50905600a165627a7a72305820f937002dc7f00d85035e4aa4d242540fbb47fae6b6e6dc02498ee1b57da3616b0029


   Swarm Source:
bzzr://f937002dc7f00d85035e4aa4d242540fbb47fae6b6e6dc02498ee1b57da3616b
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.