ETH Price: $2,661.70 (-5.24%)

Contract

0xb4d79Feeb4b4E0daE1a33e784F398AD1062C3584
 

Overview

ETH Balance

0.000525677199872793 ETH

Eth Value

$1.40 (@ $2,661.70/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Makeprofit102599222020-06-13 21:56:291716 days ago1592085389IN
0xb4d79Fee...1062C3584
0 ETH0.0004678515.001
Transfer98677522020-04-14 2:12:061777 days ago1586830326IN
0xb4d79Fee...1062C3584
0.00875 ETH0.0007990610
Transfer92223882020-01-05 19:50:211876 days ago1578253821IN
0xb4d79Fee...1062C3584
0.01 ETH0.000759428
Transfer91463622019-12-22 15:46:091891 days ago1577029569IN
0xb4d79Fee...1062C3584
0.1036 ETH0.000455585.7
Transfer91455382019-12-22 11:55:391891 days ago1577015739IN
0xb4d79Fee...1062C3584
0.06696166 ETH0.000730947.7
Transfer91448692019-12-22 8:45:151891 days ago1577004315IN
0xb4d79Fee...1062C3584
0.00003558 ETH0.000559497
Transfer91448612019-12-22 8:43:301891 days ago1577004210IN
0xb4d79Fee...1062C3584
0.00003558 ETH0.000559497
Transfer91031862019-12-14 2:41:091899 days ago1576291269IN
0xb4d79Fee...1062C3584
0.00067072 ETH0.000639428
Transfer90664932019-12-07 13:46:261906 days ago1575726386IN
0xb4d79Fee...1062C3584
0.25394468 ETH0.000067921
Transfer90528742019-12-05 3:45:161908 days ago1575517516IN
0xb4d79Fee...1062C3584
0.10030619 ETH0.000067921
Transfer90437912019-12-03 12:57:201910 days ago1575377840IN
0xb4d79Fee...1062C3584
0.062 ETH0.0008292810
Transfer90424682019-12-03 7:29:421910 days ago1575358182IN
0xb4d79Fee...1062C3584
0.02000733 ETH0.00002311.1
Transfer90325282019-12-01 12:59:381912 days ago1575205178IN
0xb4d79Fee...1062C3584
1.5 ETH0.0010189215
Transfer90283212019-11-30 19:14:351912 days ago1575141275IN
0xb4d79Fee...1062C3584
0.15022747 ETH0.000067921
Transfer90263612019-11-30 10:47:401913 days ago1575110860IN
0xb4d79Fee...1062C3584
0.99832072 ETH0.0006792810
Transfer90263412019-11-30 10:42:521913 days ago1575110572IN
0xb4d79Fee...1062C3584
0.09288288 ETH0.0006792810
Transfer90164202019-11-28 16:29:111915 days ago1574958551IN
0xb4d79Fee...1062C3584
0.08 ETH0.0006792810
Transfer90164152019-11-28 16:28:131915 days ago1574958493IN
0xb4d79Fee...1062C3584
0.01 ETH0.0006792810
Transfer90156942019-11-28 13:21:331915 days ago1574947293IN
0xb4d79Fee...1062C3584
0.15059162 ETH0.000067921
Transfer90131382019-11-28 2:38:271915 days ago1574908707IN
0xb4d79Fee...1062C3584
0.999 ETH0.0006792810
Transfer89972682019-11-25 7:36:471918 days ago1574667407IN
0xb4d79Fee...1062C3584
0.004 ETH0.0021736932
Transfer89961402019-11-25 3:06:581918 days ago1574651218IN
0xb4d79Fee...1062C3584
0.01 ETH0.0009509914
Transfer89941662019-11-24 19:23:051918 days ago1574623385IN
0xb4d79Fee...1062C3584
0.0508444 ETH0.000067921
Transfer89925482019-11-24 12:58:571919 days ago1574600337IN
0xb4d79Fee...1062C3584
0.5 ETH0.0006792810
Transfer89914532019-11-24 8:36:431919 days ago1574584603IN
0xb4d79Fee...1062C3584
0.04 ETH0.0008292810
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
207616582024-09-16 7:20:59161 days ago1726471259
0xb4d79Fee...1062C3584
0.13089362 ETH
207616582024-09-16 7:20:59161 days ago1726471259
0xb4d79Fee...1062C3584
0.13141929 ETH
102599222020-06-13 21:56:291716 days ago1592085389
0xb4d79Fee...1062C3584
0.09298855 ETH
98677522020-04-14 2:12:061777 days ago1586830326
0xb4d79Fee...1062C3584
0.008715 ETH
97233732020-03-22 20:01:041799 days ago1584907264
0xb4d79Fee...1062C3584
0.10070611 ETH
97233732020-03-22 20:01:041799 days ago1584907264
0xb4d79Fee...1062C3584
0.10111056 ETH
96508662020-03-11 14:53:271811 days ago1583938407
0xb4d79Fee...1062C3584
0.37848 ETH
96508662020-03-11 14:53:271811 days ago1583938407
0xb4d79Fee...1062C3584
0.38 ETH
92223882020-01-05 19:50:211876 days ago1578253821
0xb4d79Fee...1062C3584
0.00996 ETH
91806622019-12-29 11:40:491884 days ago1577619649
0xb4d79Fee...1062C3584
0.07087887 ETH
91806622019-12-29 11:40:491884 days ago1577619649
0xb4d79Fee...1062C3584
0.07116352 ETH
91463622019-12-22 15:46:091891 days ago1577029569
0xb4d79Fee...1062C3584
0.1031856 ETH
91455382019-12-22 11:55:391891 days ago1577015739
0xb4d79Fee...1062C3584
0.06669381 ETH
91448692019-12-22 8:45:151891 days ago1577004315
0xb4d79Fee...1062C3584
0.00003543 ETH
91448612019-12-22 8:43:301891 days ago1577004210
0xb4d79Fee...1062C3584
0.00003543 ETH
91031862019-12-14 2:41:091899 days ago1576291269
0xb4d79Fee...1062C3584
0.00066803 ETH
90894192019-12-11 15:30:051902 days ago1576078205
0xb4d79Fee...1062C3584
0.10829506 ETH
90894192019-12-11 15:30:051902 days ago1576078205
0xb4d79Fee...1062C3584
0.10872998 ETH
90728582019-12-08 17:00:211905 days ago1575824421
0xb4d79Fee...1062C3584
0.13430523 ETH
90728582019-12-08 17:00:211905 days ago1575824421
0xb4d79Fee...1062C3584
0.13484461 ETH
90679632019-12-07 20:00:161905 days ago1575748816
0xb4d79Fee...1062C3584
0.13405872 ETH
90679632019-12-07 20:00:161905 days ago1575748816
0xb4d79Fee...1062C3584
0.13459711 ETH
90664932019-12-07 13:46:261906 days ago1575726386
0xb4d79Fee...1062C3584
0.2529289 ETH
90528742019-12-05 3:45:161908 days ago1575517516
0xb4d79Fee...1062C3584
0.09990496 ETH
90454622019-12-03 20:00:461909 days ago1575403246
0xb4d79Fee...1062C3584
0.13588915 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
cDaiGateway

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-05-28
*/

pragma solidity ^0.4.24;

contract Ownable {
    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor() public {
        owner = msg.sender;
    }
    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    /**
    * @dev Allows the current owner to transfer control of the contract to a newOwner.
    * @param newOwner The address to transfer ownership to.
    */
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}

contract Exchange {
	function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) public payable returns(uint256);
}

contract cDaiGateway is Ownable {
	Exchange cDaiEx = Exchange(0x45A2FDfED7F7a2c791fb1bdF6075b83faD821ddE);

	function () public payable {
		etherTocDai(msg.sender);
	}

	function etherTocDai(address to) public payable returns(uint256) {
        return cDaiEx.ethToTokenTransferInput.value(msg.value * 996 / 1000)(1, now, to);
	}

	function makeprofit() public onlyOwner {
		owner.transfer(address(this).balance);
	}

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"to","type":"address"}],"name":"etherTocDai","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"makeprofit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

608060405260018054600160a060020a03199081167345a2fdfed7f7a2c791fb1bdf6075b83fad821dde1790915560008054909116331790556102e5806100476000396000f3006080604052600436106100615763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166329f370cb811461006d578063503011dc146100935780638da5cb5b146100aa578063f2fde38b146100db575b61006a336100fc565b50005b610081600160a060020a03600435166100fc565b60408051918252519081900360200190f35b34801561009f57600080fd5b506100a86101c1565b005b3480156100b657600080fd5b506100bf610216565b60408051600160a060020a039092168252519081900360200190f35b3480156100e757600080fd5b506100a8600160a060020a0360043516610225565b600154600090600160a060020a031663ad65d76d6103e86103e4340204600142866040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084815260200183815260200182600160a060020a0316600160a060020a0316815260200193505050506020604051808303818588803b15801561018e57600080fd5b505af11580156101a2573d6000803e3d6000fd5b50505050506040513d60208110156101b957600080fd5b505192915050565b600054600160a060020a031633146101d857600080fd5b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f19350505050158015610213573d6000803e3d6000fd5b50565b600054600160a060020a031681565b600054600160a060020a0316331461023c57600080fd5b600160a060020a038116151561025157600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058202f191ddb6673478732231d7628268165fdb24c37d4fea5e06484bcd3c526e7460029

Deployed Bytecode

0x6080604052600436106100615763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166329f370cb811461006d578063503011dc146100935780638da5cb5b146100aa578063f2fde38b146100db575b61006a336100fc565b50005b610081600160a060020a03600435166100fc565b60408051918252519081900360200190f35b34801561009f57600080fd5b506100a86101c1565b005b3480156100b657600080fd5b506100bf610216565b60408051600160a060020a039092168252519081900360200190f35b3480156100e757600080fd5b506100a8600160a060020a0360043516610225565b600154600090600160a060020a031663ad65d76d6103e86103e4340204600142866040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084815260200183815260200182600160a060020a0316600160a060020a0316815260200193505050506020604051808303818588803b15801561018e57600080fd5b505af11580156101a2573d6000803e3d6000fd5b50505050506040513d60208110156101b957600080fd5b505192915050565b600054600160a060020a031633146101d857600080fd5b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f19350505050158015610213573d6000803e3d6000fd5b50565b600054600160a060020a031681565b600054600160a060020a0316331461023c57600080fd5b600160a060020a038116151561025157600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058202f191ddb6673478732231d7628268165fdb24c37d4fea5e06484bcd3c526e7460029

Deployed Bytecode Sourcemap

1050:433:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1194:23;1206:10;1194:11;:23::i;:::-;;1050:433;1227:160;;-1:-1:-1;;;;;1227:160:0;;;;;;;;;;;;;;;;;;;;;1392:86;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1392:86:0;;;;;;52:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52:20:0;;;;;;;;-1:-1:-1;;;;;52:20:0;;;;;;;;;;;;;;700:192;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;700:192:0;-1:-1:-1;;;;;700:192:0;;;;;1227:160;1310:6;;1283:7;;-1:-1:-1;;;;;1310:6:0;:30;1365:4;1359:3;1347:9;:15;:22;1371:1;1374:3;1379:2;1310:72;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1310:72:0;-1:-1:-1;;;;;1310:72:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1310:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1310:72:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1310:72:0;;1227:160;-1:-1:-1;;1227:160:0:o;1392:86::-;502:5;;-1:-1:-1;;;;;502:5:0;488:10;:19;480:28;;;;;;1436:5;;;:37;;-1:-1:-1;;;;;1436:5:0;;;;1459:4;1451:21;1436:37;;;;;1451:21;;1436:37;:5;:37;1451:21;1436:5;:37;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1436:37:0;1392:86::o;52:20::-;;;-1:-1:-1;;;;;52:20:0;;:::o;700:192::-;502:5;;-1:-1:-1;;;;;502:5:0;488:10;:19;480:28;;;;;;-1:-1:-1;;;;;781:22:0;;;;773:31;;;;;;841:5;;;820:37;;-1:-1:-1;;;;;820:37:0;;;;841:5;;;820:37;;;868:5;:16;;-1:-1:-1;;868:16:0;-1:-1:-1;;;;;868:16:0;;;;;;;;;;700:192::o

Swarm Source

bzzr://2f191ddb6673478732231d7628268165fdb24c37d4fea5e06484bcd3c526e746

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  ]
[ 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.