ETH Price: $2,257.70 (-0.99%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy Fair Laun...206859612024-09-05 17:44:59516 days ago1725558299IN
0x63346d2b...80f65fdF6
0 ETH0.016196535.80690433
Deploy Fair Laun...206809532024-09-05 0:58:23517 days ago1725497903IN
0x63346d2b...80f65fdF6
0 ETH0.014807415.13853354
Deploy Fair Laun...206779472024-09-04 14:54:11517 days ago1725461651IN
0x63346d2b...80f65fdF6
0 ETH0.029840710.03288006
Deploy Fair Laun...206777252024-09-04 14:09:47517 days ago1725458987IN
0x63346d2b...80f65fdF6
0 ETH0.023013727.92322364
Deploy Fair Laun...206775002024-09-04 13:24:35517 days ago1725456275IN
0x63346d2b...80f65fdF6
0 ETH0.012690093.98750061
Deploy Fair Laun...206774752024-09-04 13:19:35517 days ago1725455975IN
0x63346d2b...80f65fdF6
0 ETH0.014115615.0610556
Deploy Fair Laun...206770582024-09-04 11:55:47517 days ago1725450947IN
0x63346d2b...80f65fdF6
0 ETH0.006298781.96492441
Deploy Fair Laun...206769512024-09-04 11:34:23517 days ago1725449663IN
0x63346d2b...80f65fdF6
0 ETH0.007883682.43640275
Deploy Fair Laun...206769512024-09-04 11:34:23517 days ago1725449663IN
0x63346d2b...80f65fdF6
0 ETH0.007937932.45871456
Deploy Fair Laun...206766382024-09-04 10:31:47518 days ago1725445907IN
0x63346d2b...80f65fdF6
0 ETH0.006017532.10500322
Deploy Fair Laun...206763852024-09-04 9:41:11518 days ago1725442871IN
0x63346d2b...80f65fdF6
0 ETH0.005257611.66413666
Deploy Fair Laun...206763222024-09-04 9:28:35518 days ago1725442115IN
0x63346d2b...80f65fdF6
0 ETH0.004896351.75550872
Deploy Fair Laun...206762892024-09-04 9:21:59518 days ago1725441719IN
0x63346d2b...80f65fdF6
0 ETH0.004996791.72020949
Deploy Fair Laun...206762102024-09-04 9:06:11518 days ago1725440771IN
0x63346d2b...80f65fdF6
0 ETH0.006417422.06156785
Deploy Fair Laun...206761802024-09-04 9:00:11518 days ago1725440411IN
0x63346d2b...80f65fdF6
0 ETH0.005059681.79914766
Deploy Fair Laun...206760552024-09-04 8:34:59518 days ago1725438899IN
0x63346d2b...80f65fdF6
0 ETH0.005909332.11866038
Deploy Fair Laun...206758532024-09-04 7:54:35518 days ago1725436475IN
0x63346d2b...80f65fdF6
0 ETH0.00451841.61999515
Deploy Fair Laun...206756172024-09-04 7:07:23518 days ago1725433643IN
0x63346d2b...80f65fdF6
0 ETH0.004453811.59691267
Deploy Fair Laun...206754382024-09-04 6:31:35518 days ago1725431495IN
0x63346d2b...80f65fdF6
0 ETH0.005406581.87627799
Deploy Fair Laun...206753322024-09-04 6:09:59518 days ago1725430199IN
0x63346d2b...80f65fdF6
0 ETH0.00341171.19358013
Deploy Fair Laun...206751622024-09-04 5:35:35518 days ago1725428135IN
0x63346d2b...80f65fdF6
0 ETH0.003658821.19316471
Deploy Fair Laun...206750292024-09-04 5:08:59518 days ago1725426539IN
0x63346d2b...80f65fdF6
0 ETH0.004107021.29053031
Deploy Fair Laun...206749992024-09-04 5:02:59518 days ago1725426179IN
0x63346d2b...80f65fdF6
0 ETH0.003516481.10496743
Deploy Fair Laun...206749642024-09-04 4:55:59518 days ago1725425759IN
0x63346d2b...80f65fdF6
0 ETH0.003178531.13032807
Deploy Fair Laun...206745642024-09-04 3:35:11518 days ago1725420911IN
0x63346d2b...80f65fdF6
0 ETH0.002724850.93070154
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x6101e060206859612024-09-05 17:44:59516 days ago1725558299
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206809532024-09-05 0:58:23517 days ago1725497903
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206779472024-09-04 14:54:11517 days ago1725461651
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206777252024-09-04 14:09:47517 days ago1725458987
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206775002024-09-04 13:24:35517 days ago1725456275
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206774752024-09-04 13:19:35517 days ago1725455975
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206770582024-09-04 11:55:47517 days ago1725450947
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
Transfer*206769512024-09-04 11:34:23517 days ago1725449663
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206769512024-09-04 11:34:23517 days ago1725449663
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206766382024-09-04 10:31:47518 days ago1725445907
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206763852024-09-04 9:41:11518 days ago1725442871
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206763222024-09-04 9:28:35518 days ago1725442115
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206762892024-09-04 9:21:59518 days ago1725441719
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206762102024-09-04 9:06:11518 days ago1725440771
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206761802024-09-04 9:00:11518 days ago1725440411
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206760552024-09-04 8:34:59518 days ago1725438899
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206758532024-09-04 7:54:35518 days ago1725436475
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206756172024-09-04 7:07:23518 days ago1725433643
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206754382024-09-04 6:31:35518 days ago1725431495
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206753322024-09-04 6:09:59518 days ago1725430199
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206751622024-09-04 5:35:35518 days ago1725428135
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206750292024-09-04 5:08:59518 days ago1725426539
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206749992024-09-04 5:02:59518 days ago1725426179
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206749642024-09-04 4:55:59518 days ago1725425759
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
0x6101e060206745642024-09-04 3:35:11518 days ago1725420911
0x63346d2b...80f65fdF6
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FairLaunchLimitBlockV3Factory

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 20000 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity =0.8.24;

import {Create2} from "openzeppelin-contracts/contracts/utils/Create2.sol";
import {FairLaunchLimitBlockTokenV3} from "./FairLaunchLimitBlockV3.sol";
import {ReentrancyGuard} from "openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol";
import {IFairLaunch, FairLaunchLimitBlockStruct} from "./IFairLaunch.sol";

/**
To new issuers, in order to avoid this situation, 
please use the factory contract to deploy the Token contract when deploying new contracts in the future. 

Please use a new address that has not actively initiated transactions on any chain to deploy. 
The factory contract can create the same address on each evm chain through the create2 function. 
If a player transfers ETHs to the wrong chain, you can also help the player get his ETH back by refunding his money by deploying a contract on a specific chain.
 */
contract FairLaunchLimitBlockV3Factory is IFairLaunch, ReentrancyGuard {
    uint256 public price;
    address public owner;
    address public feeTo;

    uint256 public constant FAIR_LAUNCH_LIMIT_AMOUNT = 1;
    uint256 public constant FAIR_LAUNCH_LIMIT_BLOCK = 2;

    address public refundFeeTo;
    uint256 public refundFeeRate;

    address immutable public locker;

    mapping(address => bool) public allowlist;

    // owner modifier
    modifier onlyOwner() {
        require(msg.sender == owner, "only owner");
        _;
    }

    constructor(address _feeTo, address _locker, address _positionManager, address _factory) {
        owner = msg.sender;
        refundFeeRate = 600;
        refundFeeTo = _feeTo;
        locker = _locker;
        price = 0.01 ether;

        allowlist[_positionManager] = true;
        allowlist[_factory] = true;
    }

    function setPrice(uint256 _price) public onlyOwner {
        price = _price;
    }

    function setOwner(address _owner) public onlyOwner {
        owner = _owner;
    }

    function setFeeTo(address _feeTo) public onlyOwner {
        feeTo = _feeTo;
    }

    function setRefundFeeTo(address _refundFeeTo) public onlyOwner {
        refundFeeTo = _refundFeeTo;
    }

    function setRefundFeeRate(uint256 _refundFeeRate) public onlyOwner {
        refundFeeRate = _refundFeeRate;
    }

    function getFairLaunchLimitBlockV3Address(
        uint256 salt,
        address _projectOwner,
        uint24 _poolFee,
        FairLaunchLimitBlockStruct memory params
    ) public view returns (address) {
        params.refundFeeRate = refundFeeRate;
        params.refundFeeTo = refundFeeTo;

        bytes32 _salt = keccak256(abi.encodePacked(salt));
        return
            Create2.computeAddress(
                _salt,
                keccak256(
                    abi.encodePacked(
                        type(FairLaunchLimitBlockTokenV3).creationCode,
                        abi.encode(locker, _poolFee, _projectOwner, params)
                    )
                )
            );
    }

    function deployFairLaunchLimitBlockV3Contract(
        uint256 salt,
        address _projectOwner,
        uint24 _poolFee,
        FairLaunchLimitBlockStruct memory params
    ) public payable nonReentrant {
        params.refundFeeRate = refundFeeRate;
        params.refundFeeTo = refundFeeTo;

        require(
            allowlist[params.uniswapFactory] && allowlist[params.uniswapRouter],
            "Uniswap factory or router should be in allowlist."
        );

        if (feeTo != address(0) && price > 0) {
            require(msg.value >= price, "insufficient price");

            (bool success, ) = payable(feeTo).call{value: msg.value}("");
            require(success, "Transfer failed.");
        }

        bytes32 _salt = keccak256(abi.encodePacked(salt));
        bytes memory bytecode = abi.encodePacked(
            type(FairLaunchLimitBlockTokenV3).creationCode,
            abi.encode(locker, _poolFee, _projectOwner, params)
        );
        address addr = Create2.deploy(0, _salt, bytecode);
        emit Deployed(addr, FAIR_LAUNCH_LIMIT_BLOCK);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)

pragma solidity ^0.8.20;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Not enough balance for performing a CREATE2 deploy.
     */
    error Create2InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev There's no code to deploy.
     */
    error Create2EmptyBytecode();

    /**
     * @dev The deployment failed.
     */
    error Create2FailedDeployment();

    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {
        if (address(this).balance < amount) {
            revert Create2InsufficientBalance(address(this).balance, amount);
        }
        if (bytecode.length == 0) {
            revert Create2EmptyBytecode();
        }
        /// @solidity memory-safe-assembly
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        if (addr == address(0)) {
            revert Create2FailedDeployment();
        }
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40) // Get free memory pointer

            // |                   | ↓ ptr ...  ↓ ptr + 0x0B (start) ...  ↓ ptr + 0x20 ...  ↓ ptr + 0x40 ...   |
            // |-------------------|---------------------------------------------------------------------------|
            // | bytecodeHash      |                                                        CCCCCCCCCCCCC...CC |
            // | salt              |                                      BBBBBBBBBBBBB...BB                   |
            // | deployer          | 000000...0000AAAAAAAAAAAAAAAAAAA...AA                                     |
            // | 0xFF              |            FF                                                             |
            // |-------------------|---------------------------------------------------------------------------|
            // | memory            | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |
            // | keccak(start, 85) |            ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ |

            mstore(add(ptr, 0x40), bytecodeHash)
            mstore(add(ptr, 0x20), salt)
            mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes
            let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff
            mstore8(start, 0xff)
            addr := keccak256(start, 85)
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity =0.8.24;

// IERC20
import {IERC20} from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol";
import {Meme} from "./Meme.sol";
import {IFairLaunch, FairLaunchLimitBlockStruct} from "./IFairLaunch.sol";
import {NoDelegateCall} from "./NoDelegateCall.sol";
import {IERC721} from "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";

interface IUniLocker {
    function lock(
        address lpToken,
        uint256 amountOrId,
        uint256 unlockBlock
    ) external returns (uint256 id);
}

interface IUniswapV3Factory {
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);
}

interface INonfungiblePositionManager {
    function WETH9() external pure returns (address);

    struct MintParams {
        address token0;
        address token1;
        uint24 fee;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        address recipient;
        uint256 deadline;
    }

    function mint(
        MintParams calldata params
    )
        external
        payable
        returns (
            uint256 tokenId,
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        );

    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable returns (address pool);

    function refundETH() external payable;

}

contract FairLaunchLimitBlockTokenV3 is
    IFairLaunch,
    Meme,
    ReentrancyGuard,
    NoDelegateCall
{
    using SafeERC20 for IERC20;
    using Math for uint256;

    // refund command
    // before start, you can always refund
    // send 0.0002 ether to the contract address to refund all ethers
    uint256 public constant REFUND_COMMAND = 0.0002 ether;

    // claim command
    // after start, you can claim extra eth
    // send 0.0002 ether to the contract address to claim extra eth
    uint256 public constant CLAIM_COMMAND = 0.0002 ether;

    // start trading command
    // if the untilBlockNumber reached, you can start trading with this command
    // send 0.0005 ether to the contract address to start trading
    uint256 public constant START_COMMAND = 0.0005 ether;

    // mint command
    // if the untilBlockNumber reached, you can mint token with this command
    // send 0.0001 ether to the contract address to get tokens
    uint256 public constant MINT_COMMAND = 0.0001 ether;

    // minimal fund
    uint256 public constant MINIMAL_FUND = 0.0001 ether;

    // is trading started
    bool public started;

    address public immutable uniswapPositionManager;
    address public immutable uniswapFactory;

    // fund balance
    mapping(address => uint256) public fundBalanceOf;

    // is address minted
    mapping(address => bool) public minted;

    // total dispatch amount
    uint256 public immutable totalDispatch;

    // until block number
    uint256 public immutable untilBlockNumber;

    // total ethers funded
    uint256 public totalEthers;

    // soft top cap
    uint256 public immutable softTopCap;

    // refund fee rate
    uint256 public immutable refundFeeRate;

    // refund fee to
    address public immutable refundFeeTo;
    
    // is address claimed extra eth
    mapping(address => bool) public claimed;

    // recipient must be a contract address of IUniLocker
    address public immutable locker;

    // feePool
    uint24 public immutable poolFee;

    // project owner, whill receive the locked lp
    address public immutable projectOwner;

    constructor(
        address _locker,
        uint24 _poolFee,
        address _projectOwner,
        FairLaunchLimitBlockStruct memory params
    ) Meme(params.name, params.symbol, params.meta) {
        started = false;

        totalDispatch = params.totalSupply;
        _mint(address(this), totalDispatch);

        // set uniswap router
        uniswapPositionManager = params.uniswapRouter;
        uniswapFactory = params.uniswapFactory;

        meta = params.meta;

        untilBlockNumber = params.afterBlock + block.number;
        softTopCap = params.softTopCap;

        refundFeeRate = params.refundFeeRate;
        refundFeeTo = params.refundFeeTo;

        locker = _locker;
        projectOwner = _projectOwner;

        poolFee = _poolFee;
    }

    receive() external payable noDelegateCall {
        if (msg.sender == uniswapPositionManager) {
            return;
        }

        require(
            tx.origin == msg.sender,
            "FairMint: can not send command from contract."
        );

        if (started) {
            // after started
            if (msg.value == MINT_COMMAND) {
                // mint token
                _mintToken();
            } else if (msg.value == CLAIM_COMMAND) {
                _claimExtraETH();
            } else {
                revert("FairMint: invalid command - mint or claim only");
            }
        } else {
            // before started
            if (canStart()) {
                if (msg.value == REFUND_COMMAND) {
                    // before start, you can always refund
                    _refund();
                } else if (msg.value == START_COMMAND) {
                    // start trading, add liquidity to uniswap
                    _start();
                } else {
                    revert("FairMint: invalid command - start or refund only");
                }
            } else {
                if (msg.value == REFUND_COMMAND) {
                    // before start, you can always refund
                    _refund();
                } else {
                    // before start, any other value will be considered as fund
                    _fund();
                }
            }
        }
    }

    function canStart() public view returns (bool) {
        // return block.number >= untilBlockNumber || totalEthers >= softTopCap;
        // eth balance of this contract is more than zero
        return block.number >= untilBlockNumber;
    }

    // get extra eth
    function getExtraETH(address _addr) public view returns (uint256) {
        if (totalEthers > softTopCap) {
            uint256 claimAmount = (fundBalanceOf[_addr] *
                (totalEthers - softTopCap)) / totalEthers;
            return claimAmount;
        }
        return 0;
    }

    // claim extra eth
    function _claimExtraETH() private nonReentrant {
        // if the eth balance of this contract is more than soft top cap, withdraw it
        // must after start
        require(started, "FairMint: withdraw extra eth must after start");
        require(softTopCap > 0, "FairMint: soft top cap must be set");
        require(totalEthers > softTopCap, "FairMint: no extra eth");

        uint256 extra = totalEthers - softTopCap;
        uint256 fundAmount = fundBalanceOf[msg.sender];
        require(fundAmount > 0, "FairMint: no fund");

        require(!claimed[msg.sender], "FairMint: already claimed");
        claimed[msg.sender] = true;

        uint256 claimAmount = (fundAmount * extra) / totalEthers;

        // send to msg sender
        (bool success, ) = msg.sender.call{value: claimAmount + CLAIM_COMMAND}(
            ""
        );
        require(success, "FairMint: withdraw failed");
    }

    // estimate how many tokens you might get
    function mightGet(address account) public view returns (uint256) {
        if (totalEthers == 0) {
            return 0;
        }
        uint256 _mintAmount = (totalDispatch * fundBalanceOf[account]) /
            2 /
            totalEthers;
        return _mintAmount;
    }

    function _fund() private nonReentrant {
        // require msg.value > 0.0001 ether
        require(!started, "FairMint: already started");
        require(msg.value >= MINIMAL_FUND, "FairMint: value too low");
        fundBalanceOf[msg.sender] += msg.value;
        totalEthers += msg.value;
        emit FundEvent(msg.sender, msg.value, 0);
    }

    function _refund() private nonReentrant {
        require(!started, "FairMint: already started");

        address account = msg.sender;
        uint256 amount = fundBalanceOf[account];
        require(amount > 0, "FairMint: no fund");
        fundBalanceOf[account] = 0;
        totalEthers -= amount;
        
        uint256 fee = (amount * refundFeeRate) / 10000;
        assert(fee < amount);

        if (fee > 0 && refundFeeTo != address(0)) {
            (bool success, ) = refundFeeTo.call{value: fee}("");
            require(success, "FairMint: refund fee failed");
        }

        (bool success1, ) = account.call{value: amount - fee + REFUND_COMMAND}(
            ""
        );
        require(success1, "FairMint: refund failed");
        emit RefundEvent(account, 0, amount);
    }

    function _mintToken() private nonReentrant {
        require(started, "FairMint: not started");
        require(msg.sender == tx.origin, "FairMint: can not mint to contract.");
        require(!minted[msg.sender], "FairMint: already minted");

        minted[msg.sender] = true;

        uint256 _mintAmount = mightGet(msg.sender);

        require(_mintAmount > 0, "FairMint: mint amount is zero");
        assert(_mintAmount <= totalDispatch / 2);
        _transfer(address(this), msg.sender, _mintAmount);

        (bool success, ) = msg.sender.call{value: MINT_COMMAND}("");
        require(success, "FairMint: mint failed");
    }

    function _start() private nonReentrant {
        require(!started, "FairMint: already started");
        require(balanceOf(address(this)) > 0, "FairMint: no balance");
        INonfungiblePositionManager _positionManager = INonfungiblePositionManager(
                uniswapPositionManager
            );

        address _weth = _positionManager.WETH9();

        address _poolAddress = IUniswapV3Factory(uniswapFactory).getPool(
            address(this),
            _weth,
            poolFee
        );

        require(
            _poolAddress == address(0),
            "FairMint: pool already exists, can not start, please refund"
        );

        uint256 totalAdd = softTopCap > 0
            ? softTopCap < totalEthers ? softTopCap : totalEthers
            : totalEthers;

        _approve(
            address(this),
            uniswapPositionManager,
            type(uint256).max,
            false
        );

        (
            address token0,
            address token1,
            uint256 amount0,
            uint256 amount1,

        ) = _initPool(_weth, totalAdd, _positionManager);

        (
            uint256 tokenId,
            uint128 liquidity,
            uint256 _amount0,
            uint256 _amount1
        ) = _mintLiquidity(
                _positionManager,
                token0,
                token1,
                amount0,
                amount1,
                totalAdd
            );
        started = true;

        emit LaunchEvent(address(this), _amount0, _amount1, liquidity);
        // _positionManager.refundETH(); // dumplia

        // lock lp into contract forever
        if (locker != address(0)) {
            IERC721(uniswapPositionManager).approve(locker, tokenId);
            IUniLocker _locker = IUniLocker(locker);
            uint256 _lockId = _locker.lock(
                uniswapPositionManager,
                tokenId,
                type(uint256).max
            );
            IERC721(locker).transferFrom(address(this), projectOwner, _lockId);
        }

        (bool success, ) = msg.sender.call{value: START_COMMAND}("");
        require(success, "FairMint: mint failed");
    }

    function _mintLiquidity(
        INonfungiblePositionManager _positionManager,
        address token0,
        address token1,
        uint256 amount0,
        uint256 amount1,
        uint256 totalAdd
    ) private returns (uint256, uint128, uint256, uint256) {
        INonfungiblePositionManager.MintParams
            memory params = INonfungiblePositionManager.MintParams({
                token0: token0,
                token1: token1,
                fee: poolFee,
                //tickLower: -887250,  // base -887220,
                //tickUpper: 887250, // base 887220,
                tickLower: -887220,
                tickUpper: 887220,
                amount0Desired: amount0,
                amount1Desired: amount1,
                amount0Min: (amount0 * 98) / 100,
                amount1Min: (amount1 * 98) / 100,
                recipient: locker == address(0) ? address(0) : address(this),
                deadline: block.timestamp + 1 hours
            });

        (
            uint256 _tokenId,
            uint128 _liquidity,
            uint256 _amount0,
            uint256 _amount1
        ) = _positionManager.mint{value: totalAdd}(params);
        _positionManager.refundETH();

        return (_tokenId, _liquidity, _amount0, _amount1);
    }

    function _initPool(
        address _weth,
        uint256 totalAdd,
        INonfungiblePositionManager _positionManager
    )
        private
        returns (
            address token0,
            address token1,
            uint256 amount0,
            uint256 amount1,
            uint160 sqrtPriceX96
        )
    {
        (token0, token1) = address(this) < _weth
            ? (address(this), _weth)
            : (_weth, address(this));

        (amount0, amount1) = address(this) < _weth
            ? (totalDispatch / 2, totalAdd)
            : (totalAdd, totalDispatch / 2);

        sqrtPriceX96 = getSqrtPriceX96(amount0, amount1);

        _positionManager.createAndInitializePoolIfNecessary(
            token0,
            token1,
            poolFee,
            sqrtPriceX96
        );
    }

    function getSqrtPriceX96(
        uint256 amount0,
        uint256 amount1
    ) internal pure returns (uint160) {
        require(amount0 > 0 && amount1 > 0, "Amounts must be greater than 0");

        uint256 price = (amount1 * 1e18) / amount0; 
        uint256 sqrtPrice = price.sqrt();
        uint256 sqrtPriceX96Full = (sqrtPrice << 96) / 1e9; 
        return uint160(sqrtPriceX96Full);
    }
}

library Math {
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 result = a;
        uint256 k = a / 2 + 1;
        while (k < result) {
            result = k;
            k = (a / k + k) / 2;
        }
        return result;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 5 of 18 : IFairLaunch.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IFairLaunch {
    event Deployed(address indexed addr, uint256 _type);
    event FundEvent(
        address indexed to,
        uint256 ethAmount,
        uint256 amountOfTokens
    );

    event LaunchEvent(
        address indexed to,
        uint256 amount,
        uint256 ethAmount,
        uint256 liquidity
    );
    event RefundEvent(address indexed from, uint256 amount, uint256 eth);
}

struct FairLaunchLimitAmountStruct {
    uint256 price;
    uint256 amountPerUnits;
    uint256 totalSupply;
    address launcher;
    address uniswapRouter;
    address uniswapFactory;
    string name;
    string symbol;
    string meta;
    uint256 eachAddressLimitEthers;
    uint256 refundFeeRate;
    address refundFeeTo;
}

struct FairLaunchLimitBlockStruct {
    uint256 totalSupply;
    address uniswapRouter;
    address uniswapFactory;
    string name;
    string symbol;
    string meta;
    uint256 afterBlock;
    uint256 softTopCap;
    uint256 refundFeeRate;
    address refundFeeTo;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

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

import {IMeme} from "./IMeme.sol";
import {ERC20} from "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

contract Meme is IMeme, ERC20 {
    string public override meta;

    constructor(
        string memory name,
        string memory symbol,
        string memory _meta) ERC20(name, symbol) {
        meta = _meta;
    }

    function _update(address from, address to, uint256 value) internal virtual override {
        super._update(from, to, value);
    }
}

File 9 of 18 : NoDelegateCall.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;

/// @title Prevents delegatecall to a contract
/// @notice Base contract that provides a modifier for preventing delegatecall to methods in a child contract
abstract contract NoDelegateCall {
    /// @dev The original address of this contract
    address private immutable original;

    constructor() {
        // Immutables are computed in the init code of the contract, and then inlined into the deployed bytecode.
        // In other words, this variable won't change when it's checked at runtime.
        original = address(this);
    }

    /// @dev Private method is used instead of inlining into modifier because modifiers are copied into each method,
    ///     and the use of immutable means the address bytes are copied in every place the modifier is used.
    function checkNotDelegateCall() private view {
        require(address(this) == original);
    }

    /// @notice Prevents delegatecall into the modified method
    modifier noDelegateCall() {
        checkNotDelegateCall();
        _;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

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

import {IERC20Metadata} from "openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";

interface IMeme is IERC20Metadata {
    function meta() external view returns (string memory);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"},{"internalType":"address","name":"_locker","type":"address"},{"internalType":"address","name":"_positionManager","type":"address"},{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Create2EmptyBytecode","type":"error"},{"inputs":[],"name":"Create2FailedDeployment","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"Create2InsufficientBalance","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_type","type":"uint256"}],"name":"Deployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOfTokens","type":"uint256"}],"name":"FundEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LaunchEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"RefundEvent","type":"event"},{"inputs":[],"name":"FAIR_LAUNCH_LIMIT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FAIR_LAUNCH_LIMIT_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"_projectOwner","type":"address"},{"internalType":"uint24","name":"_poolFee","type":"uint24"},{"components":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"uniswapFactory","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"meta","type":"string"},{"internalType":"uint256","name":"afterBlock","type":"uint256"},{"internalType":"uint256","name":"softTopCap","type":"uint256"},{"internalType":"uint256","name":"refundFeeRate","type":"uint256"},{"internalType":"address","name":"refundFeeTo","type":"address"}],"internalType":"struct FairLaunchLimitBlockStruct","name":"params","type":"tuple"}],"name":"deployFairLaunchLimitBlockV3Contract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"_projectOwner","type":"address"},{"internalType":"uint24","name":"_poolFee","type":"uint24"},{"components":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"uniswapFactory","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"meta","type":"string"},{"internalType":"uint256","name":"afterBlock","type":"uint256"},{"internalType":"uint256","name":"softTopCap","type":"uint256"},{"internalType":"uint256","name":"refundFeeRate","type":"uint256"},{"internalType":"address","name":"refundFeeTo","type":"address"}],"internalType":"struct FairLaunchLimitBlockStruct","name":"params","type":"tuple"}],"name":"getFairLaunchLimitBlockV3Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundFeeTo","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":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_refundFeeRate","type":"uint256"}],"name":"setRefundFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_refundFeeTo","type":"address"}],"name":"setRefundFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200497e3803806200497e8339810160408190526200003491620000cc565b6001600081815560028054336001600160a01b031991821617909155610258600555600480549091166001600160a01b03978816179055938516608052662386f26fc100008155918416835260066020526040808420805460ff19908116851790915591909416835292909120805490921617905562000129565b80516001600160a01b0381168114620000c757600080fd5b919050565b60008060008060808587031215620000e357600080fd5b620000ee85620000af565b9350620000fe60208601620000af565b92506200010e60408601620000af565b91506200011e60608601620000af565b905092959194509250565b60805161482b620001536000396000818161035b0152818161076b015261098b015261482b6000f3fe608060405260043610620001075760003560e01c806391b7f5ed1162000095578063b512b8151162000060578063b512b81514620002fd578063c283c5c31462000322578063d7b96d4e1462000347578063f46901ed146200037d57600080fd5b806391b7f5ed1462000256578063a035b1fe146200027b578063a7cd52cb1462000293578063a8e83e2614620002d857600080fd5b80635880f43311620000d65780635880f43314620001e257806366d914cb14620001f957806367e4c2f814620002105780638da5cb5b146200022757600080fd5b8063017e7e58146200010c57806313af4035146200016557806332c4f2bf146200018c578063544d46a314620001b3575b600080fd5b3480156200011957600080fd5b506003546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156200017257600080fd5b506200018a6200018436600462000dcc565b620003a2565b005b3480156200019957600080fd5b50620001a460055481565b6040519081526020016200015c565b348015620001c057600080fd5b506004546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b348015620001ef57600080fd5b50620001a4600281565b6200018a6200020a36600462000ef9565b62000470565b3480156200021d57600080fd5b50620001a4600181565b3480156200023457600080fd5b506002546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156200026357600080fd5b506200018a620002753660046200105e565b62000861565b3480156200028857600080fd5b50620001a460015481565b348015620002a057600080fd5b50620002c7620002b236600462000dcc565b60066020526000908152604090205460ff1681565b60405190151581526020016200015c565b348015620002e557600080fd5b506200013b620002f736600462000ef9565b620008e9565b3480156200030a57600080fd5b506200018a6200031c3660046200105e565b62000a1e565b3480156200032f57600080fd5b506200018a6200034136600462000dcc565b62000aa6565b3480156200035457600080fd5b506200013b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156200038a57600080fd5b506200018a6200039c36600462000dcc565b62000b70565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e65720000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6200047a62000c3a565b60055461010082015260045473ffffffffffffffffffffffffffffffffffffffff90811661012083015260408083015190911660009081526006602052205460ff168015620004f3575060208082015173ffffffffffffffffffffffffffffffffffffffff1660009081526006909152604090205460ff165b62000581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f556e697377617020666163746f7279206f7220726f757465722073686f756c6460448201527f20626520696e20616c6c6f776c6973742e000000000000000000000000000000606482015260840162000420565b60035473ffffffffffffffffffffffffffffffffffffffff1615801590620005ab57506000600154115b15620006ef576001543410156200061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742070726963650000000000000000000000000000604482015260640162000420565b60035460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d80600081146200067b576040519150601f19603f3d011682016040523d82523d6000602084013e62000680565b606091505b5050905080620006ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e00000000000000000000000000000000604482015260640162000420565b505b6000846040516020016200070591815260200190565b604051602081830303815290604052805190602001209050600060405180602001620007319062000d94565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f9091011660408190526200079a907f000000000000000000000000000000000000000000000000000000000000000090879089908890602001620010ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620007d8929160200162001249565b60405160208183030381529060405290506000620007f96000848462000c7e565b90508073ffffffffffffffffffffffffffffffffffffffff167fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e160026040516200084591815260200190565b60405180910390a25050506200085b6001600055565b50505050565b60025473ffffffffffffffffffffffffffffffffffffffff163314620008e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600155565b60055461010082015260045473ffffffffffffffffffffffffffffffffffffffff16610120820152604080516020810186905260009182910160405160208183030381529060405280519060200120905062000a148160405180602001620009519062000d94565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620009ba907f00000000000000000000000000000000000000000000000000000000000000009089908b908a90602001620010ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620009f8929160200162001249565b6040516020818303038152906040528051906020012062000d61565b9695505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000aa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600555565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000bf3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60026000540362000c77576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b60008347101562000cc5576040517fe4bbecac0000000000000000000000000000000000000000000000000000000081524760048201526024810185905260440162000420565b815160000362000d01576040517f4ca249dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282516020840186f5905073ffffffffffffffffffffffffffffffffffffffff811662000d5a576040517f741752c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b600062000d5a8383306000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b613579806200127d83390190565b803573ffffffffffffffffffffffffffffffffffffffff8116811462000dc757600080fd5b919050565b60006020828403121562000ddf57600080fd5b62000d5a8262000da2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610140810167ffffffffffffffff8111828210171562000e405762000e4062000dea565b60405290565b600082601f83011262000e5857600080fd5b813567ffffffffffffffff8082111562000e765762000e7662000dea565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171562000ebf5762000ebf62000dea565b8160405283815286602085880101111562000ed957600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121562000f1057600080fd5b8435935062000f226020860162000da2565b9250604085013562ffffff8116811462000f3b57600080fd5b9150606085013567ffffffffffffffff8082111562000f5957600080fd5b90860190610140828903121562000f6f57600080fd5b62000f7962000e19565b8235815262000f8b6020840162000da2565b602082015262000f9e6040840162000da2565b604082015260608301358281111562000fb657600080fd5b62000fc48a82860162000e46565b60608301525060808301358281111562000fdd57600080fd5b62000feb8a82860162000e46565b60808301525060a0830135828111156200100457600080fd5b620010128a82860162000e46565b60a08301525060c083013560c082015260e083013560e08201526101009150818301358282015261012091506200104b82840162000da2565b8282015280935050505092959194509250565b6000602082840312156200107157600080fd5b5035919050565b60005b83811015620010955781810151838201526020016200107b565b50506000910152565b60008151808452620010b881602086016020860162001078565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835262ffffff86166020840152808516604084015250608060608301528251608083015260208301516200115060a084018273ffffffffffffffffffffffffffffffffffffffff169052565b50604083015173ffffffffffffffffffffffffffffffffffffffff1660c0830152606083015161014060e08401819052620011906101c08501836200109e565b915060808501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80610100818786030181880152620011d085846200109e565b945060a08801519250610120828887030181890152620011f186856200109e565b60c08a01519589019590955260e08901516101608901529088015161018088015287015173ffffffffffffffffffffffffffffffffffffffff81166101a08801529293506200123e915050565b509695505050505050565b600083516200125d81846020880162001078565b8351908301906200127381836020880162001078565b0194935050505056fe6101e06040523480156200001257600080fd5b5060405162003579380380620035798339810160408190526200003591620003d4565b6060810151608082015160a083015182826003620000548382620005d2565b506004620000638282620005d2565b50600591506200007690508282620005d2565b5050600160065550503060808190526007805460ff19169055815160e0819052620000a291906200012e565b60208101516001600160a01b0390811660a0908152604083015190911660c052810151600590620000d49082620005d2565b50438160c00151620000e791906200069e565b61010090815260e0820151610120908152908201516101405201516001600160a01b0390811661016052928316610180529091166101c05262ffffff166101a052620006c6565b6001600160a01b0382166200015e5760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b6200016c6000838362000170565b5050565b6200017d83838362000182565b505050565b6001600160a01b038316620001b1578060026000828254620001a591906200069e565b90915550620002259050565b6001600160a01b03831660009081526020819052604090205481811015620002065760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000155565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002435760028054829003905562000262565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002a891815260200190565b60405180910390a3505050565b80516001600160a01b0381168114620002cd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b03811182821017156200030e576200030e620002d2565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200033f576200033f620002d2565b604052919050565b600082601f8301126200035957600080fd5b81516001600160401b03811115620003755762000375620002d2565b60206200038b601f8301601f1916820162000314565b8281528582848701011115620003a057600080fd5b60005b83811015620003c0578581018301518282018401528201620003a3565b506000928101909101919091529392505050565b60008060008060808587031215620003eb57600080fd5b620003f685620002b5565b9350602085015162ffffff811681146200040f57600080fd5b92506200041f60408601620002b5565b60608601519092506001600160401b03808211156200043d57600080fd5b9086019061014082890312156200045357600080fd5b6200045d620002e8565b825181526200046f60208401620002b5565b60208201526200048260408401620002b5565b60408201526060830151828111156200049a57600080fd5b620004a88a82860162000347565b606083015250608083015182811115620004c157600080fd5b620004cf8a82860162000347565b60808301525060a083015182811115620004e857600080fd5b620004f68a82860162000347565b60a08301525060c083015160c082015260e083015160e08201526101009150818301518282015261012091506200052f828401620002b5565b8282015280935050505092959194509250565b600181811c908216806200055757607f821691505b6020821081036200057857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017d576000816000526020600020601f850160051c81016020861015620005a95750805b601f850160051c820191505b81811015620005ca57828155600101620005b5565b505050505050565b81516001600160401b03811115620005ee57620005ee620002d2565b6200060681620005ff845462000542565b846200057e565b602080601f8311600181146200063e5760008415620006255750858301515b600019600386901b1c1916600185901b178555620005ca565b600085815260208120601f198616915b828110156200066f578886015182559484019460019091019084016200064e565b50858210156200068e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620006c057634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c051612d4c6200082d600039600081816107b10152611a3801526000818161048a0152818161153c01528181612294015261236e015260008181610897015281816117ef015281816118660152818161198101528181611a6a015261241401526000818161060f0152818161116a01526111ab0152600081816105c1015261111d01526000818161098801528181610d2401528181610db801528181610e2b0152818161166501528181611696015281816116c401528181611e2d0152611e6001526000818161036d01528181610668015261094f0152600081816106ff01528181610bb801528181611dcd015281816121de015261220e01526000818161074e01526115690152600081816102270152818161091e0152818161145b015281816116ec01528181611895015261192c015260006109c20152612d4c6000f3fe6080604052600436106102025760003560e01c8063825521701161011d578063c884ef83116100b0578063dd62ed3e1161007f578063ec30903811610064578063ec30903814610940578063f570ee6b14610976578063fb5d5d4d1461078557600080fd5b8063dd62ed3e146108b9578063e5047b301461090c57600080fd5b8063c884ef8314610813578063c885044e14610843578063d35e7efc14610858578063d7b96d4e1461088557600080fd5b80639ecf0090116100ec5780639ecf0090146105e3578063a4475ce41461079f578063a9059cbb146107d3578063a92bc58a146107f357600080fd5b806382552170146107215780638bdb2afa1461073c57806395d89b4114610770578063996eba2d1461078557600080fd5b8063313ce567116101955780635ce38d99116101645780635ce38d991461065657806368b63c241461068a57806370a08231146106aa5780637b0fa954146106ed57600080fd5b8063313ce5671461059357806332c4f2bf146105af578063475a519f146105e3578063544d46a3146105fd57600080fd5b806318160ddd116101d157806318160ddd146105145780631e7269c5146105295780631f2698ab1461055957806323b872dd1461057357600080fd5b806306fdde031461044d578063089fe6aa14610478578063095ea7b3146104c05780630a4625af146104f057600080fd5b366104485761020f6109aa565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146102e6573233146102c65760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a2063616e206e6f742073656e6420636f6d6d616e64206660448201527f726f6d20636f6e74726163742e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b60075460ff161561036b57655af3107a400034036102e8576102e66109ee565b005b65b5e620f4800034036102fd576102e6610ca0565b60405162461bcd60e51b815260206004820152602e60248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d206d696e7460448201527f206f7220636c61696d206f6e6c7900000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000431061042b5765b5e620f4800034036103a7576102e661101b565b6601c6bf5263400034036103bd576102e661139f565b60405162461bcd60e51b815260206004820152603060248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d207374617260448201527f74206f7220726566756e64206f6e6c790000000000000000000000000000000060648201526084016102bd565b65b5e620f480003403610440576102e661101b565b6102e6611b81565b600080fd5b34801561045957600080fd5b50610462611cb4565b60405161046f9190612924565b60405180910390f35b34801561048457600080fd5b506104ac7f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff909116815260200161046f565b3480156104cc57600080fd5b506104e06104db3660046129b6565b611d46565b604051901515815260200161046f565b3480156104fc57600080fd5b50610506600a5481565b60405190815260200161046f565b34801561052057600080fd5b50600254610506565b34801561053557600080fd5b506104e06105443660046129e2565b60096020526000908152604090205460ff1681565b34801561056557600080fd5b506007546104e09060ff1681565b34801561057f57600080fd5b506104e061058e3660046129ff565b611d60565b34801561059f57600080fd5b506040516012815260200161046f565b3480156105bb57600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ef57600080fd5b50610506655af3107a400081565b34801561060957600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161046f565b34801561066257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561069657600080fd5b506105066106a53660046129e2565b611d84565b3480156106b657600080fd5b506105066106c53660046129e2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106f957600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561072d57600080fd5b506105066601c6bf5263400081565b34801561074857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561077c57600080fd5b50610462611e0c565b34801561079157600080fd5b5061050665b5e620f4800081565b3480156107ab57600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156107df57600080fd5b506104e06107ee3660046129b6565b611e1b565b3480156107ff57600080fd5b5061050661080e3660046129e2565b611e29565b34801561081f57600080fd5b506104e061082e3660046129e2565b600b6020526000908152604090205460ff1681565b34801561084f57600080fd5b50610462611ebd565b34801561086457600080fd5b506105066108733660046129e2565b60086020526000908152604090205481565b34801561089157600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156108c557600080fd5b506105066108d4366004612a40565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561091857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561094c57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000004310156104e0565b34801561098257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146109ec57600080fd5b565b6109f6611f4b565b60075460ff16610a485760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206e6f742073746172746564000000000000000000000060448201526064016102bd565b333214610abd5760405162461bcd60e51b815260206004820152602360248201527f466169724d696e743a2063616e206e6f74206d696e7420746f20636f6e74726160448201527f63742e000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b3360009081526009602052604090205460ff1615610b1d5760405162461bcd60e51b815260206004820152601860248201527f466169724d696e743a20616c7265616479206d696e746564000000000000000060448201526064016102bd565b33600081815260096020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590610b5f90611d84565b905060008111610bb15760405162461bcd60e51b815260206004820152601d60248201527f466169724d696e743a206d696e7420616d6f756e74206973207a65726f00000060448201526064016102bd565b610bdc60027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b811115610beb57610beb612ae3565b610bf6303383611f8e565b6040516000903390655af3107a4000908381818185875af1925050503d8060008114610c3e576040519150601f19603f3d011682016040523d82523d6000602084013e610c43565b606091505b5050905080610c945760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b50506109ec6001600655565b610ca8611f4b565b60075460ff16610d205760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a20776974686472617720657874726120657468206d757360448201527f742061667465722073746172740000000000000000000000000000000000000060648201526084016102bd565b60007f000000000000000000000000000000000000000000000000000000000000000011610db65760405162461bcd60e51b815260206004820152602260248201527f466169724d696e743a20736f667420746f7020636170206d757374206265207360448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000600a5411610e275760405162461bcd60e51b815260206004820152601660248201527f466169724d696e743a206e6f206578747261206574680000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000600a54610e579190612b12565b3360009081526008602052604090205490915080610eb75760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b336000908152600b602052604090205460ff1615610f175760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920636c61696d65640000000000000060448201526064016102bd565b336000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600a54610f5c8484612b25565b610f669190612aa8565b9050600033610f7b65b5e620f4800084612b3c565b604051600081818185875af1925050503d8060008114610fb7576040519150601f19603f3d011682016040523d82523d6000602084013e610fbc565b606091505b505090508061100d5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a207769746864726177206661696c65640000000000000060448201526064016102bd565b505050506109ec6001600655565b611023611f4b565b60075460ff16156110765760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b33600081815260086020526040902054806110d35760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120819055600a805483929061110d908490612b12565b90915550600090506127106111427f000000000000000000000000000000000000000000000000000000000000000084612b25565b61114c9190612aa8565b905081811061115d5761115d612ae3565b6000811180156111a257507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615155b156112795760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b50509050806112775760405162461bcd60e51b815260206004820152601b60248201527f466169724d696e743a20726566756e6420666565206661696c6564000000000060448201526064016102bd565b505b600073ffffffffffffffffffffffffffffffffffffffff841665b5e620f480006112a38486612b12565b6112ad9190612b3c565b604051600081818185875af1925050503d80600081146112e9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ee565b606091505b505090508061133f5760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a20726566756e64206661696c656400000000000000000060448201526064016102bd565b60408051600081526020810185905273ffffffffffffffffffffffffffffffffffffffff8616917fb24b09fd2e8e4d8904c3c26f3e935824e032891520ffda419dec9f086b0e1eea910160405180910390a2505050506109ec6001600655565b6113a7611f4b565b60075460ff16156113fa5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b30600090815260208190526040812054116114575760405162461bcd60e51b815260206004820152601460248201527f466169724d696e743a206e6f2062616c616e636500000000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000905060008173ffffffffffffffffffffffffffffffffffffffff16634aa4a4fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612b4f565b6040517f1698ee8200000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff808316602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301529192506000917f00000000000000000000000000000000000000000000000000000000000000001690631698ee8290606401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190612b4f565b905073ffffffffffffffffffffffffffffffffffffffff8116156116605760405162461bcd60e51b815260206004820152603b60248201527f466169724d696e743a20706f6f6c20616c7265616479206578697374732c206360448201527f616e206e6f742073746172742c20706c6561736520726566756e64000000000060648201526084016102bd565b6000807f00000000000000000000000000000000000000000000000000000000000000001161169157600a546116e4565b600a547f0000000000000000000000000000000000000000000000000000000000000000106116c257600a546116e4565b7f00000000000000000000000000000000000000000000000000000000000000005b9050611733307f00000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600061203e565b60008060008061174487868a612187565b5093509350935093506000806000806117618c898989898e612320565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051838152602081018390526fffffffffffffffffffffffffffffffff8516918101919091529397509195509350915030907fef1e73540aed31615f5f09b178cff91261e831560c37718c23862e93a3fc3ceb9060600160405180910390a27f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615611acb576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401600060405180830381600087803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b50506040517fe2ab691d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018890527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60448301527f000000000000000000000000000000000000000000000000000000000000000093506000925083169063e2ab691d906064016020604051808303816000875af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612b6c565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018390529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b158015611ab057600080fd5b505af1158015611ac4573d6000803e3d6000fd5b5050505050505b60405160009033906601c6bf52634000908381818185875af1925050503d8060008114611b14576040519150601f19603f3d011682016040523d82523d6000602084013e611b19565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b505050505050505050505050506109ec6001600655565b611b89611f4b565b60075460ff1615611bdc5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b655af3107a4000341015611c325760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a2076616c756520746f6f206c6f7700000000000000000060448201526064016102bd565b3360009081526008602052604081208054349290611c51908490612b3c565b9250508190555034600a6000828254611c6a9190612b3c565b9091555050604080513481526000602082015233917f4c10b3a5590fcdc7a6f3b564c09870bd275facbd00a0bcf68c8b069e32f9508b910160405180910390a26109ec6001600655565b606060038054611cc390612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef90612b85565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050505050905090565b600033611d54818585612587565b60019150505b92915050565b600033611d6e858285612594565b611d79858585611f8e565b506001949350505050565b6000600a54600003611d9857506000919050565b600a5473ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812054909190600290611df1907f0000000000000000000000000000000000000000000000000000000000000000612b25565b611dfb9190612aa8565b611e059190612aa8565b9392505050565b606060048054611cc390612b85565b600033611d54818585611f8e565b60007f0000000000000000000000000000000000000000000000000000000000000000600a541115611eb557600a54600090611e857f000000000000000000000000000000000000000000000000000000000000000082612b12565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902054611dfb9190612b25565b506000919050565b60058054611eca90612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef690612b85565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b600260065403611f87576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600655565b73ffffffffffffffffffffffffffffffffffffffff8316611fde576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff821661202e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b61203983838361265d565b505050565b73ffffffffffffffffffffffffffffffffffffffff841661208e576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff83166120de576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015612181578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161217891815260200190565b60405180910390a35b50505050565b60008080808073ffffffffffffffffffffffffffffffffffffffff881630106121b15787306121b4565b30885b909550935073ffffffffffffffffffffffffffffffffffffffff88163010612207578661220260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b612234565b61223260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b875b90935091506122438383612668565b6040517f13ead56200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301528083166064830152919250908716906313ead562906084016020604051808303816000875af11580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123149190612b4f565b50939792965093509350565b60008060008060006040518061016001604052808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2764c60020b8152602001620d89b460020b815260200189815260200188815260200160648a60626123e79190612b25565b6123f19190612aa8565b815260200160646124038a6062612b25565b61240d9190612aa8565b81526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16156124545730612457565b60005b73ffffffffffffffffffffffffffffffffffffffff16815260200161247e42610e10612b3c565b81525090506000806000808e73ffffffffffffffffffffffffffffffffffffffff1663883164568b876040518363ffffffff1660e01b81526004016124c39190612bd8565b60806040518083038185885af11580156124e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125069190612cc3565b93509350935093508e73ffffffffffffffffffffffffffffffffffffffff166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b50959a509398509196509450505050509650965096509692505050565b612039838383600161203e565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612181578181101561264e576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016102bd565b6121818484848403600061203e565b612039838383612711565b600080831180156126795750600082115b6126c55760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e7473206d7573742062652067726561746572207468616e2030000060448201526064016102bd565b6000836126da84670de0b6b3a7640000612b25565b6126e49190612aa8565b905060006126f1826128bc565b90506000612707633b9aca00606084901b612aa8565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661274957806002600082825461273e9190612b3c565b909155506127fb9050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127cf576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661282457600280548290039055612850565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516128af91815260200190565b60405180910390a3505050565b6000816000036128ce57506000919050565b8160006128dc600283612aa8565b6128e7906001612b3c565b90505b8181101561291d579050806002816129028187612aa8565b61290c9190612b3c565b6129169190612aa8565b90506128ea565b5092915050565b60006020808352835180602085015260005b8181101561295257858101830151858201604001528201612936565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff811681146129b357600080fd5b50565b600080604083850312156129c957600080fd5b82356129d481612991565b946020939093013593505050565b6000602082840312156129f457600080fd5b8135611e0581612991565b600080600060608486031215612a1457600080fd5b8335612a1f81612991565b92506020840135612a2f81612991565b929592945050506040919091013590565b60008060408385031215612a5357600080fd5b8235612a5e81612991565b91506020830135612a6e81612991565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082612ade577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b81810381811115611d5a57611d5a612a79565b8082028115828204841417611d5a57611d5a612a79565b80820180821115611d5a57611d5a612a79565b600060208284031215612b6157600080fd5b8151611e0581612991565b600060208284031215612b7e57600080fd5b5051919050565b600181811c90821680612b9957607f821691505b602082108103612bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b815173ffffffffffffffffffffffffffffffffffffffff16815261016081016020830151612c1e602084018273ffffffffffffffffffffffffffffffffffffffff169052565b506040830151612c35604084018262ffffff169052565b506060830151612c4a606084018260020b9052565b506080830151612c5f608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151612cb28285018273ffffffffffffffffffffffffffffffffffffffff169052565b505061014092830151919092015290565b60008060008060808587031215612cd957600080fd5b8451935060208501516fffffffffffffffffffffffffffffffff81168114612d0057600080fd5b604086015160609096015194979096509250505056fea264697066735822122047a579627b388c16b4cc15c9df29589f19013dcece432fd8a49177b0eddf761e64736f6c63430008180033a26469706673582212208d933717492ccec5674df14303c9aa32e388d847e853e58bd4538078ad3794fd64736f6c6343000818003300000000000000000000000069691ce612c244b0829b9e124cca063816da144800000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a4000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984

Deployed Bytecode

0x608060405260043610620001075760003560e01c806391b7f5ed1162000095578063b512b8151162000060578063b512b81514620002fd578063c283c5c31462000322578063d7b96d4e1462000347578063f46901ed146200037d57600080fd5b806391b7f5ed1462000256578063a035b1fe146200027b578063a7cd52cb1462000293578063a8e83e2614620002d857600080fd5b80635880f43311620000d65780635880f43314620001e257806366d914cb14620001f957806367e4c2f814620002105780638da5cb5b146200022757600080fd5b8063017e7e58146200010c57806313af4035146200016557806332c4f2bf146200018c578063544d46a314620001b3575b600080fd5b3480156200011957600080fd5b506003546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156200017257600080fd5b506200018a6200018436600462000dcc565b620003a2565b005b3480156200019957600080fd5b50620001a460055481565b6040519081526020016200015c565b348015620001c057600080fd5b506004546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b348015620001ef57600080fd5b50620001a4600281565b6200018a6200020a36600462000ef9565b62000470565b3480156200021d57600080fd5b50620001a4600181565b3480156200023457600080fd5b506002546200013b9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156200026357600080fd5b506200018a620002753660046200105e565b62000861565b3480156200028857600080fd5b50620001a460015481565b348015620002a057600080fd5b50620002c7620002b236600462000dcc565b60066020526000908152604090205460ff1681565b60405190151581526020016200015c565b348015620002e557600080fd5b506200013b620002f736600462000ef9565b620008e9565b3480156200030a57600080fd5b506200018a6200031c3660046200105e565b62000a1e565b3480156200032f57600080fd5b506200018a6200034136600462000dcc565b62000aa6565b3480156200035457600080fd5b506200013b7f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a481565b3480156200038a57600080fd5b506200018a6200039c36600462000dcc565b62000b70565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e65720000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6200047a62000c3a565b60055461010082015260045473ffffffffffffffffffffffffffffffffffffffff90811661012083015260408083015190911660009081526006602052205460ff168015620004f3575060208082015173ffffffffffffffffffffffffffffffffffffffff1660009081526006909152604090205460ff165b62000581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f556e697377617020666163746f7279206f7220726f757465722073686f756c6460448201527f20626520696e20616c6c6f776c6973742e000000000000000000000000000000606482015260840162000420565b60035473ffffffffffffffffffffffffffffffffffffffff1615801590620005ab57506000600154115b15620006ef576001543410156200061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742070726963650000000000000000000000000000604482015260640162000420565b60035460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d80600081146200067b576040519150601f19603f3d011682016040523d82523d6000602084013e62000680565b606091505b5050905080620006ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e00000000000000000000000000000000604482015260640162000420565b505b6000846040516020016200070591815260200190565b604051602081830303815290604052805190602001209050600060405180602001620007319062000d94565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f9091011660408190526200079a907f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a490879089908890602001620010ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620007d8929160200162001249565b60405160208183030381529060405290506000620007f96000848462000c7e565b90508073ffffffffffffffffffffffffffffffffffffffff167fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e160026040516200084591815260200190565b60405180910390a25050506200085b6001600055565b50505050565b60025473ffffffffffffffffffffffffffffffffffffffff163314620008e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600155565b60055461010082015260045473ffffffffffffffffffffffffffffffffffffffff16610120820152604080516020810186905260009182910160405160208183030381529060405280519060200120905062000a148160405180602001620009519062000d94565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620009ba907f00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a49089908b908a90602001620010ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620009f8929160200162001249565b6040516020818303038152906040528051906020012062000d61565b9695505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000aa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600555565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000bf3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015260640162000420565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60026000540362000c77576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b60008347101562000cc5576040517fe4bbecac0000000000000000000000000000000000000000000000000000000081524760048201526024810185905260440162000420565b815160000362000d01576040517f4ca249dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282516020840186f5905073ffffffffffffffffffffffffffffffffffffffff811662000d5a576040517f741752c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9392505050565b600062000d5a8383306000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b613579806200127d83390190565b803573ffffffffffffffffffffffffffffffffffffffff8116811462000dc757600080fd5b919050565b60006020828403121562000ddf57600080fd5b62000d5a8262000da2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610140810167ffffffffffffffff8111828210171562000e405762000e4062000dea565b60405290565b600082601f83011262000e5857600080fd5b813567ffffffffffffffff8082111562000e765762000e7662000dea565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171562000ebf5762000ebf62000dea565b8160405283815286602085880101111562000ed957600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121562000f1057600080fd5b8435935062000f226020860162000da2565b9250604085013562ffffff8116811462000f3b57600080fd5b9150606085013567ffffffffffffffff8082111562000f5957600080fd5b90860190610140828903121562000f6f57600080fd5b62000f7962000e19565b8235815262000f8b6020840162000da2565b602082015262000f9e6040840162000da2565b604082015260608301358281111562000fb657600080fd5b62000fc48a82860162000e46565b60608301525060808301358281111562000fdd57600080fd5b62000feb8a82860162000e46565b60808301525060a0830135828111156200100457600080fd5b620010128a82860162000e46565b60a08301525060c083013560c082015260e083013560e08201526101009150818301358282015261012091506200104b82840162000da2565b8282015280935050505092959194509250565b6000602082840312156200107157600080fd5b5035919050565b60005b83811015620010955781810151838201526020016200107b565b50506000910152565b60008151808452620010b881602086016020860162001078565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835262ffffff86166020840152808516604084015250608060608301528251608083015260208301516200115060a084018273ffffffffffffffffffffffffffffffffffffffff169052565b50604083015173ffffffffffffffffffffffffffffffffffffffff1660c0830152606083015161014060e08401819052620011906101c08501836200109e565b915060808501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80610100818786030181880152620011d085846200109e565b945060a08801519250610120828887030181890152620011f186856200109e565b60c08a01519589019590955260e08901516101608901529088015161018088015287015173ffffffffffffffffffffffffffffffffffffffff81166101a08801529293506200123e915050565b509695505050505050565b600083516200125d81846020880162001078565b8351908301906200127381836020880162001078565b0194935050505056fe6101e06040523480156200001257600080fd5b5060405162003579380380620035798339810160408190526200003591620003d4565b6060810151608082015160a083015182826003620000548382620005d2565b506004620000638282620005d2565b50600591506200007690508282620005d2565b5050600160065550503060808190526007805460ff19169055815160e0819052620000a291906200012e565b60208101516001600160a01b0390811660a0908152604083015190911660c052810151600590620000d49082620005d2565b50438160c00151620000e791906200069e565b61010090815260e0820151610120908152908201516101405201516001600160a01b0390811661016052928316610180529091166101c05262ffffff166101a052620006c6565b6001600160a01b0382166200015e5760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b6200016c6000838362000170565b5050565b6200017d83838362000182565b505050565b6001600160a01b038316620001b1578060026000828254620001a591906200069e565b90915550620002259050565b6001600160a01b03831660009081526020819052604090205481811015620002065760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000155565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002435760028054829003905562000262565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002a891815260200190565b60405180910390a3505050565b80516001600160a01b0381168114620002cd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b03811182821017156200030e576200030e620002d2565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200033f576200033f620002d2565b604052919050565b600082601f8301126200035957600080fd5b81516001600160401b03811115620003755762000375620002d2565b60206200038b601f8301601f1916820162000314565b8281528582848701011115620003a057600080fd5b60005b83811015620003c0578581018301518282018401528201620003a3565b506000928101909101919091529392505050565b60008060008060808587031215620003eb57600080fd5b620003f685620002b5565b9350602085015162ffffff811681146200040f57600080fd5b92506200041f60408601620002b5565b60608601519092506001600160401b03808211156200043d57600080fd5b9086019061014082890312156200045357600080fd5b6200045d620002e8565b825181526200046f60208401620002b5565b60208201526200048260408401620002b5565b60408201526060830151828111156200049a57600080fd5b620004a88a82860162000347565b606083015250608083015182811115620004c157600080fd5b620004cf8a82860162000347565b60808301525060a083015182811115620004e857600080fd5b620004f68a82860162000347565b60a08301525060c083015160c082015260e083015160e08201526101009150818301518282015261012091506200052f828401620002b5565b8282015280935050505092959194509250565b600181811c908216806200055757607f821691505b6020821081036200057857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017d576000816000526020600020601f850160051c81016020861015620005a95750805b601f850160051c820191505b81811015620005ca57828155600101620005b5565b505050505050565b81516001600160401b03811115620005ee57620005ee620002d2565b6200060681620005ff845462000542565b846200057e565b602080601f8311600181146200063e5760008415620006255750858301515b600019600386901b1c1916600185901b178555620005ca565b600085815260208120601f198616915b828110156200066f578886015182559484019460019091019084016200064e565b50858210156200068e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620006c057634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c051612d4c6200082d600039600081816107b10152611a3801526000818161048a0152818161153c01528181612294015261236e015260008181610897015281816117ef015281816118660152818161198101528181611a6a015261241401526000818161060f0152818161116a01526111ab0152600081816105c1015261111d01526000818161098801528181610d2401528181610db801528181610e2b0152818161166501528181611696015281816116c401528181611e2d0152611e6001526000818161036d01528181610668015261094f0152600081816106ff01528181610bb801528181611dcd015281816121de015261220e01526000818161074e01526115690152600081816102270152818161091e0152818161145b015281816116ec01528181611895015261192c015260006109c20152612d4c6000f3fe6080604052600436106102025760003560e01c8063825521701161011d578063c884ef83116100b0578063dd62ed3e1161007f578063ec30903811610064578063ec30903814610940578063f570ee6b14610976578063fb5d5d4d1461078557600080fd5b8063dd62ed3e146108b9578063e5047b301461090c57600080fd5b8063c884ef8314610813578063c885044e14610843578063d35e7efc14610858578063d7b96d4e1461088557600080fd5b80639ecf0090116100ec5780639ecf0090146105e3578063a4475ce41461079f578063a9059cbb146107d3578063a92bc58a146107f357600080fd5b806382552170146107215780638bdb2afa1461073c57806395d89b4114610770578063996eba2d1461078557600080fd5b8063313ce567116101955780635ce38d99116101645780635ce38d991461065657806368b63c241461068a57806370a08231146106aa5780637b0fa954146106ed57600080fd5b8063313ce5671461059357806332c4f2bf146105af578063475a519f146105e3578063544d46a3146105fd57600080fd5b806318160ddd116101d157806318160ddd146105145780631e7269c5146105295780631f2698ab1461055957806323b872dd1461057357600080fd5b806306fdde031461044d578063089fe6aa14610478578063095ea7b3146104c05780630a4625af146104f057600080fd5b366104485761020f6109aa565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146102e6573233146102c65760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a2063616e206e6f742073656e6420636f6d6d616e64206660448201527f726f6d20636f6e74726163742e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b60075460ff161561036b57655af3107a400034036102e8576102e66109ee565b005b65b5e620f4800034036102fd576102e6610ca0565b60405162461bcd60e51b815260206004820152602e60248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d206d696e7460448201527f206f7220636c61696d206f6e6c7900000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000431061042b5765b5e620f4800034036103a7576102e661101b565b6601c6bf5263400034036103bd576102e661139f565b60405162461bcd60e51b815260206004820152603060248201527f466169724d696e743a20696e76616c696420636f6d6d616e64202d207374617260448201527f74206f7220726566756e64206f6e6c790000000000000000000000000000000060648201526084016102bd565b65b5e620f480003403610440576102e661101b565b6102e6611b81565b600080fd5b34801561045957600080fd5b50610462611cb4565b60405161046f9190612924565b60405180910390f35b34801561048457600080fd5b506104ac7f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff909116815260200161046f565b3480156104cc57600080fd5b506104e06104db3660046129b6565b611d46565b604051901515815260200161046f565b3480156104fc57600080fd5b50610506600a5481565b60405190815260200161046f565b34801561052057600080fd5b50600254610506565b34801561053557600080fd5b506104e06105443660046129e2565b60096020526000908152604090205460ff1681565b34801561056557600080fd5b506007546104e09060ff1681565b34801561057f57600080fd5b506104e061058e3660046129ff565b611d60565b34801561059f57600080fd5b506040516012815260200161046f565b3480156105bb57600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ef57600080fd5b50610506655af3107a400081565b34801561060957600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161046f565b34801561066257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561069657600080fd5b506105066106a53660046129e2565b611d84565b3480156106b657600080fd5b506105066106c53660046129e2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106f957600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561072d57600080fd5b506105066601c6bf5263400081565b34801561074857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561077c57600080fd5b50610462611e0c565b34801561079157600080fd5b5061050665b5e620f4800081565b3480156107ab57600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156107df57600080fd5b506104e06107ee3660046129b6565b611e1b565b3480156107ff57600080fd5b5061050661080e3660046129e2565b611e29565b34801561081f57600080fd5b506104e061082e3660046129e2565b600b6020526000908152604090205460ff1681565b34801561084f57600080fd5b50610462611ebd565b34801561086457600080fd5b506105066108733660046129e2565b60086020526000908152604090205481565b34801561089157600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b3480156108c557600080fd5b506105066108d4366004612a40565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561091857600080fd5b506106317f000000000000000000000000000000000000000000000000000000000000000081565b34801561094c57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000004310156104e0565b34801561098257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146109ec57600080fd5b565b6109f6611f4b565b60075460ff16610a485760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206e6f742073746172746564000000000000000000000060448201526064016102bd565b333214610abd5760405162461bcd60e51b815260206004820152602360248201527f466169724d696e743a2063616e206e6f74206d696e7420746f20636f6e74726160448201527f63742e000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b3360009081526009602052604090205460ff1615610b1d5760405162461bcd60e51b815260206004820152601860248201527f466169724d696e743a20616c7265616479206d696e746564000000000000000060448201526064016102bd565b33600081815260096020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590610b5f90611d84565b905060008111610bb15760405162461bcd60e51b815260206004820152601d60248201527f466169724d696e743a206d696e7420616d6f756e74206973207a65726f00000060448201526064016102bd565b610bdc60027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b811115610beb57610beb612ae3565b610bf6303383611f8e565b6040516000903390655af3107a4000908381818185875af1925050503d8060008114610c3e576040519150601f19603f3d011682016040523d82523d6000602084013e610c43565b606091505b5050905080610c945760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b50506109ec6001600655565b610ca8611f4b565b60075460ff16610d205760405162461bcd60e51b815260206004820152602d60248201527f466169724d696e743a20776974686472617720657874726120657468206d757360448201527f742061667465722073746172740000000000000000000000000000000000000060648201526084016102bd565b60007f000000000000000000000000000000000000000000000000000000000000000011610db65760405162461bcd60e51b815260206004820152602260248201527f466169724d696e743a20736f667420746f7020636170206d757374206265207360448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016102bd565b7f0000000000000000000000000000000000000000000000000000000000000000600a5411610e275760405162461bcd60e51b815260206004820152601660248201527f466169724d696e743a206e6f206578747261206574680000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000600a54610e579190612b12565b3360009081526008602052604090205490915080610eb75760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b336000908152600b602052604090205460ff1615610f175760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920636c61696d65640000000000000060448201526064016102bd565b336000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600a54610f5c8484612b25565b610f669190612aa8565b9050600033610f7b65b5e620f4800084612b3c565b604051600081818185875af1925050503d8060008114610fb7576040519150601f19603f3d011682016040523d82523d6000602084013e610fbc565b606091505b505090508061100d5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a207769746864726177206661696c65640000000000000060448201526064016102bd565b505050506109ec6001600655565b611023611f4b565b60075460ff16156110765760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b33600081815260086020526040902054806110d35760405162461bcd60e51b815260206004820152601160248201527f466169724d696e743a206e6f2066756e6400000000000000000000000000000060448201526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120819055600a805483929061110d908490612b12565b90915550600090506127106111427f000000000000000000000000000000000000000000000000000000000000000084612b25565b61114c9190612aa8565b905081811061115d5761115d612ae3565b6000811180156111a257507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615155b156112795760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b50509050806112775760405162461bcd60e51b815260206004820152601b60248201527f466169724d696e743a20726566756e6420666565206661696c6564000000000060448201526064016102bd565b505b600073ffffffffffffffffffffffffffffffffffffffff841665b5e620f480006112a38486612b12565b6112ad9190612b3c565b604051600081818185875af1925050503d80600081146112e9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ee565b606091505b505090508061133f5760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a20726566756e64206661696c656400000000000000000060448201526064016102bd565b60408051600081526020810185905273ffffffffffffffffffffffffffffffffffffffff8616917fb24b09fd2e8e4d8904c3c26f3e935824e032891520ffda419dec9f086b0e1eea910160405180910390a2505050506109ec6001600655565b6113a7611f4b565b60075460ff16156113fa5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b30600090815260208190526040812054116114575760405162461bcd60e51b815260206004820152601460248201527f466169724d696e743a206e6f2062616c616e636500000000000000000000000060448201526064016102bd565b60007f0000000000000000000000000000000000000000000000000000000000000000905060008173ffffffffffffffffffffffffffffffffffffffff16634aa4a4fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612b4f565b6040517f1698ee8200000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff808316602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301529192506000917f00000000000000000000000000000000000000000000000000000000000000001690631698ee8290606401602060405180830381865afa1580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190612b4f565b905073ffffffffffffffffffffffffffffffffffffffff8116156116605760405162461bcd60e51b815260206004820152603b60248201527f466169724d696e743a20706f6f6c20616c7265616479206578697374732c206360448201527f616e206e6f742073746172742c20706c6561736520726566756e64000000000060648201526084016102bd565b6000807f00000000000000000000000000000000000000000000000000000000000000001161169157600a546116e4565b600a547f0000000000000000000000000000000000000000000000000000000000000000106116c257600a546116e4565b7f00000000000000000000000000000000000000000000000000000000000000005b9050611733307f00000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600061203e565b60008060008061174487868a612187565b5093509350935093506000806000806117618c898989898e612320565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051838152602081018390526fffffffffffffffffffffffffffffffff8516918101919091529397509195509350915030907fef1e73540aed31615f5f09b178cff91261e831560c37718c23862e93a3fc3ceb9060600160405180910390a27f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615611acb576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401600060405180830381600087803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b50506040517fe2ab691d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018890527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60448301527f000000000000000000000000000000000000000000000000000000000000000093506000925083169063e2ab691d906064016020604051808303816000875af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612b6c565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018390529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b158015611ab057600080fd5b505af1158015611ac4573d6000803e3d6000fd5b5050505050505b60405160009033906601c6bf52634000908381818185875af1925050503d8060008114611b14576040519150601f19603f3d011682016040523d82523d6000602084013e611b19565b606091505b5050905080611b6a5760405162461bcd60e51b815260206004820152601560248201527f466169724d696e743a206d696e74206661696c6564000000000000000000000060448201526064016102bd565b505050505050505050505050506109ec6001600655565b611b89611f4b565b60075460ff1615611bdc5760405162461bcd60e51b815260206004820152601960248201527f466169724d696e743a20616c726561647920737461727465640000000000000060448201526064016102bd565b655af3107a4000341015611c325760405162461bcd60e51b815260206004820152601760248201527f466169724d696e743a2076616c756520746f6f206c6f7700000000000000000060448201526064016102bd565b3360009081526008602052604081208054349290611c51908490612b3c565b9250508190555034600a6000828254611c6a9190612b3c565b9091555050604080513481526000602082015233917f4c10b3a5590fcdc7a6f3b564c09870bd275facbd00a0bcf68c8b069e32f9508b910160405180910390a26109ec6001600655565b606060038054611cc390612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef90612b85565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050505050905090565b600033611d54818585612587565b60019150505b92915050565b600033611d6e858285612594565b611d79858585611f8e565b506001949350505050565b6000600a54600003611d9857506000919050565b600a5473ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812054909190600290611df1907f0000000000000000000000000000000000000000000000000000000000000000612b25565b611dfb9190612aa8565b611e059190612aa8565b9392505050565b606060048054611cc390612b85565b600033611d54818585611f8e565b60007f0000000000000000000000000000000000000000000000000000000000000000600a541115611eb557600a54600090611e857f000000000000000000000000000000000000000000000000000000000000000082612b12565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260086020526040902054611dfb9190612b25565b506000919050565b60058054611eca90612b85565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef690612b85565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b600260065403611f87576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600655565b73ffffffffffffffffffffffffffffffffffffffff8316611fde576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff821661202e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b61203983838361265d565b505050565b73ffffffffffffffffffffffffffffffffffffffff841661208e576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff83166120de576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016102bd565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015612181578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161217891815260200190565b60405180910390a35b50505050565b60008080808073ffffffffffffffffffffffffffffffffffffffff881630106121b15787306121b4565b30885b909550935073ffffffffffffffffffffffffffffffffffffffff88163010612207578661220260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b612234565b61223260027f0000000000000000000000000000000000000000000000000000000000000000612aa8565b875b90935091506122438383612668565b6040517f13ead56200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015262ffffff7f00000000000000000000000000000000000000000000000000000000000000001660448301528083166064830152919250908716906313ead562906084016020604051808303816000875af11580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123149190612b4f565b50939792965093509350565b60008060008060006040518061016001604052808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2764c60020b8152602001620d89b460020b815260200189815260200188815260200160648a60626123e79190612b25565b6123f19190612aa8565b815260200160646124038a6062612b25565b61240d9190612aa8565b81526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16156124545730612457565b60005b73ffffffffffffffffffffffffffffffffffffffff16815260200161247e42610e10612b3c565b81525090506000806000808e73ffffffffffffffffffffffffffffffffffffffff1663883164568b876040518363ffffffff1660e01b81526004016124c39190612bd8565b60806040518083038185885af11580156124e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906125069190612cc3565b93509350935093508e73ffffffffffffffffffffffffffffffffffffffff166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b50959a509398509196509450505050509650965096509692505050565b612039838383600161203e565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612181578181101561264e576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016102bd565b6121818484848403600061203e565b612039838383612711565b600080831180156126795750600082115b6126c55760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e7473206d7573742062652067726561746572207468616e2030000060448201526064016102bd565b6000836126da84670de0b6b3a7640000612b25565b6126e49190612aa8565b905060006126f1826128bc565b90506000612707633b9aca00606084901b612aa8565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661274957806002600082825461273e9190612b3c565b909155506127fb9050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127cf576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016102bd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661282457600280548290039055612850565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516128af91815260200190565b60405180910390a3505050565b6000816000036128ce57506000919050565b8160006128dc600283612aa8565b6128e7906001612b3c565b90505b8181101561291d579050806002816129028187612aa8565b61290c9190612b3c565b6129169190612aa8565b90506128ea565b5092915050565b60006020808352835180602085015260005b8181101561295257858101830151858201604001528201612936565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff811681146129b357600080fd5b50565b600080604083850312156129c957600080fd5b82356129d481612991565b946020939093013593505050565b6000602082840312156129f457600080fd5b8135611e0581612991565b600080600060608486031215612a1457600080fd5b8335612a1f81612991565b92506020840135612a2f81612991565b929592945050506040919091013590565b60008060408385031215612a5357600080fd5b8235612a5e81612991565b91506020830135612a6e81612991565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082612ade577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b81810381811115611d5a57611d5a612a79565b8082028115828204841417611d5a57611d5a612a79565b80820180821115611d5a57611d5a612a79565b600060208284031215612b6157600080fd5b8151611e0581612991565b600060208284031215612b7e57600080fd5b5051919050565b600181811c90821680612b9957607f821691505b602082108103612bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b815173ffffffffffffffffffffffffffffffffffffffff16815261016081016020830151612c1e602084018273ffffffffffffffffffffffffffffffffffffffff169052565b506040830151612c35604084018262ffffff169052565b506060830151612c4a606084018260020b9052565b506080830151612c5f608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151612cb28285018273ffffffffffffffffffffffffffffffffffffffff169052565b505061014092830151919092015290565b60008060008060808587031215612cd957600080fd5b8451935060208501516fffffffffffffffffffffffffffffffff81168114612d0057600080fd5b604086015160609096015194979096509250505056fea264697066735822122047a579627b388c16b4cc15c9df29589f19013dcece432fd8a49177b0eddf761e64736f6c63430008180033a26469706673582212208d933717492ccec5674df14303c9aa32e388d847e853e58bd4538078ad3794fd64736f6c63430008180033

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

00000000000000000000000069691ce612c244b0829b9e124cca063816da144800000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a4000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984

-----Decoded View---------------
Arg [0] : _feeTo (address): 0x69691CE612C244b0829b9E124cCA063816da1448
Arg [1] : _locker (address): 0x99090d2d220901De904c6E3d003D7ceD4B6eC2A4
Arg [2] : _positionManager (address): 0xC36442b4a4522E871399CD717aBDD847Ab11FE88
Arg [3] : _factory (address): 0x1F98431c8aD98523631AE4a59f267346ea31F984

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000069691ce612c244b0829b9e124cca063816da1448
Arg [1] : 00000000000000000000000099090d2d220901de904c6e3d003d7ced4b6ec2a4
Arg [2] : 000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88
Arg [3] : 0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.