Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Blockchain
Overview
Max Total Supply
7,000,000,000 LOCUS
Holders
7,054 ( 0.014%)
Market
Price
$0.02 @ 0.000006 ETH (+2.35%)
Onchain Market Cap
$127,746,500.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
406,907 LOCUSValue
$7,425.85 ( ~2.2988 Eth) [0.0058%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LocusToken
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-05-14 */ pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint _value, address _token, bytes _extraData) external; } contract LocusToken { address public tokenOwner; string public constant name = "Locus Chain"; string public constant symbol = "LOCUS"; uint8 public constant decimals = 18; uint public totalSupply; uint internal constant initialSupply = 7000000000 * (10 ** uint(decimals)); mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) internal allowed; function balanceOfToken(address _owner) public view returns(uint) { return balanceOf[_owner]; } function allowance(address _owner, address _spender) public view returns(uint) { return allowed[_owner][_spender]; } event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); event Burn(address indexed from, uint value); function LocusToken() public { tokenOwner = msg.sender; totalSupply = initialSupply; balanceOf[tokenOwner] = totalSupply; } function _transfer(address _from, address _to, uint _value) internal { require(_to != address(0)); require(_value <= balanceOf[_from]); require(balanceOf[_to] + _value > balanceOf[_to]); uint prevBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _value; emit Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == prevBalances); } function transfer(address _to, uint _value) public returns(bool) { _transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint _value) public returns(bool) { require(_value <= allowed[_from][msg.sender]); allowed[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } function approve(address _spender, uint _value) public returns(bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function approveAndCall(address _spender, uint _value, bytes _extraData) public returns(bool) { tokenRecipient spender = tokenRecipient(_spender); if(approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } function burn(uint _value) public returns(bool) { require(_value <= balanceOf[msg.sender]); balanceOf[msg.sender] -= _value; totalSupply -= _value; emit Burn(msg.sender, _value); emit Transfer(msg.sender, address(0), _value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","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":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"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":"tokenOwner","outputs":[{"name":"","type":"address"}],"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":"_owner","type":"address"}],"name":"balanceOfToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":"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":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b60008054600160a060020a03338116600160a060020a0319909216919091178083556b169e43a85eb381aa580000006001819055911682526002602052604090912055610842806100616000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d657806342966c68146101ff57806370a082311461021557806395d89b4114610234578063a3e6761014610247578063a9059cbb14610276578063b99152d014610298578063cae9ca51146102b7578063dd62ed3e1461031c575b600080fd5b34156100d457600080fd5b6100dc610341565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a0360043516602435610378565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c6103e4565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a03600435811690602435166044356103ea565b34156101e157600080fd5b6101e9610461565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b610175600435610466565b341561022057600080fd5b61019c600160a060020a036004351661052f565b341561023f57600080fd5b6100dc610541565b341561025257600080fd5b61025a610578565b604051600160a060020a03909116815260200160405180910390f35b341561028157600080fd5b610175600160a060020a0360043516602435610587565b34156102a357600080fd5b61019c600160a060020a036004351661059d565b34156102c257600080fd5b61017560048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506105b895505050505050565b341561032757600080fd5b61019c600160a060020a03600435811690602435166106e6565b60408051908101604052600b81527f4c6f63757320436861696e000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015481565b600160a060020a0380841660009081526003602090815260408083203390941683529290529081205482111561041f57600080fd5b600160a060020a0380851660009081526003602090815260408083203390941683529290522080548390039055610457848484610711565b5060019392505050565b601281565b600160a060020a03331660009081526002602052604081205482111561048b57600080fd5b600160a060020a03331660008181526002602052604090819020805485900390556001805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2600033600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3506001919050565b60026020526000908152604090205481565b60408051908101604052600581527f4c4f435553000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a031681565b6000610594338484610711565b50600192915050565b600160a060020a031660009081526002602052604090205490565b6000836105c58185610378565b156106de5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561067b578082015183820152602001610663565b50505050905090810190601f1680156106a85780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156106c957600080fd5b5af115156106d657600080fd5b505050600191505b509392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b6000600160a060020a038316151561072857600080fd5b600160a060020a03841660009081526002602052604090205482111561074d57600080fd5b600160a060020a0383166000908152600260205260409020548281011161077357600080fd5b50600160a060020a0380831660008181526002602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380841660009081526002602052604080822054928716825290205401811461081057fe5b505050505600a165627a7a72305820c1b4cd77bda09fb40f383a48d59292b96bb8e723a34246d764276c4599b6ee360029
Deployed Bytecode
0x6060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d657806342966c68146101ff57806370a082311461021557806395d89b4114610234578063a3e6761014610247578063a9059cbb14610276578063b99152d014610298578063cae9ca51146102b7578063dd62ed3e1461031c575b600080fd5b34156100d457600080fd5b6100dc610341565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a0360043516602435610378565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c6103e4565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a03600435811690602435166044356103ea565b34156101e157600080fd5b6101e9610461565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b610175600435610466565b341561022057600080fd5b61019c600160a060020a036004351661052f565b341561023f57600080fd5b6100dc610541565b341561025257600080fd5b61025a610578565b604051600160a060020a03909116815260200160405180910390f35b341561028157600080fd5b610175600160a060020a0360043516602435610587565b34156102a357600080fd5b61019c600160a060020a036004351661059d565b34156102c257600080fd5b61017560048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506105b895505050505050565b341561032757600080fd5b61019c600160a060020a03600435811690602435166106e6565b60408051908101604052600b81527f4c6f63757320436861696e000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015481565b600160a060020a0380841660009081526003602090815260408083203390941683529290529081205482111561041f57600080fd5b600160a060020a0380851660009081526003602090815260408083203390941683529290522080548390039055610457848484610711565b5060019392505050565b601281565b600160a060020a03331660009081526002602052604081205482111561048b57600080fd5b600160a060020a03331660008181526002602052604090819020805485900390556001805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2600033600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3506001919050565b60026020526000908152604090205481565b60408051908101604052600581527f4c4f435553000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a031681565b6000610594338484610711565b50600192915050565b600160a060020a031660009081526002602052604090205490565b6000836105c58185610378565b156106de5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561067b578082015183820152602001610663565b50505050905090810190601f1680156106a85780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156106c957600080fd5b5af115156106d657600080fd5b505050600191505b509392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b6000600160a060020a038316151561072857600080fd5b600160a060020a03841660009081526002602052604090205482111561074d57600080fd5b600160a060020a0383166000908152600260205260409020548281011161077357600080fd5b50600160a060020a0380831660008181526002602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380841660009081526002602052604080822054928716825290205401811461081057fe5b505050505600a165627a7a72305820c1b4cd77bda09fb40f383a48d59292b96bb8e723a34246d764276c4599b6ee360029
Swarm Source
bzzr://c1b4cd77bda09fb40f383a48d59292b96bb8e723a34246d764276c4599b6ee36
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.