Verified contractPartial
DraconeumToken
Address0x9d72d6bea65ffde064dfeef7041208efbf00db3f
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.4.18
- Same code
2 more contracts
Details
- Compiler
- solc 0.4.18+commit.9cf6e910
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,859,637
- Creation transaction
- 0x3483c3d4b8…f69d7f1562
DraconeumToken.sol
pragma solidity ^0.4.18;
contract DraconeumToken {
string public name = "Draconeum";
string public symbol = "DRCM";
uint8 public decimals = 8;
uint256 public totalSupply = 14000000;
uint256 public initialSupply = 14000000;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* Constructor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/
function DraconeumToken
(string tokenName, string tokenSymbol)
public {
totalSupply = initialSupply * 10 ** uint256(decimals);
balanceOf[msg.sender] = totalSupply;
name = tokenName ="Draconeum";
symbol = tokenSymbol ="DRCM";
}
/**
* Internal transfer, only can be called by this contract
*/
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value > balanceOf[_to]);
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
Transfer(_from, _to, _value);
}
/**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.