ETH Price: $3,168.69 (+4.34%)

Token

EtherDOGE (eDOGE)
 

Overview

Max Total Supply

0 eDOGE

Holders

21

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 4 Decimals)

Filtered by Token Holder
Qtum Token
Balance
21 eDOGE

Value
$0.00
0x9a642d6b3368ddc662ca244badf32cda716005bc
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EtherDOGEICO

Compiler Version
v0.4.13+commit.fb4cb1a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-07-27
*/

contract EtherDOGEICO {
    
    function name() constant returns (string) { return "EtherDOGE"; }
    function symbol() constant returns (string) { return "eDOGE"; }
    function decimals() constant returns (uint8) { return 4; }
	

    uint256 public INITIAL_SUPPLY;
	uint256 public totalSupply;
	
	uint256 public totalContrib;
    
    uint256 public rate;
  
    address public owner;						    //init owner address
	
	uint256 public amount;
	
	
	function EtherDOGEICO() {
        INITIAL_SUPPLY = 210000000000;              //Starting EtherDOGE supply
		totalSupply = 0;
		
		totalContrib = 0;
        
        rate = 210000000;                           //How many EtherDOGE tokens per ETH given
		
		owner = msg.sender;			                //Make owner of contract the creator
		
		balances[msg.sender] = INITIAL_SUPPLY;		//Send owner of contract all starting tokens
	}
	
	
	//This function is called when Ether is sent to the contract address
	//Even if 0 ether is sent.
	function () payable {
	    
	    uint256 tryAmount = div((mul(msg.value, rate)), 1 ether);                   //Don't let people buy more tokens than there are.
	    
		if (msg.value == 0 || msg.value < 0 || balanceOf(owner) < tryAmount) {		//If zero ether is sent, kill. Do nothing. 
			revert();
		}
		
	    amount = 0;									                //set the 'amount' var back to zero
		amount = div((mul(msg.value, rate)), 1 ether);				//take sent ether, multiply it by the rate then divide by 1 ether.
		transferFrom(owner, msg.sender, amount);                    //Send tokens to buyer
		totalSupply += amount;										//Keep track of how many have been sold.
		totalContrib = (totalContrib + msg.value);
		amount = 0;									                //set the 'amount' var back to zero
		
		
		owner.transfer(msg.value);					                //Send the ETH to contract owner.

	}	
	
	
	
  
  event Transfer(address indexed _from, address indexed _to, uint256 _value);
  
  mapping(address => uint256) balances;


    function transfer(address _to, uint256 _value) returns (bool success) {

        if (_value == 0) { return false; }

        uint256 fromBalance = balances[msg.sender];

        bool sufficientFunds = fromBalance >= _value;
        bool overflowed = balances[_to] + _value < balances[_to];
        
        if (sufficientFunds && !overflowed) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            
            Transfer(msg.sender, _to, _value);
            return true;
        } else { return false; }
    }



    function balanceOf(address _owner) constant returns (uint256) { return balances[_owner]; }



    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {

        if (_value == 0) { return false; }
        
        uint256 fromBalance = balances[owner];

        bool sufficientFunds = fromBalance >= _value;

        if (sufficientFunds) {
            balances[_to] += _value;
            balances[_from] -= _value;
            
            Transfer(_from, _to, _value);
            return true;
        } else { return false; }
    }

	
    function getStats() constant returns (uint256, uint256) {
        return (totalSupply, totalContrib);
    }

	
	
  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 Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalContrib","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"amount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getStats","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"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"}]

6060604052341561000f57600080fd5b5b6430e4f9b400600081815560018190556002819055630c84588060035560048054600160a060020a03191633600160a060020a03169081179091558152600660205260409020555b5b6107a3806100686000396000f300606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101b957806318160ddd146102445780631e2d56511461026957806323b872dd1461028e5780632c4e722e146102ca5780632ff2e9dc146102ef578063313ce5671461031457806370a082311461033d5780638da5cb5b1461036e57806395d89b411461039d578063a9059cbb14610428578063aa8c217c1461045e578063c59d484714610483575b6101b75b60006100e56100d7346003546104ae565b670de0b6b3a76400006104dd565b90503415806100f45750600034105b806101135750600454819061011190600160a060020a03166104f9565b105b1561011d57600080fd5b60006005819055506101426100d7346003546104ae565b670de0b6b3a76400006104dd565b600581905560045461016191600160a060020a03909116903390610518565b506005805460018054909101905560028054349081019091556000909155600454600160a060020a03169080156108fc0290604051600060405180830381858888f1935050505015156101b357600080fd5b5b50565b005b34156101c457600080fd5b6101cc6105d1565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102095780820151818401525b6020016101f0565b50505050905090810190601f1680156102365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561024f57600080fd5b610257610613565b60405190815260200160405180910390f35b341561027457600080fd5b610257610619565b60405190815260200160405180910390f35b341561029957600080fd5b6102b6600160a060020a0360043581169060243516604435610518565b604051901515815260200160405180910390f35b34156102d557600080fd5b61025761061f565b60405190815260200160405180910390f35b34156102fa57600080fd5b610257610625565b60405190815260200160405180910390f35b341561031f57600080fd5b61032761062b565b60405160ff909116815260200160405180910390f35b341561034857600080fd5b610257600160a060020a03600435166104f9565b60405190815260200160405180910390f35b341561037957600080fd5b610381610631565b604051600160a060020a03909116815260200160405180910390f35b34156103a857600080fd5b6101cc610640565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102095780820151818401525b6020016101f0565b50505050905090810190601f1680156102365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561043357600080fd5b6102b6600160a060020a0360043516602435610682565b604051901515815260200160405180910390f35b341561046957600080fd5b610257610754565b60405190815260200160405180910390f35b341561048e57600080fd5b61049661075a565b60405191825260208201526040908101905180910390f35b60008282028315806104ca57508284828115156104c757fe5b04145b15156104d257fe5b8091505b5092915050565b60008082848115156104eb57fe5b0490508091505b5092915050565b600160a060020a0381166000908152600660205260409020545b919050565b6000808083151561052c57600092506105c7565b5050600454600160a060020a03166000908152600660205260409020548281108015906105c257600160a060020a03808616600081815260066020526040808220805489019055928916808252908390208054889003905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9087905190815260200160405180910390a3600192506105c7565b600092505b5b50509392505050565b6105d9610765565b60408051908101604052600981527f4574686572444f47450000000000000000000000000000000000000000000000602082015290505b90565b60015481565b60025481565b60035481565b60005481565b60045b90565b600454600160a060020a031681565b610648610765565b60408051908101604052600581527f65444f4745000000000000000000000000000000000000000000000000000000602082015290505b90565b6000808080841515610697576000935061074a565b505050600160a060020a03338116600090815260066020526040808220549286168252902054838210801591808601109082906106d2575080155b1561074557600160a060020a0333811660008181526006602052604080822080548a9003905592891680825290839020805489019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9088905190815260200160405180910390a36001935061074a565b600093505b5b50505092915050565b60055481565b6001546002545b9091565b602060405190810160405260008152905600a165627a7a72305820bc2513ac5cd35c11846cc2a6f6503edf886c79a4fbbcbdc2340c0edfc876a0910029

Deployed Bytecode

0x606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101b957806318160ddd146102445780631e2d56511461026957806323b872dd1461028e5780632c4e722e146102ca5780632ff2e9dc146102ef578063313ce5671461031457806370a082311461033d5780638da5cb5b1461036e57806395d89b411461039d578063a9059cbb14610428578063aa8c217c1461045e578063c59d484714610483575b6101b75b60006100e56100d7346003546104ae565b670de0b6b3a76400006104dd565b90503415806100f45750600034105b806101135750600454819061011190600160a060020a03166104f9565b105b1561011d57600080fd5b60006005819055506101426100d7346003546104ae565b670de0b6b3a76400006104dd565b600581905560045461016191600160a060020a03909116903390610518565b506005805460018054909101905560028054349081019091556000909155600454600160a060020a03169080156108fc0290604051600060405180830381858888f1935050505015156101b357600080fd5b5b50565b005b34156101c457600080fd5b6101cc6105d1565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102095780820151818401525b6020016101f0565b50505050905090810190601f1680156102365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561024f57600080fd5b610257610613565b60405190815260200160405180910390f35b341561027457600080fd5b610257610619565b60405190815260200160405180910390f35b341561029957600080fd5b6102b6600160a060020a0360043581169060243516604435610518565b604051901515815260200160405180910390f35b34156102d557600080fd5b61025761061f565b60405190815260200160405180910390f35b34156102fa57600080fd5b610257610625565b60405190815260200160405180910390f35b341561031f57600080fd5b61032761062b565b60405160ff909116815260200160405180910390f35b341561034857600080fd5b610257600160a060020a03600435166104f9565b60405190815260200160405180910390f35b341561037957600080fd5b610381610631565b604051600160a060020a03909116815260200160405180910390f35b34156103a857600080fd5b6101cc610640565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102095780820151818401525b6020016101f0565b50505050905090810190601f1680156102365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561043357600080fd5b6102b6600160a060020a0360043516602435610682565b604051901515815260200160405180910390f35b341561046957600080fd5b610257610754565b60405190815260200160405180910390f35b341561048e57600080fd5b61049661075a565b60405191825260208201526040908101905180910390f35b60008282028315806104ca57508284828115156104c757fe5b04145b15156104d257fe5b8091505b5092915050565b60008082848115156104eb57fe5b0490508091505b5092915050565b600160a060020a0381166000908152600660205260409020545b919050565b6000808083151561052c57600092506105c7565b5050600454600160a060020a03166000908152600660205260409020548281108015906105c257600160a060020a03808616600081815260066020526040808220805489019055928916808252908390208054889003905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9087905190815260200160405180910390a3600192506105c7565b600092505b5b50509392505050565b6105d9610765565b60408051908101604052600981527f4574686572444f47450000000000000000000000000000000000000000000000602082015290505b90565b60015481565b60025481565b60035481565b60005481565b60045b90565b600454600160a060020a031681565b610648610765565b60408051908101604052600581527f65444f4745000000000000000000000000000000000000000000000000000000602082015290505b90565b6000808080841515610697576000935061074a565b505050600160a060020a03338116600090815260066020526040808220549286168252902054838210801591808601109082906106d2575080155b1561074557600160a060020a0333811660008181526006602052604080822080548a9003905592891680825290839020805489019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9088905190815260200160405180910390a36001935061074a565b600093505b5b50505092915050565b60055481565b6001546002545b9091565b602060405190810160405260008152905600a165627a7a72305820bc2513ac5cd35c11846cc2a6f6503edf886c79a4fbbcbdc2340c0edfc876a0910029

Swarm Source

bzzr://bc2513ac5cd35c11846cc2a6f6503edf886c79a4fbbcbdc2340c0edfc876a091
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.