APE Price: $0.71 (+4.40%)

Contract

0x58ac416c2A8A217f3aF4acb1F5490efd2bE4652a

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Pair96108652025-02-10 14:30:1710 days ago1739197817IN
0x58ac416c...d2bE4652a
0 APE0.0515850325.42069
Create Wrapper96108622025-02-10 14:30:1210 days ago1739197812IN
0x58ac416c...d2bE4652a
0 APE0.0254462325.42069
Set Router Sette...96108572025-02-10 14:30:0710 days ago1739197807IN
0x58ac416c...d2bE4652a
0 APE0.0006156825.42069
Set Router96108532025-02-10 14:30:0210 days ago1739197802IN
0x58ac416c...d2bE4652a
0 APE0.0011780725.42069

Latest 6 internal transactions

Parent Transaction Hash Block From To
97187112025-02-12 17:50:038 days ago1739382603
0x58ac416c...d2bE4652a
 Contract Creation0 APE
97187112025-02-12 17:50:038 days ago1739382603
0x58ac416c...d2bE4652a
 Contract Creation0 APE
97185992025-02-12 17:47:148 days ago1739382434
0x58ac416c...d2bE4652a
 Contract Creation0 APE
97185992025-02-12 17:47:148 days ago1739382434
0x58ac416c...d2bE4652a
 Contract Creation0 APE
96108652025-02-10 14:30:1710 days ago1739197817
0x58ac416c...d2bE4652a
 Contract Creation0 APE
96108622025-02-10 14:30:1210 days ago1739197812
0x58ac416c...d2bE4652a
 Contract Creation0 APE

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapV2Factory

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 222 runs

Other Settings:
default evmVersion
File 1 of 14 : UniswapV2Factory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IUniswapV2Factory, IUniswapV2FactoryExt } from "./interfaces/IUniswapV2Factory.sol";
import { IUniswapV2Pair } from "./interfaces/IUniswapV2Pair.sol";
import { IWERC721 } from "./interfaces/IWERC721.sol";
import { UniswapV2Pair } from "./UniswapV2Pair.sol";
import { WERC721 } from "./WERC721.sol";
import { DELEGATE_FACTORY, DELEGATE_VELODROME } from "./Delegation.sol";

contract UniswapV2Factory is IUniswapV2Factory {
    address public feeTo;
    address public feeToSetter;

    mapping(address => mapping(address => address)) public getPair;
    address[] public allPairs;

    mapping(address => address) public getCollection;
    mapping(address => address) public getWrapper;
    address[] public allWrappers;

    mapping(address => mapping(address => bool)) public delegates;

    mapping(address => bool) public router;
    address public routerSetter;

    constructor(address _feeToSetter, address _routerSetter) {
        feeToSetter = _feeToSetter;
        routerSetter = _routerSetter;
    }

    function allPairsLength() external view returns (uint) {
        return allPairs.length;
    }

    function allWrappersLength() external view returns (uint) {
        return allWrappers.length;
    }

    function createPair(address tokenA, address tokenB) external returns (address pair) {
        require(tokenA != tokenB, "SweepnFlip: IDENTICAL_ADDRESSES");
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), "SweepnFlip: ZERO_ADDRESS");
        require(getPair[token0][token1] == address(0), "SweepnFlip: PAIR_EXISTS"); // single check is sufficient
        bool discrete0 = getCollection[token0] != address(0);
        bool discrete1 = getCollection[token1] != address(0);
        /*
        require(!(discrete0 && discrete1), "SweepnFlip: DISCRETE_CLASH");
        */
        if (discrete0 || discrete1) {
            bytes32 salt = keccak256(abi.encodePacked(token0, token1));
            pair = address(new UniswapV2Pair{salt: salt}());
            IUniswapV2Pair(pair).initialize(token0, token1, discrete0, discrete1);
        } else {
            require(tokenA.code.length != 0 && tokenB.code.length != 0, "SweepnFlip: DELEGATION_RESTRICTED");
            if (DELEGATE_VELODROME) {
                pair = IUniswapV2FactoryExt(DELEGATE_FACTORY).getPair(tokenA, tokenB, false);
                if (pair == address(0)) {
                    pair = IUniswapV2FactoryExt(DELEGATE_FACTORY).createPair(tokenA, tokenB, false);
                }
            } else {
                pair = IUniswapV2Factory(DELEGATE_FACTORY).getPair(tokenA, tokenB);
                if (pair == address(0)) {
                    pair = IUniswapV2Factory(DELEGATE_FACTORY).createPair(tokenA, tokenB);
                }
            }
            delegates[token0][token1] = true;
        }
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair; // populate mapping in the reverse direction
        allPairs.push(pair);
        emit PairCreated(token0, token1, pair, allPairs.length);
    }

    function createWrapper(address collection) external returns (address wrapper) {
        require(collection != address(0), "SweepnFlip: ZERO_ADDRESS");
        require(getWrapper[collection] == address(0), "SweepnFlip: WRAPPER_EXISTS");
        bytes32 salt = keccak256(abi.encodePacked(collection));
        wrapper = address(new WERC721{salt: salt}());
        IWERC721(wrapper).initialize(collection);
        getCollection[wrapper] = collection;
        getWrapper[collection] = wrapper;
        allWrappers.push(wrapper);
        emit WrapperCreated(collection, wrapper, allWrappers.length);
    }

    function setFeeTo(address _feeTo) external {
        require(msg.sender == feeToSetter, "SweepnFlip: FORBIDDEN");
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) external {
        require(msg.sender == feeToSetter, "SweepnFlip: FORBIDDEN");
        feeToSetter = _feeToSetter;
    }

    function setRouter(address _router, bool _enabled) external {
        require(msg.sender == routerSetter, "SweepnFlip: FORBIDDEN");
        router[_router] = _enabled;
    }

    function setRouterSetter(address _routerSetter) external {
        require(msg.sender == routerSetter, "SweepnFlip: FORBIDDEN");
        routerSetter = _routerSetter;
    }

    function _initCodeHash() external pure returns (bytes32) {
        return keccak256(type(UniswapV2Pair).creationCode);
    }
}

File 2 of 14 : Delegation.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

//address constant DELEGATE_FACTORY = 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac; // SushiSwap (Ethereum mainnet)
//address constant DELEGATE_FACTORY = 0x71524B4f93c58fcbF659783284E38825f0622859; // SushiSwap (Base mainnet)
//address constant DELEGATE_FACTORY = 0xc35DADB65012eC5796536bD9864eD8773aBc74C4; // SushiSwap (most but Ethereum/Base mainnet)
//address constant DELEGATE_FACTORY = 0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E; // PancakeSwap (Linea mainnet)
//address constant DELEGATE_FACTORY = 0xd03D8D566183F0086d8D09A84E1e30b58Dd5619d; // PancakeSwap (zkSync mainnet)
//address constant DELEGATE_FACTORY = 0x9CC1599D4378Ea41d444642D18AA9Be44f709ffD; // Blasterswap (Blast mainnet)
//address constant DELEGATE_FACTORY = 0x25CbdDb98b35ab1FF77413456B31EC81A6B6B746; // Velodrome (Optimism mainnet)
//address constant DELEGATE_FACTORY = 0xfb926356BAf861c93C3557D7327Dbe8734A71891; // ModeSwap (Mode mainnet)
//address constant DELEGATE_FACTORY = 0x68A384D826D3678f78BB9FB1533c7E9577dACc0E; // StellaSwap (Moombeam mainnet)
//address constant DELEGATE_FACTORY = 0xb08Bfed214ba87d5d5D07B7DA573010016C44488; // Kodiak (Berachain testnet)
//address constant DELEGATE_FACTORY = 0xE578184bC88EB48485Bba23a37B5509578d2aE38; // IceSwap (StratoVM testnet)
//address constant DELEGATE_FACTORY = 0x9945f4a1eC4C4FC74a70276CCf60b8b1B2DE1F4A; // - (Bitfinity testnet)
address constant DELEGATE_FACTORY = 0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4; // Camelot (Apechain)

//bytes constant DELEGATE_INIT_CODE_HASH = hex"e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303"; // SushiSwap (all)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d"; // PancakeSwap (Linea mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"0100045707a42494392b3558029b9869f865ff9df8f375dc1bf20b0555093f43"; // PancakeSwap (zkSync mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"9895581041f0c2ea658b6c2e615187fa4eaa05e55ab576ce8164a1090d8e6575"; // Blasterswap (Blast mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"c1ac28b1c4ebe53c0cff67bab5878c4eb68759bb1e9f73977cd266b247d149f0"; // Velodrome (Optimism mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"337ec3ca78ed47c450332dd308033d9900832b31b7539f3befcbc556bff3a4a8"; // ModeSwap (Mode mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"48a6ca3d52d0d0a6c53a83cc3c8688dd46ea4cb786b169ee959b95ad30f61643"; // StellaSwap (Moombeam mainnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"0489c85ed300c1a9636d09ada5e1bea0e331f778464d45f24cb365c92cafbcb5"; // Kodiak (Berachain testnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"0437378fc27e93c612c5c385779bf540ca2064b54705e48c313aa216da380100"; // IceSwap (StratoVM testnet)
//bytes constant DELEGATE_INIT_CODE_HASH = hex"5ae65da6662188c2e508cb6bcb59f05483a527fc27e586ef49c48f3ef9443469"; // - (Bitfinity testnet)
bytes constant DELEGATE_INIT_CODE_HASH = ""; // Camelot (Apechain)

uint256 constant DELEGATE_NET_FEE = 9970; // SushiSwap
//uint256 constant DELEGATE_NET_FEE = 9975; // PancakeSwap
//uint256 constant DELEGATE_NET_FEE = 9970; // Blasterswap
//uint256 constant DELEGATE_NET_FEE = 9998; // Velodrome
//uint256 constant DELEGATE_NET_FEE = 9997; // ModeSwap
//uint256 constant DELEGATE_NET_FEE = 9975; // StellaSwap
//uint256 constant DELEGATE_NET_FEE = 9970; // Kodiak
//uint256 constant DELEGATE_NET_FEE = 9970; // IceSwap

bool constant DELEGATE_CREATE2_ZKSYNC = false;
//bool constant DELEGATE_CREATE2_ZKSYNC = true;

bool constant DELEGATE_VELODROME = false;
//bool constant DELEGATE_VELODROME = true;

File 3 of 14 : IERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

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

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view 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);
}

File 4 of 14 : IERC721.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

interface IERC721 {
    event Approval(address indexed owner, address indexed spender, uint indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed spender, bool approved);
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
    function balanceOf(address owner) external view returns (uint256);
    function ownerOf(uint256 tokenId) external view returns (address);
    function getApproved(uint256 tokenId) external view returns (address);
    function isApprovedForAll(address owner, address spender) external view returns (bool);

    function approve(address spender, uint256 tokenId) external;
    function setApprovalForAll(address spender, bool approved) external;
    function transferFrom(address from, address to, uint256 tokenId) external;
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

File 5 of 14 : IUniswapV2Callee.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

interface IUniswapV2Callee {
    function uniswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

File 6 of 14 : IUniswapV2ERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IERC20 } from "./IERC20.sol";

interface IUniswapV2ERC20 is IERC20 {
    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;
}

File 7 of 14 : IUniswapV2Factory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);
    event WrapperCreated(address indexed collection, address wrapper, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function getCollection(address wrapper) external view returns (address collection);
    function getWrapper(address collection) external view returns (address wrapper);
    function allWrappers(uint) external view returns (address wrapper);
    function allWrappersLength() external view returns (uint);

    function delegates(address token0, address token1) external view returns (bool);

    function router(address router) external view returns (bool);
    function routerSetter() external view returns (address);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function createWrapper(address collection) external returns (address wrapper);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;

    function setRouter(address, bool) external;
    function setRouterSetter(address) external;
}

interface IUniswapV2FactoryExt is IUniswapV2Factory {
    function pairCodeHash() external view returns (bytes32 _pairCodeHash); // sushiswap extension
    function INIT_CODE_PAIR_HASH() external view returns (bytes32 _INIT_CODE_PAIR_HASH); // pancakeswap extension
    function getPair(address tokenA, address tokenB, bool stable) external view returns (address pair); // velodrome extension
    function createPair(address tokenA, address tokenB, bool stable) external returns (address pair); // velodrome extension
}

File 8 of 14 : IUniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IUniswapV2ERC20 } from "./IUniswapV2ERC20.sol";

interface IUniswapV2Pair is IUniswapV2ERC20 {
    event Mint(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 mint(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, bool, bool) external;
}

File 9 of 14 : IWERC721.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IERC20 } from "./IERC20.sol";

interface IWERC721 is IERC20 {
    event Mint(address indexed from, address indexed to, uint[] tokenIds);
    event Burn(address indexed from, address indexed to, uint[] tokenIds);

    function factory() external view returns (address);
    function collection() external view returns (address);

    function mint(address to, uint[] memory tokenIds) external;
    function burn(address to, uint[] memory tokenIds) external;

    function initialize(address) external;
}

File 10 of 14 : Math.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        unchecked {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
        }
    }
}

File 11 of 14 : UQ112x112.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))

// range: [0, 2**112 - 1]
// resolution: 1 / 2**112

library UQ112x112 {
    uint224 constant Q112 = 2**112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        unchecked {
        z = uint224(y) * Q112; // never overflows
        }
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        unchecked {
        z = x / uint224(y);
        }
    }
}

File 12 of 14 : UniswapV2ERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IUniswapV2ERC20 } from "./interfaces/IUniswapV2ERC20.sol";

contract UniswapV2ERC20 is IUniswapV2ERC20 {
    string public constant name = "SweepnFlip LPs";
    string public constant symbol = "SNF-LP";
    uint8 public constant decimals = 18;
    uint  public totalSupply;
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public nonces;

    constructor() {
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name)),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );
    }

    function _mint(address to, uint value) internal {
        totalSupply += value;
        balanceOf[to] += value;
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint value) internal {
        balanceOf[from] -= value;
        totalSupply -= value;
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) private {
        balanceOf[from] -= value;
        balanceOf[to] += value;
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(address to, uint value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external returns (bool) {
        if (allowance[from][msg.sender] != type(uint).max) {
            allowance[from][msg.sender] -= value;
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        require(deadline >= block.timestamp, "SweepnFlip: EXPIRED");
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, "SweepnFlip: INVALID_SIGNATURE");
        _approve(owner, spender, value);
    }
}

File 13 of 14 : UniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IUniswapV2Pair } from "./interfaces/IUniswapV2Pair.sol";
import { UniswapV2ERC20 } from "./UniswapV2ERC20.sol";
import { Math } from "./libraries/Math.sol";
import { UQ112x112 } from "./libraries/UQ112x112.sol";
import { IERC20 } from "./interfaces/IERC20.sol";
import { IUniswapV2Factory } from "./interfaces/IUniswapV2Factory.sol";
import { IUniswapV2Callee } from "./interfaces/IUniswapV2Callee.sol";

contract UniswapV2Pair is IUniswapV2Pair, UniswapV2ERC20 {
    using UQ112x112 for uint224;

    uint public constant MINIMUM_LIQUIDITY = 10**3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes("transfer(address,uint256)")));

    address public factory;
    address public token0;
    address public token1;

    uint112 private reserve0;           // uses single storage slot, accessible via getReserves
    uint112 private reserve1;           // uses single storage slot, accessible via getReserves
    uint32  private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint public price0CumulativeLast;
    uint public price1CumulativeLast;
    uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event

    bool public discrete0;
    bool public discrete1;

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, "SweepnFlip: LOCKED");
        unlocked = 0;
        _;
        unlocked = 1;
    }

    function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(address token, address to, uint value) private {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "SweepnFlip: TRANSFER_FAILED");
    }

    constructor() {
        factory = msg.sender;
    }

    // called once by the factory at time of deployment
    function initialize(address _token0, address _token1, bool _discrete0, bool _discrete1) external {
        require(msg.sender == factory, "SweepnFlip: FORBIDDEN"); // sufficient check
        token0 = _token0;
        token1 = _token1;
        discrete0 = _discrete0;
        discrete1 = _discrete1;
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
        unchecked {
        require(balance0 <= type(uint112).max && balance1 <= type(uint112).max, "SweepnFlip: OVERFLOW");
        uint32 blockTimestamp = uint32(block.timestamp % 2**32);
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
            // * never overflows, and + overflow is desired
            price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
            price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
        }
    }

    // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
    function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
        address feeTo = IUniswapV2Factory(factory).feeTo();
        feeOn = feeTo != address(0);
        uint _kLast = kLast; // gas savings
        if (feeOn) {
            if (_kLast != 0) {
                uint rootK = Math.sqrt(uint(_reserve0) * uint(_reserve1));
                uint rootKLast = Math.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint numerator = totalSupply * (rootK - rootKLast);
                    uint denominator = (rootK * 5) + rootKLast;
                    uint liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(feeTo, liquidity);
                }
            }
        } else if (_kLast != 0) {
            kLast = 0;
        }
    }

    // this low-level function should be called from a contract which performs important safety checks
    function mint(address to) external lock returns (uint liquidity) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        uint balance0 = IERC20(token0).balanceOf(address(this));
        uint balance1 = IERC20(token1).balanceOf(address(this));
        uint amount0 = balance0 - _reserve0;
        uint amount1 = balance1 - _reserve1;

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = Math.sqrt(amount0 * amount1) - MINIMUM_LIQUIDITY;
           _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = Math.min(amount0 * _totalSupply / _reserve0, amount1 * _totalSupply / _reserve1);
        }
        require(liquidity > 0, "SweepnFlip: INSUFFICIENT_LIQUIDITY_MINTED");
        _mint(to, liquidity);

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0) * uint(reserve1); // reserve0 and reserve1 are up-to-date
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function burn(address to) external lock returns (uint amount0, uint amount1) {
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        address _token0 = token0;                                // gas savings
        address _token1 = token1;                                // gas savings
        uint balance0 = IERC20(_token0).balanceOf(address(this));
        uint balance1 = IERC20(_token1).balanceOf(address(this));
        uint liquidity = balanceOf[address(this)];

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = liquidity * balance0 / _totalSupply; // using balances ensures pro-rata distribution
        amount1 = liquidity * balance1 / _totalSupply; // using balances ensures pro-rata distribution
        /*
        if (discrete0) {
            uint residual0 = amount0 % 1e18;
            if (residual0 > 0) {
                if (residual0 + 1e10 >= 1e18 && amount0 + 1e18 < balance0) { // attempts to fix rounding error
                    amount0 += 1e18 - residual0;
                }
                else
                {
                    amount0 -= residual0;
                    amount1 += residual0 * (balance1 - amount1) / (balance0 - amount0);
                }
            }
        }
        else
        if (discrete1) {
            uint residual1 = amount1 % 1e18;
            if (residual1 > 0) {
                if (residual1 + 1e10 >= 1e18 && amount1 + 1e18 < balance1) { // attempts to fix rounding error
                    amount1 += 1e18 - residual1;
                }
                else
                {
                    amount1 -= residual1;
                    amount0 += residual1 * (balance0 - amount0) / (balance1 - amount1);
                }
            }
        }
        */
        require(amount0 > 0 && amount1 > 0, "SweepnFlip: INSUFFICIENT_LIQUIDITY_BURNED");
        _burn(address(this), liquidity);
        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint(reserve0) * uint(reserve1); // reserve0 and reserve1 are up-to-date
        emit Burn(msg.sender, amount0, amount1, to);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
        require(amount0Out > 0 || amount1Out > 0, "SweepnFlip: INSUFFICIENT_OUTPUT_AMOUNT");
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, "SweepnFlip: INSUFFICIENT_LIQUIDITY");

        uint balance0;
        uint balance1;
        { // scope for _token{0,1}, avoids stack too deep errors
        address _token0 = token0;
        address _token1 = token1;
        require(to != _token0 && to != _token1, "SweepnFlip: INVALID_TO");
        if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
        if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
        if (data.length > 0) IUniswapV2Callee(to).uniswapV2Call(msg.sender, amount0Out, amount1Out, data);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));
        }
        uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
        uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
        require(amount0In > 0 || amount1In > 0, "SweepnFlip: INSUFFICIENT_INPUT_AMOUNT");
        { // scope for reserve{0,1}Adjusted, avoids stack too deep errors
        uint balance0Adjusted = balance0 * 100 - amount0In * 2;
        uint balance1Adjusted = balance1 * 100 - amount1In * 2;
        require(balance0Adjusted * balance1Adjusted >= uint(_reserve0) * uint(_reserve1) * 100**2, "SweepnFlip: K");
        }

        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }

    // force balances to match reserves
    function skim(address to) external lock {
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)) - reserve0);
        _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)) - reserve1);
    }

    // force reserves to match balances
    function sync() external lock {
        _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
    }
}

File 14 of 14 : WERC721.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.9;

import { IWERC721 } from "./interfaces/IWERC721.sol";
import { IERC721 } from "./interfaces/IERC721.sol";
import { IUniswapV2Factory } from "./interfaces/IUniswapV2Factory.sol";

contract WERC721 is IWERC721 {
    uint8 public constant decimals = 18;
    uint  public totalSupply;
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    address public factory;
    address public collection;

    function name() public view returns (string memory) {
        return string(abi.encodePacked("Wrapped ", IERC721(collection).name()));
    }

    function symbol() public view returns (string memory) {
        return string(abi.encodePacked("W", IERC721(collection).symbol()));
    }

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, "SweepnFlip: LOCKED");
        unlocked = 0;
        _;
        unlocked = 1;
    }

    modifier onlyRouter() {
        require(IUniswapV2Factory(factory).router(msg.sender), "SweepnFlip: FORBIDDEN");
        _;
    }

    constructor() {
        factory = msg.sender;
    }

    function initialize(address _collection) external {
        require(msg.sender == factory, "SweepnFlip: FORBIDDEN"); // sufficient check
        collection = _collection;
    }

    function _mint(address from, address to, uint[] memory tokenIds) private {
        uint count = tokenIds.length;
        uint value = count * 1e18;
        totalSupply += value;
        balanceOf[to] += value;
        emit Transfer(address(0), to, value);
        for (uint i = 0; i < count; i++) {
            IERC721(collection).transferFrom(from, address(this), tokenIds[i]);
        }
        emit Mint(from, to, tokenIds);
    }

    function _burn(address from, address to, uint[] memory tokenIds) private {
        uint count = tokenIds.length;
        uint value = count * 1e18;
        balanceOf[from] -= value;
        totalSupply -= value;
        emit Transfer(from, address(0), value);
        for (uint i = 0; i < count; i++) {
            IERC721(collection).transferFrom(address(this), to, tokenIds[i]);
        }
        emit Burn(from, to, tokenIds);
    }

    function _approve(address owner, address spender, uint value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint value) private {
        /*
        require(value % 1e18 == 0, "SweepnFlip: PARTIAL_AMOUNT");
        */
        balanceOf[from] -= value;
        balanceOf[to] += value;
        emit Transfer(from, to, value);
    }

    function approve(address spender, uint value) external returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function mint(address to, uint[] memory tokenIds) external onlyRouter lock {
        _mint(msg.sender, to, tokenIds);
    }

    function burn(address to, uint[] memory tokenIds) external onlyRouter lock {
        _burn(msg.sender, to, tokenIds);
    }

    function transfer(address to, uint value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(address from, address to, uint value) external returns (bool) {
        if (allowance[from][msg.sender] != type(uint).max) {
            allowance[from][msg.sender] -= value;
        }
        _transfer(from, to, value);
        return true;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 222
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"},{"internalType":"address","name":"_routerSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"wrapper","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"WrapperCreated","type":"event"},{"inputs":[],"name":"_initCodeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allWrappers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allWrappersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"createWrapper","outputs":[{"internalType":"address","name":"wrapper","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getWrapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"router","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_routerSetter","type":"address"}],"name":"setRouterSetter","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516140f03803806140f083398101604081905261002f9161007c565b600180546001600160a01b039384166001600160a01b031991821617909155600980549290931691161790556100af565b80516001600160a01b038116811461007757600080fd5b919050565b6000806040838503121561008f57600080fd5b61009883610060565b91506100a660208401610060565b90509250929050565b614032806100be6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063c3c64674116100ad578063e41c0a8d11610071578063e41c0a8d1461024e578063e4b643e314610277578063e5843242146102aa578063e6a43905146102d8578063f46901ed1461030c57600080fd5b8063c3c64674146101e4578063c9c65396146101f7578063dd5819ad1461020a578063e255fdd81461021d578063e40de8871461022557600080fd5b8063574f2ba3116100f4578063574f2ba31461018f57806360ccbbb9146101a157806387ff9716146101b4578063a2e74af6146101bc578063a7c4f0ef146101d157600080fd5b8063017e7e5814610126578063094b7415146101565780631e3dd18b14610169578063461142c31461017c575b600080fd5b600054610139906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610139906001600160a01b031681565b610139610177366004610c57565b61031f565b600954610139906001600160a01b031681565b6003545b60405190815260200161014d565b6101396101af366004610c57565b610349565b610193610359565b6101cf6101ca366004610c88565b61038b565b005b6101396101df366004610c88565b6103e0565b6101cf6101f2366004610cac565b61061e565b610139610205366004610cea565b610673565b6101cf610218366004610c88565b610ba5565b600654610193565b610139610233366004610c88565b6004602052600090815260409020546001600160a01b031681565b61013961025c366004610c88565b6005602052600090815260409020546001600160a01b031681565b61029a610285366004610c88565b60086020526000908152604090205460ff1681565b604051901515815260200161014d565b61029a6102b8366004610cea565b600760209081526000928352604080842090915290825290205460ff1681565b6101396102e6366004610cea565b60026020908152600092835260408084209091529082529020546001600160a01b031681565b6101cf61031a366004610c88565b610bf1565b6003818154811061032f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006818154811061032f57600080fd5b60006040518060200161036b90610c3d565b6020820181038252601f19601f8201166040525080519060200120905090565b6001546001600160a01b031633146103be5760405162461bcd60e51b81526004016103b590610d18565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166104335760405162461bcd60e51b815260206004820152601860248201527753776565706e466c69703a205a45524f5f4144445245535360401b60448201526064016103b5565b6001600160a01b03828116600090815260056020526040902054161561049b5760405162461bcd60e51b815260206004820152601a60248201527f53776565706e466c69703a20575241505045525f45584953545300000000000060448201526064016103b5565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050806040516104e290610c4a565b8190604051809103906000f5905080158015610502573d6000803e3d6000fd5b5060405163189acdbd60e31b81526001600160a01b0385811660048301529193509083169063c4d66de890602401600060405180830381600087803b15801561054a57600080fd5b505af115801561055e573d6000803e3d6000fd5b505050506001600160a01b03828116600081815260046020908152604080832080546001600160a01b0319908116968a1696871790915585845260058352818420805482168617905560068054600181018255948190527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f90940180549091168517905591548251938452908301527f44088935d035995c1d105d8bd491e155573d2ad9989b0b41766f7b990d316fe5910160405180910390a250919050565b6009546001600160a01b031633146106485760405162461bcd60e51b81526004016103b590610d18565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000816001600160a01b0316836001600160a01b031614156106d75760405162461bcd60e51b815260206004820152601f60248201527f53776565706e466c69703a204944454e544943414c5f4144445245535345530060448201526064016103b5565b600080836001600160a01b0316856001600160a01b0316106106fa5783856106fd565b84845b90925090506001600160a01b0382166107535760405162461bcd60e51b815260206004820152601860248201527753776565706e466c69703a205a45524f5f4144445245535360401b60448201526064016103b5565b6001600160a01b038281166000908152600260209081526040808320858516845290915290205416156107c85760405162461bcd60e51b815260206004820152601760248201527f53776565706e466c69703a20504149525f45584953545300000000000000000060448201526064016103b5565b6001600160a01b0382811660009081526004602052604080822054848416835291205490821615159116151581806107fd5750805b156108f1576040516bffffffffffffffffffffffff19606086811b8216602084015285901b1660348201526000906048016040516020818303038152906040528051906020012090508060405161085390610c3d565b8190604051809103906000f5905080158015610873573d6000803e3d6000fd5b506040516344943f0560e11b81526001600160a01b038781166004830152868116602483015285151560448301528415156064830152919750908716906389287e0a90608401600060405180830381600087803b1580156108d357600080fd5b505af11580156108e7573d6000803e3d6000fd5b5050505050610ad5565b6001600160a01b0387163b1580159061091357506001600160a01b0386163b15155b6109695760405162461bcd60e51b815260206004820152602160248201527f53776565706e466c69703a2044454c45474154494f4e5f5245535452494354456044820152601160fa1b60648201526084016103b5565b60405163e6a4390560e01b81526001600160a01b03808916600483015287166024820152737d8c6b58ba2d40fc6e34c25f9a488067fe0d2db49063e6a439059060440160206040518083038186803b1580156109c457600080fd5b505afa1580156109d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fc9190610d47565b94506001600160a01b038516610aa4576040516364e329cb60e11b81526001600160a01b03808916600483015287166024820152737d8c6b58ba2d40fc6e34c25f9a488067fe0d2db49063c9c6539690604401602060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610d47565b94505b6001600160a01b038085166000908152600760209081526040808320938716835292905220805460ff191660011790555b6001600160a01b0384811660008181526002602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9095018054909716841790965592548351928352908201527f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a35050505092915050565b6009546001600160a01b03163314610bcf5760405162461bcd60e51b81526004016103b590610d18565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314610c1b5760405162461bcd60e51b81526004016103b590610d18565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61230680610d6583390190565b610f928061306b83390190565b600060208284031215610c6957600080fd5b5035919050565b6001600160a01b0381168114610c8557600080fd5b50565b600060208284031215610c9a57600080fd5b8135610ca581610c70565b9392505050565b60008060408385031215610cbf57600080fd5b8235610cca81610c70565b915060208301358015158114610cdf57600080fd5b809150509250929050565b60008060408385031215610cfd57600080fd5b8235610d0881610c70565b91506020830135610cdf81610c70565b60208082526015908201527429bbb2b2b837233634b81d102327a92124a22222a760591b604082015260600190565b600060208284031215610d5957600080fd5b8151610ca581610c7056fe60806040526001600d5534801561001557600080fd5b50604080518082018252600e81526d53776565706e466c6970204c507360901b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527f2d6ef63278c2ffe2c62dc635b1c0e821242f11e277f623a086a21971facc47d3918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602090910120600355600580546001600160a01b031916331790556121f4806101126000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637464fc3d11610104578063bc25cf77116100a2578063d62acf0011610071578063d62acf0014610458578063dd62ed3e14610465578063e3a5b87214610490578063fff6cae9146104a257600080fd5b8063bc25cf771461040c578063c45a01551461041f578063d21220a714610432578063d505accf1461044557600080fd5b806389afcb44116100de57806389afcb44146103a357806395d89b41146103cb578063a9059cbb146103f0578063ba9a7a561461040357600080fd5b80637464fc3d146103675780637ecebe001461037057806389287e0a1461039057600080fd5b806330adf81f116101715780635909c0d51161014b5780635909c0d5146103225780635a3d54931461032b5780636a6278421461033457806370a082311461034757600080fd5b806330adf81f146102d8578063313ce567146102ff5780633644e5151461031957600080fd5b8063095ea7b3116101ad578063095ea7b3146102605780630dfe16811461028357806318160ddd146102ae57806323b872dd146102c557600080fd5b8063022c0d9f146101d457806306fdde03146101e95780630902f1ac1461022c575b600080fd5b6101e76101e2366004611d82565b6104aa565b005b6102166040518060400160405280600e81526020016d53776565706e466c6970204c507360901b81525081565b6040516102239190611e48565b60405180910390f35b6102346109e5565b604080516001600160701b03948516815293909216602084015263ffffffff1690820152606001610223565b61027361026e366004611e7b565b610a0f565b6040519015158152602001610223565b600654610296906001600160a01b031681565b6040516001600160a01b039091168152602001610223565b6102b760005481565b604051908152602001610223565b6102736102d3366004611ea7565b610a25565b6102b77f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610307601281565b60405160ff9091168152602001610223565b6102b760035481565b6102b760095481565b6102b7600a5481565b6102b7610342366004611ee8565b610a9f565b6102b7610355366004611ee8565b60016020526000908152604090205481565b6102b7600b5481565b6102b761037e366004611ee8565b60046020526000908152604090205481565b6101e761039e366004611f13565b610d89565b6103b66103b1366004611ee8565b610e3d565b60408051928352602083019190915201610223565b610216604051806040016040528060068152602001650534e462d4c560d41b81525081565b6102736103fe366004611e7b565b6111df565b6102b76103e881565b6101e761041a366004611ee8565b6111ec565b600554610296906001600160a01b031681565b600754610296906001600160a01b031681565b6101e7610453366004611f6f565b61130e565b600c546102739060ff1681565b6102b7610473366004611fe6565b600260209081526000928352604080842090915290825290205481565b600c5461027390610100900460ff1681565b6101e7611523565b600d546001146104d55760405162461bcd60e51b81526004016104cc9061201f565b60405180910390fd5b6000600d55841515806104e85750600084115b6105435760405162461bcd60e51b815260206004820152602660248201527f53776565706e466c69703a20494e53554646494349454e545f4f55545055545f604482015265105353d5539560d21b60648201526084016104cc565b60008061054e6109e5565b5091509150816001600160701b0316871080156105735750806001600160701b031686105b6105ca5760405162461bcd60e51b815260206004820152602260248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015261545960f01b60648201526084016104cc565b60065460075460009182916001600160a01b039182169190811690891682148015906106085750806001600160a01b0316896001600160a01b031614155b61064d5760405162461bcd60e51b815260206004820152601660248201527553776565706e466c69703a20494e56414c49445f544f60501b60448201526064016104cc565b8a1561065e5761065e828a8d611665565b891561066f5761066f818a8c611665565b86156106dc576040516304347a1760e21b81526001600160a01b038a16906310d1e85c906106a99033908f908f908e908e9060040161204b565b600060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561071b57600080fd5b505afa15801561072f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107539190612098565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a082319060240160206040518083038186803b15801561079557600080fd5b505afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190612098565b92505050600089856001600160701b03166107e891906120c7565b83116107f5576000610812565b6108088a6001600160701b0387166120c7565b61081290846120c7565b905060006108298a6001600160701b0387166120c7565b8311610836576000610853565b6108498a6001600160701b0387166120c7565b61085390846120c7565b905060008211806108645750600081115b6108be5760405162461bcd60e51b815260206004820152602560248201527f53776565706e466c69703a20494e53554646494349454e545f494e5055545f416044820152641353d5539560da1b60648201526084016104cc565b60006108cb8360026120de565b6108d68660646120de565b6108e091906120c7565b905060006108ef8360026120de565b6108fa8660646120de565b61090491906120c7565b905061091c6001600160701b03808916908a166120de565b610928906127106120de565b61093282846120de565b10156109705760405162461bcd60e51b815260206004820152600d60248201526c53776565706e466c69703a204b60981b60448201526064016104cc565b505061097e848488886117b0565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600d55505050505050505050565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610a1c33848461196c565b50600192915050565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610a8a576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610a849084906120c7565b90915550505b610a958484846119ce565b5060019392505050565b6000600d54600114610ac35760405162461bcd60e51b81526004016104cc9061201f565b6000600d81905580610ad36109e5565b506006546040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610b2057600080fd5b505afa158015610b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b589190612098565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610ba157600080fd5b505afa158015610bb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd99190612098565b90506000610bf06001600160701b038616846120c7565b90506000610c076001600160701b038616846120c7565b90506000610c158787611a6f565b60005490915080610c53576103e8610c35610c3085876120de565b611bbd565b610c3f91906120c7565b9850610c4e60006103e8611c1b565b610c9a565b610c976001600160701b038916610c6a83876120de565b610c749190612113565b6001600160701b038916610c8884876120de565b610c929190612113565b611ca4565b98505b60008911610cfc5760405162461bcd60e51b815260206004820152602960248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015268151657d3525395115160ba1b60648201526084016104cc565b610d068a8a611c1b565b610d1286868a8a6117b0565b8115610d3b57600854610d37906001600160701b03600160701b8204811691166120de565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600d5550949695505050505050565b6005546001600160a01b03163314610ddb5760405162461bcd60e51b815260206004820152601560248201527429bbb2b2b837233634b81d102327a92124a22222a760591b60448201526064016104cc565b6006805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0396871617909155600780549091169390941692909217909255600c805461ffff191692151561ff0019169290921761010091151591909102179055565b600080600d54600114610e625760405162461bcd60e51b81526004016104cc9061201f565b6000600d81905580610e726109e5565b506006546007546040516370a0823160e01b81523060048201529395509193506001600160a01b039081169291169060009083906370a082319060240160206040518083038186803b158015610ec757600080fd5b505afa158015610edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eff9190612098565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610f4457600080fd5b505afa158015610f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7c9190612098565b30600090815260016020526040812054919250610f998888611a6f565b60005490915080610faa86856120de565b610fb49190612113565b9a5080610fc185856120de565b610fcb9190612113565b995060008b118015610fdd575060008a115b61103b5760405162461bcd60e51b815260206004820152602960248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015268151657d0955493915160ba1b60648201526084016104cc565b6110453084611cbc565b611050878d8d611665565b61105b868d8c611665565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a082319060240160206040518083038186803b15801561109a57600080fd5b505afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d29190612098565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a082319060240160206040518083038186803b15801561111457600080fd5b505afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c9190612098565b935061115a85858b8b6117b0565b81156111835760085461117f906001600160701b03600160701b8204811691166120de565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600d81905550915091565b6000610a1c3384846119ce565b600d5460011461120e5760405162461bcd60e51b81526004016104cc9061201f565b6000600d556006546007546008546040516370a0823160e01b81523060048201526001600160a01b0393841693909216916112bc91849186916001600160701b03169083906370a08231906024015b60206040518083038186803b15801561127557600080fd5b505afa158015611289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ad9190612098565b6112b791906120c7565b611665565b6008546040516370a0823160e01b81523060048201526113049183918691600160701b90046001600160701b0316906001600160a01b038416906370a082319060240161125d565b50506001600d5550565b428410156113545760405162461bcd60e51b815260206004820152601360248201527214ddd9595c1b919b1a5c0e8811561412549151606a1b60448201526064016104cc565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b9190876113a783612135565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161142092919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa15801561148b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906114c15750886001600160a01b0316816001600160a01b0316145b61150d5760405162461bcd60e51b815260206004820152601d60248201527f53776565706e466c69703a20494e56414c49445f5349474e415455524500000060448201526064016104cc565b61151889898961196c565b505050505050505050565b600d546001146115455760405162461bcd60e51b81526004016104cc9061201f565b6000600d556006546040516370a0823160e01b815230600482015261165e916001600160a01b0316906370a082319060240160206040518083038186803b15801561158f57600080fd5b505afa1580156115a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c79190612098565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116429190612098565b6008546001600160701b0380821691600160701b9004166117b0565b6001600d55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b179052915160009283928716916116f19190612150565b6000604051808303816000865af19150503d806000811461172e576040519150601f19603f3d011682016040523d82523d6000602084013e611733565b606091505b509150915081801561175d57508051158061175d57508080602001905181019061175d919061216c565b6117a95760405162461bcd60e51b815260206004820152601b60248201527f53776565706e466c69703a205452414e534645525f4641494c4544000000000060448201526064016104cc565b5050505050565b6001600160701b0384118015906117ce57506001600160701b038311155b6118115760405162461bcd60e51b815260206004820152601460248201527353776565706e466c69703a204f564552464c4f5760601b60448201526064016104cc565b60085463ffffffff42811691600160e01b9004811682039081161580159061184157506001600160701b03841615155b801561185557506001600160701b03831615155b156118d45763ffffffff811661188585600160701b6001600160701b038716025b6001600160e01b031690611d3f565b600980546001600160e01b03929092169290920201905563ffffffff81166118bc84600160701b6001600160701b03881602611876565b600a80546001600160e01b0392909216929092020190555b6008805463ffffffff8416600160e01b026001600160e01b036001600160701b03898116600160701b9081026001600160e01b03199095168c83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a1505050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260016020526040812080548392906119f69084906120c7565b90915550506001600160a01b03821660009081526001602052604081208054839290611a23908490612189565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119c191815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611ac057600080fd5b505afa158015611ad4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af891906121a1565b600b546001600160a01b038216158015945091925090611ba9578015611ba4576000611b33610c306001600160701b038088169089166120de565b90506000611b4083611bbd565b905080821115611ba1576000611b5682846120c7565b600054611b6391906120de565b9050600082611b738560056120de565b611b7d9190612189565b90506000611b8b8284612113565b90508015611b9d57611b9d8782611c1b565b5050505b50505b611bb5565b8015611bb5576000600b555b505092915050565b60006003821115611c0c575080600160028204015b81811015611c0657809150600281828581611bef57611bef6120fd565b040181611bfe57611bfe6120fd565b049050611bd2565b50919050565b8115611c16575060015b919050565b80600080828254611c2c9190612189565b90915550506001600160a01b03821660009081526001602052604081208054839290611c59908490612189565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6000818310611cb35781611cb5565b825b9392505050565b6001600160a01b03821660009081526001602052604081208054839290611ce49084906120c7565b9250508190555080600080828254611cfc91906120c7565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c98565b60006001600160701b0382166001600160e01b03841681611d6257611d626120fd565b049392505050565b6001600160a01b0381168114611d7f57600080fd5b50565b600080600080600060808688031215611d9a57600080fd5b85359450602086013593506040860135611db381611d6a565b9250606086013567ffffffffffffffff80821115611dd057600080fd5b818801915088601f830112611de457600080fd5b813581811115611df357600080fd5b896020828501011115611e0557600080fd5b9699959850939650602001949392505050565b60005b83811015611e33578181015183820152602001611e1b565b83811115611e42576000848401525b50505050565b6020815260008251806020840152611e67816040850160208701611e18565b601f01601f19169190910160400192915050565b60008060408385031215611e8e57600080fd5b8235611e9981611d6a565b946020939093013593505050565b600080600060608486031215611ebc57600080fd5b8335611ec781611d6a565b92506020840135611ed781611d6a565b929592945050506040919091013590565b600060208284031215611efa57600080fd5b8135611cb581611d6a565b8015158114611d7f57600080fd5b60008060008060808587031215611f2957600080fd5b8435611f3481611d6a565b93506020850135611f4481611d6a565b92506040850135611f5481611f05565b91506060850135611f6481611f05565b939692955090935050565b600080600080600080600060e0888a031215611f8a57600080fd5b8735611f9581611d6a565b96506020880135611fa581611d6a565b95506040880135945060608801359350608088013560ff81168114611fc957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611ff957600080fd5b823561200481611d6a565b9150602083013561201481611d6a565b809150509250929050565b60208082526012908201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b604082015260600190565b6001600160a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b6000602082840312156120aa57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156120d9576120d96120b1565b500390565b60008160001904831182151516156120f8576120f86120b1565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261213057634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415612149576121496120b1565b5060010190565b60008251612162818460208701611e18565b9190910192915050565b60006020828403121561217e57600080fd5b8151611cb581611f05565b6000821982111561219c5761219c6120b1565b500190565b6000602082840312156121b357600080fd5b8151611cb581611d6a56fea2646970667358221220ac65eeb02202c22aadc5b561ee77d221c881761020ef0ed9c65b24989707699164736f6c634300080900336080604052600160055534801561001557600080fd5b50600380546001600160a01b03191633179055610f5b806100376000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063c45a015511610066578063c45a0155146101ef578063c4d66de814610202578063dd62ed3e14610215578063de836ebd1461024057600080fd5b806395d89b41146101bf578063a9059cbb146101c7578063ba36b92d146101da57600080fd5b806323b872dd116100c857806323b872dd14610147578063313ce5671461015a57806370a08231146101745780637de1e5361461019457600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610253565b6040516101049190610b04565b60405180910390f35b61012061011b366004610b53565b610303565b6040519015158152602001610104565b61013960005481565b604051908152602001610104565b610120610155366004610b7d565b610319565b610162601281565b60405160ff9091168152602001610104565b610139610182366004610bb9565b60016020526000908152604090205481565b6004546101a7906001600160a01b031681565b6040516001600160a01b039091168152602001610104565b6100f7610393565b6101206101d5366004610b53565b61042f565b6101ed6101e8366004610c22565b61043c565b005b6003546101a7906001600160a01b031681565b6101ed610210366004610bb9565b61053c565b610139610223366004610cdb565b600260209081526000928352604080842090915290825290205481565b6101ed61024e366004610c22565b610595565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156102a357600080fd5b505afa1580156102b7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102df9190810190610d0e565b6040516020016102ef9190610da2565b604051602081830303815290604052905090565b6000610310338484610683565b50600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000191461037e576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610378908490610de8565b90915550505b6103898484846106e5565b5060019392505050565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156103e357600080fd5b505afa1580156103f7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261041f9190810190610d0e565b6040516020016102ef9190610dff565b60006103103384846106e5565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b15801561047f57600080fd5b505afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190610e28565b6104dc5760405162461bcd60e51b81526004016104d390610e4a565b60405180910390fd5b6005546001146105235760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016104d3565b6000600555610533338383610786565b50506001600555565b6003546001600160a01b031633146105665760405162461bcd60e51b81526004016104d390610e4a565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b1580156105d857600080fd5b505afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106109190610e28565b61062c5760405162461bcd60e51b81526004016104d390610e4a565b6005546001146106735760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016104d3565b6000600555610533338383610937565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166000908152600160205260408120805483929061070d908490610de8565b90915550506001600160a01b0382166000908152600160205260408120805483929061073a908490610e79565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106d891815260200190565b8051600061079c82670de0b6b3a7640000610e91565b6001600160a01b0386166000908152600160205260408120805492935083929091906107c9908490610de8565b92505081905550806000808282546107e19190610de8565b90915550506040518181526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b828110156108e45760045484516001600160a01b03909116906323b872dd903090889088908690811061085f5761085f610eb0565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156108b957600080fd5b505af11580156108cd573d6000803e3d6000fd5b5050505080806108dc90610ec6565b91505061082a565b50836001600160a01b0316856001600160a01b03167f1a9ecd79d4129de1f6144bf993d21f4a1803c25ad4040ae9571f25082792125e856040516109289190610ee1565b60405180910390a35050505050565b8051600061094d82670de0b6b3a7640000610e91565b9050806000808282546109609190610e79565b90915550506001600160a01b0384166000908152600160205260408120805483929061098d908490610e79565b90915550506040518181526001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b82811015610a905760045484516001600160a01b03909116906323b872dd9088903090889086908110610a0b57610a0b610eb0565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610a6557600080fd5b505af1158015610a79573d6000803e3d6000fd5b505050508080610a8890610ec6565b9150506109d6565b50836001600160a01b0316856001600160a01b03167ffd9359b77bedf90cc62dc5e65e71caac46edc3f206e575d895e753ae8f6e88ea856040516109289190610ee1565b60005b83811015610aef578181015183820152602001610ad7565b83811115610afe576000848401525b50505050565b6020815260008251806020840152610b23816040850160208701610ad4565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610b4e57600080fd5b919050565b60008060408385031215610b6657600080fd5b610b6f83610b37565b946020939093013593505050565b600080600060608486031215610b9257600080fd5b610b9b84610b37565b9250610ba960208501610b37565b9150604084013590509250925092565b600060208284031215610bcb57600080fd5b610bd482610b37565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610c1a57610c1a610bdb565b604052919050565b60008060408385031215610c3557600080fd5b610c3e83610b37565b915060208084013567ffffffffffffffff80821115610c5c57600080fd5b818601915086601f830112610c7057600080fd5b813581811115610c8257610c82610bdb565b8060051b9150610c93848301610bf1565b8181529183018401918481019089841115610cad57600080fd5b938501935b83851015610ccb57843582529385019390850190610cb2565b8096505050505050509250929050565b60008060408385031215610cee57600080fd5b610cf783610b37565b9150610d0560208401610b37565b90509250929050565b600060208284031215610d2057600080fd5b815167ffffffffffffffff80821115610d3857600080fd5b818401915084601f830112610d4c57600080fd5b815181811115610d5e57610d5e610bdb565b610d71601f8201601f1916602001610bf1565b9150808252856020828501011115610d8857600080fd5b610d99816020840160208601610ad4565b50949350505050565b6702bb930b83832b2160c51b815260008251610dc5816008850160208701610ad4565b9190910160080192915050565b634e487b7160e01b600052601160045260246000fd5b600082821015610dfa57610dfa610dd2565b500390565b605760f81b815260008251610e1b816001850160208701610ad4565b9190910160010192915050565b600060208284031215610e3a57600080fd5b81518015158114610bd457600080fd5b60208082526015908201527429bbb2b2b837233634b81d102327a92124a22222a760591b604082015260600190565b60008219821115610e8c57610e8c610dd2565b500190565b6000816000190483118215151615610eab57610eab610dd2565b500290565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610eda57610eda610dd2565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015610f1957835183529284019291840191600101610efd565b5090969550505050505056fea2646970667358221220b9760dff8071131f829bf88bdf2cad2c1b7dddd78f9136395086ecd9d76d4bcc64736f6c63430008090033a2646970667358221220922b62c5f5449565cb4dd165f9eab8889f0f689905a1583d361ec9634f42fc4f64736f6c63430008090033000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063c3c64674116100ad578063e41c0a8d11610071578063e41c0a8d1461024e578063e4b643e314610277578063e5843242146102aa578063e6a43905146102d8578063f46901ed1461030c57600080fd5b8063c3c64674146101e4578063c9c65396146101f7578063dd5819ad1461020a578063e255fdd81461021d578063e40de8871461022557600080fd5b8063574f2ba3116100f4578063574f2ba31461018f57806360ccbbb9146101a157806387ff9716146101b4578063a2e74af6146101bc578063a7c4f0ef146101d157600080fd5b8063017e7e5814610126578063094b7415146101565780631e3dd18b14610169578063461142c31461017c575b600080fd5b600054610139906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610139906001600160a01b031681565b610139610177366004610c57565b61031f565b600954610139906001600160a01b031681565b6003545b60405190815260200161014d565b6101396101af366004610c57565b610349565b610193610359565b6101cf6101ca366004610c88565b61038b565b005b6101396101df366004610c88565b6103e0565b6101cf6101f2366004610cac565b61061e565b610139610205366004610cea565b610673565b6101cf610218366004610c88565b610ba5565b600654610193565b610139610233366004610c88565b6004602052600090815260409020546001600160a01b031681565b61013961025c366004610c88565b6005602052600090815260409020546001600160a01b031681565b61029a610285366004610c88565b60086020526000908152604090205460ff1681565b604051901515815260200161014d565b61029a6102b8366004610cea565b600760209081526000928352604080842090915290825290205460ff1681565b6101396102e6366004610cea565b60026020908152600092835260408084209091529082529020546001600160a01b031681565b6101cf61031a366004610c88565b610bf1565b6003818154811061032f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006818154811061032f57600080fd5b60006040518060200161036b90610c3d565b6020820181038252601f19601f8201166040525080519060200120905090565b6001546001600160a01b031633146103be5760405162461bcd60e51b81526004016103b590610d18565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166104335760405162461bcd60e51b815260206004820152601860248201527753776565706e466c69703a205a45524f5f4144445245535360401b60448201526064016103b5565b6001600160a01b03828116600090815260056020526040902054161561049b5760405162461bcd60e51b815260206004820152601a60248201527f53776565706e466c69703a20575241505045525f45584953545300000000000060448201526064016103b5565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050806040516104e290610c4a565b8190604051809103906000f5905080158015610502573d6000803e3d6000fd5b5060405163189acdbd60e31b81526001600160a01b0385811660048301529193509083169063c4d66de890602401600060405180830381600087803b15801561054a57600080fd5b505af115801561055e573d6000803e3d6000fd5b505050506001600160a01b03828116600081815260046020908152604080832080546001600160a01b0319908116968a1696871790915585845260058352818420805482168617905560068054600181018255948190527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f90940180549091168517905591548251938452908301527f44088935d035995c1d105d8bd491e155573d2ad9989b0b41766f7b990d316fe5910160405180910390a250919050565b6009546001600160a01b031633146106485760405162461bcd60e51b81526004016103b590610d18565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000816001600160a01b0316836001600160a01b031614156106d75760405162461bcd60e51b815260206004820152601f60248201527f53776565706e466c69703a204944454e544943414c5f4144445245535345530060448201526064016103b5565b600080836001600160a01b0316856001600160a01b0316106106fa5783856106fd565b84845b90925090506001600160a01b0382166107535760405162461bcd60e51b815260206004820152601860248201527753776565706e466c69703a205a45524f5f4144445245535360401b60448201526064016103b5565b6001600160a01b038281166000908152600260209081526040808320858516845290915290205416156107c85760405162461bcd60e51b815260206004820152601760248201527f53776565706e466c69703a20504149525f45584953545300000000000000000060448201526064016103b5565b6001600160a01b0382811660009081526004602052604080822054848416835291205490821615159116151581806107fd5750805b156108f1576040516bffffffffffffffffffffffff19606086811b8216602084015285901b1660348201526000906048016040516020818303038152906040528051906020012090508060405161085390610c3d565b8190604051809103906000f5905080158015610873573d6000803e3d6000fd5b506040516344943f0560e11b81526001600160a01b038781166004830152868116602483015285151560448301528415156064830152919750908716906389287e0a90608401600060405180830381600087803b1580156108d357600080fd5b505af11580156108e7573d6000803e3d6000fd5b5050505050610ad5565b6001600160a01b0387163b1580159061091357506001600160a01b0386163b15155b6109695760405162461bcd60e51b815260206004820152602160248201527f53776565706e466c69703a2044454c45474154494f4e5f5245535452494354456044820152601160fa1b60648201526084016103b5565b60405163e6a4390560e01b81526001600160a01b03808916600483015287166024820152737d8c6b58ba2d40fc6e34c25f9a488067fe0d2db49063e6a439059060440160206040518083038186803b1580156109c457600080fd5b505afa1580156109d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fc9190610d47565b94506001600160a01b038516610aa4576040516364e329cb60e11b81526001600160a01b03808916600483015287166024820152737d8c6b58ba2d40fc6e34c25f9a488067fe0d2db49063c9c6539690604401602060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610d47565b94505b6001600160a01b038085166000908152600760209081526040808320938716835292905220805460ff191660011790555b6001600160a01b0384811660008181526002602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9095018054909716841790965592548351928352908201527f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a35050505092915050565b6009546001600160a01b03163314610bcf5760405162461bcd60e51b81526004016103b590610d18565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314610c1b5760405162461bcd60e51b81526004016103b590610d18565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61230680610d6583390190565b610f928061306b83390190565b600060208284031215610c6957600080fd5b5035919050565b6001600160a01b0381168114610c8557600080fd5b50565b600060208284031215610c9a57600080fd5b8135610ca581610c70565b9392505050565b60008060408385031215610cbf57600080fd5b8235610cca81610c70565b915060208301358015158114610cdf57600080fd5b809150509250929050565b60008060408385031215610cfd57600080fd5b8235610d0881610c70565b91506020830135610cdf81610c70565b60208082526015908201527429bbb2b2b837233634b81d102327a92124a22222a760591b604082015260600190565b600060208284031215610d5957600080fd5b8151610ca581610c7056fe60806040526001600d5534801561001557600080fd5b50604080518082018252600e81526d53776565706e466c6970204c507360901b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527f2d6ef63278c2ffe2c62dc635b1c0e821242f11e277f623a086a21971facc47d3918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602090910120600355600580546001600160a01b031916331790556121f4806101126000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637464fc3d11610104578063bc25cf77116100a2578063d62acf0011610071578063d62acf0014610458578063dd62ed3e14610465578063e3a5b87214610490578063fff6cae9146104a257600080fd5b8063bc25cf771461040c578063c45a01551461041f578063d21220a714610432578063d505accf1461044557600080fd5b806389afcb44116100de57806389afcb44146103a357806395d89b41146103cb578063a9059cbb146103f0578063ba9a7a561461040357600080fd5b80637464fc3d146103675780637ecebe001461037057806389287e0a1461039057600080fd5b806330adf81f116101715780635909c0d51161014b5780635909c0d5146103225780635a3d54931461032b5780636a6278421461033457806370a082311461034757600080fd5b806330adf81f146102d8578063313ce567146102ff5780633644e5151461031957600080fd5b8063095ea7b3116101ad578063095ea7b3146102605780630dfe16811461028357806318160ddd146102ae57806323b872dd146102c557600080fd5b8063022c0d9f146101d457806306fdde03146101e95780630902f1ac1461022c575b600080fd5b6101e76101e2366004611d82565b6104aa565b005b6102166040518060400160405280600e81526020016d53776565706e466c6970204c507360901b81525081565b6040516102239190611e48565b60405180910390f35b6102346109e5565b604080516001600160701b03948516815293909216602084015263ffffffff1690820152606001610223565b61027361026e366004611e7b565b610a0f565b6040519015158152602001610223565b600654610296906001600160a01b031681565b6040516001600160a01b039091168152602001610223565b6102b760005481565b604051908152602001610223565b6102736102d3366004611ea7565b610a25565b6102b77f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610307601281565b60405160ff9091168152602001610223565b6102b760035481565b6102b760095481565b6102b7600a5481565b6102b7610342366004611ee8565b610a9f565b6102b7610355366004611ee8565b60016020526000908152604090205481565b6102b7600b5481565b6102b761037e366004611ee8565b60046020526000908152604090205481565b6101e761039e366004611f13565b610d89565b6103b66103b1366004611ee8565b610e3d565b60408051928352602083019190915201610223565b610216604051806040016040528060068152602001650534e462d4c560d41b81525081565b6102736103fe366004611e7b565b6111df565b6102b76103e881565b6101e761041a366004611ee8565b6111ec565b600554610296906001600160a01b031681565b600754610296906001600160a01b031681565b6101e7610453366004611f6f565b61130e565b600c546102739060ff1681565b6102b7610473366004611fe6565b600260209081526000928352604080842090915290825290205481565b600c5461027390610100900460ff1681565b6101e7611523565b600d546001146104d55760405162461bcd60e51b81526004016104cc9061201f565b60405180910390fd5b6000600d55841515806104e85750600084115b6105435760405162461bcd60e51b815260206004820152602660248201527f53776565706e466c69703a20494e53554646494349454e545f4f55545055545f604482015265105353d5539560d21b60648201526084016104cc565b60008061054e6109e5565b5091509150816001600160701b0316871080156105735750806001600160701b031686105b6105ca5760405162461bcd60e51b815260206004820152602260248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015261545960f01b60648201526084016104cc565b60065460075460009182916001600160a01b039182169190811690891682148015906106085750806001600160a01b0316896001600160a01b031614155b61064d5760405162461bcd60e51b815260206004820152601660248201527553776565706e466c69703a20494e56414c49445f544f60501b60448201526064016104cc565b8a1561065e5761065e828a8d611665565b891561066f5761066f818a8c611665565b86156106dc576040516304347a1760e21b81526001600160a01b038a16906310d1e85c906106a99033908f908f908e908e9060040161204b565b600060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561071b57600080fd5b505afa15801561072f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107539190612098565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a082319060240160206040518083038186803b15801561079557600080fd5b505afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190612098565b92505050600089856001600160701b03166107e891906120c7565b83116107f5576000610812565b6108088a6001600160701b0387166120c7565b61081290846120c7565b905060006108298a6001600160701b0387166120c7565b8311610836576000610853565b6108498a6001600160701b0387166120c7565b61085390846120c7565b905060008211806108645750600081115b6108be5760405162461bcd60e51b815260206004820152602560248201527f53776565706e466c69703a20494e53554646494349454e545f494e5055545f416044820152641353d5539560da1b60648201526084016104cc565b60006108cb8360026120de565b6108d68660646120de565b6108e091906120c7565b905060006108ef8360026120de565b6108fa8660646120de565b61090491906120c7565b905061091c6001600160701b03808916908a166120de565b610928906127106120de565b61093282846120de565b10156109705760405162461bcd60e51b815260206004820152600d60248201526c53776565706e466c69703a204b60981b60448201526064016104cc565b505061097e848488886117b0565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600d55505050505050505050565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610a1c33848461196c565b50600192915050565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610a8a576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610a849084906120c7565b90915550505b610a958484846119ce565b5060019392505050565b6000600d54600114610ac35760405162461bcd60e51b81526004016104cc9061201f565b6000600d81905580610ad36109e5565b506006546040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610b2057600080fd5b505afa158015610b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b589190612098565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610ba157600080fd5b505afa158015610bb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd99190612098565b90506000610bf06001600160701b038616846120c7565b90506000610c076001600160701b038616846120c7565b90506000610c158787611a6f565b60005490915080610c53576103e8610c35610c3085876120de565b611bbd565b610c3f91906120c7565b9850610c4e60006103e8611c1b565b610c9a565b610c976001600160701b038916610c6a83876120de565b610c749190612113565b6001600160701b038916610c8884876120de565b610c929190612113565b611ca4565b98505b60008911610cfc5760405162461bcd60e51b815260206004820152602960248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015268151657d3525395115160ba1b60648201526084016104cc565b610d068a8a611c1b565b610d1286868a8a6117b0565b8115610d3b57600854610d37906001600160701b03600160701b8204811691166120de565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600d5550949695505050505050565b6005546001600160a01b03163314610ddb5760405162461bcd60e51b815260206004820152601560248201527429bbb2b2b837233634b81d102327a92124a22222a760591b60448201526064016104cc565b6006805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0396871617909155600780549091169390941692909217909255600c805461ffff191692151561ff0019169290921761010091151591909102179055565b600080600d54600114610e625760405162461bcd60e51b81526004016104cc9061201f565b6000600d81905580610e726109e5565b506006546007546040516370a0823160e01b81523060048201529395509193506001600160a01b039081169291169060009083906370a082319060240160206040518083038186803b158015610ec757600080fd5b505afa158015610edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eff9190612098565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610f4457600080fd5b505afa158015610f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7c9190612098565b30600090815260016020526040812054919250610f998888611a6f565b60005490915080610faa86856120de565b610fb49190612113565b9a5080610fc185856120de565b610fcb9190612113565b995060008b118015610fdd575060008a115b61103b5760405162461bcd60e51b815260206004820152602960248201527f53776565706e466c69703a20494e53554646494349454e545f4c495155494449604482015268151657d0955493915160ba1b60648201526084016104cc565b6110453084611cbc565b611050878d8d611665565b61105b868d8c611665565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a082319060240160206040518083038186803b15801561109a57600080fd5b505afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d29190612098565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a082319060240160206040518083038186803b15801561111457600080fd5b505afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c9190612098565b935061115a85858b8b6117b0565b81156111835760085461117f906001600160701b03600160701b8204811691166120de565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600d81905550915091565b6000610a1c3384846119ce565b600d5460011461120e5760405162461bcd60e51b81526004016104cc9061201f565b6000600d556006546007546008546040516370a0823160e01b81523060048201526001600160a01b0393841693909216916112bc91849186916001600160701b03169083906370a08231906024015b60206040518083038186803b15801561127557600080fd5b505afa158015611289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ad9190612098565b6112b791906120c7565b611665565b6008546040516370a0823160e01b81523060048201526113049183918691600160701b90046001600160701b0316906001600160a01b038416906370a082319060240161125d565b50506001600d5550565b428410156113545760405162461bcd60e51b815260206004820152601360248201527214ddd9595c1b919b1a5c0e8811561412549151606a1b60448201526064016104cc565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b9190876113a783612135565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161142092919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa15801561148b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906114c15750886001600160a01b0316816001600160a01b0316145b61150d5760405162461bcd60e51b815260206004820152601d60248201527f53776565706e466c69703a20494e56414c49445f5349474e415455524500000060448201526064016104cc565b61151889898961196c565b505050505050505050565b600d546001146115455760405162461bcd60e51b81526004016104cc9061201f565b6000600d556006546040516370a0823160e01b815230600482015261165e916001600160a01b0316906370a082319060240160206040518083038186803b15801561158f57600080fd5b505afa1580156115a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c79190612098565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116429190612098565b6008546001600160701b0380821691600160701b9004166117b0565b6001600d55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b179052915160009283928716916116f19190612150565b6000604051808303816000865af19150503d806000811461172e576040519150601f19603f3d011682016040523d82523d6000602084013e611733565b606091505b509150915081801561175d57508051158061175d57508080602001905181019061175d919061216c565b6117a95760405162461bcd60e51b815260206004820152601b60248201527f53776565706e466c69703a205452414e534645525f4641494c4544000000000060448201526064016104cc565b5050505050565b6001600160701b0384118015906117ce57506001600160701b038311155b6118115760405162461bcd60e51b815260206004820152601460248201527353776565706e466c69703a204f564552464c4f5760601b60448201526064016104cc565b60085463ffffffff42811691600160e01b9004811682039081161580159061184157506001600160701b03841615155b801561185557506001600160701b03831615155b156118d45763ffffffff811661188585600160701b6001600160701b038716025b6001600160e01b031690611d3f565b600980546001600160e01b03929092169290920201905563ffffffff81166118bc84600160701b6001600160701b03881602611876565b600a80546001600160e01b0392909216929092020190555b6008805463ffffffff8416600160e01b026001600160e01b036001600160701b03898116600160701b9081026001600160e01b03199095168c83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a1505050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260016020526040812080548392906119f69084906120c7565b90915550506001600160a01b03821660009081526001602052604081208054839290611a23908490612189565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119c191815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611ac057600080fd5b505afa158015611ad4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af891906121a1565b600b546001600160a01b038216158015945091925090611ba9578015611ba4576000611b33610c306001600160701b038088169089166120de565b90506000611b4083611bbd565b905080821115611ba1576000611b5682846120c7565b600054611b6391906120de565b9050600082611b738560056120de565b611b7d9190612189565b90506000611b8b8284612113565b90508015611b9d57611b9d8782611c1b565b5050505b50505b611bb5565b8015611bb5576000600b555b505092915050565b60006003821115611c0c575080600160028204015b81811015611c0657809150600281828581611bef57611bef6120fd565b040181611bfe57611bfe6120fd565b049050611bd2565b50919050565b8115611c16575060015b919050565b80600080828254611c2c9190612189565b90915550506001600160a01b03821660009081526001602052604081208054839290611c59908490612189565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6000818310611cb35781611cb5565b825b9392505050565b6001600160a01b03821660009081526001602052604081208054839290611ce49084906120c7565b9250508190555080600080828254611cfc91906120c7565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c98565b60006001600160701b0382166001600160e01b03841681611d6257611d626120fd565b049392505050565b6001600160a01b0381168114611d7f57600080fd5b50565b600080600080600060808688031215611d9a57600080fd5b85359450602086013593506040860135611db381611d6a565b9250606086013567ffffffffffffffff80821115611dd057600080fd5b818801915088601f830112611de457600080fd5b813581811115611df357600080fd5b896020828501011115611e0557600080fd5b9699959850939650602001949392505050565b60005b83811015611e33578181015183820152602001611e1b565b83811115611e42576000848401525b50505050565b6020815260008251806020840152611e67816040850160208701611e18565b601f01601f19169190910160400192915050565b60008060408385031215611e8e57600080fd5b8235611e9981611d6a565b946020939093013593505050565b600080600060608486031215611ebc57600080fd5b8335611ec781611d6a565b92506020840135611ed781611d6a565b929592945050506040919091013590565b600060208284031215611efa57600080fd5b8135611cb581611d6a565b8015158114611d7f57600080fd5b60008060008060808587031215611f2957600080fd5b8435611f3481611d6a565b93506020850135611f4481611d6a565b92506040850135611f5481611f05565b91506060850135611f6481611f05565b939692955090935050565b600080600080600080600060e0888a031215611f8a57600080fd5b8735611f9581611d6a565b96506020880135611fa581611d6a565b95506040880135945060608801359350608088013560ff81168114611fc957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611ff957600080fd5b823561200481611d6a565b9150602083013561201481611d6a565b809150509250929050565b60208082526012908201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b604082015260600190565b6001600160a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b6000602082840312156120aa57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156120d9576120d96120b1565b500390565b60008160001904831182151516156120f8576120f86120b1565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261213057634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415612149576121496120b1565b5060010190565b60008251612162818460208701611e18565b9190910192915050565b60006020828403121561217e57600080fd5b8151611cb581611f05565b6000821982111561219c5761219c6120b1565b500190565b6000602082840312156121b357600080fd5b8151611cb581611d6a56fea2646970667358221220ac65eeb02202c22aadc5b561ee77d221c881761020ef0ed9c65b24989707699164736f6c634300080900336080604052600160055534801561001557600080fd5b50600380546001600160a01b03191633179055610f5b806100376000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063c45a015511610066578063c45a0155146101ef578063c4d66de814610202578063dd62ed3e14610215578063de836ebd1461024057600080fd5b806395d89b41146101bf578063a9059cbb146101c7578063ba36b92d146101da57600080fd5b806323b872dd116100c857806323b872dd14610147578063313ce5671461015a57806370a08231146101745780637de1e5361461019457600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610253565b6040516101049190610b04565b60405180910390f35b61012061011b366004610b53565b610303565b6040519015158152602001610104565b61013960005481565b604051908152602001610104565b610120610155366004610b7d565b610319565b610162601281565b60405160ff9091168152602001610104565b610139610182366004610bb9565b60016020526000908152604090205481565b6004546101a7906001600160a01b031681565b6040516001600160a01b039091168152602001610104565b6100f7610393565b6101206101d5366004610b53565b61042f565b6101ed6101e8366004610c22565b61043c565b005b6003546101a7906001600160a01b031681565b6101ed610210366004610bb9565b61053c565b610139610223366004610cdb565b600260209081526000928352604080842090915290825290205481565b6101ed61024e366004610c22565b610595565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156102a357600080fd5b505afa1580156102b7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102df9190810190610d0e565b6040516020016102ef9190610da2565b604051602081830303815290604052905090565b6000610310338484610683565b50600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000191461037e576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610378908490610de8565b90915550505b6103898484846106e5565b5060019392505050565b6060600460009054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156103e357600080fd5b505afa1580156103f7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261041f9190810190610d0e565b6040516020016102ef9190610dff565b60006103103384846106e5565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b15801561047f57600080fd5b505afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190610e28565b6104dc5760405162461bcd60e51b81526004016104d390610e4a565b60405180910390fd5b6005546001146105235760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016104d3565b6000600555610533338383610786565b50506001600555565b6003546001600160a01b031633146105665760405162461bcd60e51b81526004016104d390610e4a565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b1580156105d857600080fd5b505afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106109190610e28565b61062c5760405162461bcd60e51b81526004016104d390610e4a565b6005546001146106735760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016104d3565b6000600555610533338383610937565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166000908152600160205260408120805483929061070d908490610de8565b90915550506001600160a01b0382166000908152600160205260408120805483929061073a908490610e79565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106d891815260200190565b8051600061079c82670de0b6b3a7640000610e91565b6001600160a01b0386166000908152600160205260408120805492935083929091906107c9908490610de8565b92505081905550806000808282546107e19190610de8565b90915550506040518181526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b828110156108e45760045484516001600160a01b03909116906323b872dd903090889088908690811061085f5761085f610eb0565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156108b957600080fd5b505af11580156108cd573d6000803e3d6000fd5b5050505080806108dc90610ec6565b91505061082a565b50836001600160a01b0316856001600160a01b03167f1a9ecd79d4129de1f6144bf993d21f4a1803c25ad4040ae9571f25082792125e856040516109289190610ee1565b60405180910390a35050505050565b8051600061094d82670de0b6b3a7640000610e91565b9050806000808282546109609190610e79565b90915550506001600160a01b0384166000908152600160205260408120805483929061098d908490610e79565b90915550506040518181526001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b82811015610a905760045484516001600160a01b03909116906323b872dd9088903090889086908110610a0b57610a0b610eb0565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610a6557600080fd5b505af1158015610a79573d6000803e3d6000fd5b505050508080610a8890610ec6565b9150506109d6565b50836001600160a01b0316856001600160a01b03167ffd9359b77bedf90cc62dc5e65e71caac46edc3f206e575d895e753ae8f6e88ea856040516109289190610ee1565b60005b83811015610aef578181015183820152602001610ad7565b83811115610afe576000848401525b50505050565b6020815260008251806020840152610b23816040850160208701610ad4565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610b4e57600080fd5b919050565b60008060408385031215610b6657600080fd5b610b6f83610b37565b946020939093013593505050565b600080600060608486031215610b9257600080fd5b610b9b84610b37565b9250610ba960208501610b37565b9150604084013590509250925092565b600060208284031215610bcb57600080fd5b610bd482610b37565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610c1a57610c1a610bdb565b604052919050565b60008060408385031215610c3557600080fd5b610c3e83610b37565b915060208084013567ffffffffffffffff80821115610c5c57600080fd5b818601915086601f830112610c7057600080fd5b813581811115610c8257610c82610bdb565b8060051b9150610c93848301610bf1565b8181529183018401918481019089841115610cad57600080fd5b938501935b83851015610ccb57843582529385019390850190610cb2565b8096505050505050509250929050565b60008060408385031215610cee57600080fd5b610cf783610b37565b9150610d0560208401610b37565b90509250929050565b600060208284031215610d2057600080fd5b815167ffffffffffffffff80821115610d3857600080fd5b818401915084601f830112610d4c57600080fd5b815181811115610d5e57610d5e610bdb565b610d71601f8201601f1916602001610bf1565b9150808252856020828501011115610d8857600080fd5b610d99816020840160208601610ad4565b50949350505050565b6702bb930b83832b2160c51b815260008251610dc5816008850160208701610ad4565b9190910160080192915050565b634e487b7160e01b600052601160045260246000fd5b600082821015610dfa57610dfa610dd2565b500390565b605760f81b815260008251610e1b816001850160208701610ad4565b9190910160010192915050565b600060208284031215610e3a57600080fd5b81518015158114610bd457600080fd5b60208082526015908201527429bbb2b2b837233634b81d102327a92124a22222a760591b604082015260600190565b60008219821115610e8c57610e8c610dd2565b500190565b6000816000190483118215151615610eab57610eab610dd2565b500290565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610eda57610eda610dd2565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015610f1957835183529284019291840191600101610efd565b5090969550505050505056fea2646970667358221220b9760dff8071131f829bf88bdf2cad2c1b7dddd78f9136395086ecd9d76d4bcc64736f6c63430008090033a2646970667358221220922b62c5f5449565cb4dd165f9eab8889f0f689905a1583d361ec9634f42fc4f64736f6c63430008090033

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

000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e

-----Decoded View---------------
Arg [0] : _feeToSetter (address): 0xa12916d8CaC62dA6FdC06807514194a778810b0e
Arg [1] : _routerSetter (address): 0xa12916d8CaC62dA6FdC06807514194a778810b0e

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e
Arg [1] : 000000000000000000000000a12916d8cac62da6fdc06807514194a778810b0e


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
[ 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.