ETH Price: $3,554.20 (+6.83%)

Contract

0x7e6fe381B2560F91D1564069a209DbACC0F3Ea50
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Process Migratio...117078162021-01-22 21:44:521404 days ago1611351892IN
0x7e6fe381...CC0F3Ea50
0 ETH0.002349152
Distribute Tradi...117077632021-01-22 21:33:541404 days ago1611351234IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026216352
Distribute Tradi...117077632021-01-22 21:33:541404 days ago1611351234IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026216352
Distribute Tradi...117077632021-01-22 21:33:541404 days ago1611351234IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026216352
Distribute Tradi...117077632021-01-22 21:33:541404 days ago1611351234IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026216352
Distribute Tradi...117077632021-01-22 21:33:541404 days ago1611351234IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026216352
Distribute Tradi...116748622021-01-17 20:25:181409 days ago1610915118IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748622021-01-17 20:25:181409 days ago1610915118IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748622021-01-17 20:25:181409 days ago1610915118IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748612021-01-17 20:25:091409 days ago1610915109IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748612021-01-17 20:25:091409 days ago1610915109IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748612021-01-17 20:25:091409 days ago1610915109IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116748612021-01-17 20:25:091409 days ago1610915109IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116744872021-01-17 19:00:041409 days ago1610910004IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0020166440
Distribute Tradi...116744862021-01-17 18:59:561409 days ago1610909996IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026166440
Distribute Tradi...116177142021-01-09 1:43:071418 days ago1610156587IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0026720453
Distribute Tradi...116176882021-01-09 1:38:001418 days ago1610156280IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0030809261.11
Distribute Tradi...116176712021-01-09 1:36:091418 days ago1610156169IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0030809261.11
Distribute Tradi...116176712021-01-09 1:36:091418 days ago1610156169IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0030809261.11
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
Distribute Tradi...116009992021-01-06 12:25:431421 days ago1609935943IN
0x7e6fe381...CC0F3Ea50
0 ETH0.0025712151
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AutoLiquidityVault

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

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

/**

 * GearAutomatic's Liquidity Vault
 
 * Smart contract to decentralize the uniswap liquidity for GearAutomatic, providing proof of liquidity indefinitely!

 * Official Website: 
   https://www.GearProtocol.com
 
 */




pragma solidity ^0.6.0;



interface ERC20 {
  function totalSupply() external view returns (uint256);
  function balanceOf(address who) external view returns (uint256);
  function allowance(address owner, address spender) external view returns (uint256);
  function transfer(address to, uint256 value) external returns (bool);
  function approve(address spender, uint256 value) external returns (bool);
  function approveAndCall(address spender, uint tokens, bytes calldata data) external returns (bool success);
  function transferFrom(address from, address to, uint256 value) external returns (bool);

  event Transfer(address indexed from, address indexed to, uint256 value);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}


library SafeMath 
{
    function mul(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        if (a == 0) 
        {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }
    
    function div(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        uint256 c = a / b;
        return c;
    }
    
    function sub(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        assert(b <= a);
        return a - b;
    }
    
    function add(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
    
    function ceil(uint256 a, uint256 m) internal pure returns (uint256) 
    {
        uint256 c = add(a,m);
        uint256 d = sub(c,1);
        return mul(div(d,m),m);
    }
}



contract AutoLiquidityVault {
    
    using SafeMath for uint256;
    
    ERC20 public liquidityToken = ERC20(0xd508b41cac055fdcEdf0631a85a0aDE2808bb5b9);
    
    address owner = msg.sender;
    uint256 public lastTradingFeeDistribution = now;
    
    uint256 public migrationLock;
    address public migrationRecipient;
    
    
    // Has a daily hardcap of 1% trading fees distribution.

    function distributeTradingFees() external {
        uint256 liquidityBalance = liquidityToken.balanceOf(address(this));
        require(msg.sender == owner);
        require(lastTradingFeeDistribution < now);
        uint256 OnePercent = liquidityBalance.mul(1).div(100);
        liquidityToken.transfer(owner, OnePercent);
        lastTradingFeeDistribution = lastTradingFeeDistribution + 24 hours;
    } 
    

    // Function allows liquidity to be migrated, after 1 month lockup -preventing abuse.

    function startLiquidityMigration(address recipient) external {
        require(msg.sender == owner);
        migrationLock = now + 720 hours;
        migrationRecipient = recipient;
    }
    
    
    // Migrates liquidity to new location, assuming the 1 month lockup has passed -preventing abuse.

    function processMigration() external {
        require(msg.sender == owner);
        require(migrationRecipient != address(0));
        require(now > migrationLock);
        
        uint256 liquidityBalance = liquidityToken.balanceOf(address(this));
        liquidityToken.transfer(migrationRecipient, liquidityBalance);
    }  
    
    
    
    // Function enables the withdrawal of other ERC20 token mistakenly sent to this contract.

    function swapContract(address Contract) external {
        require(msg.sender == owner);
        liquidityToken = ERC20(Contract);
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"distributeTradingFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTradingFeeDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"processMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"startLiquidityMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Contract","type":"address"}],"name":"swapContract","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405273d508b41cac055fdcedf0631a85a0ade2808bb5b96000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426002553480156100a957600080fd5b506108c8806100b96000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063890d86371161005b578063890d8637146101575780638c13a8451461019b578063c7f614ea146101b9578063fbd14f54146101c357610088565b806313484ff21461008d57806343cd8f7e146100ab5780634512fbf2146100df57806353634c2a14610113575b600080fd5b6100956101cd565b6040518082815260200191505060405180910390f35b6100b36101d3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100e76101f7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101556004803603602081101561012957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061021d565b005b6101996004803603602081101561016d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102ba565b005b6101a3610364565b6040518082815260200191505060405180910390f35b6101c161036a565b005b6101cb6105e7565b005b60035481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027757600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461031457600080fd5b62278d00420160038190555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561042057600080fd5b600354421161042e57600080fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d60208110156104e257600080fd5b8101908080519060200190929190505050905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105a857600080fd5b505af11580156105bc573d6000803e3d6000fd5b505050506040513d60208110156105d257600080fd5b81019080805190602001909291905050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561067157600080fd5b505afa158015610685573d6000803e3d6000fd5b505050506040513d602081101561069b57600080fd5b81019080805190602001909291905050509050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461070857600080fd5b426002541061071657600080fd5b600061073f606461073160018561084290919063ffffffff16565b61087990919063ffffffff16565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050506040513d602081101561081e57600080fd5b81019080805190602001909291905050505062015180600254016002819055505050565b6000808314156108555760009050610873565b600082840290508284828161086657fe5b041461086e57fe5b809150505b92915050565b60008082848161088557fe5b049050809150509291505056fea2646970667358221220135f2d0b99847358461349bf9fd61db55070a523ad575d745d9c0996d50b54da64736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063890d86371161005b578063890d8637146101575780638c13a8451461019b578063c7f614ea146101b9578063fbd14f54146101c357610088565b806313484ff21461008d57806343cd8f7e146100ab5780634512fbf2146100df57806353634c2a14610113575b600080fd5b6100956101cd565b6040518082815260200191505060405180910390f35b6100b36101d3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100e76101f7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101556004803603602081101561012957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061021d565b005b6101996004803603602081101561016d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102ba565b005b6101a3610364565b6040518082815260200191505060405180910390f35b6101c161036a565b005b6101cb6105e7565b005b60035481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027757600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461031457600080fd5b62278d00420160038190555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561042057600080fd5b600354421161042e57600080fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d60208110156104e257600080fd5b8101908080519060200190929190505050905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105a857600080fd5b505af11580156105bc573d6000803e3d6000fd5b505050506040513d60208110156105d257600080fd5b81019080805190602001909291905050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561067157600080fd5b505afa158015610685573d6000803e3d6000fd5b505050506040513d602081101561069b57600080fd5b81019080805190602001909291905050509050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461070857600080fd5b426002541061071657600080fd5b600061073f606461073160018561084290919063ffffffff16565b61087990919063ffffffff16565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050506040513d602081101561081e57600080fd5b81019080805190602001909291905050505062015180600254016002819055505050565b6000808314156108555760009050610873565b600082840290508284828161086657fe5b041461086e57fe5b809150505b92915050565b60008082848161088557fe5b049050809150509291505056fea2646970667358221220135f2d0b99847358461349bf9fd61db55070a523ad575d745d9c0996d50b54da64736f6c634300060c0033

Deployed Bytecode Sourcemap

1918:1852:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2183:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1998:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2218:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3622:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2852:191;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2123:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3165:334;;;:::i;:::-;;2333:412;;;:::i;:::-;;2183:28;;;;:::o;1998:79::-;;;;;;;;;;;;:::o;2218:33::-;;;;;;;;;;;;;:::o;3622:139::-;3704:5;;;;;;;;;;;3690:19;;:10;:19;;;3682:28;;;;;;3744:8;3721:14;;:32;;;;;;;;;;;;;;;;;;3622:139;:::o;2852:191::-;2946:5;;;;;;;;;;;2932:19;;:10;:19;;;2924:28;;;;;;2985:9;2979:3;:15;2963:13;:31;;;;3026:9;3005:18;;:30;;;;;;;;;;;;;;;;;;2852:191;:::o;2123:47::-;;;;:::o;3165:334::-;3235:5;;;;;;;;;;;3221:19;;:10;:19;;;3213:28;;;;;;3290:1;3260:32;;:18;;;;;;;;;;;:32;;;;3252:41;;;;;;3318:13;;3312:3;:19;3304:28;;;;;;3353:24;3380:14;;;;;;;;;;;:24;;;3413:4;3380:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3353:66;;3430:14;;;;;;;;;;:23;;;3454:18;;;;;;;;;;;3474:16;3430:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3165:334;:::o;2333:412::-;2386:24;2413:14;;;;;;;;;;;:24;;;2446:4;2413:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2386:66;;2485:5;;;;;;;;;;;2471:19;;:10;:19;;;2463:28;;;;;;2539:3;2510:26;;:32;2502:41;;;;;;2554:18;2575:32;2603:3;2575:23;2596:1;2575:16;:20;;:23;;;;:::i;:::-;:27;;:32;;;;:::i;:::-;2554:53;;2618:14;;;;;;;;;;:23;;;2642:5;;;;;;;;;;;2649:10;2618:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2729:8;2700:26;;:37;2671:26;:66;;;;2333:412;;:::o;1048:224::-;1106:7;1141:1;1136;:6;1132:57;;;1176:1;1169:8;;;;1132:57;1199:9;1215:1;1211;:5;1199:17;;1243:1;1238;1234;:5;;;;;;:10;1227:18;;;;1263:1;1256:8;;;1048:224;;;;;:::o;1284:128::-;1342:7;1368:9;1384:1;1380;:5;;;;;;1368:17;;1403:1;1396:8;;;1284:128;;;;:::o

Swarm Source

ipfs://135f2d0b99847358461349bf9fd61db55070a523ad575d745d9c0996d50b54da

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  ]

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.