Contract 0xC25490964033AB6C14B2f609DfEB85AA93f5717a

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0xd432265ce67a53a32d27805a06a419fa6fbe59302a664ddc59b098547d7bdbaaRemove126379332021-06-15 8:22:15536 days 13 hrs agoGIVE GLOBAL: Deployer IN  0xc25490964033ab6c14b2f609dfeb85aa93f5717a0 Ether0.001126617
0xab503d95bd467bc763eef8cc7aeafecac6580a8762069d679a61055d7fba5704Set Numerator126379252021-06-15 8:20:41536 days 13 hrs agoGIVE GLOBAL: Deployer IN  0xc25490964033ab6c14b2f609dfeb85aa93f5717a0 Ether0.0004869117
0xc340703f815effea70d90cb00f08d7c775cf9d4da7b88d89410b02903a08f2370x60806040125585982021-06-03 1:28:28548 days 20 hrs agoGIVE GLOBAL: Deployer IN  Create: LiquidityLock0 Ether0.0479934199
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiquidityLock

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-06-03
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.7.1;

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract LiquidityLock {
  address public owner;            // owner
  address public lptoken;          // uniswap lp token address
  uint256 public timelock;              
  uint256 public numerator = 1 ether;

  modifier restricted() {
    require( msg.sender == owner, "this function is restricted to the contract's owner");
    _;
  }
  
  constructor(address _lptoken) {
    require(_lptoken != address(0x0),"can't construct with 0x0 address");
    owner = msg.sender;
    lptoken = _lptoken;
    timelock = block.timestamp + 6 days + 23 hours;
  }  

  function remove() public restricted {
      require(block.timestamp > timelock, "removal call too soon" );
      timelock = block.timestamp + 6 days + 23 hours;
      IERC20(lptoken).transfer(msg.sender,  numerator * IERC20(lptoken).balanceOf(address(this)) / 100 ether);
  }
  
  function setNumerator(uint256 _numerator) public restricted {
      require(_numerator <= 5 ether,"numerator too large");
      numerator = _numerator;
  }
  
  function setOwner(address _owner) public restricted {
      require(_owner != address(0x0), "owner can't be 0x0 address");
      owner = _owner;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_lptoken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"lptoken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numerator","type":"uint256"}],"name":"setNumerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052670de0b6b3a764000060035534801561001c57600080fd5b506040516107143803806107148339818101604052602081101561003f57600080fd5b50516001600160a01b03811661009c576040805162461bcd60e51b815260206004820181905260248201527f63616e277420636f6e7374727563742077697468203078302061646472657373604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600180546001600160a01b03939093169290911691909117905562092c704201600255610631806100e36000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063a7f437791161005b578063a7f4377914610105578063ce5f94541461010d578063d33219b414610127578063f363393b1461012f5761007d565b806313af40351461008257806352380105146100b75780638da5cb5b146100d4575b600080fd5b6100b56004803603602081101561009857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610137565b005b6100b5600480360360208110156100cd57600080fd5b5035610270565b6100dc61035c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100b5610378565b6101156105a0565b60408051918252519081900360200190f35b6101156105a6565b6100dc6105ac565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806105c96033913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811661022957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6f776e65722063616e2774206265203078302061646472657373000000000000604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806105c96033913960400191505060405180910390fd5b674563918244f4000081111561035757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6e756d657261746f7220746f6f206c6172676500000000000000000000000000604482015290519081900360640190fd5b600355565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806105c96033913960400191505060405180910390fd5b600254421161045857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f72656d6f76616c2063616c6c20746f6f20736f6f6e0000000000000000000000604482015290519081900360640190fd5b62092c704201600255600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9092169163a9059cbb91339168056bc75e2d631000009185916370a0823191602480820192602092909190829003018186803b1580156104e757600080fd5b505afa1580156104fb573d6000803e3d6000fd5b505050506040513d602081101561051157600080fd5b5051600354028161051e57fe5b046040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561057257600080fd5b505af1158015610586573d6000803e3d6000fd5b505050506040513d602081101561059c57600080fd5b5050565b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff168156fe746869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572a2646970667358221220b594cbfd23dd3381dc55d180d888ea73da216b5bd2f5be267a04faf5d3377aa464736f6c634300070400330000000000000000000000005d0c5ed36c42de1ec62d242c43e5e6698e25424e

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

0000000000000000000000005d0c5ed36c42de1ec62d242c43e5e6698e25424e

-----Decoded View---------------
Arg [0] : _lptoken (address): 0x5D0C5ED36C42de1eC62D242c43e5e6698E25424e

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005d0c5ed36c42de1ec62d242c43e5e6698e25424e


Deployed ByteCode Sourcemap

737:1184:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1767:151;;;;;;;;;;;;;;;;-1:-1:-1;1767:151:0;;;;:::i;:::-;;1601:158;;;;;;;;;;;;;;;;-1:-1:-1;1601:158:0;;:::i;765:20::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1314:279;;;:::i;916:34::-;;;:::i;:::-;;;;;;;;;;;;;;;;874:23;;;:::i;810:22::-;;;:::i;1767:151::-;1009:5;;;;995:10;:19;986:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1836:22:::1;::::0;::::1;1828:61;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1898:5;:14:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;1767:151::o;1601:158::-;1009:5;;;;995:10;:19;986:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1692:7:::1;1678:10;:21;;1670:52;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1731:9;:22:::0;1601:158::o;765:20::-;;;;;;:::o;1314:279::-;1009:5;;;;995:10;:19;986:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1385:8:::1;;1367:15;:26;1359:61;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1440:35:::0;:15:::1;:35:::0;1429:8:::1;:46:::0;1491:7:::1;::::0;1534:40:::1;::::0;;;;;1568:4:::1;1534:40;::::0;::::1;::::0;;;1491:7:::1;::::0;;::::1;::::0;1484:24:::1;::::0;1509:10:::1;::::0;1577:9:::1;::::0;1491:7;;1534:25:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;;1491:7;1534:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;1534:40:0;1522:9:::1;::::0;:52:::1;:64:::0;::::1;;;;;1484:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;1314:279:0:o;916:34::-;;;;:::o;874:23::-;;;;:::o;810:22::-;;;;;;:::o

Swarm Source

ipfs://b594cbfd23dd3381dc55d180d888ea73da216b5bd2f5be267a04faf5d3377aa4
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.