ERC-20
Overview
Max Total Supply
210,000,000,000 Light
Holders
3,205
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LightCoinToken
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-04 */ pragma solidity ^0.4.11; contract LightCoinToken{ mapping (address => uint256) balances; address public owner; address public lockOwner; string public name; string public symbol; uint8 public decimals; uint256 public lockAmount ; uint256 public startTime ; // total amount of tokens uint256 public totalSupply; // `allowed` tracks any extra transfer rights as in all ERC20 tokens mapping (address => mapping (address => uint256)) allowed; function LightCoinToken() public { owner = 0x9a64fE62837d8E2C0Bd0C2a96bbDdEA609Ab2F19; // Set owner of contract lockOwner = 0x821C05372425709a68090A17075A855dd20371c7; startTime = 1515686400; name = "Lightcoin"; // Set the name for display purposes symbol = "Light"; // Set the symbol for display purposes decimals =8; // Amount of decimals for display purposes totalSupply = 21000000000000000000; // Total supply balances[owner] = totalSupply * 90 /100 ; balances[0x6CC0BE3c4ad8306526506CB602591AA029896B46]=2000000; lockAmount = totalSupply / 10 ; } /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; } /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) public returns (bool success) { require(_value > 0 ); // Check send token value > 0; require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(balances[_from] >= _value); // Check if the sender has enough require(balances[_to] + _value >= balances[_to]); // Check for overflows require(_value <= allowed[_from][msg.sender]); // Check allowance balances[_from] -= _value; balances[_to] += _value; allowed[_from][_to] -= _value; Transfer(_from, _to, _value); return true; } /// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } /* This unnamed function is called whenever someone tries to send ether to it */ function () private { revert(); // Prevents accidental sending of ether } function releaseToken() public{ require(now >= startTime +2 years); uint256 i = ((now - startTime -2 years) / (0.5 years)); uint256 releasevalue = totalSupply /40 ; require(lockAmount > (4 - i - 1) * releasevalue); lockAmount -= releasevalue ; balances[lockOwner] += releasevalue ; } event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); }
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":"success","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":"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":true,"inputs":[],"name":"lockOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lockAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"releaseToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"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"}]
Contract Creation Code
6060604052341561000f57600080fd5b60018054600160a060020a0319908116739a64fe62837d8e2c0bd0c2a96bbddea609ab2f19179091556002805490911673821c05372425709a68090a17075a855dd20371c7179055635a578a0060075560408051908101604052600981527f4c69676874636f696e0000000000000000000000000000000000000000000000602082015260039080516100a692916020019061017b565b5060408051908101604052600581527f4c69676874000000000000000000000000000000000000000000000000000000602082015260049080516100ee92916020019061017b565b506005805460ff191660089081179091556801236efcbcbb3400008155600154600160a060020a031660009081526020819052604081206801064a49dd0ee200009055736cc0be3c4ad8306526506cb602591aa029896b469052621e84807fa860eb67f2db61b29ba967c0d8bd19b4344443ad8dd13ce3e256301c6ffdd7bc5554600a9004600655610216565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101bc57805160ff19168380011785556101e9565b828001600101855582156101e9579182015b828111156101e95782518255916020019190600101906101ce565b506101f59291506101f9565b5090565b61021391905b808211156101f557600081556001016101ff565b90565b610784806102256000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd1461019f57806323b872dd146101c4578063313ce567146101ec57806369cd61be1461021557806370a082311461024457806378e97925146102635780638da5cb5b1461027657806395d89b4114610289578063a9059cbb1461029c578063d8df5dc1146102be578063dd62ed3e146102d1578063ec715a31146102f6575b34156100da57600080fd5b600080fd5b34156100ea57600080fd5b6100f261030b565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012e578082015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017457600080fd5b61018b600160a060020a03600435166024356103a9565b604051901515815260200160405180910390f35b34156101aa57600080fd5b6101b2610438565b60405190815260200160405180910390f35b34156101cf57600080fd5b61018b600160a060020a036004358116906024351660443561043e565b34156101f757600080fd5b6101ff610547565b60405160ff909116815260200160405180910390f35b341561022057600080fd5b610228610550565b604051600160a060020a03909116815260200160405180910390f35b341561024f57600080fd5b6101b2600160a060020a036004351661055f565b341561026e57600080fd5b6101b261057a565b341561028157600080fd5b610228610580565b341561029457600080fd5b6100f261058f565b34156102a757600080fd5b61018b600160a060020a03600435166024356105fa565b34156102c957600080fd5b6101b261069c565b34156102dc57600080fd5b6101b2600160a060020a03600435811690602435166106a2565b341561030157600080fd5b6103096106cd565b005b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b505050505081565b600160a060020a033316600090815260208190526040812054829010156103cf57600080fd5b600160a060020a03338116600081815260096020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60085481565b600160a060020a0383166000908152602081905260408120548290101561046457600080fd5b600160a060020a038316600090815260208190526040902054828101101561048b57600080fd5b600160a060020a03808516600090815260096020908152604080832033909416835292905220548211156104be57600080fd5b600160a060020a0380851660008181526020818152604080832080548890039055938716808352848320805488019055838352600982528483208184529091529083902080548690039055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60055460ff1681565b600254600160a060020a031681565b600160a060020a031660009081526020819052604090205490565b60075481565b600154600160a060020a031681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a15780601f10610376576101008083540402835291602001916103a1565b600080821161060857600080fd5b600160a060020a0333166000908152602081905260409020548290101561062e57600080fd5b600160a060020a033381166000818152602081905260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065481565b600160a060020a03918216600090815260096020908152604080832093909416825291909152205490565b6000806007546303c267000142101515156106e757600080fd5b62f099c06303c267006007544203038115156106ff57fe5b049150602860085481151561071057fe5b04905080600183600403030260065411151561072b57600080fd5b600680548290039055600254600160a060020a0316600090815260208190526040902080549091019055505600a165627a7a72305820c2ec6417b0cf13f44fae5b05a06113697593f1d831782bdfda20e54f5b5b2e030029
Deployed Bytecode
0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd1461019f57806323b872dd146101c4578063313ce567146101ec57806369cd61be1461021557806370a082311461024457806378e97925146102635780638da5cb5b1461027657806395d89b4114610289578063a9059cbb1461029c578063d8df5dc1146102be578063dd62ed3e146102d1578063ec715a31146102f6575b34156100da57600080fd5b600080fd5b34156100ea57600080fd5b6100f261030b565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012e578082015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017457600080fd5b61018b600160a060020a03600435166024356103a9565b604051901515815260200160405180910390f35b34156101aa57600080fd5b6101b2610438565b60405190815260200160405180910390f35b34156101cf57600080fd5b61018b600160a060020a036004358116906024351660443561043e565b34156101f757600080fd5b6101ff610547565b60405160ff909116815260200160405180910390f35b341561022057600080fd5b610228610550565b604051600160a060020a03909116815260200160405180910390f35b341561024f57600080fd5b6101b2600160a060020a036004351661055f565b341561026e57600080fd5b6101b261057a565b341561028157600080fd5b610228610580565b341561029457600080fd5b6100f261058f565b34156102a757600080fd5b61018b600160a060020a03600435166024356105fa565b34156102c957600080fd5b6101b261069c565b34156102dc57600080fd5b6101b2600160a060020a03600435811690602435166106a2565b341561030157600080fd5b6103096106cd565b005b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b505050505081565b600160a060020a033316600090815260208190526040812054829010156103cf57600080fd5b600160a060020a03338116600081815260096020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60085481565b600160a060020a0383166000908152602081905260408120548290101561046457600080fd5b600160a060020a038316600090815260208190526040902054828101101561048b57600080fd5b600160a060020a03808516600090815260096020908152604080832033909416835292905220548211156104be57600080fd5b600160a060020a0380851660008181526020818152604080832080548890039055938716808352848320805488019055838352600982528483208184529091529083902080548690039055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60055460ff1681565b600254600160a060020a031681565b600160a060020a031660009081526020819052604090205490565b60075481565b600154600160a060020a031681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a15780601f10610376576101008083540402835291602001916103a1565b600080821161060857600080fd5b600160a060020a0333166000908152602081905260409020548290101561062e57600080fd5b600160a060020a033381166000818152602081905260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60065481565b600160a060020a03918216600090815260096020908152604080832093909416825291909152205490565b6000806007546303c267000142101515156106e757600080fd5b62f099c06303c267006007544203038115156106ff57fe5b049150602860085481151561071057fe5b04905080600183600403030260065411151561072b57600080fd5b600680548290039055600254600160a060020a0316600090815260208190526040902080549091019055505600a165627a7a72305820c2ec6417b0cf13f44fae5b05a06113697593f1d831782bdfda20e54f5b5b2e030029
Swarm Source
bzzr://c2ec6417b0cf13f44fae5b05a06113697593f1d831782bdfda20e54f5b5b2e03
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.