Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : LatiumX
pragma solidity ^0.4.16; contract LatiumX { string public constant name = "LatiumX"; string public constant symbol = "LATX"; uint8 public constant decimals = 8; uint256 public constant totalSupply = 300000000 * 10 ** uint256(decimals); // owner of this contract address public owner; // balances for each account mapping (address => uint256) public balanceOf; // triggered when tokens are transferred event Transfer(address indexed _from, address indexed _to, uint _value); // constructor function LatiumX() { owner = msg.sender; balanceOf[owner] = totalSupply; } // transfer the balance from sender's account to another one function transfer(address _to, uint256 _value) { // prevent transfer to 0x0 address require(_to != 0x0); // sender and recipient should be different require(msg.sender != _to); // check if the sender has enough coins require(_value > 0 && balanceOf[msg.sender] >= _value); // check for overflows require(balanceOf[_to] + _value > balanceOf[_to]); // subtract coins from sender's account balanceOf[msg.sender] -= _value; // add coins to recipient's account balanceOf[_to] += _value; // notify listeners about this transfer Transfer(msg.sender, _to, _value); } }
Please enter a contract address above to load the contract details and source code.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.