Contract 0x06dec17b57c15446578efdce3380de3433f44da4

 
Ad
Ad
Txn Hash
Block
From
To
Value
0xcc298c401ad7b8b2197bf8410209e8f2d4c669fa4c3af229ed841fbd25ceae95112853562020-11-19 1:14:42100 days 5 hrs agoLock3r: Deployer IN  Contract Creation0 Ether0.00952216828641.000001235
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Lock3rV1Library

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-11-20
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;


library Lock3rV1Library {
    function getReserve(address pair, address reserve) external view returns (uint) {
        (uint _r0, uint _r1,) = IUniswapV2Pair(pair).getReserves();
        if (IUniswapV2Pair(pair).token0() == reserve) {
            return _r0;
        } else if (IUniswapV2Pair(pair).token1() == reserve) {
            return _r1;
        } else {
            return 0;
        }
    }

}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Fund(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function fund(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"reserve","type":"address"}],"name":"getReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

61033d610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c8063cbc3ab531461003a575b600080fd5b61004d610048366004610245565b610063565b60405161005a91906102d1565b60405180910390f35b6000806000846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156100a157600080fd5b505afa1580156100b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d9919061027d565b506001600160701b031691506001600160701b03169150836001600160a01b0316856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561013357600080fd5b505afa158015610147573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016b9190610222565b6001600160a01b031614156101825750905061021c565b836001600160a01b0316856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156101c557600080fd5b505afa1580156101d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fd9190610222565b6001600160a01b0316141561021557915061021c9050565b6000925050505b92915050565b600060208284031215610233578081fd5b815161023e816102da565b9392505050565b60008060408385031215610257578081fd5b8235610262816102da565b91506020830135610272816102da565b809150509250929050565b600080600060608486031215610291578081fd5b835161029c816102f2565b60208501519093506102ad816102f2565b604085015190925063ffffffff811681146102c6578182fd5b809150509250925092565b90815260200190565b6001600160a01b03811681146102ef57600080fd5b50565b6001600160701b03811681146102ef57600080fdfea26469706673582212205a70d084f956ed81e95861d627763f8c891124cb9f9b5563615b44f2b17f5da864736f6c634300060c0033

Deployed ByteCode Sourcemap

98:416:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;129:380;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;203:4;221:8;231;259:4;-1:-1:-1;;;;;244:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;220:58;-1:-1:-1;;;;;220:58:0;;;-1:-1:-1;;;;;220:58:0;;;326:7;-1:-1:-1;;;;;293:40:0;308:4;-1:-1:-1;;;;;293:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;293:40:0;;289:213;;;-1:-1:-1;357:3:0;-1:-1:-1;350:10:0;;289:213;415:7;-1:-1:-1;;;;;382:40:0;397:4;-1:-1:-1;;;;;382:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;382:40:0;;378:124;;;446:3;-1:-1:-1;439:10:0;;-1:-1:-1;439:10:0;378:124;489:1;482:8;;;;129:380;;;;;:::o;563:263:-1:-;;678:2;666:9;657:7;653:23;649:32;646:2;;;-1:-1;;684:12;646:2;226:6;220:13;238:33;265:5;238:33;:::i;:::-;736:74;640:186;-1:-1;;;640:186::o;833:366::-;;;954:2;942:9;933:7;929:23;925:32;922:2;;;-1:-1;;960:12;922:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;1012:63;-1:-1;1112:2;1151:22;;72:20;97:33;72:20;97:33;:::i;:::-;1120:63;;;;916:283;;;;;:::o;1206:533::-;;;;1354:2;1342:9;1333:7;1329:23;1325:32;1322:2;;;-1:-1;;1360:12;1322:2;367:6;361:13;379:33;406:5;379:33;:::i;:::-;1523:2;1573:22;;361:13;1412:74;;-1:-1;379:33;361:13;379:33;:::i;:::-;1642:2;1691:22;;501:13;1531:74;;-1:-1;2612:10;2601:22;;2941:34;;2931:2;;-1:-1;;2979:12;2931:2;1650:73;;;;1316:423;;;;;:::o;1874:238::-;1825:37;;;2009:2;1994:18;;1980:132::o;2635:117::-;-1:-1;;;;;2395:54;;2694:35;;2684:2;;2743:1;;2733:12;2684:2;2678:74;:::o;2759:117::-;-1:-1;;;;;2846:5;2279:42;2821:5;2818:35;2808:2;;2867:1;;2857:12

Swarm Source

ipfs://5a70d084f956ed81e95861d627763f8c891124cb9f9b5563615b44f2b17f5da8
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.