ETH Price: $2,495.30 (-0.84%)

Contract

0xf1F3AA2B8706414c468813Bbdf22B8BF3D61aFE0
 

Overview

ETH Balance

2.19861158066971398 ETH

Eth Value

$5,486.19 (@ $2,495.30/ETH)

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Eth205114482024-08-12 8:49:3582 days ago1723452575IN
Mr Frog: MRFROG Token
0 ETH0.00126434.95360158
Withdraw Eth203226482024-07-17 0:25:35108 days ago1721175935IN
Mr Frog: MRFROG Token
0 ETH0.002411156.71499013
Withdraw Eth203226372024-07-17 0:23:23108 days ago1721175803IN
Mr Frog: MRFROG Token
0 ETH0.00277526.93800674
Set Approval For...198538122024-05-12 12:02:35173 days ago1715515355IN
Mr Frog: MRFROG Token
0 ETH0.000223973.64
Set Approval For...198217172024-05-08 0:18:47178 days ago1715127527IN
Mr Frog: MRFROG Token
0 ETH0.000256344.16599171
Set Approval For...195426742024-03-29 22:39:35217 days ago1711751975IN
Mr Frog: MRFROG Token
0 ETH0.001411122.90156075
Set Approval For...195426742024-03-29 22:39:35217 days ago1711751975IN
Mr Frog: MRFROG Token
0 ETH0.0014091722.90156075
Set Approval For...195022482024-03-24 5:10:47223 days ago1711257047IN
Mr Frog: MRFROG Token
0 ETH0.0010243416.64729234
Safe Transfer Fr...191557842024-02-04 15:17:47271 days ago1707059867IN
Mr Frog: MRFROG Token
0 ETH0.0014122722.44951773
Withdraw Eth190196552024-01-16 13:09:35290 days ago1705410575IN
Mr Frog: MRFROG Token
0 ETH0.0101226232.57659833
Set Approval For...189481442024-01-06 12:22:59300 days ago1704543779IN
Mr Frog: MRFROG Token
0 ETH0.0006124715.45863038
Set Approval For...188944512023-12-29 23:20:11308 days ago1703892011IN
Mr Frog: MRFROG Token
0 ETH0.0011055317.94238798
Transfer From187498062023-12-09 16:17:11328 days ago1702138631IN
Mr Frog: MRFROG Token
0 ETH0.0030733451.72674593
Set Approval For...184526742023-10-29 1:50:11370 days ago1698544211IN
Mr Frog: MRFROG Token
0 ETH0.000507898.25415224
Withdraw Eth184473972023-10-28 8:05:59371 days ago1698480359IN
Mr Frog: MRFROG Token
0 ETH0.0031384912.23814408
Withdraw Eth184466752023-10-28 5:40:47371 days ago1698471647IN
Mr Frog: MRFROG Token
0 ETH0.0055349211.35592685
Withdraw Eth184460092023-10-28 3:26:23371 days ago1698463583IN
Mr Frog: MRFROG Token
0 ETH0.0041956712.87994246
Set Approval For...183712832023-10-17 16:27:59381 days ago1697560079IN
Mr Frog: MRFROG Token
0 ETH0.0005075812.81144952
Transfer From183548312023-10-15 9:17:47384 days ago1697361467IN
Mr Frog: MRFROG Token
0 ETH0.000336845.66934619
Set Approval For...182931972023-10-06 18:18:23392 days ago1696616303IN
Mr Frog: MRFROG Token
0 ETH0.0006909511.22920939
Withdraw Eth182476962023-09-30 9:41:59399 days ago1696066919IN
Mr Frog: MRFROG Token
0 ETH0.002266176.70630084
Set Approval For...182439022023-09-29 20:58:11399 days ago1696021091IN
Mr Frog: MRFROG Token
0 ETH0.0006695510.86659115
Safe Transfer Fr...179992382023-08-26 13:48:23433 days ago1693057703IN
Mr Frog: MRFROG Token
0 ETH0.0010658716.93987124
Safe Transfer Fr...179692652023-08-22 9:09:23438 days ago1692695363IN
Mr Frog: MRFROG Token
0 ETH0.0029246422.18511266
Safe Transfer Fr...179109862023-08-14 5:26:23446 days ago1691990783IN
Mr Frog: MRFROG Token
0 ETH0.0004858510.60612403
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
205114482024-08-12 8:49:3582 days ago1723452575
Mr Frog: MRFROG Token
0.02011634 ETH
203226482024-07-17 0:25:35108 days ago1721175935
Mr Frog: MRFROG Token
0.02152474 ETH
203226482024-07-17 0:25:35108 days ago1721175935
Mr Frog: MRFROG Token
0.02491677 ETH
190196552024-01-16 13:09:35290 days ago1705410575
Mr Frog: MRFROG Token
0.01992254 ETH
190196552024-01-16 13:09:35290 days ago1705410575
Mr Frog: MRFROG Token
0.18895114 ETH
184473972023-10-28 8:05:59371 days ago1698480359
Mr Frog: MRFROG Token
0.01845292 ETH
184466752023-10-28 5:40:47371 days ago1698471647
Mr Frog: MRFROG Token
0.16344019 ETH
184460092023-10-28 3:26:23371 days ago1698463583
Mr Frog: MRFROG Token
0.07590516 ETH
184460092023-10-28 3:26:23371 days ago1698463583
Mr Frog: MRFROG Token
1.1698655 ETH
182476962023-09-30 9:41:59399 days ago1696066919
Mr Frog: MRFROG Token
0.01870794 ETH
182476962023-09-30 9:41:59399 days ago1696066919
Mr Frog: MRFROG Token
0.02891889 ETH
181539842023-09-17 6:25:59412 days ago1694931959
Mr Frog: MRFROG Token
0.0003 ETH
180545302023-09-03 7:37:47426 days ago1693726667
Mr Frog: MRFROG Token
0.00014691 ETH
180544982023-09-03 7:31:23426 days ago1693726283
Mr Frog: MRFROG Token
0.000084 ETH
180489932023-09-02 13:00:59426 days ago1693659659
Mr Frog: MRFROG Token
0.00042 ETH
179211542023-08-15 15:32:35444 days ago1692113555
Mr Frog: MRFROG Token
0.000315 ETH
179140782023-08-14 15:47:47445 days ago1692028067
Mr Frog: MRFROG Token
0.000435 ETH
179100802023-08-14 2:22:47446 days ago1691979767
Mr Frog: MRFROG Token
0.00009899 ETH
178830102023-08-10 7:30:35450 days ago1691652635
Mr Frog: MRFROG Token
0.00911504 ETH
178830102023-08-10 7:30:35450 days ago1691652635
Mr Frog: MRFROG Token
0.02048647 ETH
178608512023-08-07 5:03:35453 days ago1691384615
Mr Frog: MRFROG Token
0.02686712 ETH
178608512023-08-07 5:03:35453 days ago1691384615
Mr Frog: MRFROG Token
0.62763283 ETH
177911752023-07-28 11:11:23462 days ago1690542683
Mr Frog: MRFROG Token
0.000105 ETH
177911702023-07-28 11:10:23462 days ago1690542623
Mr Frog: MRFROG Token
0.000105 ETH
177052422023-07-16 10:24:47475 days ago1689503087
Mr Frog: MRFROG Token
0.00359883 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MrFrog

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : MrFrog.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./ERC721A.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface ILiquidityLockerWithTokenBurn {
    function withdrawTradingFees(uint256 tokenId) external;
}

interface IERC20Burnable is IERC20 {
    function burn(uint256 amount) external;
}

interface IBurner {
    function leaderboard(uint256 _topIndex) external view returns (address);
    function gameOver() external view returns (bool);
}

interface ILocker {
    function changeOwner(address newOwner) external;
    function owner() external view returns (address);
}

interface IWETH {
    function deposit() external payable;
    function withdraw(uint wad) external;
}

interface OperatorFilterRegistry {
    function isOperatorAllowed(address, address) external view returns (bool);
    function registerAndSubscribe(address, address) external;
}

contract MrFrog is ERC721A {

    error OperatorNotAllowed(address operator);

    OperatorFilterRegistry constant public OPERATOR_FILTER_REGISTRY = OperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
    bool public operatorFilterEnabled;

    // Token stuff
    string baseURI;
    uint256 constant public maxSupply = 3700;
    uint256 constant public mintPrice = 100e18; // 100 $MRF
    uint256 constant public maxMint = 50;
    uint256 constant presetCount = 80;
    uint256 constant ultraRareCount = 10;

    uint constant poolA = 511310;
    uint constant poolB = 511313;

    uint128 public offsetBlock;
    uint128 public offset;

    // External contracts
    address immutable mrF;
    address immutable token;
    IBurner immutable burner;
    address immutable locker;
    address immutable weth;

    // Rarity
    mapping(uint256 => bool) public isRare;
    bool public locked;

    // Distribution variables
    uint256 public previousEth;
    uint256 public receivedEth;
    mapping(uint256 => uint) public claimedEth;

    struct rewardToken {
        uint256 received;
        uint256 balance;
        mapping(uint256 => uint) claimedTokens;
    }

    mapping(address => rewardToken) rewardTokens;

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

    modifier onlyAllowedOperator(address _from) {
        if (operatorFilterEnabled && address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (_from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address _operator) {
        if (operatorFilterEnabled && address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), _operator)) {
                revert OperatorNotAllowed(_operator);
            }
        }
        _;
    }

    constructor(string memory _uri, address _mrF, address _token, IBurner _burner, address _locker, address _weth) ERC721A("Mr Frog", "MRFROG")  {
        operatorFilterEnabled = true;
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
        }

        baseURI = _uri;
        mrF = _mrF;
        token = _token;
        burner = _burner;
        locker = _locker;
        weth = _weth;

        // Ultra rares for claiming
        _mint(address(this), ultraRareCount);
        // Preset tokens will be airdropped
        _mint(_mrF, presetCount - ultraRareCount);
    }

    // Owner functions

    function emergencyOwnershipTransfer() external onlyOwner {
        require(!locked, "Locked");
        address this_ = address(this);                  // shorthand
        if (ILocker(locker).owner() == this_)
            ILocker(locker).changeOwner(mrF);         // transfer lp ownership back to Mr F
    }

    function setOperatorFilterEnabled(bool _enabled) external onlyOwner {
        operatorFilterEnabled = _enabled;
    }

    function bulkRare(uint256[] calldata _ids) external onlyOwner {
        require(!locked, "Locked");
        for (uint256 i = 0; i < _ids.length; i++) {
            isRare[_ids[i]] = true;
        }
    }

    function setRare(uint256 _id, bool _state) external onlyOwner {
        require(!locked, "Locked");
        isRare[_id] = _state;
    }

    function lock() external onlyOwner {
        locked = true;
    }

    function setBaseURI(string calldata _uri) external onlyOwner {
        baseURI = _uri;
    }

    function initOffset() external onlyOwner {
        require(super.totalSupply() == maxSupply, "Sale not over");
        offsetBlock = uint128(block.number) + 1;
    }

    function finalizeOffset() external {
        require(offset == 0, "Starting index is already set");
        require(offsetBlock != 0, "Starting index block must be set");
        require(block.number - offsetBlock < 255, "Must re-init");

        uint128 _offset = uint128(uint256(blockhash(offsetBlock)) % (maxSupply - presetCount));

        // Prevent default sequence
        if (_offset == 0) {
            _offset = 1;
        }

        offset = _offset;
    }

    // Minting logic

    function claim(uint256 _index) external {
        require(_index < 10, "Invalid index");
        require(burner.leaderboard(_index) == msg.sender, "Address does not match");
        require(burner.gameOver(), "Game not over");

        this.transferFrom(address(this), msg.sender, _index + 1);
    }

    function mint(uint256 _num) external {
        require(_num != 0, "Invalid amount");
        require(_num <= maxMint, "Exceeds maximum");
        require(IERC20(token).allowance(msg.sender, address(this)) >= mintPrice * _num, "Insufficient allowance");
        require(IERC20(token).transferFrom(msg.sender, address(this), mintPrice * _num), "Token transfer failed");

        IERC20Burnable burnableToken = IERC20Burnable(token);

        uint256 tokenId = super.totalSupply();

        require(tokenId <= maxSupply, "Mint complete");

        if (tokenId + _num > maxSupply) {
            uint256 remaining = maxSupply - tokenId;
            uint256 excess = _num - remaining;

            // Mint the frogs
            _mint(msg.sender, remaining);
            // Refund excess
            IERC20(token).transfer(msg.sender, excess * mintPrice);
            // Burn the MRF
            burnableToken.burn(mintPrice * remaining);
        } else {
            // Mint the frogs
            _mint(msg.sender, _num);
            // Burn the MRF
            burnableToken.burn(mintPrice * _num);
        }
    }

    function receiveApproval(address _receiveFrom, uint256 _amount, address, bytes memory) external {
        require(msg.sender == token, "Invalid token");
        require(IERC20(token).transferFrom(_receiveFrom, address(this), _amount), "Token transfer failed");
        uint256 num = _amount / mintPrice;
        require(num != 0, "Invalid amount");
        require(num <= maxMint, "Exceeds maximum");
        uint256 excess = _amount - num * mintPrice;

        uint256 tokenId = super.totalSupply();

        require(tokenId <= maxSupply, "Mint complete");

        if (tokenId + num > maxSupply) {
            uint256 remaining = maxSupply - tokenId;
            excess += (num - remaining) * mintPrice;

            // Mint the frogs
            _mint(_receiveFrom, remaining);
        } else {
            _mint(_receiveFrom, num);
        }

        // Burn the MRF
        IERC20Burnable(token).burn(_amount - excess);
        if (excess > 0) {
            IERC20(token).transfer(_receiveFrom, excess);
        }
    }

    // Distribution stuff

    fallback() external payable {}

    receive() external payable {}

    function withdrawLocker() private {
        bool ignoreMe;
        // attempt to pull liquidity fees from poolA
        (ignoreMe,) = address(locker).call(abi.encodeWithSignature("withdrawTradingFees(uint256)", poolA));
        // attempt to pull liquidity fees from poolB
        (ignoreMe,) = address(locker).call(abi.encodeWithSignature("withdrawTradingFees(uint256)", poolB));
    }

    function withdrawEth(uint32[] calldata _ids) external {
        require(locked, "Not locked");

        // Pull trading fees
        withdrawLocker();

        // Convert any owned WETH to ETH
        IERC20 WETH_ = IERC20(weth);
        uint wethBal = WETH_.balanceOf(address(this));
        if (wethBal > 0) {
            IWETH(weth).withdraw(wethBal);
        }

        uint256 totalRewards;
        uint256 currentBalance = address(this).balance;
        uint256 increase = currentBalance - previousEth;
        uint256 totalEth = receivedEth + increase;

        if (increase > 0) {
            receivedEth += increase;
        }

        for (uint256 i = 0; i < _ids.length; i++) {
            require(ownerOf(_ids[i]) == msg.sender, "Must own the token");
            uint256 frogEth = 0;

            // Adjust totalRewards based on token ID or rarity
            if (_ids[i] >= 1 && _ids[i] <= ultraRareCount) {
                frogEth = (totalEth * 3 / 100) - claimedEth[_ids[i]];
                claimedEth[_ids[i]] += frogEth;
            } else if ((_ids[i] >= ultraRareCount + 1 && _ids[i] <= presetCount) || isRare[_ids[i]]) {
                // 0.7777%
                frogEth = (totalEth * 7 / 900) - claimedEth[_ids[i]];
                claimedEth[_ids[i]] += frogEth;
            }

            totalRewards += frogEth;
        }

        // Update Eth balance
        previousEth = currentBalance - totalRewards;

        // Send the rewards
        (bool success, ) = payable(msg.sender).call{value: totalRewards}("");
        require(success, "Failed to transfer");
    }

    function checkEth(uint32[] calldata _ids) external view returns (uint256) {
        return checkEthWithFees(_ids, 0);
    }

    function checkEthWithFees(uint32[] calldata _ids, uint256 _fees) public view returns (uint256) {
        uint256 totalRewards;
        uint256 currentBalance = address(this).balance;
        uint256 increase = currentBalance - previousEth;
        uint256 totalEth = receivedEth + increase + _fees;

        // Count any WETH in total
        totalEth += IERC20(weth).balanceOf(address(this));

        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 frogEth = 0;

            // Adjust totalRewards based on token ID or rarity
            if (_ids[i] >= 1 && _ids[i] <= ultraRareCount) {
                frogEth = (totalEth * 3 / 100) - claimedEth[_ids[i]];
            } else if ((_ids[i] >= ultraRareCount + 1 && _ids[i] <= presetCount) || isRare[_ids[i]]) {
                // 0.7777%
                frogEth = (totalEth * 7 / 900) - claimedEth[_ids[i]];
            }

            totalRewards += frogEth;
        }

        return totalRewards;
    }

    function withdrawTokens(address _token, uint32[] calldata _ids) external {
        require(locked, "Not locked");
        require(_token != weth, "Cannot withdraw WETH");

        uint256 totalRewards;

        uint256 currentBalance = IERC20(_token).balanceOf(address(this));
        uint256 previousBalance = rewardTokens[_token].balance;
        uint256 increase = currentBalance - previousBalance;
        uint256 totalTokens = rewardTokens[_token].received + increase;

        if (increase > 0) {
            rewardTokens[_token].received += increase;
        }

        for (uint256 i = 0; i < _ids.length; i++) {
            require(ownerOf(_ids[i]) == msg.sender, "Must own the token");
            uint256 frogTokens = 0;

            // Adjust totalRewards based on token ID or rarity
            if (_ids[i] >= 1 && _ids[i] <= ultraRareCount) {
                frogTokens = (totalTokens * 3 / 100) - rewardTokens[_token].claimedTokens[_ids[i]];
                rewardTokens[_token].claimedTokens[_ids[i]] += frogTokens;
            } else if ((_ids[i] >= ultraRareCount + 1 && _ids[i] <= presetCount) || isRare[_ids[i]]) {
                // 0.7777%
                frogTokens = (totalTokens * 7 / 900) - rewardTokens[_token].claimedTokens[_ids[i]];
                rewardTokens[_token].claimedTokens[_ids[i]] += frogTokens;
            }

            totalRewards += frogTokens;
        }

        // Update token balance
        rewardTokens[_token].balance = currentBalance - totalRewards;

        IERC20(_token).transfer(msg.sender, totalRewards);
    }

    function checkTokens(address _token, uint32[] calldata _ids) external view returns (uint256) {
        uint256 totalRewards;

        uint256 balance = IERC20(_token).balanceOf(address(this));
        uint256 increase = balance - rewardTokens[_token].balance;
        uint256 totalTokens = rewardTokens[_token].received + increase;

        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 frogTokens = 0;

            // Adjust totalRewards based on token ID or rarity
            if (_ids[i] >= 1 && _ids[i] <= ultraRareCount) {
                frogTokens = (totalTokens * 3 / 100) - rewardTokens[_token].claimedTokens[_ids[i]];
            } else if ((_ids[i] >= ultraRareCount + 1 && _ids[i] <= presetCount) || isRare[_ids[i]]) {
                // 0.7777%
                frogTokens = (totalTokens * 7 / 900) - rewardTokens[_token].claimedTokens[_ids[i]];
            }

            totalRewards += frogTokens;
        }

        return totalRewards;
    }

    function allInfoFor(address _user) external view returns (uint256 supply, uint256 ethRewards, uint256 mrfRewards, uint256 userBalance, uint256 userAllowance) {
        address _this = address(this);
        IERC20 _token = IERC20(token);
        return (super.totalSupply(), _this.balance, _token.balanceOf(_this), _token.balanceOf(_user), _token.allowance(_user, _this));
    }

    // ERC712 things

    function bulkSafeTransferFrom(
        address _from,
        address[] calldata _to,
        uint256[] calldata _tokenId
    ) external {
        require(
            _to.length == _tokenId.length,
            "Input arrays length mismatch"
        );

        for (uint256 i = 0; i < _to.length; i++) {
            safeTransferFrom(_from, _to[i], _tokenId[i]);
        }
    }

    function setApprovalForAll(address _operator, bool _approved) public override onlyAllowedOperatorApproval(_operator) {
        super.setApprovalForAll(_operator, _approved);
    }

    function approve(address _operator, uint256 _tokenId) public payable override onlyAllowedOperatorApproval(_operator) {
        super.approve(_operator, _tokenId);
    }

    function transferFrom(address _from, address _to, uint256 _tokenId) public payable override onlyAllowedOperator(_from) {
        super.transferFrom(_from, _to, _tokenId);
    }

    function safeTransferFrom(address _from, address _to, uint256 _tokenId) public payable override onlyAllowedOperator(_from) {
        super.safeTransferFrom(_from, _to, _tokenId);
    }

    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) public payable override onlyAllowedOperator(_from) {
        super.safeTransferFrom(_from, _to, _tokenId, _data);
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        if (!_exists(_tokenId)) {
            revert URIQueryForNonexistentToken();
        }

        if (bytes(baseURI).length == 0) {
            return '';
        }

        if (_tokenId >= 1 && _tokenId <= presetCount) {
            return string(abi.encodePacked(baseURI, _toString(_tokenId)));
        }

        if (offset == 0) {
            // Token 0 is unrevealed metadata
            return string(abi.encodePacked(baseURI, _toString(0)));
        }

        return string(abi.encodePacked(baseURI, _toString(((_tokenId + offset - 1) % (maxSupply - presetCount)) + 1 + presetCount)));
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function _startTokenId() internal pure override returns (uint256) {
        // Token ID should start at 1, obviously
        return 1;
    }
}

File 2 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

File 3 of 4 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If not burned.
            if (packed & _BITMASK_BURNED == 0) {
                // If the data at the starting slot does not exist, start the scan.
                if (packed == 0) {
                    if (tokenId >= _currentIndex) revert OwnerQueryForNonexistentToken();
                    // Invariant:
                    // There will always be an initialized ownership slot
                    // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                    // before an unintialized ownership slot
                    // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                    // Hence, `tokenId` will not underflow.
                    //
                    // We can directly compare the packed value.
                    // If the address is zero, packed will be zero.
                    for (;;) {
                        unchecked {
                            packed = _packedOwnerships[--tokenId];
                        }
                        if (packed == 0) continue;
                        return packed;
                    }
                }
                // Otherwise, the data exists and is not burned. We can skip the scan.
                // This is possible because we have already achieved the target condition.
                // This saves 2143 gas on transfers of initialized tokens.
                return packed;
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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 caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                       APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_approve(to, tokenId, false)`.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _approve(to, tokenId, false);
    }

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck)
            if (_msgSenderERC721A() != owner)
                if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                    revert ApprovalCallerNotOwnerNorApproved();
                }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 4 of 4 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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`,
     * 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 be 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * 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 payable;

    /**
     * @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 payable;

    /**
     * @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 caller.
     *
     * 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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_mrF","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"contract IBurner","name":"_burner","type":"address"},{"internalType":"address","name":"_locker","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract OperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"allInfoFor","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"ethRewards","type":"uint256"},{"internalType":"uint256","name":"mrfRewards","type":"uint256"},{"internalType":"uint256","name":"userBalance","type":"uint256"},{"internalType":"uint256","name":"userAllowance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"bulkRare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_tokenId","type":"uint256[]"}],"name":"bulkSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_ids","type":"uint32[]"}],"name":"checkEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_ids","type":"uint32[]"},{"internalType":"uint256","name":"_fees","type":"uint256"}],"name":"checkEthWithFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint32[]","name":"_ids","type":"uint32[]"}],"name":"checkTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyOwnershipTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isRare","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offset","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offsetBlock","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"previousEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiveFrom","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"receivedEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setOperatorFilterEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_ids","type":"uint32[]"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint32[]","name":"_ids","type":"uint32[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040523480156200001257600080fd5b5060405162004b9d38038062004b9d8339810160408190526200003591620002b9565b604051806040016040528060078152602001664d722046726f6760c81b815250604051806040016040528060068152602001654d5246524f4760d01b815250816002908162000085919062000478565b50600362000094828262000478565b50600160005550506008805460ff191660011790556daaeb6d7670e522a718067333cd4e3b156200013a57604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe90604401600060405180830381600087803b1580156200012057600080fd5b505af115801562000135573d6000803e3d6000fd5b505050505b600962000148878262000478565b506001600160a01b0380861660805284811660a05283811660c05282811660e0528116610100526200017c30600a620001a1565b62000195856200018f600a605062000544565b620001a1565b5050505050506200056c565b6000805490829003620001c75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602062004b7d8339815191528180a4600183015b81811462000256578083600060008051602062004b7d833981519152600080a46001016200022d565b50816000036200027857604051622e076360e81b815260040160405180910390fd5b60005550505050565b505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620002b457600080fd5b919050565b60008060008060008060c08789031215620002d357600080fd5b86516001600160401b0380821115620002eb57600080fd5b818901915089601f8301126200030057600080fd5b81518181111562000315576200031562000286565b604051601f8201601f19908116603f0116810190838211818310171562000340576200034062000286565b81604052828152602093508c848487010111156200035d57600080fd5b600091505b8282101562000381578482018401518183018501529083019062000362565b6000848483010152809a505050506200039c818a016200029c565b96505050620003ae604088016200029c565b9350620003be606088016200029c565b9250620003ce608088016200029c565b9150620003de60a088016200029c565b90509295509295509295565b600181811c90821680620003ff57607f821691505b6020821081036200042057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028157600081815260208120601f850160051c810160208610156200044f5750805b601f850160051c820191505b8181101562000470578281556001016200045b565b505050505050565b81516001600160401b0381111562000494576200049462000286565b620004ac81620004a58454620003ea565b8462000426565b602080601f831160018114620004e45760008415620004cb5750858301515b600019600386901b1c1916600185901b17855562000470565b600085815260208120601f198616915b828110156200051557888601518255948401946001909101908401620004f4565b5085821015620005345787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156200056657634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e051610100516145326200064b600039600081816113fb0152818161149101528181611a450152612c7b01526000818161124601528181611313015281816136a60152613776015260008181610c3f0152610cfb01526000818161104401528181611feb01528181612074015281816122a00152818161234e01528181612554015281816126180152818161271001526127c2015260008181610a1a01528181610b5f01528181610ff1015281816111d5015281816112eb01528181611949015281816123e001526133d501526145326000f3fe6080604052600436106102535760003560e01c80637501f74111610138578063b88d4fde116100b0578063d5abeb0111610077578063d5abeb011461073b578063d87d40cf14610751578063e10e9e5f14610771578063e985e9c514610786578063f5632ab4146107cf578063f83d08ba146107e557005b8063b88d4fde146106a7578063c87b56dd146106ba578063cf309012146106da578063d471a35f146106f4578063d55565441461071457005b806395d89b41116100ff57806395d89b41146105eb5780639aee38c0146106005780639eb6e3391461061a578063a05dfeab1461063a578063a0712d6814610667578063a22cb4651461068757005b80637501f7411461056157806375412e04146105765780637f89b5ce146105965780638d8e529e146105ab5780638f4ffcb1146105cb57005b80633a57b224116101cb57806355f804b31161019257806355f804b31461048757806357f6b812146104a7578063596d1de2146104ef5780636352211e146105045780636817c76c1461052457806370a082311461054157005b80633a57b224146103fc57806341cd0ae51461041c57806341f434341461043257806342842e0e14610454578063512683091461046757005b80631fe09da31161021a5780631fe09da314610321578063205396c71461035157806323b872dd146103715780632ae7e3861461038457806333712143146103a4578063379607f5146103dc57005b806301ffc9a71461025c57806306fdde0314610291578063081812fc146102b3578063095ea7b3146102eb57806318160ddd146102fe57005b3661025a57005b005b34801561026857600080fd5b5061027c610277366004613ba6565b6107fa565b60405190151581526020015b60405180910390f35b34801561029d57600080fd5b506102a661084c565b6040516102889190613c13565b3480156102bf57600080fd5b506102d36102ce366004613c26565b6108de565b6040516001600160a01b039091168152602001610288565b61025a6102f9366004613c54565b610922565b34801561030a57600080fd5b50610313610a01565b604051908152602001610288565b34801561032d57600080fd5b5061027c61033c366004613c26565b600b6020526000908152604090205460ff1681565b34801561035d57600080fd5b5061025a61036c366004613c8e565b610a0f565b61025a61037f366004613cab565b610a6a565b34801561039057600080fd5b5061025a61039f366004613cec565b610b54565b3480156103b057600080fd5b50600a546103c4906001600160801b031681565b6040516001600160801b039091168152602001610288565b3480156103e857600080fd5b5061025a6103f7366004613c26565b610bdf565b34801561040857600080fd5b50610313610417366004613d68565b610e35565b34801561042857600080fd5b50610313600d5481565b34801561043e57600080fd5b506102d36daaeb6d7670e522a718067333cd4e81565b61025a610462366004613cab565b610e4a565b34801561047357600080fd5b5061025a610482366004613daa565b610f29565b34801561049357600080fd5b5061025a6104a2366004613e2d565b610fe6565b3480156104b357600080fd5b506104c76104c2366004613e9f565b61103b565b604080519586526020860194909452928401919091526060830152608082015260a001610288565b3480156104fb57600080fd5b5061025a6111ca565b34801561051057600080fd5b506102d361051f366004613c26565b611345565b34801561053057600080fd5b5061031368056bc75e2d6310000081565b34801561054d57600080fd5b5061031361055c366004613e9f565b611350565b34801561056d57600080fd5b50610313603281565b34801561058257600080fd5b5061025a610591366004613d68565b61139f565b3480156105a257600080fd5b5061025a61193e565b3480156105b757600080fd5b5061025a6105c6366004613ebc565b611a04565b3480156105d757600080fd5b5061025a6105e6366004613fb4565b611fe0565b3480156105f757600080fd5b506102a66123c6565b34801561060c57600080fd5b5060085461027c9060ff1681565b34801561062657600080fd5b5061025a610635366004613d68565b6123d5565b34801561064657600080fd5b50610313610655366004613c26565b600f6020526000908152604090205481565b34801561067357600080fd5b5061025a610682366004613c26565b6124a2565b34801561069357600080fd5b5061025a6106a2366004614020565b612951565b61025a6106b536600461404e565b612a26565b3480156106c657600080fd5b506102a66106d5366004613c26565b612b0c565b3480156106e657600080fd5b50600c5461027c9060ff1681565b34801561070057600080fd5b5061031361070f3660046140a2565b612c2e565b34801561072057600080fd5b50600a546103c490600160801b90046001600160801b031681565b34801561074757600080fd5b50610313610e7481565b34801561075d57600080fd5b5061031361076c366004613ebc565b612f39565b34801561077d57600080fd5b5061025a61325e565b34801561079257600080fd5b5061027c6107a13660046140ee565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b50610313600e5481565b3480156107f157600080fd5b5061025a6133ca565b60006301ffc9a760e01b6001600160e01b03198316148061082b57506380ac58cd60e01b6001600160e01b03198316145b806108465750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461085b9061411c565b80601f01602080910402602001604051908101604052809291908181526020018280546108879061411c565b80156108d45780601f106108a9576101008083540402835291602001916108d4565b820191906000526020600020905b8154815290600101906020018083116108b757829003601f168201915b5050505050905090565b60006108e982613421565b610906576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600854829060ff16801561094457506daaeb6d7670e522a718067333cd4e3b15155b156109f257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156109a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c59190614156565b6109f257604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6109fc8383613456565b505050565b600154600054036000190190565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610a575760405162461bcd60e51b81526004016109e990614173565b6008805460ff1916911515919091179055565b600854839060ff168015610a8c57506daaeb6d7670e522a718067333cd4e3b15155b15610b4357336001600160a01b03821603610ab157610aac848484613466565b610b4e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b249190614156565b610b4357604051633b79c77360e21b81523360048201526024016109e9565b610b4e848484613466565b50505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b9c5760405162461bcd60e51b81526004016109e990614173565b600c5460ff1615610bbf5760405162461bcd60e51b81526004016109e990614196565b6000918252600b6020526040909120805460ff1916911515919091179055565b600a8110610c1f5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b60448201526064016109e9565b60405163bf36839960e01b81526004810182905233906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bf36839990602401602060405180830381865afa158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa91906141b6565b6001600160a01b031614610cf95760405162461bcd60e51b8152602060048201526016602482015275082c8c8e4cae6e640c8decae640dcdee840dac2e8c6d60531b60448201526064016109e9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663bdb337d16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7b9190614156565b610db75760405162461bcd60e51b815260206004820152600d60248201526c23b0b6b2903737ba1037bb32b960991b60448201526064016109e9565b306323b872dd8133610dca8560016141e9565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064015b600060405180830381600087803b158015610e1a57600080fd5b505af1158015610e2e573d6000803e3d6000fd5b5050505050565b6000610e4383836000612c2e565b9392505050565b600854839060ff168015610e6c57506daaeb6d7670e522a718067333cd4e3b15155b15610f1e57336001600160a01b03821603610e8c57610aac8484846135fb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eff9190614156565b610f1e57604051633b79c77360e21b81523360048201526024016109e9565b610b4e8484846135fb565b828114610f785760405162461bcd60e51b815260206004820152601c60248201527f496e70757420617272617973206c656e677468206d69736d617463680000000060448201526064016109e9565b60005b83811015610fde57610fcc86868684818110610f9957610f996141fc565b9050602002016020810190610fae9190613e9f565b858585818110610fc057610fc06141fc565b90506020020135610e4a565b80610fd681614212565b915050610f7b565b505050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461102e5760405162461bcd60e51b81526004016109e990614173565b60096109fc828483614271565b600080808080307f000000000000000000000000000000000000000000000000000000000000000061106b610a01565b6040516370a0823160e01b81526001600160a01b03808516600483018190523191908416906370a0823190602401602060405180830381865afa1580156110b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110da9190614331565b6040516370a0823160e01b81526001600160a01b038c811660048301528516906370a0823190602401602060405180830381865afa158015611120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111449190614331565b604051636eb1769f60e11b81526001600160a01b038d81166004830152878116602483015286169063dd62ed3e90604401602060405180830381865afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190614331565b939c929b5090995097509095509350505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112125760405162461bcd60e51b81526004016109e990614173565b600c5460ff16156112355760405162461bcd60e51b81526004016109e990614196565b6000309050806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c691906141b6565b6001600160a01b0316036113425760405163a6f9dae160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063a6f9dae190602401610e00565b50565b600061084682613616565b60006001600160a01b038216611379576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600c5460ff166113de5760405162461bcd60e51b815260206004820152600a602482015269139bdd081b1bd8dad95960b21b60448201526064016109e9565b6113e66136a2565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561144f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114739190614331565b905080156114f657604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505050505b600d546000904790829061150a908361434a565b9050600081600e5461151c91906141e9565b9050811561153c5781600e600082825461153691906141e9565b90915550505b60005b87811015611898573361157d8a8a8481811061155d5761155d6141fc565b9050602002016020810190611572919061435d565b63ffffffff16611345565b6001600160a01b0316146115c85760405162461bcd60e51b815260206004820152601260248201527126bab9ba1037bbb7103a3432903a37b5b2b760711b60448201526064016109e9565b600060018a8a848181106115de576115de6141fc565b90506020020160208101906115f3919061435d565b63ffffffff16101580156116345750600a8a8a84818110611616576116166141fc565b905060200201602081019061162b919061435d565b63ffffffff1611155b156116f857600f60008b8b8581811061164f5761164f6141fc565b9050602002016020810190611664919061435d565b63ffffffff1681526020019081526020016000205460648460036116889190614383565b61169291906143b0565b61169c919061434a565b905080600f60008c8c868181106116b5576116b56141fc565b90506020020160208101906116ca919061435d565b63ffffffff16815260200190815260200160002060008282546116ed91906141e9565b909155506118789050565b611704600a60016141e9565b8a8a84818110611716576117166141fc565b905060200201602081019061172b919061435d565b63ffffffff161015801561176c575060508a8a8481811061174e5761174e6141fc565b9050602002016020810190611763919061435d565b63ffffffff1611155b806117b85750600b60008b8b85818110611788576117886141fc565b905060200201602081019061179d919061435d565b63ffffffff16815260208101919091526040016000205460ff165b1561187857600f60008b8b858181106117d3576117d36141fc565b90506020020160208101906117e8919061435d565b63ffffffff1681526020019081526020016000205461038484600761180d9190614383565b61181791906143b0565b611821919061434a565b905080600f60008c8c8681811061183a5761183a6141fc565b905060200201602081019061184f919061435d565b63ffffffff168152602001908152602001600020600082825461187291906141e9565b90915550505b61188281876141e9565b955050808061189090614212565b91505061153f565b506118a3848461434a565b600d55604051600090339086908381818185875af1925050503d80600081146118e8576040519150601f19603f3d011682016040523d82523d6000602084013e6118ed565b606091505b50509050806119335760405162461bcd60e51b81526020600482015260126024820152712330b4b632b2103a37903a3930b739b332b960711b60448201526064016109e9565b505050505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146119865760405162461bcd60e51b81526004016109e990614173565b610e74611991610a01565b146119ce5760405162461bcd60e51b815260206004820152600d60248201526c29b0b632903737ba1037bb32b960991b60448201526064016109e9565b6119d94360016143c4565b600a80546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055565b600c5460ff16611a435760405162461bcd60e51b815260206004820152600a602482015269139bdd081b1bd8dad95960b21b60448201526064016109e9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611abb5760405162461bcd60e51b8152602060048201526014602482015273086c2dcdcdee840eed2e8d0c8e4c2ee40ae8aa8960631b60448201526064016109e9565b6040516370a0823160e01b815230600482015260009081906001600160a01b038616906370a0823190602401602060405180830381865afa158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b289190614331565b6001600160a01b038616600090815260106020526040812060010154919250611b51828461434a565b6001600160a01b03881660009081526010602052604081205491925090611b799083906141e9565b90508115611baf576001600160a01b03881660009081526010602052604081208054849290611ba99084906141e9565b90915550505b60005b86811015611f4f5733611bd089898481811061155d5761155d6141fc565b6001600160a01b031614611c1b5760405162461bcd60e51b815260206004820152601260248201527126bab9ba1037bbb7103a3432903a37b5b2b760711b60448201526064016109e9565b60006001898984818110611c3157611c316141fc565b9050602002016020810190611c46919061435d565b63ffffffff1610158015611c875750600a898984818110611c6957611c696141fc565b9050602002016020810190611c7e919061435d565b63ffffffff1611155b15611d7d576001600160a01b038a166000908152601060205260408120600201908a8a85818110611cba57611cba6141fc565b9050602002016020810190611ccf919061435d565b63ffffffff168152602001908152602001600020546064846003611cf39190614383565b611cfd91906143b0565b611d07919061434a565b6001600160a01b038b1660009081526010602052604081209192508291600201908b8b86818110611d3a57611d3a6141fc565b9050602002016020810190611d4f919061435d565b63ffffffff1681526020019081526020016000206000828254611d7291906141e9565b90915550611f2f9050565b611d89600a60016141e9565b898984818110611d9b57611d9b6141fc565b9050602002016020810190611db0919061435d565b63ffffffff1610158015611df157506050898984818110611dd357611dd36141fc565b9050602002016020810190611de8919061435d565b63ffffffff1611155b80611e3d5750600b60008a8a85818110611e0d57611e0d6141fc565b9050602002016020810190611e22919061435d565b63ffffffff16815260208101919091526040016000205460ff165b15611f2f576001600160a01b038a166000908152601060205260408120600201908a8a85818110611e7057611e706141fc565b9050602002016020810190611e85919061435d565b63ffffffff16815260200190815260200160002054610384846007611eaa9190614383565b611eb491906143b0565b611ebe919061434a565b6001600160a01b038b1660009081526010602052604081209192508291600201908b8b86818110611ef157611ef16141fc565b9050602002016020810190611f06919061435d565b63ffffffff1681526020019081526020016000206000828254611f2991906141e9565b90915550505b611f3981886141e9565b9650508080611f4790614212565b915050611bb2565b50611f5a858561434a565b6001600160a01b0389166000818152601060205260409081902060010192909255905163a9059cbb60e01b81523360048201526024810187905263a9059cbb906044016020604051808303816000875af1158015611fbc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119339190614156565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146120485760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064016109e9565b6040516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018590527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af11580156120bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e19190614156565b6121255760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b60448201526064016109e9565b600061213a68056bc75e2d63100000856143b0565b90508060000361217d5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109e9565b60328111156121c05760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d6178696d756d60881b60448201526064016109e9565b60006121d568056bc75e2d6310000083614383565b6121df908661434a565b905060006121eb610a01565b9050610e7481111561222f5760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420636f6d706c65746560981b60448201526064016109e9565b610e7461223c84836141e9565b111561228c57600061225082610e7461434a565b905068056bc75e2d63100000612266828661434a565b6122709190614383565b61227a90846141e9565b9250612286888261380c565b50612296565b612296878461380c565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166342966c686122cf848961434a565b6040518263ffffffff1660e01b81526004016122ed91815260200190565b600060405180830381600087803b15801561230757600080fd5b505af115801561231b573d6000803e3d6000fd5b5050505060008211156123bd5760405163a9059cbb60e01b81526001600160a01b038881166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015612397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bb9190614156565b505b50505050505050565b60606003805461085b9061411c565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461241d5760405162461bcd60e51b81526004016109e990614173565b600c5460ff16156124405760405162461bcd60e51b81526004016109e990614196565b60005b818110156109fc576001600b6000858585818110612463576124636141fc565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061249a90614212565b915050612443565b806000036124e35760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109e9565b60328111156125265760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d6178696d756d60881b60448201526064016109e9565b6125398168056bc75e2d63100000614383565b604051636eb1769f60e11b81523360048201523060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063dd62ed3e90604401602060405180830381865afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c79190614331565b101561260e5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016109e9565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323b872dd33306126528568056bc75e2d63100000614383565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156126a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126ca9190614156565b61270e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b60448201526064016109e9565b7f00000000000000000000000000000000000000000000000000000000000000006000612739610a01565b9050610e7481111561277d5760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420636f6d706c65746560981b60448201526064016109e9565b610e7461278a84836141e9565b11156128d957600061279e82610e7461434a565b905060006127ac828661434a565b90506127b8338361380c565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336127fb68056bc75e2d6310000085614383565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286a9190614156565b506001600160a01b0384166342966c6861288d8468056bc75e2d63100000614383565b6040518263ffffffff1660e01b81526004016128ab91815260200190565b600060405180830381600087803b1580156128c557600080fd5b505af1158015611933573d6000803e3d6000fd5b6128e3338461380c565b6001600160a01b0382166342966c686129058568056bc75e2d63100000614383565b6040518263ffffffff1660e01b815260040161292391815260200190565b600060405180830381600087803b15801561293d57600080fd5b505af11580156123bd573d6000803e3d6000fd5b600854829060ff16801561297357506daaeb6d7670e522a718067333cd4e3b15155b15612a1c57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156129d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f49190614156565b612a1c57604051633b79c77360e21b81526001600160a01b03821660048201526024016109e9565b6109fc838361390a565b600854849060ff168015612a4857506daaeb6d7670e522a718067333cd4e3b15155b15612b0057336001600160a01b03821603612a6e57612a6985858585613976565b610e2e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae19190614156565b612b0057604051633b79c77360e21b81523360048201526024016109e9565b610e2e85858585613976565b6060612b1782613421565b612b3457604051630a14c4b560e41b815260040160405180910390fd5b60098054612b419061411c565b9050600003612b5e57505060408051602081019091526000815290565b60018210158015612b70575060508211155b15612ba7576009612b80836139ba565b604051602001612b919291906143eb565b6040516020818303038152906040529050919050565b600a54600160801b90046001600160801b0316600003612bcd576009612b8060006139ba565b6009612b806050612be081610e7461434a565b600a54600190612c0090600160801b90046001600160801b0316886141e9565b612c0a919061434a565b612c149190614472565b612c1f9060016141e9565b612c2991906141e9565b6139ba565b60008060004790506000600d5482612c46919061434a565b905060008582600e54612c5991906141e9565b612c6391906141e9565b6040516370a0823160e01b81523060048201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612cca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cee9190614331565b612cf890826141e9565b905060005b87811015612f2c57600060018a8a84818110612d1b57612d1b6141fc565b9050602002016020810190612d30919061435d565b63ffffffff1610158015612d715750600a8a8a84818110612d5357612d536141fc565b9050602002016020810190612d68919061435d565b63ffffffff1611155b15612de057600f60008b8b85818110612d8c57612d8c6141fc565b9050602002016020810190612da1919061435d565b63ffffffff168152602001908152602001600020546064846003612dc59190614383565b612dcf91906143b0565b612dd9919061434a565b9050612f0c565b612dec600a60016141e9565b8a8a84818110612dfe57612dfe6141fc565b9050602002016020810190612e13919061435d565b63ffffffff1610158015612e54575060508a8a84818110612e3657612e366141fc565b9050602002016020810190612e4b919061435d565b63ffffffff1611155b80612ea05750600b60008b8b85818110612e7057612e706141fc565b9050602002016020810190612e85919061435d565b63ffffffff16815260208101919091526040016000205460ff165b15612f0c57600f60008b8b85818110612ebb57612ebb6141fc565b9050602002016020810190612ed0919061435d565b63ffffffff16815260200190815260200160002054610384846007612ef59190614383565b612eff91906143b0565b612f09919061434a565b90505b612f1681876141e9565b9550508080612f2490614212565b915050612cfd565b5092979650505050505050565b6040516370a0823160e01b8152306004820152600090819081906001600160a01b038716906370a0823190602401602060405180830381865afa158015612f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa89190614331565b6001600160a01b03871660009081526010602052604081206001015491925090612fd2908361434a565b6001600160a01b03881660009081526010602052604081205491925090612ffa9083906141e9565b905060005b86811015612f2c576000600189898481811061301d5761301d6141fc565b9050602002016020810190613032919061435d565b63ffffffff16101580156130735750600a898984818110613055576130556141fc565b905060200201602081019061306a919061435d565b63ffffffff1611155b156130fa576001600160a01b038a166000908152601060205260408120600201908a8a858181106130a6576130a66141fc565b90506020020160208101906130bb919061435d565b63ffffffff1681526020019081526020016000205460648460036130df9190614383565b6130e991906143b0565b6130f3919061434a565b905061323e565b613106600a60016141e9565b898984818110613118576131186141fc565b905060200201602081019061312d919061435d565b63ffffffff161015801561316e57506050898984818110613150576131506141fc565b9050602002016020810190613165919061435d565b63ffffffff1611155b806131ba5750600b60008a8a8581811061318a5761318a6141fc565b905060200201602081019061319f919061435d565b63ffffffff16815260208101919091526040016000205460ff165b1561323e576001600160a01b038a166000908152601060205260408120600201908a8a858181106131ed576131ed6141fc565b9050602002016020810190613202919061435d565b63ffffffff168152602001908152602001600020546103848460076132279190614383565b61323191906143b0565b61323b919061434a565b90505b61324881876141e9565b955050808061325690614212565b915050612fff565b600a54600160801b90046001600160801b0316156132be5760405162461bcd60e51b815260206004820152601d60248201527f5374617274696e6720696e64657820697320616c72656164792073657400000060448201526064016109e9565b600a546001600160801b03166000036133195760405162461bcd60e51b815260206004820181905260248201527f5374617274696e6720696e64657820626c6f636b206d7573742062652073657460448201526064016109e9565b600a5460ff90613332906001600160801b03164361434a565b1061336e5760405162461bcd60e51b815260206004820152600c60248201526b135d5cdd081c994b5a5b9a5d60a21b60448201526064016109e9565b600061337d6050610e7461434a565b600a5461339491906001600160801b031640614472565b9050806001600160801b03166000036133ab575060015b600a80546001600160801b03928316600160801b029216919091179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146134125760405162461bcd60e51b81526004016109e990614173565b600c805460ff19166001179055565b600081600111158015613435575060005482105b8015610846575050600090815260046020526040902054600160e01b161590565b613462828260016139fe565b5050565b600061347182613616565b9050836001600160a01b0316816001600160a01b0316146134a45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176134f1576134d486336107a1565b6134f157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661351857604051633a954ecd60e21b815260040160405180910390fd5b801561352357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036135b5576001840160008181526004602052604081205490036135b35760005481146135b35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fde565b6109fc83838360405180602001604052806000815250612a26565b600081600111613689575060008181526004602052604081205490600160e01b82169003613689578060000361368457600054821061366857604051636f96cda160e11b815260040160405180910390fd5b5b50600019016000818152600460205260409020548015613669575b919050565b604051636f96cda160e11b815260040160405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166207cd4e6040516024016136e491815260200190565b60408051601f198184030181529181526020820180516001600160e01b0316632d7adfeb60e11b179052516137199190614486565b6000604051808303816000865af19150503d8060008114613756576040519150601f19603f3d011682016040523d82523d6000602084013e61375b565b606091505b50506040516207cd5160248201529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169060440160408051601f198184030181529181526020820180516001600160e01b0316632d7adfeb60e11b179052516137cf9190614486565b6000604051808303816000865af19150503d8060008114610b4e576040519150601f19603f3d011682016040523d82523d6000602084013e610b4e565b60008054908290036138315760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146138e057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016138a8565b508160000361390157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b613981848484610a6a565b6001600160a01b0383163b15610b4e5761399d84848484613aa5565b610b4e576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806139d45750819003601f19909101908152919050565b6000613a0983611345565b90508115613a4857336001600160a01b03821614613a4857613a2b81336107a1565b613a48576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613ada9033908990889088906004016144a2565b6020604051808303816000875af1925050508015613b15575060408051601f3d908101601f19168201909252613b12918101906144df565b60015b613b73573d808015613b43576040519150601f19603f3d011682016040523d82523d6000602084013e613b48565b606091505b508051600003613b6b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b03198116811461134257600080fd5b600060208284031215613bb857600080fd5b8135610e4381613b90565b60005b83811015613bde578181015183820152602001613bc6565b50506000910152565b60008151808452613bff816020860160208601613bc3565b601f01601f19169290920160200192915050565b602081526000610e436020830184613be7565b600060208284031215613c3857600080fd5b5035919050565b6001600160a01b038116811461134257600080fd5b60008060408385031215613c6757600080fd5b8235613c7281613c3f565b946020939093013593505050565b801515811461134257600080fd5b600060208284031215613ca057600080fd5b8135610e4381613c80565b600080600060608486031215613cc057600080fd5b8335613ccb81613c3f565b92506020840135613cdb81613c3f565b929592945050506040919091013590565b60008060408385031215613cff57600080fd5b823591506020830135613d1181613c80565b809150509250929050565b60008083601f840112613d2e57600080fd5b50813567ffffffffffffffff811115613d4657600080fd5b6020830191508360208260051b8501011115613d6157600080fd5b9250929050565b60008060208385031215613d7b57600080fd5b823567ffffffffffffffff811115613d9257600080fd5b613d9e85828601613d1c565b90969095509350505050565b600080600080600060608688031215613dc257600080fd5b8535613dcd81613c3f565b9450602086013567ffffffffffffffff80821115613dea57600080fd5b613df689838a01613d1c565b90965094506040880135915080821115613e0f57600080fd5b50613e1c88828901613d1c565b969995985093965092949392505050565b60008060208385031215613e4057600080fd5b823567ffffffffffffffff80821115613e5857600080fd5b818501915085601f830112613e6c57600080fd5b813581811115613e7b57600080fd5b866020828501011115613e8d57600080fd5b60209290920196919550909350505050565b600060208284031215613eb157600080fd5b8135610e4381613c3f565b600080600060408486031215613ed157600080fd5b8335613edc81613c3f565b9250602084013567ffffffffffffffff811115613ef857600080fd5b613f0486828701613d1c565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613f3857600080fd5b813567ffffffffffffffff80821115613f5357613f53613f11565b604051601f8301601f19908116603f01168101908282118183101715613f7b57613f7b613f11565b81604052838152866020858801011115613f9457600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215613fca57600080fd5b8435613fd581613c3f565b9350602085013592506040850135613fec81613c3f565b9150606085013567ffffffffffffffff81111561400857600080fd5b61401487828801613f27565b91505092959194509250565b6000806040838503121561403357600080fd5b823561403e81613c3f565b91506020830135613d1181613c80565b6000806000806080858703121561406457600080fd5b843561406f81613c3f565b9350602085013561407f81613c3f565b925060408501359150606085013567ffffffffffffffff81111561400857600080fd5b6000806000604084860312156140b757600080fd5b833567ffffffffffffffff8111156140ce57600080fd5b6140da86828701613d1c565b909790965060209590950135949350505050565b6000806040838503121561410157600080fd5b823561410c81613c3f565b91506020830135613d1181613c3f565b600181811c9082168061413057607f821691505b60208210810361415057634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561416857600080fd5b8151610e4381613c80565b6020808252600990820152682737ba1037bbb732b960b91b604082015260600190565b602080825260069082015265131bd8dad95960d21b604082015260600190565b6000602082840312156141c857600080fd5b8151610e4381613c3f565b634e487b7160e01b600052601160045260246000fd5b80820180821115610846576108466141d3565b634e487b7160e01b600052603260045260246000fd5b600060018201614224576142246141d3565b5060010190565b601f8211156109fc57600081815260208120601f850160051c810160208610156142525750805b601f850160051c820191505b81811015610fde5782815560010161425e565b67ffffffffffffffff83111561428957614289613f11565b61429d83614297835461411c565b8361422b565b6000601f8411600181146142d157600085156142b95750838201355b600019600387901b1c1916600186901b178355610e2e565b600083815260209020601f19861690835b8281101561430257868501358255602094850194600190920191016142e2565b508682101561431f5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561434357600080fd5b5051919050565b81810381811115610846576108466141d3565b60006020828403121561436f57600080fd5b813563ffffffff81168114610e4357600080fd5b8082028115828204841417610846576108466141d3565b634e487b7160e01b600052601260045260246000fd5b6000826143bf576143bf61439a565b500490565b6001600160801b038181168382160190808211156143e4576143e46141d3565b5092915050565b60008084546143f98161411c565b60018281168015614411576001811461442657614455565b60ff1984168752821515830287019450614455565b8860005260208060002060005b8581101561444c5781548a820152908401908201614433565b50505082870194505b505050508351614469818360208801613bc3565b01949350505050565b6000826144815761448161439a565b500690565b60008251614498818460208701613bc3565b9190910192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144d590830184613be7565b9695505050505050565b6000602082840312156144f157600080fd5b8151610e4381613b9056fea2646970667358221220e9df3c55ecaf01e1bfac15a8f95e0441ba0079fe5687c31f88dd91907752f89864736f6c63430008120033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725000000000000000000000000e8fa0c520075a9a6a1197de47d4b3d8e0b9b944e000000000000000000000000025b74e0750634ee8640227defa810322c56332a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d61457538505a487772506d4353784d5568426859455676313574536f784b536e74746f347879637a437236322f00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102535760003560e01c80637501f74111610138578063b88d4fde116100b0578063d5abeb0111610077578063d5abeb011461073b578063d87d40cf14610751578063e10e9e5f14610771578063e985e9c514610786578063f5632ab4146107cf578063f83d08ba146107e557005b8063b88d4fde146106a7578063c87b56dd146106ba578063cf309012146106da578063d471a35f146106f4578063d55565441461071457005b806395d89b41116100ff57806395d89b41146105eb5780639aee38c0146106005780639eb6e3391461061a578063a05dfeab1461063a578063a0712d6814610667578063a22cb4651461068757005b80637501f7411461056157806375412e04146105765780637f89b5ce146105965780638d8e529e146105ab5780638f4ffcb1146105cb57005b80633a57b224116101cb57806355f804b31161019257806355f804b31461048757806357f6b812146104a7578063596d1de2146104ef5780636352211e146105045780636817c76c1461052457806370a082311461054157005b80633a57b224146103fc57806341cd0ae51461041c57806341f434341461043257806342842e0e14610454578063512683091461046757005b80631fe09da31161021a5780631fe09da314610321578063205396c71461035157806323b872dd146103715780632ae7e3861461038457806333712143146103a4578063379607f5146103dc57005b806301ffc9a71461025c57806306fdde0314610291578063081812fc146102b3578063095ea7b3146102eb57806318160ddd146102fe57005b3661025a57005b005b34801561026857600080fd5b5061027c610277366004613ba6565b6107fa565b60405190151581526020015b60405180910390f35b34801561029d57600080fd5b506102a661084c565b6040516102889190613c13565b3480156102bf57600080fd5b506102d36102ce366004613c26565b6108de565b6040516001600160a01b039091168152602001610288565b61025a6102f9366004613c54565b610922565b34801561030a57600080fd5b50610313610a01565b604051908152602001610288565b34801561032d57600080fd5b5061027c61033c366004613c26565b600b6020526000908152604090205460ff1681565b34801561035d57600080fd5b5061025a61036c366004613c8e565b610a0f565b61025a61037f366004613cab565b610a6a565b34801561039057600080fd5b5061025a61039f366004613cec565b610b54565b3480156103b057600080fd5b50600a546103c4906001600160801b031681565b6040516001600160801b039091168152602001610288565b3480156103e857600080fd5b5061025a6103f7366004613c26565b610bdf565b34801561040857600080fd5b50610313610417366004613d68565b610e35565b34801561042857600080fd5b50610313600d5481565b34801561043e57600080fd5b506102d36daaeb6d7670e522a718067333cd4e81565b61025a610462366004613cab565b610e4a565b34801561047357600080fd5b5061025a610482366004613daa565b610f29565b34801561049357600080fd5b5061025a6104a2366004613e2d565b610fe6565b3480156104b357600080fd5b506104c76104c2366004613e9f565b61103b565b604080519586526020860194909452928401919091526060830152608082015260a001610288565b3480156104fb57600080fd5b5061025a6111ca565b34801561051057600080fd5b506102d361051f366004613c26565b611345565b34801561053057600080fd5b5061031368056bc75e2d6310000081565b34801561054d57600080fd5b5061031361055c366004613e9f565b611350565b34801561056d57600080fd5b50610313603281565b34801561058257600080fd5b5061025a610591366004613d68565b61139f565b3480156105a257600080fd5b5061025a61193e565b3480156105b757600080fd5b5061025a6105c6366004613ebc565b611a04565b3480156105d757600080fd5b5061025a6105e6366004613fb4565b611fe0565b3480156105f757600080fd5b506102a66123c6565b34801561060c57600080fd5b5060085461027c9060ff1681565b34801561062657600080fd5b5061025a610635366004613d68565b6123d5565b34801561064657600080fd5b50610313610655366004613c26565b600f6020526000908152604090205481565b34801561067357600080fd5b5061025a610682366004613c26565b6124a2565b34801561069357600080fd5b5061025a6106a2366004614020565b612951565b61025a6106b536600461404e565b612a26565b3480156106c657600080fd5b506102a66106d5366004613c26565b612b0c565b3480156106e657600080fd5b50600c5461027c9060ff1681565b34801561070057600080fd5b5061031361070f3660046140a2565b612c2e565b34801561072057600080fd5b50600a546103c490600160801b90046001600160801b031681565b34801561074757600080fd5b50610313610e7481565b34801561075d57600080fd5b5061031361076c366004613ebc565b612f39565b34801561077d57600080fd5b5061025a61325e565b34801561079257600080fd5b5061027c6107a13660046140ee565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b50610313600e5481565b3480156107f157600080fd5b5061025a6133ca565b60006301ffc9a760e01b6001600160e01b03198316148061082b57506380ac58cd60e01b6001600160e01b03198316145b806108465750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461085b9061411c565b80601f01602080910402602001604051908101604052809291908181526020018280546108879061411c565b80156108d45780601f106108a9576101008083540402835291602001916108d4565b820191906000526020600020905b8154815290600101906020018083116108b757829003601f168201915b5050505050905090565b60006108e982613421565b610906576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600854829060ff16801561094457506daaeb6d7670e522a718067333cd4e3b15155b156109f257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156109a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c59190614156565b6109f257604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6109fc8383613456565b505050565b600154600054036000190190565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd1614610a575760405162461bcd60e51b81526004016109e990614173565b6008805460ff1916911515919091179055565b600854839060ff168015610a8c57506daaeb6d7670e522a718067333cd4e3b15155b15610b4357336001600160a01b03821603610ab157610aac848484613466565b610b4e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b249190614156565b610b4357604051633b79c77360e21b81523360048201526024016109e9565b610b4e848484613466565b50505050565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd1614610b9c5760405162461bcd60e51b81526004016109e990614173565b600c5460ff1615610bbf5760405162461bcd60e51b81526004016109e990614196565b6000918252600b6020526040909120805460ff1916911515919091179055565b600a8110610c1f5760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b60448201526064016109e9565b60405163bf36839960e01b81526004810182905233906001600160a01b037f000000000000000000000000e8fa0c520075a9a6a1197de47d4b3d8e0b9b944e169063bf36839990602401602060405180830381865afa158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa91906141b6565b6001600160a01b031614610cf95760405162461bcd60e51b8152602060048201526016602482015275082c8c8e4cae6e640c8decae640dcdee840dac2e8c6d60531b60448201526064016109e9565b7f000000000000000000000000e8fa0c520075a9a6a1197de47d4b3d8e0b9b944e6001600160a01b031663bdb337d16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7b9190614156565b610db75760405162461bcd60e51b815260206004820152600d60248201526c23b0b6b2903737ba1037bb32b960991b60448201526064016109e9565b306323b872dd8133610dca8560016141e9565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064015b600060405180830381600087803b158015610e1a57600080fd5b505af1158015610e2e573d6000803e3d6000fd5b5050505050565b6000610e4383836000612c2e565b9392505050565b600854839060ff168015610e6c57506daaeb6d7670e522a718067333cd4e3b15155b15610f1e57336001600160a01b03821603610e8c57610aac8484846135fb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eff9190614156565b610f1e57604051633b79c77360e21b81523360048201526024016109e9565b610b4e8484846135fb565b828114610f785760405162461bcd60e51b815260206004820152601c60248201527f496e70757420617272617973206c656e677468206d69736d617463680000000060448201526064016109e9565b60005b83811015610fde57610fcc86868684818110610f9957610f996141fc565b9050602002016020810190610fae9190613e9f565b858585818110610fc057610fc06141fc565b90506020020135610e4a565b80610fd681614212565b915050610f7b565b505050505050565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd161461102e5760405162461bcd60e51b81526004016109e990614173565b60096109fc828483614271565b600080808080307f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c72561106b610a01565b6040516370a0823160e01b81526001600160a01b03808516600483018190523191908416906370a0823190602401602060405180830381865afa1580156110b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110da9190614331565b6040516370a0823160e01b81526001600160a01b038c811660048301528516906370a0823190602401602060405180830381865afa158015611120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111449190614331565b604051636eb1769f60e11b81526001600160a01b038d81166004830152878116602483015286169063dd62ed3e90604401602060405180830381865afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190614331565b939c929b5090995097509095509350505050565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd16146112125760405162461bcd60e51b81526004016109e990614173565b600c5460ff16156112355760405162461bcd60e51b81526004016109e990614196565b6000309050806001600160a01b03167f000000000000000000000000025b74e0750634ee8640227defa810322c56332a6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c691906141b6565b6001600160a01b0316036113425760405163a6f9dae160e01b81526001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd811660048301527f000000000000000000000000025b74e0750634ee8640227defa810322c56332a169063a6f9dae190602401610e00565b50565b600061084682613616565b60006001600160a01b038216611379576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600c5460ff166113de5760405162461bcd60e51b815260206004820152600a602482015269139bdd081b1bd8dad95960b21b60448201526064016109e9565b6113e66136a2565b6040516370a0823160e01b81523060048201527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561144f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114739190614331565b905080156114f657604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505050505b600d546000904790829061150a908361434a565b9050600081600e5461151c91906141e9565b9050811561153c5781600e600082825461153691906141e9565b90915550505b60005b87811015611898573361157d8a8a8481811061155d5761155d6141fc565b9050602002016020810190611572919061435d565b63ffffffff16611345565b6001600160a01b0316146115c85760405162461bcd60e51b815260206004820152601260248201527126bab9ba1037bbb7103a3432903a37b5b2b760711b60448201526064016109e9565b600060018a8a848181106115de576115de6141fc565b90506020020160208101906115f3919061435d565b63ffffffff16101580156116345750600a8a8a84818110611616576116166141fc565b905060200201602081019061162b919061435d565b63ffffffff1611155b156116f857600f60008b8b8581811061164f5761164f6141fc565b9050602002016020810190611664919061435d565b63ffffffff1681526020019081526020016000205460648460036116889190614383565b61169291906143b0565b61169c919061434a565b905080600f60008c8c868181106116b5576116b56141fc565b90506020020160208101906116ca919061435d565b63ffffffff16815260200190815260200160002060008282546116ed91906141e9565b909155506118789050565b611704600a60016141e9565b8a8a84818110611716576117166141fc565b905060200201602081019061172b919061435d565b63ffffffff161015801561176c575060508a8a8481811061174e5761174e6141fc565b9050602002016020810190611763919061435d565b63ffffffff1611155b806117b85750600b60008b8b85818110611788576117886141fc565b905060200201602081019061179d919061435d565b63ffffffff16815260208101919091526040016000205460ff165b1561187857600f60008b8b858181106117d3576117d36141fc565b90506020020160208101906117e8919061435d565b63ffffffff1681526020019081526020016000205461038484600761180d9190614383565b61181791906143b0565b611821919061434a565b905080600f60008c8c8681811061183a5761183a6141fc565b905060200201602081019061184f919061435d565b63ffffffff168152602001908152602001600020600082825461187291906141e9565b90915550505b61188281876141e9565b955050808061189090614212565b91505061153f565b506118a3848461434a565b600d55604051600090339086908381818185875af1925050503d80600081146118e8576040519150601f19603f3d011682016040523d82523d6000602084013e6118ed565b606091505b50509050806119335760405162461bcd60e51b81526020600482015260126024820152712330b4b632b2103a37903a3930b739b332b960711b60448201526064016109e9565b505050505050505050565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd16146119865760405162461bcd60e51b81526004016109e990614173565b610e74611991610a01565b146119ce5760405162461bcd60e51b815260206004820152600d60248201526c29b0b632903737ba1037bb32b960991b60448201526064016109e9565b6119d94360016143c4565b600a80546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055565b600c5460ff16611a435760405162461bcd60e51b815260206004820152600a602482015269139bdd081b1bd8dad95960b21b60448201526064016109e9565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031603611abb5760405162461bcd60e51b8152602060048201526014602482015273086c2dcdcdee840eed2e8d0c8e4c2ee40ae8aa8960631b60448201526064016109e9565b6040516370a0823160e01b815230600482015260009081906001600160a01b038616906370a0823190602401602060405180830381865afa158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b289190614331565b6001600160a01b038616600090815260106020526040812060010154919250611b51828461434a565b6001600160a01b03881660009081526010602052604081205491925090611b799083906141e9565b90508115611baf576001600160a01b03881660009081526010602052604081208054849290611ba99084906141e9565b90915550505b60005b86811015611f4f5733611bd089898481811061155d5761155d6141fc565b6001600160a01b031614611c1b5760405162461bcd60e51b815260206004820152601260248201527126bab9ba1037bbb7103a3432903a37b5b2b760711b60448201526064016109e9565b60006001898984818110611c3157611c316141fc565b9050602002016020810190611c46919061435d565b63ffffffff1610158015611c875750600a898984818110611c6957611c696141fc565b9050602002016020810190611c7e919061435d565b63ffffffff1611155b15611d7d576001600160a01b038a166000908152601060205260408120600201908a8a85818110611cba57611cba6141fc565b9050602002016020810190611ccf919061435d565b63ffffffff168152602001908152602001600020546064846003611cf39190614383565b611cfd91906143b0565b611d07919061434a565b6001600160a01b038b1660009081526010602052604081209192508291600201908b8b86818110611d3a57611d3a6141fc565b9050602002016020810190611d4f919061435d565b63ffffffff1681526020019081526020016000206000828254611d7291906141e9565b90915550611f2f9050565b611d89600a60016141e9565b898984818110611d9b57611d9b6141fc565b9050602002016020810190611db0919061435d565b63ffffffff1610158015611df157506050898984818110611dd357611dd36141fc565b9050602002016020810190611de8919061435d565b63ffffffff1611155b80611e3d5750600b60008a8a85818110611e0d57611e0d6141fc565b9050602002016020810190611e22919061435d565b63ffffffff16815260208101919091526040016000205460ff165b15611f2f576001600160a01b038a166000908152601060205260408120600201908a8a85818110611e7057611e706141fc565b9050602002016020810190611e85919061435d565b63ffffffff16815260200190815260200160002054610384846007611eaa9190614383565b611eb491906143b0565b611ebe919061434a565b6001600160a01b038b1660009081526010602052604081209192508291600201908b8b86818110611ef157611ef16141fc565b9050602002016020810190611f06919061435d565b63ffffffff1681526020019081526020016000206000828254611f2991906141e9565b90915550505b611f3981886141e9565b9650508080611f4790614212565b915050611bb2565b50611f5a858561434a565b6001600160a01b0389166000818152601060205260409081902060010192909255905163a9059cbb60e01b81523360048201526024810187905263a9059cbb906044016020604051808303816000875af1158015611fbc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119339190614156565b336001600160a01b037f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c72516146120485760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064016109e9565b6040516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018590527f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c72516906323b872dd906064016020604051808303816000875af11580156120bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e19190614156565b6121255760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b60448201526064016109e9565b600061213a68056bc75e2d63100000856143b0565b90508060000361217d5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109e9565b60328111156121c05760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d6178696d756d60881b60448201526064016109e9565b60006121d568056bc75e2d6310000083614383565b6121df908661434a565b905060006121eb610a01565b9050610e7481111561222f5760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420636f6d706c65746560981b60448201526064016109e9565b610e7461223c84836141e9565b111561228c57600061225082610e7461434a565b905068056bc75e2d63100000612266828661434a565b6122709190614383565b61227a90846141e9565b9250612286888261380c565b50612296565b612296878461380c565b6001600160a01b037f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725166342966c686122cf848961434a565b6040518263ffffffff1660e01b81526004016122ed91815260200190565b600060405180830381600087803b15801561230757600080fd5b505af115801561231b573d6000803e3d6000fd5b5050505060008211156123bd5760405163a9059cbb60e01b81526001600160a01b038881166004830152602482018490527f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725169063a9059cbb906044016020604051808303816000875af1158015612397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bb9190614156565b505b50505050505050565b60606003805461085b9061411c565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd161461241d5760405162461bcd60e51b81526004016109e990614173565b600c5460ff16156124405760405162461bcd60e51b81526004016109e990614196565b60005b818110156109fc576001600b6000858585818110612463576124636141fc565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061249a90614212565b915050612443565b806000036124e35760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016109e9565b60328111156125265760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d6178696d756d60881b60448201526064016109e9565b6125398168056bc75e2d63100000614383565b604051636eb1769f60e11b81523360048201523060248201527f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c7256001600160a01b03169063dd62ed3e90604401602060405180830381865afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c79190614331565b101561260e5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016109e9565b6001600160a01b037f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725166323b872dd33306126528568056bc75e2d63100000614383565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156126a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126ca9190614156565b61270e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b60448201526064016109e9565b7f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c7256000612739610a01565b9050610e7481111561277d5760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420636f6d706c65746560981b60448201526064016109e9565b610e7461278a84836141e9565b11156128d957600061279e82610e7461434a565b905060006127ac828661434a565b90506127b8338361380c565b6001600160a01b037f0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c7251663a9059cbb336127fb68056bc75e2d6310000085614383565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286a9190614156565b506001600160a01b0384166342966c6861288d8468056bc75e2d63100000614383565b6040518263ffffffff1660e01b81526004016128ab91815260200190565b600060405180830381600087803b1580156128c557600080fd5b505af1158015611933573d6000803e3d6000fd5b6128e3338461380c565b6001600160a01b0382166342966c686129058568056bc75e2d63100000614383565b6040518263ffffffff1660e01b815260040161292391815260200190565b600060405180830381600087803b15801561293d57600080fd5b505af11580156123bd573d6000803e3d6000fd5b600854829060ff16801561297357506daaeb6d7670e522a718067333cd4e3b15155b15612a1c57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156129d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f49190614156565b612a1c57604051633b79c77360e21b81526001600160a01b03821660048201526024016109e9565b6109fc838361390a565b600854849060ff168015612a4857506daaeb6d7670e522a718067333cd4e3b15155b15612b0057336001600160a01b03821603612a6e57612a6985858585613976565b610e2e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae19190614156565b612b0057604051633b79c77360e21b81523360048201526024016109e9565b610e2e85858585613976565b6060612b1782613421565b612b3457604051630a14c4b560e41b815260040160405180910390fd5b60098054612b419061411c565b9050600003612b5e57505060408051602081019091526000815290565b60018210158015612b70575060508211155b15612ba7576009612b80836139ba565b604051602001612b919291906143eb565b6040516020818303038152906040529050919050565b600a54600160801b90046001600160801b0316600003612bcd576009612b8060006139ba565b6009612b806050612be081610e7461434a565b600a54600190612c0090600160801b90046001600160801b0316886141e9565b612c0a919061434a565b612c149190614472565b612c1f9060016141e9565b612c2991906141e9565b6139ba565b60008060004790506000600d5482612c46919061434a565b905060008582600e54612c5991906141e9565b612c6391906141e9565b6040516370a0823160e01b81523060048201529091507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a0823190602401602060405180830381865afa158015612cca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cee9190614331565b612cf890826141e9565b905060005b87811015612f2c57600060018a8a84818110612d1b57612d1b6141fc565b9050602002016020810190612d30919061435d565b63ffffffff1610158015612d715750600a8a8a84818110612d5357612d536141fc565b9050602002016020810190612d68919061435d565b63ffffffff1611155b15612de057600f60008b8b85818110612d8c57612d8c6141fc565b9050602002016020810190612da1919061435d565b63ffffffff168152602001908152602001600020546064846003612dc59190614383565b612dcf91906143b0565b612dd9919061434a565b9050612f0c565b612dec600a60016141e9565b8a8a84818110612dfe57612dfe6141fc565b9050602002016020810190612e13919061435d565b63ffffffff1610158015612e54575060508a8a84818110612e3657612e366141fc565b9050602002016020810190612e4b919061435d565b63ffffffff1611155b80612ea05750600b60008b8b85818110612e7057612e706141fc565b9050602002016020810190612e85919061435d565b63ffffffff16815260208101919091526040016000205460ff165b15612f0c57600f60008b8b85818110612ebb57612ebb6141fc565b9050602002016020810190612ed0919061435d565b63ffffffff16815260200190815260200160002054610384846007612ef59190614383565b612eff91906143b0565b612f09919061434a565b90505b612f1681876141e9565b9550508080612f2490614212565b915050612cfd565b5092979650505050505050565b6040516370a0823160e01b8152306004820152600090819081906001600160a01b038716906370a0823190602401602060405180830381865afa158015612f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa89190614331565b6001600160a01b03871660009081526010602052604081206001015491925090612fd2908361434a565b6001600160a01b03881660009081526010602052604081205491925090612ffa9083906141e9565b905060005b86811015612f2c576000600189898481811061301d5761301d6141fc565b9050602002016020810190613032919061435d565b63ffffffff16101580156130735750600a898984818110613055576130556141fc565b905060200201602081019061306a919061435d565b63ffffffff1611155b156130fa576001600160a01b038a166000908152601060205260408120600201908a8a858181106130a6576130a66141fc565b90506020020160208101906130bb919061435d565b63ffffffff1681526020019081526020016000205460648460036130df9190614383565b6130e991906143b0565b6130f3919061434a565b905061323e565b613106600a60016141e9565b898984818110613118576131186141fc565b905060200201602081019061312d919061435d565b63ffffffff161015801561316e57506050898984818110613150576131506141fc565b9050602002016020810190613165919061435d565b63ffffffff1611155b806131ba5750600b60008a8a8581811061318a5761318a6141fc565b905060200201602081019061319f919061435d565b63ffffffff16815260208101919091526040016000205460ff165b1561323e576001600160a01b038a166000908152601060205260408120600201908a8a858181106131ed576131ed6141fc565b9050602002016020810190613202919061435d565b63ffffffff168152602001908152602001600020546103848460076132279190614383565b61323191906143b0565b61323b919061434a565b90505b61324881876141e9565b955050808061325690614212565b915050612fff565b600a54600160801b90046001600160801b0316156132be5760405162461bcd60e51b815260206004820152601d60248201527f5374617274696e6720696e64657820697320616c72656164792073657400000060448201526064016109e9565b600a546001600160801b03166000036133195760405162461bcd60e51b815260206004820181905260248201527f5374617274696e6720696e64657820626c6f636b206d7573742062652073657460448201526064016109e9565b600a5460ff90613332906001600160801b03164361434a565b1061336e5760405162461bcd60e51b815260206004820152600c60248201526b135d5cdd081c994b5a5b9a5d60a21b60448201526064016109e9565b600061337d6050610e7461434a565b600a5461339491906001600160801b031640614472565b9050806001600160801b03166000036133ab575060015b600a80546001600160801b03928316600160801b029216919091179055565b336001600160a01b037f00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd16146134125760405162461bcd60e51b81526004016109e990614173565b600c805460ff19166001179055565b600081600111158015613435575060005482105b8015610846575050600090815260046020526040902054600160e01b161590565b613462828260016139fe565b5050565b600061347182613616565b9050836001600160a01b0316816001600160a01b0316146134a45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176134f1576134d486336107a1565b6134f157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661351857604051633a954ecd60e21b815260040160405180910390fd5b801561352357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036135b5576001840160008181526004602052604081205490036135b35760005481146135b35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fde565b6109fc83838360405180602001604052806000815250612a26565b600081600111613689575060008181526004602052604081205490600160e01b82169003613689578060000361368457600054821061366857604051636f96cda160e11b815260040160405180910390fd5b5b50600019016000818152600460205260409020548015613669575b919050565b604051636f96cda160e11b815260040160405180910390fd5b60007f000000000000000000000000025b74e0750634ee8640227defa810322c56332a6001600160a01b03166207cd4e6040516024016136e491815260200190565b60408051601f198184030181529181526020820180516001600160e01b0316632d7adfeb60e11b179052516137199190614486565b6000604051808303816000865af19150503d8060008114613756576040519150601f19603f3d011682016040523d82523d6000602084013e61375b565b606091505b50506040516207cd5160248201529091506001600160a01b037f000000000000000000000000025b74e0750634ee8640227defa810322c56332a169060440160408051601f198184030181529181526020820180516001600160e01b0316632d7adfeb60e11b179052516137cf9190614486565b6000604051808303816000865af19150503d8060008114610b4e576040519150601f19603f3d011682016040523d82523d6000602084013e610b4e565b60008054908290036138315760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146138e057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016138a8565b508160000361390157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b613981848484610a6a565b6001600160a01b0383163b15610b4e5761399d84848484613aa5565b610b4e576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806139d45750819003601f19909101908152919050565b6000613a0983611345565b90508115613a4857336001600160a01b03821614613a4857613a2b81336107a1565b613a48576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613ada9033908990889088906004016144a2565b6020604051808303816000875af1925050508015613b15575060408051601f3d908101601f19168201909252613b12918101906144df565b60015b613b73573d808015613b43576040519150601f19603f3d011682016040523d82523d6000602084013e613b48565b606091505b508051600003613b6b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b03198116811461134257600080fd5b600060208284031215613bb857600080fd5b8135610e4381613b90565b60005b83811015613bde578181015183820152602001613bc6565b50506000910152565b60008151808452613bff816020860160208601613bc3565b601f01601f19169290920160200192915050565b602081526000610e436020830184613be7565b600060208284031215613c3857600080fd5b5035919050565b6001600160a01b038116811461134257600080fd5b60008060408385031215613c6757600080fd5b8235613c7281613c3f565b946020939093013593505050565b801515811461134257600080fd5b600060208284031215613ca057600080fd5b8135610e4381613c80565b600080600060608486031215613cc057600080fd5b8335613ccb81613c3f565b92506020840135613cdb81613c3f565b929592945050506040919091013590565b60008060408385031215613cff57600080fd5b823591506020830135613d1181613c80565b809150509250929050565b60008083601f840112613d2e57600080fd5b50813567ffffffffffffffff811115613d4657600080fd5b6020830191508360208260051b8501011115613d6157600080fd5b9250929050565b60008060208385031215613d7b57600080fd5b823567ffffffffffffffff811115613d9257600080fd5b613d9e85828601613d1c565b90969095509350505050565b600080600080600060608688031215613dc257600080fd5b8535613dcd81613c3f565b9450602086013567ffffffffffffffff80821115613dea57600080fd5b613df689838a01613d1c565b90965094506040880135915080821115613e0f57600080fd5b50613e1c88828901613d1c565b969995985093965092949392505050565b60008060208385031215613e4057600080fd5b823567ffffffffffffffff80821115613e5857600080fd5b818501915085601f830112613e6c57600080fd5b813581811115613e7b57600080fd5b866020828501011115613e8d57600080fd5b60209290920196919550909350505050565b600060208284031215613eb157600080fd5b8135610e4381613c3f565b600080600060408486031215613ed157600080fd5b8335613edc81613c3f565b9250602084013567ffffffffffffffff811115613ef857600080fd5b613f0486828701613d1c565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613f3857600080fd5b813567ffffffffffffffff80821115613f5357613f53613f11565b604051601f8301601f19908116603f01168101908282118183101715613f7b57613f7b613f11565b81604052838152866020858801011115613f9457600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215613fca57600080fd5b8435613fd581613c3f565b9350602085013592506040850135613fec81613c3f565b9150606085013567ffffffffffffffff81111561400857600080fd5b61401487828801613f27565b91505092959194509250565b6000806040838503121561403357600080fd5b823561403e81613c3f565b91506020830135613d1181613c80565b6000806000806080858703121561406457600080fd5b843561406f81613c3f565b9350602085013561407f81613c3f565b925060408501359150606085013567ffffffffffffffff81111561400857600080fd5b6000806000604084860312156140b757600080fd5b833567ffffffffffffffff8111156140ce57600080fd5b6140da86828701613d1c565b909790965060209590950135949350505050565b6000806040838503121561410157600080fd5b823561410c81613c3f565b91506020830135613d1181613c3f565b600181811c9082168061413057607f821691505b60208210810361415057634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561416857600080fd5b8151610e4381613c80565b6020808252600990820152682737ba1037bbb732b960b91b604082015260600190565b602080825260069082015265131bd8dad95960d21b604082015260600190565b6000602082840312156141c857600080fd5b8151610e4381613c3f565b634e487b7160e01b600052601160045260246000fd5b80820180821115610846576108466141d3565b634e487b7160e01b600052603260045260246000fd5b600060018201614224576142246141d3565b5060010190565b601f8211156109fc57600081815260208120601f850160051c810160208610156142525750805b601f850160051c820191505b81811015610fde5782815560010161425e565b67ffffffffffffffff83111561428957614289613f11565b61429d83614297835461411c565b8361422b565b6000601f8411600181146142d157600085156142b95750838201355b600019600387901b1c1916600186901b178355610e2e565b600083815260209020601f19861690835b8281101561430257868501358255602094850194600190920191016142e2565b508682101561431f5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561434357600080fd5b5051919050565b81810381811115610846576108466141d3565b60006020828403121561436f57600080fd5b813563ffffffff81168114610e4357600080fd5b8082028115828204841417610846576108466141d3565b634e487b7160e01b600052601260045260246000fd5b6000826143bf576143bf61439a565b500490565b6001600160801b038181168382160190808211156143e4576143e46141d3565b5092915050565b60008084546143f98161411c565b60018281168015614411576001811461442657614455565b60ff1984168752821515830287019450614455565b8860005260208060002060005b8581101561444c5781548a820152908401908201614433565b50505082870194505b505050508351614469818360208801613bc3565b01949350505050565b6000826144815761448161439a565b500690565b60008251614498818460208701613bc3565b9190910192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906144d590830184613be7565b9695505050505050565b6000602082840312156144f157600080fd5b8151610e4381613b9056fea2646970667358221220e9df3c55ecaf01e1bfac15a8f95e0441ba0079fe5687c31f88dd91907752f89864736f6c63430008120033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725000000000000000000000000e8fa0c520075a9a6a1197de47d4b3d8e0b9b944e000000000000000000000000025b74e0750634ee8640227defa810322c56332a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d61457538505a487772506d4353784d5568426859455676313574536f784b536e74746f347879637a437236322f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://ipfs.io/ipfs/QmaEu8PZHwrPmCSxMUhBhYEVv15tSoxKSntto4xyczCr62/
Arg [1] : _mrF (address): 0x38857Ed3a8fC5951289E58e20fB56A00e88f0BBD
Arg [2] : _token (address): 0x3d5d3DCD01469eF8C6bC9C45665835814635c725
Arg [3] : _burner (address): 0xE8Fa0C520075A9A6A1197de47d4B3D8E0b9B944E
Arg [4] : _locker (address): 0x025B74e0750634ee8640227DefA810322C56332A
Arg [5] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 00000000000000000000000038857ed3a8fc5951289e58e20fb56a00e88f0bbd
Arg [2] : 0000000000000000000000003d5d3dcd01469ef8c6bc9c45665835814635c725
Arg [3] : 000000000000000000000000e8fa0c520075a9a6a1197de47d4b3d8e0b9b944e
Arg [4] : 000000000000000000000000025b74e0750634ee8640227defa810322c56332a
Arg [5] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [7] : 68747470733a2f2f697066732e696f2f697066732f516d61457538505a487772
Arg [8] : 506d4353784d5568426859455676313574536f784b536e74746f347879637a43
Arg [9] : 7236322f00000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

A project made with love by Mr FUltra Rare and Rare tokens receive 100% of Creator fees and Uniswap fees

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.