ETH Price: $3,157.38 (+2.12%)

Contract

0x3ba02d651116DFEDfb996700fee13137305714B4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer69672402018-12-28 9:30:052150 days ago1545989405IN
0x3ba02d65...7305714B4
0 ETH0.000053772.5
Transfer57256572018-06-03 14:45:402358 days ago1528037140IN
0x3ba02d65...7305714B4
0 ETH0.000212539.1
Transfer From40956962017-07-30 16:40:182666 days ago1501432818IN
0x3ba02d65...7305714B4
0 ETH0.0007909421
Transfer40860662017-07-28 15:12:352668 days ago1501254755IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Approve40847072017-07-28 8:09:532668 days ago1501229393IN
0x3ba02d65...7305714B4
0 ETH0.0044
Approve40837872017-07-28 3:29:562668 days ago1501212596IN
0x3ba02d65...7305714B4
0 ETH0.0014
Transfer40837552017-07-28 3:21:402668 days ago1501212100IN
0x3ba02d65...7305714B4
0 ETH0.0010870221
Transfer40833512017-07-28 1:07:582668 days ago1501204078IN
0x3ba02d65...7305714B4
0 ETH0.0010843321
Transfer40833462017-07-28 1:04:272668 days ago1501203867IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833442017-07-28 1:03:472668 days ago1501203827IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833352017-07-28 1:00:512668 days ago1501203651IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833322017-07-28 0:59:412668 days ago1501203581IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833192017-07-28 0:55:432668 days ago1501203343IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833132017-07-28 0:53:152668 days ago1501203195IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40833082017-07-28 0:51:392668 days ago1501203099IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832942017-07-28 0:48:502668 days ago1501202930IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832932017-07-28 0:47:492668 days ago1501202869IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832932017-07-28 0:47:492668 days ago1501202869IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832822017-07-28 0:44:362668 days ago1501202676IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832822017-07-28 0:44:362668 days ago1501202676IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832782017-07-28 0:42:152668 days ago1501202535IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832742017-07-28 0:41:122668 days ago1501202472IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40832512017-07-28 0:34:442668 days ago1501202084IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40831422017-07-28 0:04:392668 days ago1501200279IN
0x3ba02d65...7305714B4
0 ETH0.0010856721
Transfer40831282017-07-28 0:00:472668 days ago1501200047IN
0x3ba02d65...7305714B4
0 ETH0.0010843521
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.