ETH Price: $3,027.30 (+2.31%)
Gas: 0.05 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

ContractCreator

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Makeprofit128528312021-07-18 20:45:481592 days ago1626641148IN
0x69186f86...5C79f1283
0 ETH0.000485916
Transfer94525942020-02-10 3:16:232116 days ago1581304583IN
0x69186f86...5C79f1283
0.01 ETH0.002905735.1
Transfer93846152020-01-30 16:31:202127 days ago1580401880IN
0x69186f86...5C79f1283
0.001 ETH0.004251688
Transfer93386912020-01-23 15:16:512134 days ago1579792611IN
0x69186f86...5C79f1283
20.3661 ETH0.00098722
Transfer92600282020-01-11 13:58:272146 days ago1578751107IN
0x69186f86...5C79f1283
1 ETH0.001037312
Transfer91447362019-12-22 8:08:462166 days ago1577002126IN
0x69186f86...5C79f1283
0.005 ETH0.003615327
Makeprofit91164642019-12-16 16:53:122172 days ago1576515192IN
0x69186f86...5C79f1283
0 ETH0.000151345
Transfer91164362019-12-16 16:42:292172 days ago1576514549IN
0x69186f86...5C79f1283
0.005 ETH0.002837465.5

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-128528312021-07-18 20:45:481592 days ago1626641148
0x69186f86...5C79f1283
0.1282926 ETH
-95006772020-02-17 12:40:552109 days ago1581943255
0x69186f86...5C79f1283
0.02982 ETH
-95006772020-02-17 12:40:552109 days ago1581943255
0x69186f86...5C79f1283
0.03 ETH
-95006682020-02-17 12:39:002109 days ago1581943140
0x69186f86...5C79f1283
0.02982 ETH
-95006682020-02-17 12:39:002109 days ago1581943140
0x69186f86...5C79f1283
0.03 ETH
-94525942020-02-10 3:16:232116 days ago1581304583
0x69186f86...5C79f1283
0.00994 ETH
-93846152020-01-30 16:31:202127 days ago1580401880
0x69186f86...5C79f1283
0.000994 ETH
-93386912020-01-23 15:16:512134 days ago1579792611
0x69186f86...5C79f1283
20.2439034 ETH
-92600282020-01-11 13:58:272146 days ago1578751107
0x69186f86...5C79f1283
0.994 ETH
-91447362019-12-22 8:08:462166 days ago1577002126
0x69186f86...5C79f1283
0.00497 ETH
-91164642019-12-16 16:53:122172 days ago1576515192
0x69186f86...5C79f1283
0.00003 ETH
-91164362019-12-16 16:42:292172 days ago1576514549
0x69186f86...5C79f1283
0.00497 ETH
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
chaiGateway

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 Erc20 {
    function balanceOf(address _owner) view public returns(uint256);
    function transfer(address _to, uint256 _value) public returns(bool);
    function approve(address _spender, uint256 _value) public returns(bool);
}

contract Chai is Erc20 {
    function join(address dst, uint wad) external;
}

contract Exchange {
    function trade(
        address src,
        uint srcAmount,
        address dest,
        address destAddress,
        uint maxDestAmount,
        uint minConversionRate,
        address walletId )public payable returns(uint);
}


contract chaiGateway is Ownable {
    Exchange DaiEx = Exchange(0x818E6FECD516Ecc3849DAf6845e3EC868087B755);

    Erc20 dai = Erc20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
    Chai chai = Chai(0x06AF07097C9Eeb7fD685c692751D5C66dB49c215);

    address etherAddr = 0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee;

    constructor() public {
        dai.approve(address(chai), uint256(-1));
    }
    
    function () public payable {
        etherTochai(msg.sender);
    }

    function etherTochai(address to) public payable returns(uint256 outAmount) {
        uint256 in_eth = msg.value * 994 / 1000;
        uint256 amount = DaiEx.trade.value(in_eth)(etherAddr, in_eth, address(dai), address(this), 10**28, 1, owner);
        uint256 before = chai.balanceOf(to);
        chai.join(to, amount);
        outAmount = chai.balanceOf(to) - before;
    }

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

}

Contract Security Audit

Contract ABI

API
[{"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":"to","type":"address"}],"name":"etherTochai","outputs":[{"name":"outAmount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"}]

608060405260018054600160a060020a031990811673818e6fecd516ecc3849daf6845e3ec868087b75517909155600280548216736b175474e89094c44da98b954eedeac495271d0f1790556003805482167306af07097c9eeb7fd685c692751d5c66db49c2151790556004805490911673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee17905534801561009457600080fd5b5060008054600160a060020a03191633178155600254600354604080517f095ea7b3000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260001960248201529051929091169263095ea7b3926044808401936020939083900390910190829087803b15801561011b57600080fd5b505af115801561012f573d6000803e3d6000fd5b505050506040513d602081101561014557600080fd5b50506104b0806101566000396000f3006080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663503011dc811461006d5780638da5cb5b14610084578063de59835c146100b5578063f2fde38b146100db575b61006a336100fc565b50005b34801561007957600080fd5b506100826103a3565b005b34801561009057600080fd5b506100996103e1565b60408051600160a060020a039092168252519081900360200190f35b6100c9600160a060020a03600435166100fc565b60408051918252519081900360200190f35b3480156100e757600080fd5b50610082600160a060020a03600435166103f0565b600180546004805460025460008054604080517fcb3c28c7000000000000000000000000000000000000000000000000000000008152600160a060020a03958616968101969096526103e8346103e202046024870181905293851660448701523060648701526b204fce5e3e25026110000000608487015260a4860197909752831660c485015294519093859384939091169163cb3c28c791869160e480830192602092919082900301818588803b1580156101b757600080fd5b505af11580156101cb573d6000803e3d6000fd5b50505050506040513d60208110156101e257600080fd5b5051600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03898116600483015291519395509116916370a08231916024808201926020929091908290030181600087803b15801561024e57600080fd5b505af1158015610262573d6000803e3d6000fd5b505050506040513d602081101561027857600080fd5b5051600354604080517f3b4da69f000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018790529151939450911691633b4da69f9160448082019260009290919082900301818387803b1580156102ea57600080fd5b505af11580156102fe573d6000803e3d6000fd5b5050600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038a8116600483015291518695509190921692506370a08231916024808201926020929091908290030181600087803b15801561036d57600080fd5b505af1158015610381573d6000803e3d6000fd5b505050506040513d602081101561039757600080fd5b50510395945050505050565b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f193505050501580156103de573d6000803e3d6000fd5b50565b600054600160a060020a031681565b600054600160a060020a0316331461040757600080fd5b600160a060020a038116151561041c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820483c38df456b355354020a8bbe253e1c7bd38229928ebeecb1c09ef75e34947b0029

Deployed Bytecode

0x6080604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663503011dc811461006d5780638da5cb5b14610084578063de59835c146100b5578063f2fde38b146100db575b61006a336100fc565b50005b34801561007957600080fd5b506100826103a3565b005b34801561009057600080fd5b506100996103e1565b60408051600160a060020a039092168252519081900360200190f35b6100c9600160a060020a03600435166100fc565b60408051918252519081900360200190f35b3480156100e757600080fd5b50610082600160a060020a03600435166103f0565b600180546004805460025460008054604080517fcb3c28c7000000000000000000000000000000000000000000000000000000008152600160a060020a03958616968101969096526103e8346103e202046024870181905293851660448701523060648701526b204fce5e3e25026110000000608487015260a4860197909752831660c485015294519093859384939091169163cb3c28c791869160e480830192602092919082900301818588803b1580156101b757600080fd5b505af11580156101cb573d6000803e3d6000fd5b50505050506040513d60208110156101e257600080fd5b5051600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03898116600483015291519395509116916370a08231916024808201926020929091908290030181600087803b15801561024e57600080fd5b505af1158015610262573d6000803e3d6000fd5b505050506040513d602081101561027857600080fd5b5051600354604080517f3b4da69f000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152602482018790529151939450911691633b4da69f9160448082019260009290919082900301818387803b1580156102ea57600080fd5b505af11580156102fe573d6000803e3d6000fd5b5050600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038a8116600483015291518695509190921692506370a08231916024808201926020929091908290030181600087803b15801561036d57600080fd5b505af1158015610381573d6000803e3d6000fd5b505050506040513d602081101561039757600080fd5b50510395945050505050565b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f193505050501580156103de573d6000803e3d6000fd5b50565b600054600160a060020a031681565b600054600160a060020a0316331461040757600080fd5b600160a060020a038116151561041c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820483c38df456b355354020a8bbe253e1c7bd38229928ebeecb1c09ef75e34947b0029

Deployed Bytecode Sourcemap

1495:973:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1951:23;1963:10;1951:11;:23::i;:::-;;1495:973;2378:85;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2378:85:0;;;;;;52:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52:20:0;;;;;;;;-1:-1:-1;;;;;52:20:0;;;;;;;;;;;;;;1990:380;;-1:-1:-1;;;;;1990:380: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;;;;;1990:380;2143:5;;;2169:9;;;2196:3;;2046:17;2228:5;;2143:91;;;;;;-1:-1:-1;;;;;2169:9:0;;;2143:91;;;;;;;2111:4;2093:9;2105:3;2093:15;:22;2143:91;;;;;;2196:3;;;2143:91;;;;2210:4;2143:91;;;;2217:6;2143:91;;;;;;;;;;;2228:5;;2143:91;;;;;;2093:22;;2046:17;;;;2143:5;;;;:11;;2093:22;;2143:91;;;;;;;;;;;;;;2093:22;2143:5;:91;;;5:2:-1;;;;30:1;27;20:12;5:2;2143:91:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2143:91:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2143:91:0;2262:4;;:18;;;;;;-1:-1:-1;;;;;2262:18:0;;;;;;;;;2143:91;;-1:-1:-1;2262:4:0;;;:14;;:18;;;;;2143:91;;2262:18;;;;;;;;:4;;:18;;;5:2:-1;;;;30:1;27;20:12;5:2;2262:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2262:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2262:18:0;2291:4;;:21;;;;;;-1:-1:-1;;;;;2291:21:0;;;;;;;;;;;;;;;2262:18;;-1:-1:-1;2291:4:0;;;:9;;:21;;;;;:4;;:21;;;;;;;;:4;;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;2291:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;2335:4:0;;:18;;;;;;-1:-1:-1;;;;;2335:18:0;;;;;;;;;2356:6;;-1:-1:-1;2335:4:0;;;;;-1:-1:-1;2335:14:0;;:18;;;;;;;;;;;;;;;:4;;:18;;;5:2:-1;;;;30:1;27;20:12;5:2;2335:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2335:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2335:18:0;:27;;1990:380;-1:-1:-1;;;;;1990:380:0:o;2378:85::-;2418:5;;;:37;;-1:-1:-1;;;;;2418:5:0;;;;2441:4;2433:21;2418:37;;;;;2433:21;;2418:37;:5;:37;2433:21;2418:5;:37;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2418:37:0;2378:85::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://483c38df456b355354020a8bbe253e1c7bd38229928ebeecb1c09ef75e34947b

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.