ETH Price: $3,414.36 (+3.08%)

Contract

0x0570B8fB23d6B295a2a57aDc58e6590a8C8B5284
 
Transaction Hash
Method
Block
From
To
Remove Liq212447432024-11-22 17:24:4723 hrs ago1732296287IN
0x0570B8fB...a8C8B5284
0 ETH0.0025909714.5432671
Remove Liq211806622024-11-13 18:48:359 days ago1731523715IN
0x0570B8fB...a8C8B5284
0 ETH0.01845749103.60298494
Remove Liq211705232024-11-12 8:51:3511 days ago1731401495IN
0x0570B8fB...a8C8B5284
0 ETH0.00486127.28511599
Remove Liq210663122024-10-28 19:46:5925 days ago1730144819IN
0x0570B8fB...a8C8B5284
0 ETH0.0025206514.14859626
Remove Liq210204122024-10-22 10:05:5932 days ago1729591559IN
0x0570B8fB...a8C8B5284
0 ETH0.001483768.32845974
Remove Liq208504992024-09-28 17:02:2355 days ago1727542943IN
0x0570B8fB...a8C8B5284
0 ETH0.00144888.13222634
Remove Liq207970902024-09-21 6:13:2363 days ago1726899203IN
0x0570B8fB...a8C8B5284
0 ETH0.0018652510.46980919
Remove Liq206272042024-08-28 12:51:4787 days ago1724849507IN
0x0570B8fB...a8C8B5284
0 ETH0.000767164.30616131
Remove Liq205859972024-08-22 18:40:3592 days ago1724352035IN
0x0570B8fB...a8C8B5284
0 ETH0.000296871.5475686
Remove Liq205633622024-08-19 14:46:4796 days ago1724078807IN
0x0570B8fB...a8C8B5284
0 ETH0.000795384.46453258
Remove Liq204047032024-07-28 11:19:23118 days ago1722165563IN
0x0570B8fB...a8C8B5284
0 ETH0.000362892.0369319
Remove Liq172959312023-05-19 20:34:59553 days ago1684528499IN
0x0570B8fB...a8C8B5284
0 ETH0.0091653951.44590258
Remove Liq172601622023-05-14 19:27:35558 days ago1684092455IN
0x0570B8fB...a8C8B5284
0 ETH0.0069414538.9627851
Remove Liq171921072023-05-05 4:38:11568 days ago1683261491IN
0x0570B8fB...a8C8B5284
0 ETH0.0153178985.98022234
Remove Liq171920692023-05-05 4:30:35568 days ago1683261035IN
0x0570B8fB...a8C8B5284
0 ETH0.0197551100
Remove Liq171293422023-04-26 8:53:47577 days ago1682499227IN
0x0570B8fB...a8C8B5284
0 ETH0.0063948435.89464811
Remove Liq170685382023-04-17 19:23:59585 days ago1681759439IN
0x0570B8fB...a8C8B5284
0 ETH0.0090030450.53463209
Remove Liq169695172023-04-03 15:55:59600 days ago1680537359IN
0x0570B8fB...a8C8B5284
0 ETH0.0063996535.92162998
Remove Liq168257282023-03-14 10:55:23620 days ago1678791323IN
0x0570B8fB...a8C8B5284
0 ETH0.0031220517.52425929
Remove Liq167777092023-03-07 16:48:23626 days ago1678207703IN
0x0570B8fB...a8C8B5284
0 ETH0.0064926936.44387794
Remove Liq167264382023-02-28 11:43:59634 days ago1677584639IN
0x0570B8fB...a8C8B5284
0 ETH0.0030750617.26050523
Remove Liq166262992023-02-14 10:09:47648 days ago1676369387IN
0x0570B8fB...a8C8B5284
0 ETH0.0026391214.81356637
Remove Liq165758712023-02-07 9:00:23655 days ago1675760423IN
0x0570B8fB...a8C8B5284
0 ETH0.004149523.29142248
Remove Liq165253232023-01-31 7:29:47662 days ago1675150187IN
0x0570B8fB...a8C8B5284
0 ETH0.002659914.93021346
Remove Liq164722682023-01-23 21:43:35669 days ago1674510215IN
0x0570B8fB...a8C8B5284
0 ETH0.0031125217.47078148
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
107126452020-08-22 21:59:561553 days ago1598133596  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiqController3D

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

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

contract UniswapV2Router02 {
    function addLiquidityETH (
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint, uint, uint);

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);

    address public WETH;
}

interface IUniswapV2ERC20 {
    function balanceOf(address owner) external view returns (uint);
    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
}

contract LiqController3D {
    uint constant rate = 1;
    uint lastClaim;
    address routerAddr = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    address tokenAddr;
    address owner;

    UniswapV2Router02 router;
    IUniswapV2ERC20 liq;

    constructor(address _tokenAddr, address _poolAddr) public {
        owner =  tx.origin;
        lastClaim = now;
        tokenAddr = _tokenAddr;

        router = UniswapV2Router02(routerAddr);
        liq = IUniswapV2ERC20(_poolAddr);
    }

    function removeLiq(uint _withdrawType) external {
        require(msg.sender==owner);
        require(now - lastClaim > 1 days);
        require(_withdrawType==1 || _withdrawType==2, 'Invalid Withdraw Type');
        
        uint bal = liq.balanceOf(address(this));
        uint liqAmount;

        if (bal < 100){ liqAmount = bal; }  // Collect remaining dust
        else { liqAmount = (bal * rate) / 100; }

        if (_withdrawType == 1) {
            router.removeLiquidityETH(tokenAddr, liqAmount, 1, 1, owner, now);
        }

        else if (_withdrawType == 2) { 
            liq.transfer(owner, liqAmount);   
        }

        lastClaim = now;
    }

    function approveLiqTokens() external {
        liq.approve(routerAddr, uint(-1));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"},{"internalType":"address","name":"_poolAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[],"name":"approveLiqTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_withdrawType","type":"uint256"}],"name":"removeLiq","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052737a250d5630b4cf539739df2c5dacb4c659f2488d600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006557600080fd5b5060405161084e38038061084e8339818101604052604081101561008857600080fd5b81019080805190602001909291908051906020019092919050505032600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504260008190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505061066d806101e16000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806316db342f1461003b578063a00cdf1914610069575b600080fd5b6100676004803603602081101561005157600080fd5b8101908080359060200190929190505050610073565b005b61007161050f565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100cd57600080fd5b620151806000544203116100e057600080fd5b60018114806100ef5750600281145b610161576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f496e76616c69642057697468647261772054797065000000000000000000000081525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561020257600080fd5b505afa158015610216573d6000803e3d6000fd5b505050506040513d602081101561022c57600080fd5b810190808051906020019092919050505090506000606482101561025257819050610263565b6064600183028161025f57fe5b0490505b60018314156103f157600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302751cec600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600180600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200196505050505050506040805180830381600087803b1580156103a557600080fd5b505af11580156103b9573d6000803e3d6000fd5b505050506040513d60408110156103cf57600080fd5b8101908080519060200190929190805190602001909291905050505050610503565b600283141561050257600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104c557600080fd5b505af11580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b8101908080519060200190929190505050505b5b42600081905550505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105fa57600080fd5b505af115801561060e573d6000803e3d6000fd5b505050506040513d602081101561062457600080fd5b81019080805190602001909291905050505056fea265627a7a72315820b57ae9bcfec2c50357ec43cbf66427b9abb25d97369a97a74292fc283a99213564736f6c634300051100320000000000000000000000003d3d35bb9bec23b06ca00fe472b50e7a4c692c30000000000000000000000000da3706c9a099077e6bc389d1baf918565212a54d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806316db342f1461003b578063a00cdf1914610069575b600080fd5b6100676004803603602081101561005157600080fd5b8101908080359060200190929190505050610073565b005b61007161050f565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100cd57600080fd5b620151806000544203116100e057600080fd5b60018114806100ef5750600281145b610161576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f496e76616c69642057697468647261772054797065000000000000000000000081525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561020257600080fd5b505afa158015610216573d6000803e3d6000fd5b505050506040513d602081101561022c57600080fd5b810190808051906020019092919050505090506000606482101561025257819050610263565b6064600183028161025f57fe5b0490505b60018314156103f157600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302751cec600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600180600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200196505050505050506040805180830381600087803b1580156103a557600080fd5b505af11580156103b9573d6000803e3d6000fd5b505050506040513d60408110156103cf57600080fd5b8101908080519060200190929190805190602001909291905050505050610503565b600283141561050257600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156104c557600080fd5b505af11580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b8101908080519060200190929190505050505b5b42600081905550505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105fa57600080fd5b505af115801561060e573d6000803e3d6000fd5b505050506040513d602081101561062457600080fd5b81019080805190602001909291905050505056fea265627a7a72315820b57ae9bcfec2c50357ec43cbf66427b9abb25d97369a97a74292fc283a99213564736f6c63430005110032

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

0000000000000000000000003d3d35bb9bec23b06ca00fe472b50e7a4c692c30000000000000000000000000da3706c9a099077e6bc389d1baf918565212a54d

-----Decoded View---------------
Arg [0] : _tokenAddr (address): 0x3D3D35bb9bEC23b06Ca00fe472b50E7A4c692C30
Arg [1] : _poolAddr (address): 0xDA3706c9A099077e6BC389D1baf918565212A54D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003d3d35bb9bec23b06ca00fe472b50e7a4c692c30
Arg [1] : 000000000000000000000000da3706c9a099077e6bc389d1baf918565212a54d


Deployed Bytecode Sourcemap

805:1297:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;805:1297:0;;;;;;;;;;;;;;;;;;;;;;;;1318:684;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1318:684:0;;;;;;;;;;;;;;;;;:::i;:::-;;2010:89;;;:::i;:::-;;1318:684;1397:5;;;;;;;;;;;1385:17;;:10;:17;;;1377:26;;;;;;1440:6;1428:9;;1422:3;:15;:24;1414:33;;;;;;1481:1;1466:13;:16;:36;;;;1501:1;1486:13;:16;1466:36;1458:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1549:8;1560:3;;;;;;;;;;;:13;;;1582:4;1560:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1560:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1560:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1560:28:0;;;;;;;;;;;;;;;;1549:39;;1599:14;1636:3;1630;:9;1626:111;;;1654:3;1642:15;;1626:111;;;1731:3;858:1;1717:3;:10;1716:18;;;;;;1704:30;;1626:111;1770:1;1753:13;:18;1749:218;;;1788:6;;;;;;;;;;;:25;;;1814:9;;;;;;;;;;;1825;1836:1;1839;1842:5;;;;;;;;;;;1849:3;1788:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1788:65:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1788:65:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1788:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1749:218;;;1903:1;1886:13;:18;1882:85;;;1922:3;;;;;;;;;;;:12;;;1935:5;;;;;;;;;;;1942:9;1922:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1922:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1922:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1922:30:0;;;;;;;;;;;;;;;;;1882:85;1749:218;1991:3;1979:9;:15;;;;1318:684;;;:::o;2010:89::-;2058:3;;;;;;;;;;;:11;;;2070:10;;;;;;;;;;;2087:2;2058:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2058:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2058:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2058:33:0;;;;;;;;;;;;;;;;;2010:89::o

Swarm Source

bzzr://b57ae9bcfec2c50357ec43cbf66427b9abb25d97369a97a74292fc283a992135

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.