ETH Price: $3,897.72 (-0.41%)

Contract

0x06CAf57201191862217bc0E08c3e4f11E0103973
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer113883022020-12-04 20:18:251469 days ago1607113105IN
0x06CAf572...1E0103973
3.879629 ETH0.001173819
Transfer111992662020-11-05 20:01:281498 days ago1604606488IN
0x06CAf572...1E0103973
5.52942549 ETH0.0012973521
Transfer110099332020-10-07 17:28:191527 days ago1602091699IN
0x06CAf572...1E0103973
4.50590933 ETH0.0049423280
Transfer107967582020-09-04 19:28:191560 days ago1599247699IN
0x06CAf572...1E0103973
3.91325937 ETH0.00803127130
Transfer106139812020-08-07 17:07:381588 days ago1596820058IN
0x06CAf572...1E0103973
3.97858474 ETH0.0054365588
Transfer104204112020-07-08 18:13:131618 days ago1594231993IN
0x06CAf572...1E0103973
6.21720938 ETH0.0030271749
Transfer102008892020-06-04 18:22:061652 days ago1591294926IN
0x06CAf572...1E0103973
9.36075032 ETH0.0015444725
Transfer102008682020-06-04 18:17:591652 days ago1591294679IN
0x06CAf572...1E0103973
9.36075032 ETH0.00052525
Transfer100202042020-05-07 16:31:401680 days ago1588869100IN
0x06CAf572...1E0103973
11.06996638 ETH0.0010502417
Transfer98193902020-04-06 15:41:301711 days ago1586187690IN
0x06CAf572...1E0103973
17.03894647 ETH0.000308895
Transfer97629592020-03-28 23:23:331720 days ago1585437813IN
0x06CAf572...1E0103973
0.002 ETH0.000061771

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
113883022020-12-04 20:18:251469 days ago1607113105
0x06CAf572...1E0103973
3.879629 ETH
111992662020-11-05 20:01:281498 days ago1604606488
0x06CAf572...1E0103973
5.52942549 ETH
110099332020-10-07 17:28:191527 days ago1602091699
0x06CAf572...1E0103973
4.50590933 ETH
107967582020-09-04 19:28:191560 days ago1599247699
0x06CAf572...1E0103973
3.91325937 ETH
106139812020-08-07 17:07:381588 days ago1596820058
0x06CAf572...1E0103973
3.97858474 ETH
104204112020-07-08 18:13:131618 days ago1594231993
0x06CAf572...1E0103973
6.21720938 ETH
102008892020-06-04 18:22:061652 days ago1591294926
0x06CAf572...1E0103973
9.36075032 ETH
100202042020-05-07 16:31:401680 days ago1588869100
0x06CAf572...1E0103973
11.06996638 ETH
98193902020-04-06 15:41:301711 days ago1586187690
0x06CAf572...1E0103973
17.03894647 ETH
97878202020-04-01 19:11:101716 days ago1585768270
0x06CAf572...1E0103973
0.25352548 ETH
97878202020-04-01 19:11:101716 days ago1585768270
0x06CAf572...1E0103973
0.25352548 ETH
97629592020-03-28 23:23:331720 days ago1585437813
0x06CAf572...1E0103973
0.002 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EtherToDai

Compiler Version
v0.6.0+commit.26b70077

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.6.0;

interface UniswapFactoryInterface {
    function getExchange(address token) external view returns (address);
}

interface UniswapExchangeInterface {
    function ethToTokenTransferInput(
        uint256 min_tokens, 
        uint256 deadline, 
        address recipient
    ) external payable returns (uint256 amount) ;
}

contract EtherToDai {
    
    address owner;
    address recipient;
    UniswapExchangeInterface exchange;

    constructor(address _factory, address _outToken, address _recipient) public {
        owner = msg.sender;
        recipient = _recipient;
        exchange = UniswapExchangeInterface(UniswapFactoryInterface(_factory).getExchange(_outToken));
    }
    
    receive() external payable {
        uint256 ethValue = msg.value;
        require(ethValue > 0, "insufficient eth value");
        exchange.ethToTokenTransferInput.value(ethValue)(1, block.timestamp, recipient);
    }
    
    function withdraw() external {
        require(msg.sender == owner, "The sender is not the owner");
        msg.sender.transfer(address(this).balance);   
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_outToken","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516102ef3803806102ef8339818101604052606081101561003357600080fd5b508051602080830151604093840151600080546001600160a01b03199081163317909155600180546001600160a01b038085169190931617905585516303795fb160e11b815281841660048201529551949592949193908616926306f2bf629260248083019392829003018186803b1580156100ae57600080fd5b505afa1580156100c2573d6000803e3d6000fd5b505050506040513d60208110156100d857600080fd5b5051600280546001600160a01b039092166001600160a01b03199092169190911790555050506101e28061010d6000396000f3fe6080604052600436106100225760003560e01c80633ccfd60b1461010757610102565b36610102573480610073576040805162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206574682076616c756560501b604482015290519081900360640190fd5b600254600180546040805163ad65d76d60e01b815260048101939093524260248401526001600160a01b0391821660448401525192169163ad65d76d918491606480830192602092919082900301818588803b1580156100d257600080fd5b505af11580156100e6573d6000803e3d6000fd5b50505050506040513d60208110156100fd57600080fd5b505050005b600080fd5b34801561011357600080fd5b5061011c61011e565b005b6000546001600160a01b0316331461017d576040805162461bcd60e51b815260206004820152601b60248201527f5468652073656e646572206973206e6f7420746865206f776e65720000000000604482015290519081900360640190fd5b60405133904780156108fc02916000818181858888f193505050501580156101a9573d6000803e3d6000fd5b5056fea26469706673582212204b22131485f83743a8200cdec17afed4e69a7bb586ba36ed95a36509a3a4c49a64736f6c63430006000033000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d950000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000003fd1a76a1d8c66d5d07e3e98ec8edae6e38f59bf

Deployed Bytecode

0x6080604052600436106100225760003560e01c80633ccfd60b1461010757610102565b36610102573480610073576040805162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206574682076616c756560501b604482015290519081900360640190fd5b600254600180546040805163ad65d76d60e01b815260048101939093524260248401526001600160a01b0391821660448401525192169163ad65d76d918491606480830192602092919082900301818588803b1580156100d257600080fd5b505af11580156100e6573d6000803e3d6000fd5b50505050506040513d60208110156100fd57600080fd5b505050005b600080fd5b34801561011357600080fd5b5061011c61011e565b005b6000546001600160a01b0316331461017d576040805162461bcd60e51b815260206004820152601b60248201527f5468652073656e646572206973206e6f7420746865206f776e65720000000000604482015290519081900360640190fd5b60405133904780156108fc02916000818181858888f193505050501580156101a9573d6000803e3d6000fd5b5056fea26469706673582212204b22131485f83743a8200cdec17afed4e69a7bb586ba36ed95a36509a3a4c49a64736f6c63430006000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d950000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000003fd1a76a1d8c66d5d07e3e98ec8edae6e38f59bf

-----Decoded View---------------
Arg [0] : _factory (address): 0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95
Arg [1] : _outToken (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [2] : _recipient (address): 0x3Fd1a76a1d8C66d5D07e3e98EC8edAe6e38f59bf

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d95
Arg [1] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [2] : 0000000000000000000000003fd1a76a1d8c66d5d07e3e98ec8edae6e38f59bf


Deployed Bytecode Sourcemap

360:787:0:-:0;;;;;;;;;;;;;;;;;;;;;;;798:9;826:12;818:47;;;;;-1:-1:-1;;;818:47:0;;;;;;;;;;;;-1:-1:-1;;;818:47:0;;;;;;;;;;;;;;;876:8;;;945:9;;876:79;;;-1:-1:-1;;;876:79:0;;;;;;;;;928:15;876:79;;;;-1:-1:-1;;;;;945:9:0;;;876:79;;;;;:8;;;:32;;915:8;;876:79;;;;;;;;;;;;;;915:8;876;:79;;;5:2:-1;;;;30:1;27;20:12;5:2;876:79:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;876:79:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;360:787:0;;;;;975:163;;8:9:-1;5:2;;;30:1;27;20:12;5:2;975:163:0;;;:::i;:::-;;;1037:5;;-1:-1:-1;;;;;1037:5:0;1023:10;:19;1015:59;;;;;-1:-1:-1;;;1015:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1085:42;;:10;;1105:21;1085:42;;;;;;;;;1105:21;1085:10;:42;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1085:42:0;975:163::o

Swarm Source

ipfs://4b22131485f83743a8200cdec17afed4e69a7bb586ba36ed95a36509a3a4c49a

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.