Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : ATUM
pragma solidity ^0.4.24; contract ERC20Interface { function totalSupply() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function transfer(address to, uint tokens) public returns (bool success); //function allowance(address tokenOwner, address spender) public view returns (uint remaining); //function approve(address spender, uint tokens) public returns (bool success); //function transferFrom(address from, address to, uint tokens) public returns (bool success); event Transfer(address indexed from, address indexed to, uint tokens); //event Approval(address indexed tokenOwner, address indexed spender, uint tokens); } contract ATUM is ERC20Interface{ string public name = "ATUM"; string public symbol = "ATU"; uint public decimals = 18; uint public supply; address public founder; mapping(address => uint) public balances; event Transfer(address indexed from, address indexed to, uint tokens); constructor() public{ supply = 1000000000000000000000000000; founder = msg.sender; balances[founder] = supply; } function totalSupply() public view returns (uint){ return supply; } function balanceOf(address tokenOwner) public view returns (uint balance){ return balances[tokenOwner]; } //transfer from the owner balance to another address function transfer(address to, uint tokens) public returns (bool success){ require(balances[msg.sender] >= tokens && tokens > 0); balances[to] += tokens; balances[msg.sender] -= tokens; emit Transfer(msg.sender, to, tokens); return true; } function burn(uint256 _value) public returns (bool success) { require(balances[founder] >= _value); // Check if the sender has enough balances[founder] -= _value; // Subtract from the sender supply -= _value; // Updates totalSupply return true; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.