Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 11388302 | 1469 days ago | IN | 3.879629 ETH | 0.0011738 | ||||
Transfer | 11199266 | 1498 days ago | IN | 5.52942549 ETH | 0.00129735 | ||||
Transfer | 11009933 | 1527 days ago | IN | 4.50590933 ETH | 0.00494232 | ||||
Transfer | 10796758 | 1560 days ago | IN | 3.91325937 ETH | 0.00803127 | ||||
Transfer | 10613981 | 1588 days ago | IN | 3.97858474 ETH | 0.00543655 | ||||
Transfer | 10420411 | 1618 days ago | IN | 6.21720938 ETH | 0.00302717 | ||||
Transfer | 10200889 | 1652 days ago | IN | 9.36075032 ETH | 0.00154447 | ||||
Transfer | 10200868 | 1652 days ago | IN | 9.36075032 ETH | 0.000525 | ||||
Transfer | 10020204 | 1680 days ago | IN | 11.06996638 ETH | 0.00105024 | ||||
Transfer | 9819390 | 1711 days ago | IN | 17.03894647 ETH | 0.00030889 | ||||
Transfer | 9762959 | 1720 days ago | IN | 0.002 ETH | 0.00006177 |
Latest 12 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11388302 | 1469 days ago | 3.879629 ETH | ||||
11199266 | 1498 days ago | 5.52942549 ETH | ||||
11009933 | 1527 days ago | 4.50590933 ETH | ||||
10796758 | 1560 days ago | 3.91325937 ETH | ||||
10613981 | 1588 days ago | 3.97858474 ETH | ||||
10420411 | 1618 days ago | 6.21720938 ETH | ||||
10200889 | 1652 days ago | 9.36075032 ETH | ||||
10020204 | 1680 days ago | 11.06996638 ETH | ||||
9819390 | 1711 days ago | 17.03894647 ETH | ||||
9787820 | 1716 days ago | 0.25352548 ETH | ||||
9787820 | 1716 days ago | 0.25352548 ETH | ||||
9762959 | 1720 days ago | 0.002 ETH |
Loading...
Loading
Contract Name:
EtherToDai
Compiler Version
v0.6.0+commit.26b70077
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.