ERC-20
Overview
Max Total Supply
5,000,000,000 DB
Holders
23,398
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DeBiToken
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-04-13 */ pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /** * @title owned * @dev The owned contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract owned { address public owner; function owned() 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) onlyOwner public { owner = newOwner; } } /** * @title Basic token * @dev Basic version of StandardToken. */ contract BasicToken { using SafeMath for uint256; uint256 _supply; mapping (address => uint256) _balances; event Transfer( address indexed from, address indexed to, uint256 value); function BasicToken() public { } function totalSupply() public view returns (uint256) { return _supply; } function balanceOf(address _owner) public view returns (uint256) { return _balances[_owner]; } /** * @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(_balances[msg.sender] >= _value); _balances[msg.sender] =_balances[msg.sender].sub(_value); _balances[_to] =_balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } } contract DeBiToken is BasicToken,owned { string constant public symbol = "DB"; string constant public name = "Digital Block"; uint256 constant public decimals =6; uint256 public lockedCounts = 8*(10**8)*(10**6); uint256 public eachUnlockCounts = 2*(10**8)*(10**6); //crowdSale end time, May/10/2018 uint256 public startTime = 1525881600; struct LockStruct { uint256 unlockTime; bool locked; } LockStruct[] public unlockTimeMap; function DeBiToken() public { _supply =50*(10**8)*(10**6); _balances[0x01] = lockedCounts; _balances[msg.sender] =_supply.sub(lockedCounts); // November/10/2018 unlockTimeMap.push(LockStruct({unlockTime:1541779200, locked: true})); // May/10/2019 unlockTimeMap.push(LockStruct({unlockTime:1557417600, locked: true})); // November/10/2019 unlockTimeMap.push(LockStruct({unlockTime:1573315200, locked: true})); // May/10/2020 unlockTimeMap.push(LockStruct({unlockTime:1589040000, locked: true})); } function transfer(address _to, uint256 _value) public returns (bool) { require (now >= startTime); return super.transfer(_to, _value); } function distribute(address _to, uint256 _value) onlyOwner public returns (bool) { return super.transfer(_to, _value); } /** * @dev unlock , only can be called by owner. */ function unlock(uint256 _index) onlyOwner public { require(_index>=0 && _index<unlockTimeMap.length); require(now >= unlockTimeMap[_index].unlockTime && unlockTimeMap[_index].locked); require(_balances[0x01] >= eachUnlockCounts); _balances[0x01] =_balances[0x01].sub(eachUnlockCounts); _balances[owner] =_balances[owner].add(eachUnlockCounts); lockedCounts =lockedCounts.sub(eachUnlockCounts); unlockTimeMap[_index].locked = false; emit Transfer(0x01, owner, eachUnlockCounts); } }
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":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedCounts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"}],"name":"unlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"eachUnlockCounts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"","type":"uint256"}],"name":"unlockTimeMap","outputs":[{"name":"unlockTime","type":"uint256"},{"name":"locked","type":"bool"}],"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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"distribute","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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"}]
Contract Creation Code
60606040526602d79883d2000060035565b5e620f48000600455635af31b00600555341561002c57600080fd5b60028054600160a060020a03191633600160a060020a03161790556611c37937e0800060008181556003546001918290526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f81905561009e919064010000000061023781026106691704565b600160a060020a03331660009081526001602081905260409091209190915560068054909181016100cf8382610249565b9160005260206000209060020201600060408051908101604052635be5af008152600160208201529190508151815560208201516001918201805460ff1916911515919091179055600680549093509150810161012c8382610249565b9160005260206000209060020201600060408051908101604052635cd44e808152600160208201529190508151815560208201516001918201805460ff191691151591909117905560068054909350915081016101898382610249565b9160005260206000209060020201600060408051908101604052635dc6e2808152600160208201529190508151815560208201516001918201805460ff191691151591909117905560068054909350915081016101e68382610249565b9160005260206000209060020201600060408051908101604052635eb6d380815260016020820152919050815181556020820151600191909101805460ff1916911515919091179055506102a79050565b60008282111561024357fe5b50900390565b81548183558181151161027557600202816002028360005260206000209182019101610275919061027a565b505050565b6102a491905b808211156102a0576000815560018101805460ff19169055600201610280565b5090565b90565b61079b806102b66000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d457806318160ddd1461015e578063313ce56714610183578063395acdeb146101965780636198e339146101a957806363482cf0146101c157806370a08231146101d457806371501b23146101f357806378e97925146102235780638da5cb5b1461023657806395d89b4114610265578063a9059cbb14610278578063f2fde38b146102ae578063fb932108146102cd575b600080fd5b34156100df57600080fd5b6100e76102ef565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012357808201518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016957600080fd5b610171610326565b60405190815260200160405180910390f35b341561018e57600080fd5b61017161032c565b34156101a157600080fd5b610171610331565b34156101b457600080fd5b6101bf600435610337565b005b34156101cc57600080fd5b610171610542565b34156101df57600080fd5b610171600160a060020a0360043516610548565b34156101fe57600080fd5b610209600435610563565b604051918252151560208201526040908101905180910390f35b341561022e57600080fd5b610171610592565b341561024157600080fd5b610249610598565b604051600160a060020a03909116815260200160405180910390f35b341561027057600080fd5b6100e76105a7565b341561028357600080fd5b61029a600160a060020a03600435166024356105de565b604051901515815260200160405180910390f35b34156102b957600080fd5b6101bf600160a060020a0360043516610601565b34156102d857600080fd5b61029a600160a060020a036004351660243561064b565b60408051908101604052600d81527f4469676974616c20426c6f636b00000000000000000000000000000000000000602082015281565b60005490565b600681565b60035481565b60025433600160a060020a0390811691161461035257600080fd5b60008110158015610364575060065481105b151561036f57600080fd5b600680548290811061037d57fe5b90600052602060002090600202016000015442101580156103bf575060068054829081106103a757fe5b600091825260209091206001600290920201015460ff165b15156103ca57600080fd5b600454600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f54101561040457600080fd5b600454600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546104429163ffffffff61066916565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f55600454600254600160a060020a0316600090815260409020546104919163ffffffff61067b16565b600254600160a060020a03166000908152600160205260409020556004546003546104c19163ffffffff61066916565b6003556006805460009190839081106104d657fe5b600091825260209091206002918202016001908101805460ff19169315159390931790925554600454600160a060020a0390911691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a350565b60045481565b600160a060020a031660009081526001602052604090205490565b600680548290811061057157fe5b60009182526020909120600290910201805460019091015490915060ff1682565b60055481565b600254600160a060020a031681565b60408051908101604052600281527f4442000000000000000000000000000000000000000000000000000000000000602082015281565b6005546000904210156105f057600080fd5b6105fa838361068a565b9392505050565b60025433600160a060020a0390811691161461061c57600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60025460009033600160a060020a039081169116146105f057600080fd5b60008282111561067557fe5b50900390565b6000828201838110156105fa57fe5b600160a060020a033316600090815260016020526040812054829010156106b057600080fd5b600160a060020a0333166000908152600160205260409020546106d9908363ffffffff61066916565b600160a060020a03338116600090815260016020526040808220939093559085168152205461070e908363ffffffff61067b16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001929150505600a165627a7a7230582001181cd95d327d40486b77a58fce81b1172ed6bb12d236e4740df270c323ca530029
Deployed Bytecode
0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d457806318160ddd1461015e578063313ce56714610183578063395acdeb146101965780636198e339146101a957806363482cf0146101c157806370a08231146101d457806371501b23146101f357806378e97925146102235780638da5cb5b1461023657806395d89b4114610265578063a9059cbb14610278578063f2fde38b146102ae578063fb932108146102cd575b600080fd5b34156100df57600080fd5b6100e76102ef565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012357808201518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016957600080fd5b610171610326565b60405190815260200160405180910390f35b341561018e57600080fd5b61017161032c565b34156101a157600080fd5b610171610331565b34156101b457600080fd5b6101bf600435610337565b005b34156101cc57600080fd5b610171610542565b34156101df57600080fd5b610171600160a060020a0360043516610548565b34156101fe57600080fd5b610209600435610563565b604051918252151560208201526040908101905180910390f35b341561022e57600080fd5b610171610592565b341561024157600080fd5b610249610598565b604051600160a060020a03909116815260200160405180910390f35b341561027057600080fd5b6100e76105a7565b341561028357600080fd5b61029a600160a060020a03600435166024356105de565b604051901515815260200160405180910390f35b34156102b957600080fd5b6101bf600160a060020a0360043516610601565b34156102d857600080fd5b61029a600160a060020a036004351660243561064b565b60408051908101604052600d81527f4469676974616c20426c6f636b00000000000000000000000000000000000000602082015281565b60005490565b600681565b60035481565b60025433600160a060020a0390811691161461035257600080fd5b60008110158015610364575060065481105b151561036f57600080fd5b600680548290811061037d57fe5b90600052602060002090600202016000015442101580156103bf575060068054829081106103a757fe5b600091825260209091206001600290920201015460ff165b15156103ca57600080fd5b600454600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f54101561040457600080fd5b600454600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546104429163ffffffff61066916565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f55600454600254600160a060020a0316600090815260409020546104919163ffffffff61067b16565b600254600160a060020a03166000908152600160205260409020556004546003546104c19163ffffffff61066916565b6003556006805460009190839081106104d657fe5b600091825260209091206002918202016001908101805460ff19169315159390931790925554600454600160a060020a0390911691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a350565b60045481565b600160a060020a031660009081526001602052604090205490565b600680548290811061057157fe5b60009182526020909120600290910201805460019091015490915060ff1682565b60055481565b600254600160a060020a031681565b60408051908101604052600281527f4442000000000000000000000000000000000000000000000000000000000000602082015281565b6005546000904210156105f057600080fd5b6105fa838361068a565b9392505050565b60025433600160a060020a0390811691161461061c57600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60025460009033600160a060020a039081169116146105f057600080fd5b60008282111561067557fe5b50900390565b6000828201838110156105fa57fe5b600160a060020a033316600090815260016020526040812054829010156106b057600080fd5b600160a060020a0333166000908152600160205260409020546106d9908363ffffffff61066916565b600160a060020a03338116600090815260016020526040808220939093559085168152205461070e908363ffffffff61067b16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001929150505600a165627a7a7230582001181cd95d327d40486b77a58fce81b1172ed6bb12d236e4740df270c323ca530029
Swarm Source
bzzr://01181cd95d327d40486b77a58fce81b1172ed6bb12d236e4740df270c323ca53
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.