ERC-20
Overview
Max Total Supply
7,444,443,810 DBE
Holders
1,283
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
388,870.70625 DBEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
DBE
Compiler Version
v0.5.5+commit.47a71e8f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-03-13 */ pragma solidity ^0.5.5; /** * Math operations with safety checks */ contract SafeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) { assert(b > 0); uint256 c = a / b; assert(a == b * c + a % b); return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c>=a && c>=b); return c; } } contract DBE is SafeMath{ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; address payable public owner; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public freezeOf; mapping (address => mapping (address => uint256)) public allowance; /* This generates a public event on the blockchain that will notify clients */ event Transfer(address indexed from, address indexed to, uint256 value); /* This notifies clients about the amount burnt */ event Burn(address indexed from, uint256 value); /* This notifies clients about the amount frozen */ event Freeze(address indexed from, uint256 value); /* This notifies clients about the amount unfrozen */ event Unfreeze(address indexed from, uint256 value); /* Initializes contract with initial supply tokens to the creator of the contract */ constructor ( uint256 initialSupply, string memory tokenName, uint8 decimalUnits, string memory tokenSymbol ) public{ balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens totalSupply = initialSupply; // Update total supply name = tokenName; // Set the name for display purposes symbol = tokenSymbol; // Set the symbol for display purposes decimals = decimalUnits; // Amount of decimals for display purposes owner = msg.sender; } /* Send coins */ function transfer(address _to, uint256 _value) public returns (bool success){ require (_to != address(0x0)); // Prevent transfer to 0x0 address. Use burn() instead require (_value > 0) ; require (balanceOf[msg.sender] >= _value) ; // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]) ; // Check for overflows balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient emit Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place return true; } /* Allow another contract to spend some tokens in your behalf */ function approve(address _spender, uint256 _value) public returns (bool success) { require(_value > 0) ; allowance[msg.sender][_spender] = _value; return true; } /* A contract attempts to get the coins */ function transferFrom(address _from, address _to, uint256 _value)public returns (bool success) { require (_to != address(0x0)) ; // Prevent transfer to 0x0 address. Use burn() instead require (_value > 0) ; require (balanceOf[_from] >= _value) ; // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]) ; // Check for overflows require (_value <= allowance[_from][msg.sender]) ; // Check allowance balanceOf[_from] = SafeMath.safeSub(balanceOf[_from], _value); // Subtract from the sender balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient allowance[_from][msg.sender] = SafeMath.safeSub(allowance[_from][msg.sender], _value); emit Transfer(_from, _to, _value); return true; } function burn(uint256 _value)public returns (bool success) { require (balanceOf[msg.sender] >= _value) ; // Check if the sender has enough require (_value > 0) ; balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender totalSupply = SafeMath.safeSub(totalSupply,_value); // Updates totalSupply emit Burn(msg.sender, _value); return true; } function freeze(uint256 _value)public returns (bool success) { require (balanceOf[msg.sender] >= _value) ; // Check if the sender has enough require (_value > 0) ; balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender freezeOf[msg.sender] = SafeMath.safeAdd(freezeOf[msg.sender], _value); // Updates totalSupply emit Freeze(msg.sender, _value); return true; } function unfreeze(uint256 _value)public returns (bool success) { require (freezeOf[msg.sender] >= _value) ; // Check if the sender has enough require (_value > 0) ; freezeOf[msg.sender] = SafeMath.safeSub(freezeOf[msg.sender], _value); // Subtract from the sender balanceOf[msg.sender] = SafeMath.safeAdd(balanceOf[msg.sender], _value); emit Unfreeze(msg.sender, _value); return true; } // transfer balance to owner function withdrawEther(uint256 amount) public { require(msg.sender == owner); owner.transfer(amount); } // can accept ether function() external payable { } }
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":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"unfreeze","outputs":[{"name":"success","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":"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":"","type":"address"}],"name":"freezeOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"freeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","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":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Unfreeze","type":"event"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000d1938038062000d19833981018060405260808110156200003757600080fd5b8151602083018051919392830192916401000000008111156200005957600080fd5b820160208101848111156200006d57600080fd5b81516401000000008111828201871017156200008857600080fd5b50506020820151604090920180519194929391640100000000811115620000ae57600080fd5b82016020810184811115620000c257600080fd5b8151640100000000811182820187101715620000dd57600080fd5b50503360009081526005602090815260408220899055600389905587519295506200010f945090925086019062000156565b5080516200012590600190602084019062000156565b50506002805460ff90921660ff199092169190911790555050600480546001600160a01b03191633179055620001fb565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200019957805160ff1916838001178555620001c9565b82800160010185558215620001c9579182015b82811115620001c9578251825591602001919060010190620001ac565b50620001d7929150620001db565b5090565b620001f891905b80821115620001d75760008155600101620001e2565b90565b610b0e806200020b6000396000f3fe6080604052600436106100e85760003560e01c80636623fc461161008a578063a9059cbb11610059578063a9059cbb1461034d578063cd4217c114610386578063d7a78db8146103b9578063dd62ed3e146103e3576100e8565b80636623fc46146102aa57806370a08231146102d45780638da5cb5b1461030757806395d89b4114610338576100e8565b806323b872dd116100c657806323b872dd146101e8578063313ce5671461022b5780633bed33ce1461025657806342966c6814610280576100e8565b806306fdde03146100ea578063095ea7b31461017457806318160ddd146101c1575b005b3480156100f657600080fd5b506100ff61041e565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b506101ad6004803603604081101561019757600080fd5b506001600160a01b0381351690602001356104ac565b604080519115158252519081900360200190f35b3480156101cd57600080fd5b506101d66104e8565b60408051918252519081900360200190f35b3480156101f457600080fd5b506101ad6004803603606081101561020b57600080fd5b506001600160a01b038135811691602081013590911690604001356104ee565b34801561023757600080fd5b50610240610688565b6040805160ff9092168252519081900360200190f35b34801561026257600080fd5b506100e86004803603602081101561027957600080fd5b5035610691565b34801561028c57600080fd5b506101ad600480360360208110156102a357600080fd5b50356106e6565b3480156102b657600080fd5b506101ad600480360360208110156102cd57600080fd5b5035610786565b3480156102e057600080fd5b506101d6600480360360208110156102f757600080fd5b50356001600160a01b031661083f565b34801561031357600080fd5b5061031c610851565b604080516001600160a01b039092168252519081900360200190f35b34801561034457600080fd5b506100ff610860565b34801561035957600080fd5b506101ad6004803603604081101561037057600080fd5b506001600160a01b0381351690602001356108ba565b34801561039257600080fd5b506101d6600480360360208110156103a957600080fd5b50356001600160a01b03166109c4565b3480156103c557600080fd5b506101ad600480360360208110156103dc57600080fd5b50356109d6565b3480156103ef57600080fd5b506101d66004803603604081101561040657600080fd5b506001600160a01b0381358116916020013516610a8f565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a45780601f10610479576101008083540402835291602001916104a4565b820191906000526020600020905b81548152906001019060200180831161048757829003601f168201915b505050505081565b60008115156104ba57600080fd5b503360009081526007602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b60006001600160a01b038316151561050557600080fd5b81151561051157600080fd5b6001600160a01b03841660009081526005602052604090205482111561053657600080fd5b6001600160a01b038316600090815260056020526040902054828101101561055d57600080fd5b6001600160a01b038416600090815260076020908152604080832033845290915290205482111561058d57600080fd5b6001600160a01b0384166000908152600560205260409020546105b09083610aac565b6001600160a01b0380861660009081526005602052604080822093909355908516815220546105df9083610abe565b6001600160a01b03808516600090815260056020908152604080832094909455918716815260078252828120338252909152205461061d9083610aac565b6001600160a01b03808616600081815260076020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60025460ff1681565b6004546001600160a01b031633146106a857600080fd5b6004546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156106e2573d6000803e3d6000fd5b5050565b3360009081526005602052604081205482111561070257600080fd5b81151561070e57600080fd5b336000908152600560205260409020546107289083610aac565b336000908152600560205260409020556003546107459083610aac565b60035560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b336000908152600660205260408120548211156107a257600080fd5b8115156107ae57600080fd5b336000908152600660205260409020546107c89083610aac565b336000908152600660209081526040808320939093556005905220546107ee9083610abe565b33600081815260056020908152604091829020939093558051858152905191927f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f92918290030190a2506001919050565b60056020526000908152604090205481565b6004546001600160a01b031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a45780601f10610479576101008083540402835291602001916104a4565b60006001600160a01b03831615156108d157600080fd5b8115156108dd57600080fd5b336000908152600560205260409020548211156108f957600080fd5b6001600160a01b038316600090815260056020526040902054828101101561092057600080fd5b3360009081526005602052604090205461093a9083610aac565b33600090815260056020526040808220929092556001600160a01b038516815220546109669083610abe565b6001600160a01b0384166000818152600560209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60066020526000908152604090205481565b336000908152600560205260408120548211156109f257600080fd5b8115156109fe57600080fd5b33600090815260056020526040902054610a189083610aac565b33600090815260056020908152604080832093909355600690522054610a3e9083610abe565b33600081815260066020908152604091829020939093558051858152905191927ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e092918290030190a2506001919050565b600760209081526000928352604080842090915290825290205481565b600082821115610ab857fe5b50900390565b6000828201838110801590610ad35750828110155b1515610adb57fe5b939250505056fea165627a7a72305820f9d717bbb1f80fed9029b401fcb49d47445a74cc08b8f9b595159274f8f0217200290000000000000000000000000000000000000000180de64b9660b7a5754800000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000011446973747269627574656420456172746800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034442450000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100e85760003560e01c80636623fc461161008a578063a9059cbb11610059578063a9059cbb1461034d578063cd4217c114610386578063d7a78db8146103b9578063dd62ed3e146103e3576100e8565b80636623fc46146102aa57806370a08231146102d45780638da5cb5b1461030757806395d89b4114610338576100e8565b806323b872dd116100c657806323b872dd146101e8578063313ce5671461022b5780633bed33ce1461025657806342966c6814610280576100e8565b806306fdde03146100ea578063095ea7b31461017457806318160ddd146101c1575b005b3480156100f657600080fd5b506100ff61041e565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b506101ad6004803603604081101561019757600080fd5b506001600160a01b0381351690602001356104ac565b604080519115158252519081900360200190f35b3480156101cd57600080fd5b506101d66104e8565b60408051918252519081900360200190f35b3480156101f457600080fd5b506101ad6004803603606081101561020b57600080fd5b506001600160a01b038135811691602081013590911690604001356104ee565b34801561023757600080fd5b50610240610688565b6040805160ff9092168252519081900360200190f35b34801561026257600080fd5b506100e86004803603602081101561027957600080fd5b5035610691565b34801561028c57600080fd5b506101ad600480360360208110156102a357600080fd5b50356106e6565b3480156102b657600080fd5b506101ad600480360360208110156102cd57600080fd5b5035610786565b3480156102e057600080fd5b506101d6600480360360208110156102f757600080fd5b50356001600160a01b031661083f565b34801561031357600080fd5b5061031c610851565b604080516001600160a01b039092168252519081900360200190f35b34801561034457600080fd5b506100ff610860565b34801561035957600080fd5b506101ad6004803603604081101561037057600080fd5b506001600160a01b0381351690602001356108ba565b34801561039257600080fd5b506101d6600480360360208110156103a957600080fd5b50356001600160a01b03166109c4565b3480156103c557600080fd5b506101ad600480360360208110156103dc57600080fd5b50356109d6565b3480156103ef57600080fd5b506101d66004803603604081101561040657600080fd5b506001600160a01b0381358116916020013516610a8f565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a45780601f10610479576101008083540402835291602001916104a4565b820191906000526020600020905b81548152906001019060200180831161048757829003601f168201915b505050505081565b60008115156104ba57600080fd5b503360009081526007602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b60006001600160a01b038316151561050557600080fd5b81151561051157600080fd5b6001600160a01b03841660009081526005602052604090205482111561053657600080fd5b6001600160a01b038316600090815260056020526040902054828101101561055d57600080fd5b6001600160a01b038416600090815260076020908152604080832033845290915290205482111561058d57600080fd5b6001600160a01b0384166000908152600560205260409020546105b09083610aac565b6001600160a01b0380861660009081526005602052604080822093909355908516815220546105df9083610abe565b6001600160a01b03808516600090815260056020908152604080832094909455918716815260078252828120338252909152205461061d9083610aac565b6001600160a01b03808616600081815260076020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60025460ff1681565b6004546001600160a01b031633146106a857600080fd5b6004546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156106e2573d6000803e3d6000fd5b5050565b3360009081526005602052604081205482111561070257600080fd5b81151561070e57600080fd5b336000908152600560205260409020546107289083610aac565b336000908152600560205260409020556003546107459083610aac565b60035560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b336000908152600660205260408120548211156107a257600080fd5b8115156107ae57600080fd5b336000908152600660205260409020546107c89083610aac565b336000908152600660209081526040808320939093556005905220546107ee9083610abe565b33600081815260056020908152604091829020939093558051858152905191927f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f92918290030190a2506001919050565b60056020526000908152604090205481565b6004546001600160a01b031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a45780601f10610479576101008083540402835291602001916104a4565b60006001600160a01b03831615156108d157600080fd5b8115156108dd57600080fd5b336000908152600560205260409020548211156108f957600080fd5b6001600160a01b038316600090815260056020526040902054828101101561092057600080fd5b3360009081526005602052604090205461093a9083610aac565b33600090815260056020526040808220929092556001600160a01b038516815220546109669083610abe565b6001600160a01b0384166000818152600560209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60066020526000908152604090205481565b336000908152600560205260408120548211156109f257600080fd5b8115156109fe57600080fd5b33600090815260056020526040902054610a189083610aac565b33600090815260056020908152604080832093909355600690522054610a3e9083610abe565b33600081815260066020908152604091829020939093558051858152905191927ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e092918290030190a2506001919050565b600760209081526000928352604080842090915290825290205481565b600082821115610ab857fe5b50900390565b6000828201838110801590610ad35750828110155b1515610adb57fe5b939250505056fea165627a7a72305820f9d717bbb1f80fed9029b401fcb49d47445a74cc08b8f9b595159274f8f021720029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000180de64b9660b7a5754800000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000011446973747269627574656420456172746800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034442450000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 7444443810000000000000000000
Arg [1] : tokenName (string): Distributed Earth
Arg [2] : decimalUnits (uint8): 18
Arg [3] : tokenSymbol (string): DBE
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000180de64b9660b7a575480000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 4469737472696275746564204561727468000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4442450000000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://f9d717bbb1f80fed9029b401fcb49d47445a74cc08b8f9b595159274f8f02172
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.