ERC-20
Overview
Max Total Supply
21,000,000 EDEX
Holders
667
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:
ETHDEX
Compiler Version
v0.4.17+commit.bdeb9e52
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-03 */ pragma solidity ^0.4.17; library SafeMathMod {// Partial SafeMath Library function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a - b) < a); } function add(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a + b) > a); } } contract ETHDEX {//is inherently ERC20 using SafeMathMod for uint256; /** * @constant name The name of the token * @constant symbol The symbol used to display the currency * @constant decimals The number of decimals used to dispay a balance * @constant totalSupply The total number of tokens times 10^ of the number of decimals * @constant MAX_UINT256 Magic number for unlimited allowance * @storage balanceOf Holds the balances of all token holders * @storage allowed Holds the allowable balance to be transferable by another address. */ string constant public name = "ETHDEX"; string constant public symbol = "EDEX"; uint8 constant public decimals = 8; uint256 constant public totalSupply = 21000000e8; uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowed; event Transfer(address indexed _from, address indexed _to, uint256 _value); event TransferFrom(address indexed _spender, address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); function ETHDEX() public {balanceOf[msg.sender] = totalSupply;} /** * @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) { /* Ensures that tokens are not sent to address "0x0" */ require(_to != address(0)); /* Prevents sending tokens directly to contracts. */ require(isNotContract(_to)); /* SafeMathMOd.sub will throw if there is not enough balance and if the transfer value is 0. */ balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); balanceOf[_to] = balanceOf[_to].add(_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) { /* Ensures that tokens are not sent to address "0x0" */ require(_to != address(0)); /* Ensures tokens are not sent to this contract */ require(_to != address(this)); uint256 allowance = allowed[_from][msg.sender]; /* Ensures sender has enough available allowance OR sender is balance holder allowing single transsaction send to contracts*/ require(_value <= allowance || _from == msg.sender); /* Use SafeMathMod to add and subtract from the _to and _from addresses respectively. Prevents under/overflow and 0 transfers */ balanceOf[_to] = balanceOf[_to].add(_value); balanceOf[_from] = balanceOf[_from].sub(_value); /* Only reduce allowance if not MAX_UINT256 in order to save gas on unlimited allowance */ /* Balance holder does not need allowance to send from self. */ if (allowed[_from][msg.sender] != MAX_UINT256 && _from != msg.sender) { allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); } Transfer(_from, _to, _value); return true; } /** * @dev Transfer the specified amounts of tokens to the specified addresses. * @dev Be aware that there is no check for duplicate recipients. * * @param _toAddresses Receiver addresses. * @param _amounts Amounts of tokens that will be transferred. */ function multiPartyTransfer(address[] _toAddresses, uint256[] _amounts) public { /* Ensures _toAddresses array is less than or equal to 255 */ require(_toAddresses.length <= 255); /* Ensures _toAddress and _amounts have the same number of entries. */ require(_toAddresses.length == _amounts.length); for (uint8 i = 0; i < _toAddresses.length; i++) { transfer(_toAddresses[i], _amounts[i]); } } /** * @dev Transfer the specified amounts of tokens to the specified addresses from authorized balance of sender. * @dev Be aware that there is no check for duplicate recipients. * * @param _from The address of the sender * @param _toAddresses The addresses of the recipients (MAX 255) * @param _amounts The amounts of tokens to be transferred */ function multiPartyTransferFrom(address _from, address[] _toAddresses, uint256[] _amounts) public { /* Ensures _toAddresses array is less than or equal to 255 */ require(_toAddresses.length <= 255); /* Ensures _toAddress and _amounts have the same number of entries. */ require(_toAddresses.length == _amounts.length); for (uint8 i = 0; i < _toAddresses.length; i++) { transferFrom(_from, _toAddresses[i], _amounts[i]); } } /** * @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) { /* Ensures address "0x0" is not assigned allowance. */ require(_spender != address(0)); 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 view returns (uint256 remaining) { remaining = allowed[_owner][_spender]; } function isNotContract(address _addr) private view returns (bool) { uint length; assembly { /* retrieve the size of the code on target address, this needs assembly */ length := extcodesize(_addr) } return (length == 0); } // revert on eth transfers to this contract function() public payable {revert();} }
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":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_toAddresses","type":"address[]"},{"name":"_amounts","type":"uint256[]"}],"name":"multiPartyTransferFrom","outputs":[],"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":"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":false,"inputs":[{"name":"_toAddresses","type":"address[]"},{"name":"_amounts","type":"uint256[]"}],"name":"multiPartyTransfer","outputs":[],"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"},{"inputs":[],"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":"_spender","type":"address"},{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"TransferFrom","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
6060604052341561000f57600080fd5b600160a060020a0333166000908152602081905260409020660775f05a074000905561094b806100406000396000f300606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014657806318160ddd1461017c57806323b872dd146101a1578063313ce567146101c95780635c658165146101f25780636e96433f1461021757806370a08231146102b657806395d89b41146102d5578063a9059cbb146102e8578063b22c14c71461030a578063dd62ed3e14610399575b600080fd5b34156100c757600080fd5b6100cf6103be565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010b5780820151838201526020016100f3565b50505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015157600080fd5b610168600160a060020a03600435166024356103f5565b604051901515815260200160405180910390f35b341561018757600080fd5b61018f610476565b60405190815260200160405180910390f35b34156101ac57600080fd5b610168600160a060020a0360043581169060243516604435610481565b34156101d457600080fd5b6101dc610675565b60405160ff909116815260200160405180910390f35b34156101fd57600080fd5b61018f600160a060020a036004358116906024351661067a565b341561022257600080fd5b6102b460048035600160a060020a03169060446024803590810190830135806020808202016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061069795505050505050565b005b34156102c157600080fd5b61018f600160a060020a0360043516610710565b34156102e057600080fd5b6100cf610722565b34156102f357600080fd5b610168600160a060020a0360043516602435610759565b341561031557600080fd5b6102b460046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061085a95505050505050565b34156103a457600080fd5b61018f600160a060020a03600435811690602435166108d1565b60408051908101604052600681527f4554484445580000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561040c57600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b660775f05a07400081565b600080600160a060020a038416151561049957600080fd5b30600160a060020a031684600160a060020a0316141515156104ba57600080fd5b50600160a060020a03808516600090815260016020908152604080832033909416835292905220548083111580610502575033600160a060020a031685600160a060020a0316145b151561050d57600080fd5b600160a060020a038416600090815260208190526040902054610536908463ffffffff6108fc16565b600160a060020a03808616600090815260208190526040808220939093559087168152205461056b908463ffffffff61090b16565b600160a060020a038087166000908152602081815260408083209490945560018152838220339093168252919091522054600019148015906105bf575033600160a060020a031685600160a060020a031614155b1561062357600160a060020a03808616600090815260016020908152604080832033909416835292905220546105fb908463ffffffff61090b16565b600160a060020a03808716600090815260016020908152604080832033909416835292905220555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b600881565b600160209081526000928352604080842090915290825290205481565b600060ff835111156106a857600080fd5b81518351146106b657600080fd5b5060005b82518160ff16101561070a5761070184848360ff16815181106106d957fe5b90602001906020020151848460ff16815181106106f257fe5b90602001906020020151610481565b506001016106ba565b50505050565b60006020819052908152604090205481565b60408051908101604052600481527f4544455800000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561077057600080fd5b6107798361091a565b151561078457600080fd5b600160a060020a0333166000908152602081905260409020546107ad908363ffffffff61090b16565b600160a060020a0333811660009081526020819052604080822093909355908516815220546107e2908363ffffffff6108fc16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350600192915050565b600060ff8351111561086b57600080fd5b815183511461087957600080fd5b5060005b82518160ff1610156108cc576108c3838260ff168151811061089b57fe5b90602001906020020151838360ff16815181106108b457fe5b90602001906020020151610759565b5060010161087d565b505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b80820182811161047057600080fd5b80820382811061047057600080fd5b3b15905600a165627a7a723058207a47ecb226853093fdbf453a7239d6fcfb1adf5a61c0109888ad65765a25ca690029
Deployed Bytecode
0x606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014657806318160ddd1461017c57806323b872dd146101a1578063313ce567146101c95780635c658165146101f25780636e96433f1461021757806370a08231146102b657806395d89b41146102d5578063a9059cbb146102e8578063b22c14c71461030a578063dd62ed3e14610399575b600080fd5b34156100c757600080fd5b6100cf6103be565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010b5780820151838201526020016100f3565b50505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015157600080fd5b610168600160a060020a03600435166024356103f5565b604051901515815260200160405180910390f35b341561018757600080fd5b61018f610476565b60405190815260200160405180910390f35b34156101ac57600080fd5b610168600160a060020a0360043581169060243516604435610481565b34156101d457600080fd5b6101dc610675565b60405160ff909116815260200160405180910390f35b34156101fd57600080fd5b61018f600160a060020a036004358116906024351661067a565b341561022257600080fd5b6102b460048035600160a060020a03169060446024803590810190830135806020808202016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061069795505050505050565b005b34156102c157600080fd5b61018f600160a060020a0360043516610710565b34156102e057600080fd5b6100cf610722565b34156102f357600080fd5b610168600160a060020a0360043516602435610759565b341561031557600080fd5b6102b460046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437820191505050505050919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061085a95505050505050565b34156103a457600080fd5b61018f600160a060020a03600435811690602435166108d1565b60408051908101604052600681527f4554484445580000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561040c57600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b660775f05a07400081565b600080600160a060020a038416151561049957600080fd5b30600160a060020a031684600160a060020a0316141515156104ba57600080fd5b50600160a060020a03808516600090815260016020908152604080832033909416835292905220548083111580610502575033600160a060020a031685600160a060020a0316145b151561050d57600080fd5b600160a060020a038416600090815260208190526040902054610536908463ffffffff6108fc16565b600160a060020a03808616600090815260208190526040808220939093559087168152205461056b908463ffffffff61090b16565b600160a060020a038087166000908152602081815260408083209490945560018152838220339093168252919091522054600019148015906105bf575033600160a060020a031685600160a060020a031614155b1561062357600160a060020a03808616600090815260016020908152604080832033909416835292905220546105fb908463ffffffff61090b16565b600160a060020a03808716600090815260016020908152604080832033909416835292905220555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b600881565b600160209081526000928352604080842090915290825290205481565b600060ff835111156106a857600080fd5b81518351146106b657600080fd5b5060005b82518160ff16101561070a5761070184848360ff16815181106106d957fe5b90602001906020020151848460ff16815181106106f257fe5b90602001906020020151610481565b506001016106ba565b50505050565b60006020819052908152604090205481565b60408051908101604052600481527f4544455800000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561077057600080fd5b6107798361091a565b151561078457600080fd5b600160a060020a0333166000908152602081905260409020546107ad908363ffffffff61090b16565b600160a060020a0333811660009081526020819052604080822093909355908516815220546107e2908363ffffffff6108fc16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350600192915050565b600060ff8351111561086b57600080fd5b815183511461087957600080fd5b5060005b82518160ff1610156108cc576108c3838260ff168151811061089b57fe5b90602001906020020151838360ff16815181106108b457fe5b90602001906020020151610759565b5060010161087d565b505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b80820182811161047057600080fd5b80820382811061047057600080fd5b3b15905600a165627a7a723058207a47ecb226853093fdbf453a7239d6fcfb1adf5a61c0109888ad65765a25ca690029
Swarm Source
bzzr://7a47ecb226853093fdbf453a7239d6fcfb1adf5a61c0109888ad65765a25ca69
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.