ERC-20
Overview
Max Total Supply
67,215,194 EDT
Holders
695
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ENDOToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-10 */ pragma solidity ^0.4.15; contract Owned { address public owner; address public newOwner; modifier onlyOwner() { require(msg.sender == owner); _; } function Owned() public { owner = msg.sender; } function transferOwnership(address _newOwner) onlyOwner public { newOwner = _newOwner; } function acceptOwnership() onlyOwner public { OwnershipTransferred(owner, newOwner); owner = newOwner; } event OwnershipTransferred(address indexed _from, address indexed _to); } contract ERC20 { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); } contract StandartToken is ERC20 { using SafeMath for uint256; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; bool public isStarted = false; modifier isStartedOnly() { require(isStarted); _; } function transfer(address _to, uint256 _value) isStartedOnly public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; } function transferFrom(address _from, address _to, uint256 _value) isStartedOnly public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) isStartedOnly public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } function increaseApproval (address _spender, uint _addedValue) isStartedOnly public returns (bool success) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } function decreaseApproval (address _spender, uint _subtractedValue) isStartedOnly public returns (bool success) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract ENDOToken is Owned, StandartToken { string public name = "ENDO Token"; string public symbol = "EDT"; uint public decimals = 18; address public distributionMinter; event Mint(address indexed to, uint256 amount); modifier canMint() { require(!isStarted); _; } modifier onlyDistributionMinter(){ require(msg.sender == distributionMinter); _; } function () public { revert(); } function setDistributionMinter(address _distributionMinter) public onlyOwner canMint { distributionMinter = _distributionMinter; } function mint(address _to, uint256 _amount) onlyDistributionMinter canMint public returns (bool) { totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); return true; } function start() onlyDistributionMinter canMint public returns (bool) { isStarted = true; 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":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distributionMinter","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_distributionMinter","type":"address"}],"name":"setDistributionMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"start","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","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":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":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6005805460ff1916905560c0604052600a60808190527f454e444f20546f6b656e0000000000000000000000000000000000000000000060a090815261004891600691906100aa565b506040805180820190915260038082527f4544540000000000000000000000000000000000000000000000000000000000602090920191825261008d916007916100aa565b50601260085560008054600160a060020a03191633179055610145565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100eb57805160ff1916838001178555610118565b82800160010185558215610118579182015b828111156101185782518255916020019190600101906100fd565b50610124929150610128565b5090565b61014291905b80821115610124576000815560010161012e565b90565b610cad806101546000396000f3006080604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610123578063095ea7b3146101ad57806318160ddd146101e557806323b872dd1461020c578063313ce567146102365780633accb4281461024b57806340c10f191461027c57806346ba7783146102a0578063544736e6146102c357806366188463146102d857806370a08231146102fc57806379ba50971461031d5780638da5cb5b1461033257806395d89b4114610347578063a9059cbb1461035c578063be9a655514610380578063d4ee1d9014610395578063d73dd623146103aa578063dd62ed3e146103ce578063f2fde38b146103f5575b34801561011d57600080fd5b50600080fd5b34801561012f57600080fd5b50610138610416565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017257818101518382015260200161015a565b50505050905090810190601f16801561019f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b957600080fd5b506101d1600160a060020a03600435166024356104a4565b604080519115158252519081900360200190f35b3480156101f157600080fd5b506101fa61051f565b60408051918252519081900360200190f35b34801561021857600080fd5b506101d1600160a060020a0360043581169060243516604435610525565b34801561024257600080fd5b506101fa6106b0565b34801561025757600080fd5b506102606106b6565b60408051600160a060020a039092168252519081900360200190f35b34801561028857600080fd5b506101d1600160a060020a03600435166024356106c5565b3480156102ac57600080fd5b506102c1600160a060020a0360043516610789565b005b3480156102cf57600080fd5b506101d16107df565b3480156102e457600080fd5b506101d1600160a060020a03600435166024356107e8565b34801561030857600080fd5b506101fa600160a060020a03600435166108ef565b34801561032957600080fd5b506102c161090a565b34801561033e57600080fd5b5061026061098f565b34801561035357600080fd5b5061013861099e565b34801561036857600080fd5b506101d1600160a060020a03600435166024356109f9565b34801561038c57600080fd5b506101d1610aee565b3480156103a157600080fd5b50610260610b2c565b3480156103b657600080fd5b506101d1600160a060020a0360043516602435610b3b565b3480156103da57600080fd5b506101fa600160a060020a0360043581169060243516610be8565b34801561040157600080fd5b506102c1600160a060020a0360043516610c13565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049c5780601f106104715761010080835404028352916020019161049c565b820191906000526020600020905b81548152906001019060200180831161047f57829003601f168201915b505050505081565b60055460009060ff1615156104b857600080fd5b336000818152600460209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025481565b60055460009060ff16151561053957600080fd5b600160a060020a038316151561054e57600080fd5b600160a060020a03841660009081526003602052604090205482111561057357600080fd5b600160a060020a03841660009081526004602090815260408083203384529091529020548211156105a357600080fd5b600160a060020a0384166000908152600360205260409020546105cc908363ffffffff610c5916565b600160a060020a038086166000908152600360205260408082209390935590851681522054610601908363ffffffff610c6b16565b600160a060020a038085166000908152600360209081526040808320949094559187168152600482528281203382529091522054610645908363ffffffff610c5916565b600160a060020a03808616600081815260046020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60085481565b600954600160a060020a031681565b600954600090600160a060020a031633146106df57600080fd5b60055460ff16156106ef57600080fd5b600254610702908363ffffffff610c6b16565b600255600160a060020a03831660009081526003602052604090205461072e908363ffffffff610c6b16565b600160a060020a038416600081815260036020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a250600192915050565b600054600160a060020a031633146107a057600080fd5b60055460ff16156107b057600080fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60055460ff1681565b600554600090819060ff1615156107fe57600080fd5b50336000908152600460209081526040808320600160a060020a03871684529091529020548083111561085457336000908152600460209081526040808320600160a060020a0388168452909152812055610889565b610864818463ffffffff610c5916565b336000908152600460209081526040808320600160a060020a03891684529091529020555b336000818152600460209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526003602052604090205490565b600054600160a060020a0316331461092157600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600054600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049c5780601f106104715761010080835404028352916020019161049c565b60055460009060ff161515610a0d57600080fd5b600160a060020a0383161515610a2257600080fd5b33600090815260036020526040902054821115610a3e57600080fd5b33600090815260036020526040902054610a5e908363ffffffff610c5916565b3360009081526003602052604080822092909255600160a060020a03851681522054610a90908363ffffffff610c6b16565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600954600090600160a060020a03163314610b0857600080fd5b60055460ff1615610b1857600080fd5b506005805460ff1916600190811790915590565b600154600160a060020a031681565b60055460009060ff161515610b4f57600080fd5b336000908152600460209081526040808320600160a060020a0387168452909152902054610b83908363ffffffff610c6b16565b336000818152600460209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205490565b600054600160a060020a03163314610c2a57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610c6557fe5b50900390565b600082820183811015610c7a57fe5b93925050505600a165627a7a7230582053968c82a95bba443ccefc7095e0755490b3045a90eb5c86005f59323075d4690029
Deployed Bytecode
0x6080604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610123578063095ea7b3146101ad57806318160ddd146101e557806323b872dd1461020c578063313ce567146102365780633accb4281461024b57806340c10f191461027c57806346ba7783146102a0578063544736e6146102c357806366188463146102d857806370a08231146102fc57806379ba50971461031d5780638da5cb5b1461033257806395d89b4114610347578063a9059cbb1461035c578063be9a655514610380578063d4ee1d9014610395578063d73dd623146103aa578063dd62ed3e146103ce578063f2fde38b146103f5575b34801561011d57600080fd5b50600080fd5b34801561012f57600080fd5b50610138610416565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017257818101518382015260200161015a565b50505050905090810190601f16801561019f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b957600080fd5b506101d1600160a060020a03600435166024356104a4565b604080519115158252519081900360200190f35b3480156101f157600080fd5b506101fa61051f565b60408051918252519081900360200190f35b34801561021857600080fd5b506101d1600160a060020a0360043581169060243516604435610525565b34801561024257600080fd5b506101fa6106b0565b34801561025757600080fd5b506102606106b6565b60408051600160a060020a039092168252519081900360200190f35b34801561028857600080fd5b506101d1600160a060020a03600435166024356106c5565b3480156102ac57600080fd5b506102c1600160a060020a0360043516610789565b005b3480156102cf57600080fd5b506101d16107df565b3480156102e457600080fd5b506101d1600160a060020a03600435166024356107e8565b34801561030857600080fd5b506101fa600160a060020a03600435166108ef565b34801561032957600080fd5b506102c161090a565b34801561033e57600080fd5b5061026061098f565b34801561035357600080fd5b5061013861099e565b34801561036857600080fd5b506101d1600160a060020a03600435166024356109f9565b34801561038c57600080fd5b506101d1610aee565b3480156103a157600080fd5b50610260610b2c565b3480156103b657600080fd5b506101d1600160a060020a0360043516602435610b3b565b3480156103da57600080fd5b506101fa600160a060020a0360043581169060243516610be8565b34801561040157600080fd5b506102c1600160a060020a0360043516610c13565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049c5780601f106104715761010080835404028352916020019161049c565b820191906000526020600020905b81548152906001019060200180831161047f57829003601f168201915b505050505081565b60055460009060ff1615156104b857600080fd5b336000818152600460209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025481565b60055460009060ff16151561053957600080fd5b600160a060020a038316151561054e57600080fd5b600160a060020a03841660009081526003602052604090205482111561057357600080fd5b600160a060020a03841660009081526004602090815260408083203384529091529020548211156105a357600080fd5b600160a060020a0384166000908152600360205260409020546105cc908363ffffffff610c5916565b600160a060020a038086166000908152600360205260408082209390935590851681522054610601908363ffffffff610c6b16565b600160a060020a038085166000908152600360209081526040808320949094559187168152600482528281203382529091522054610645908363ffffffff610c5916565b600160a060020a03808616600081815260046020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60085481565b600954600160a060020a031681565b600954600090600160a060020a031633146106df57600080fd5b60055460ff16156106ef57600080fd5b600254610702908363ffffffff610c6b16565b600255600160a060020a03831660009081526003602052604090205461072e908363ffffffff610c6b16565b600160a060020a038416600081815260036020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a250600192915050565b600054600160a060020a031633146107a057600080fd5b60055460ff16156107b057600080fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60055460ff1681565b600554600090819060ff1615156107fe57600080fd5b50336000908152600460209081526040808320600160a060020a03871684529091529020548083111561085457336000908152600460209081526040808320600160a060020a0388168452909152812055610889565b610864818463ffffffff610c5916565b336000908152600460209081526040808320600160a060020a03891684529091529020555b336000818152600460209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526003602052604090205490565b600054600160a060020a0316331461092157600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600054600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049c5780601f106104715761010080835404028352916020019161049c565b60055460009060ff161515610a0d57600080fd5b600160a060020a0383161515610a2257600080fd5b33600090815260036020526040902054821115610a3e57600080fd5b33600090815260036020526040902054610a5e908363ffffffff610c5916565b3360009081526003602052604080822092909255600160a060020a03851681522054610a90908363ffffffff610c6b16565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600954600090600160a060020a03163314610b0857600080fd5b60055460ff1615610b1857600080fd5b506005805460ff1916600190811790915590565b600154600160a060020a031681565b60055460009060ff161515610b4f57600080fd5b336000908152600460209081526040808320600160a060020a0387168452909152902054610b83908363ffffffff610c6b16565b336000818152600460209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205490565b600054600160a060020a03163314610c2a57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610c6557fe5b50900390565b600082820183811015610c7a57fe5b93925050505600a165627a7a7230582053968c82a95bba443ccefc7095e0755490b3045a90eb5c86005f59323075d4690029
Swarm Source
bzzr://53968c82a95bba443ccefc7095e0755490b3045a90eb5c86005f59323075d469
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.