ETH Price: $2,579.75 (-3.12%)

Token

MaidCoin Lingerie Girls (LINGERIEGIRLS)
 

Overview

Max Total Supply

31 LINGERIEGIRLS

Holders

25

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LINGERIEGIRLS
0x8cf96b3c9310880a716b033a4fefe28bcaae7526
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LingerieGirls

Compiler Version
v0.8.5+commit.a4f2e591

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : LingerieGirls.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./libraries/ERC721.sol";
import "./libraries/ERC721Enumerable.sol";
import "./uniswapv2/interfaces/IUniswapV2Pair.sol";
import "./interfaces/IERC1271.sol";
import "./interfaces/ILingerieGirls.sol";
import "./libraries/Signature.sol";
import "./libraries/MasterChefModule.sol";

contract LingerieGirls is
    Ownable,
    ERC721("MaidCoin Lingerie Girls", "LINGERIEGIRLS"),
    ERC721Enumerable,
    MasterChefModule,
    ILingerieGirls
{
    struct LingerieGirlInfo {
        uint256 originPower;
        uint256 supportedLPTokenAmount;
        uint256 sushiRewardDebt;
    }

    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    // keccak256("Permit(address spender,uint256 tokenId,uint256 nonce,uint256 deadline)");
    bytes32 public constant override PERMIT_TYPEHASH =
        0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad;

    // keccak256("Permit(address owner,address spender,uint256 nonce,uint256 deadline)");
    bytes32 public constant override PERMIT_ALL_TYPEHASH =
        0xdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df62;

    mapping(uint256 => uint256) public override nonces;
    mapping(address => uint256) public override noncesForAll;

    uint256 public override lpTokenToLingerieGirlPower = 1;
    LingerieGirlInfo[] public override lingerieGirls;

    constructor(
        IUniswapV2Pair _lpToken,
        IERC20 _sushi,
        uint256[30] memory powers
    ) MasterChefModule(_lpToken, _sushi) {
        _CACHED_CHAIN_ID = block.chainid;
        _HASHED_NAME = keccak256(bytes("MaidCoin Lingerie Girls"));
        _HASHED_VERSION = keccak256(bytes("1"));
        _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

        _CACHED_DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes("MaidCoin Lingerie Girls")),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );

        for (uint256 i = 0; i < 30; i += 1) {
            lingerieGirls.push(
                LingerieGirlInfo({originPower: powers[i], supportedLPTokenAmount: 0, sushiRewardDebt: 0})
            );
            _mint(msg.sender, i);
        }
    }

    function _baseURI() internal pure override returns (string memory) {
        return "https://api.maidcoin.org/lingeriegirls/";
    }

    function DOMAIN_SEPARATOR() public view override returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return keccak256(abi.encode(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION, block.chainid, address(this)));
        }
    }

    function changeLPTokenToLingerieGirlPower(uint256 value) external onlyOwner {
        lpTokenToLingerieGirlPower = value;
        emit ChangeLPTokenToLingerieGirlPower(value);
    }

    function mint(uint256 power) external onlyOwner returns (uint256 id) {
        id = lingerieGirls.length;
        lingerieGirls.push(LingerieGirlInfo({originPower: power, supportedLPTokenAmount: 0, sushiRewardDebt: 0}));
        _mint(msg.sender, id);
    }

    function mintBatch(uint256[] calldata powers, uint256 amounts) external onlyOwner {
        require(powers.length == amounts, "LingerieGirls: Invalid parameters");
        uint256 from = lingerieGirls.length;
        for (uint256 i = 0; i < amounts; i += 1) {
            lingerieGirls.push(
                LingerieGirlInfo({originPower: powers[i], supportedLPTokenAmount: 0, sushiRewardDebt: 0})
            );
            _mint(msg.sender, (i + from));
        }
    }

    function powerOf(uint256 id) external view override returns (uint256) {
        LingerieGirlInfo storage lingerieGirl = lingerieGirls[id];
        return lingerieGirl.originPower + (lingerieGirl.supportedLPTokenAmount * lpTokenToLingerieGirlPower) / 1e18;
    }

    function support(uint256 id, uint256 lpTokenAmount) public override {
        require(ownerOf(id) == msg.sender, "LingerieGirls: Forbidden");
        require(lpTokenAmount > 0, "LingerieGirls: Invalid lpTokenAmount");
        uint256 _supportedLPTokenAmount = lingerieGirls[id].supportedLPTokenAmount;

        lingerieGirls[id].supportedLPTokenAmount = _supportedLPTokenAmount + lpTokenAmount;
        lpToken.transferFrom(msg.sender, address(this), lpTokenAmount);

        uint256 _pid = masterChefPid;
        if (_pid > 0) {
            lingerieGirls[id].sushiRewardDebt = _depositModule(
                _pid,
                lpTokenAmount,
                _supportedLPTokenAmount,
                lingerieGirls[id].sushiRewardDebt
            );
        }

        emit Support(id, lpTokenAmount);
    }

    function supportWithPermit(
        uint256 id,
        uint256 lpTokenAmount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        lpToken.permit(msg.sender, address(this), lpTokenAmount, deadline, v, r, s);
        support(id, lpTokenAmount);
    }

    function desupport(uint256 id, uint256 lpTokenAmount) external override {
        require(ownerOf(id) == msg.sender, "LingerieGirls: Forbidden");
        require(lpTokenAmount > 0, "LingerieGirls: Invalid lpTokenAmount");
        uint256 _supportedLPTokenAmount = lingerieGirls[id].supportedLPTokenAmount;

        lingerieGirls[id].supportedLPTokenAmount = _supportedLPTokenAmount - lpTokenAmount;

        uint256 _pid = masterChefPid;
        if (_pid > 0) {
            lingerieGirls[id].sushiRewardDebt = _withdrawModule(
                _pid,
                lpTokenAmount,
                _supportedLPTokenAmount,
                lingerieGirls[id].sushiRewardDebt
            );
        }

        lpToken.transfer(msg.sender, lpTokenAmount);
        emit Desupport(id, lpTokenAmount);
    }

    function claimSushiReward(uint256 id) public override {
        require(ownerOf(id) == msg.sender, "LingerieGirls: Forbidden");
        lingerieGirls[id].sushiRewardDebt = _claimSushiReward(
            lingerieGirls[id].supportedLPTokenAmount,
            lingerieGirls[id].sushiRewardDebt
        );
    }

    function pendingSushiReward(uint256 id) external view override returns (uint256) {
        return _pendingSushiReward(lingerieGirls[id].supportedLPTokenAmount, lingerieGirls[id].sushiRewardDebt);
    }

    function permit(
        address spender,
        uint256 id,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(block.timestamp <= deadline, "LingerieGirls: Expired deadline");
        bytes32 _DOMAIN_SEPARATOR = DOMAIN_SEPARATOR();

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                _DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, spender, id, nonces[id], deadline))
            )
        );
        nonces[id] += 1;

        address owner = ownerOf(id);
        require(spender != owner, "LingerieGirls: Invalid spender");

        if (Address.isContract(owner)) {
            require(
                IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e,
                "LingerieGirls: Unauthorized"
            );
        } else {
            address recoveredAddress = Signature.recover(digest, v, r, s);
            require(recoveredAddress == owner, "LingerieGirls: Unauthorized");
        }

        _approve(spender, id);
    }

    function permitAll(
        address owner,
        address spender,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(block.timestamp <= deadline, "LingerieGirls: Expired deadline");
        bytes32 _DOMAIN_SEPARATOR = DOMAIN_SEPARATOR();

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                _DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_ALL_TYPEHASH, owner, spender, noncesForAll[owner], deadline))
            )
        );
        noncesForAll[owner] += 1;

        if (Address.isContract(owner)) {
            require(
                IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e,
                "LingerieGirls: Unauthorized"
            );
        } else {
            address recoveredAddress = Signature.recover(digest, v, r, s);
            require(recoveredAddress == owner, "LingerieGirls: Unauthorized");
        }

        _setApprovalForAll(owner, spender, true);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, IERC165)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal {
        require(owner != operator, "ERC721: approve to caller");

        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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 (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 21 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

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

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to) external returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

File 6 of 21 : IERC1271.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

/// @title Interface for verifying contract-based account signatures
/// @notice Interface that verifies provided signature for the data
/// @dev Interface defined by EIP-1271
interface IERC1271 {
    /// @notice Returns whether the provided signature is valid for the provided data
    /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
    /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
    /// MUST allow external calls.
    /// @param hash Hash of the data to be signed
    /// @param signature Signature byte array associated with _data
    /// @return magicValue The bytes4 magic value 0x1626ba7e
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 7 of 21 : ILingerieGirls.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "../uniswapv2/interfaces/IUniswapV2Pair.sol";
import "./IMasterChefModule.sol";

interface ILingerieGirls is IERC721, IERC721Metadata, IERC721Enumerable {
    event ChangeLPTokenToLingerieGirlPower(uint256 value);
    event Support(uint256 indexed id, uint256 lpTokenAmount);
    event Desupport(uint256 indexed id, uint256 lpTokenAmount);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external view returns (bytes32);

    function PERMIT_ALL_TYPEHASH() external view returns (bytes32);

    function nonces(uint256 id) external view returns (uint256);

    function noncesForAll(address owner) external view returns (uint256);

    function lpTokenToLingerieGirlPower() external view returns (uint256);

    function lingerieGirls(uint256 id)
        external
        view
        returns (
            uint256 originPower,
            uint256 supportedLPTokenAmount,
            uint256 sushiRewardDebt
        );

    function powerOf(uint256 id) external view returns (uint256);

    function support(uint256 id, uint256 lpTokenAmount) external;

    function supportWithPermit(
        uint256 id,
        uint256 lpTokenAmount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function desupport(uint256 id, uint256 lpTokenAmount) external;

    function claimSushiReward(uint256 id) external;

    function pendingSushiReward(uint256 id) external view returns (uint256);

    function permit(
        address spender,
        uint256 id,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function permitAll(
        address owner,
        address spender,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

File 8 of 21 : Signature.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;

library Signature {
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }
}

File 9 of 21 : MasterChefModule.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IMasterChefModule.sol";

abstract contract MasterChefModule is Ownable, IMasterChefModule {
    IUniswapV2Pair public immutable override lpToken;

    IERC20 public immutable override sushi;
    IMasterChef public override sushiMasterChef;
    uint256 public override masterChefPid;
    uint256 public override sushiLastRewardBlock;
    uint256 public override accSushiPerShare;
    bool private initialDeposited;

    constructor(IUniswapV2Pair _lpToken, IERC20 _sushi) {
        lpToken = _lpToken;
        sushi = _sushi;
    }

    function _depositModule(
        uint256 _pid,
        uint256 depositAmount,
        uint256 supportedLPTokenAmount,
        uint256 sushiRewardDebt
    ) internal returns (uint256 newRewardDebt) {
        uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount;
        uint256 _accSushiPerShare = _depositToSushiMasterChef(_pid, depositAmount, _totalSupportedLPTokenAmount);
        uint256 pending = (supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiRewardDebt;
        if (pending > 0) safeSushiTransfer(msg.sender, pending);
        return ((supportedLPTokenAmount + depositAmount) * _accSushiPerShare) / 1e18;
    }

    function _withdrawModule(
        uint256 _pid,
        uint256 withdrawalAmount,
        uint256 supportedLPTokenAmount,
        uint256 sushiRewardDebt
    ) internal returns (uint256 newRewardDebt) {
        uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount;
        uint256 _accSushiPerShare = _withdrawFromSushiMasterChef(_pid, withdrawalAmount, _totalSupportedLPTokenAmount);
        uint256 pending = (supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiRewardDebt;
        if (pending > 0) safeSushiTransfer(msg.sender, pending);
        return ((supportedLPTokenAmount - withdrawalAmount) * _accSushiPerShare) / 1e18;
    }

    function _claimSushiReward(uint256 supportedLPTokenAmount, uint256 sushiRewardDebt)
        internal
        returns (uint256 newRewardDebt)
    {
        uint256 _pid = masterChefPid;
        require(_pid > 0, "MasterChefModule: Unclaimable");
        uint256 _supportedLPTokenAmount = supportedLPTokenAmount;

        uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount;
        uint256 _accSushiPerShare = _depositToSushiMasterChef(_pid, 0, _totalSupportedLPTokenAmount);
        uint256 pending = (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiRewardDebt;
        require(pending > 0, "MasterChefModule: Nothing can be claimed");
        safeSushiTransfer(msg.sender, pending);
        return (_supportedLPTokenAmount * _accSushiPerShare) / 1e18;
    }

    function _pendingSushiReward(uint256 supportedLPTokenAmount, uint256 sushiRewardDebt)
        internal
        view
        returns (uint256)
    {
        uint256 _pid = masterChefPid;
        if (_pid == 0) return 0;
        uint256 _supportedLPTokenAmount = supportedLPTokenAmount;
        uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount;

        uint256 _accSushiPerShare = accSushiPerShare;
        if (block.number > sushiLastRewardBlock && _totalSupportedLPTokenAmount != 0) {
            uint256 reward = sushiMasterChef.pendingSushi(masterChefPid, address(this));
            _accSushiPerShare += ((reward * 1e18) / _totalSupportedLPTokenAmount);
        }

        return (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiRewardDebt;
    }

    function setSushiMasterChef(IMasterChef _masterChef, uint256 _pid) external onlyOwner {
        require(address(_masterChef.poolInfo(_pid).lpToken) == address(lpToken), "MasterChefModule: Invalid pid");
        if (!initialDeposited) {
            initialDeposited = true;
            lpToken.approve(address(_masterChef), type(uint256).max);

            sushiMasterChef = _masterChef;
            masterChefPid = _pid;
            _depositToSushiMasterChef(_pid, lpToken.balanceOf(address(this)), 0);
        } else {
            IMasterChef oldChef = sushiMasterChef;
            uint256 oldpid = masterChefPid;
            _withdrawFromSushiMasterChef(oldpid, oldChef.userInfo(oldpid, address(this)).amount, 0);
            if (_masterChef != oldChef) {
                lpToken.approve(address(oldChef), 0);
                lpToken.approve(address(_masterChef), type(uint256).max);
            }

            sushiMasterChef = _masterChef;
            masterChefPid = _pid;
            _depositToSushiMasterChef(_pid, lpToken.balanceOf(address(this)), 0);
        }
    }

    function _depositToSushiMasterChef(
        uint256 _pid,
        uint256 _amount,
        uint256 _totalSupportedLPTokenAmount
    ) internal returns (uint256 _accSushiPerShare) {
        return _toSushiMasterChef(true, _pid, _amount, _totalSupportedLPTokenAmount);
    }

    function _withdrawFromSushiMasterChef(
        uint256 _pid,
        uint256 _amount,
        uint256 _totalSupportedLPTokenAmount
    ) internal returns (uint256 _accSushiPerShare) {
        return _toSushiMasterChef(false, _pid, _amount, _totalSupportedLPTokenAmount);
    }

    function _toSushiMasterChef(
        bool deposit,
        uint256 _pid,
        uint256 _amount,
        uint256 _totalSupportedLPTokenAmount
    ) internal returns (uint256) {
        uint256 reward;
        if (block.number <= sushiLastRewardBlock) {
            if (deposit) sushiMasterChef.deposit(_pid, _amount);
            else sushiMasterChef.withdraw(_pid, _amount);
            return accSushiPerShare;
        } else {
            uint256 balance0 = sushi.balanceOf(address(this));
            if (deposit) sushiMasterChef.deposit(_pid, _amount);
            else sushiMasterChef.withdraw(_pid, _amount);
            uint256 balance1 = sushi.balanceOf(address(this));
            reward = balance1 - balance0;
        }
        sushiLastRewardBlock = block.number;
        if (_totalSupportedLPTokenAmount > 0 && reward > 0) {
            uint256 _accSushiPerShare = accSushiPerShare + ((reward * 1e18) / _totalSupportedLPTokenAmount);
            accSushiPerShare = _accSushiPerShare;
            return _accSushiPerShare;
        } else {
            return accSushiPerShare;
        }
    }

    function safeSushiTransfer(address _to, uint256 _amount) internal {
        uint256 sushiBal = sushi.balanceOf(address(this));
        if (_amount > sushiBal) {
            sushi.transfer(_to, sushiBal);
        } else {
            sushi.transfer(_to, _amount);
        }
    }
}

File 10 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

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

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

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

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

File 12 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 14 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 21 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 16 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 17 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 19 of 21 : IMasterChefModule.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

import "./IMasterChef.sol";
import "../uniswapv2/interfaces/IUniswapV2Pair.sol";

interface IMasterChefModule {
    function lpToken() external view returns (IUniswapV2Pair);

    function sushi() external view returns (IERC20);

    function sushiMasterChef() external view returns (IMasterChef);

    function masterChefPid() external view returns (uint256);

    function sushiLastRewardBlock() external view returns (uint256);

    function accSushiPerShare() external view returns (uint256);
}

File 20 of 21 : IMasterChef.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IMasterChef {
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. SUSHI to distribute per block.
        uint256 lastRewardBlock; // Last block number that SUSHI distribution occurs.
        uint256 accSushiPerShare; // Accumulated SUSHI per share, times 1e12. See below.
    }

    function poolInfo(uint256 pid) external view returns (IMasterChef.PoolInfo memory);

    function userInfo(uint256 pid, address user) external view returns (IMasterChef.UserInfo memory);

    function pendingSushi(uint256 _pid, address _user) external view returns (uint256);

    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;
}

File 21 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_lpToken","type":"address"},{"internalType":"contract IERC20","name":"_sushi","type":"address"},{"internalType":"uint256[30]","name":"powers","type":"uint256[30]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeLPTokenToLingerieGirlPower","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"Desupport","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"Support","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"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_ALL_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accSushiPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","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":"value","type":"uint256"}],"name":"changeLPTokenToLingerieGirlPower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimSushiReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"desupport","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":[{"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":"lingerieGirls","outputs":[{"internalType":"uint256","name":"originPower","type":"uint256"},{"internalType":"uint256","name":"supportedLPTokenAmount","type":"uint256"},{"internalType":"uint256","name":"sushiRewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpTokenToLingerieGirlPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterChefPid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"power","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"powers","type":"uint256[]"},{"internalType":"uint256","name":"amounts","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noncesForAll","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"pendingSushiReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permitAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"powerOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMasterChef","name":"_masterChef","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setSushiMasterChef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"support","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"supportWithPermit","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":"sushi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiLastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiMasterChef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61016060405260016012553480156200001757600080fd5b5060405162004b1d38038062004b1d8339810160408190526200003a9162000852565b82826040518060400160405280601781526020017f4d616964436f696e204c696e6765726965204769726c730000000000000000008152506040518060400160405280600d81526020016c4c494e47455249454749524c5360981b815250620000b2620000ac620002c460201b60201c565b620002c8565b8151620000c7906001906020850190620007ac565b508051620000dd906002906020840190620007ac565b5050506001600160601b0319606092831b8116608090815291831b1660a09081524660e081905260408051808201825260178082527f4d616964436f696e204c696e6765726965204769726c7300000000000000000060209283018190527f02977ef9b05b250ec858107890c46633d0a0138c3018ccc25a485a8e081b77d4610100819052845180860186526001808252603160f81b9186018290527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101208190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6101408190528851808a018a529687529587019490945286518088018852908152850152845193840192909252928201529485015291830191909152309082015260c00160408051601f19818403018152919052805160209091012060c05260005b601e811015620002ba57601360405180606001604052808484601e81106200024f576200024f620009b1565b6020908102919091015182526000828201819052604092830181905284546001818101875595825290829020845160039092020190815590830151938101939093550151600290910155620002a5338262000318565b620002b260018262000913565b905062000223565b50505050620009f6565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000818152600360205260409020546001600160a01b031615620003db5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200036b565b620003e96000838362000472565b6001600160a01b03821660009081526004602052604081208054600192906200041490849062000913565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6200048a8383836200048f60201b620020e31760201c565b505050565b620004a78383836200048a60201b620009001760201c565b6001600160a01b0383166200050557620004ff81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6200052b565b816001600160a01b0316836001600160a01b0316146200052b576200052b83826200056b565b6001600160a01b03821662000545576200048a8162000618565b826001600160a01b0316826001600160a01b0316146200048a576200048a8282620006d2565b6000600162000585846200072360201b62000d481760201c565b6200059191906200092e565b600083815260086020526040902054909150808214620005e5576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906200062c906001906200092e565b6000838152600a602052604081205460098054939450909284908110620006575762000657620009b1565b9060005260206000200154905080600983815481106200067b576200067b620009b1565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480620006b657620006b66200099b565b6001900381819060005260206000200160009055905550505050565b6000620006ea836200072360201b62000d481760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b038216620007905760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016200036b565b506001600160a01b031660009081526004602052604090205490565b828054620007ba9062000948565b90600052602060002090601f016020900481019282620007de576000855562000829565b82601f10620007f957805160ff191683800117855562000829565b8280016001018555821562000829579182015b82811115620008295782518255916020019190600101906200080c565b50620008379291506200083b565b5090565b5b808211156200083757600081556001016200083c565b60008060006104008085870312156200086a57600080fd5b84516200087781620009dd565b809450506020808601516200088c81620009dd565b9350605f860187136200089e57600080fd5b6040516103c081016001600160401b0381118282101715620008c457620008c4620009c7565b8060405250806040880189858a011115620008de57600080fd5b600094505b601e85101562000904578051825260019490940193908301908301620008e3565b50508093505050509250925092565b6000821982111562000929576200092962000985565b500190565b60008282101562000943576200094362000985565b500390565b600181811c908216806200095d57607f821691505b602082108114156200097f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620009f357600080fd5b50565b60805160601c60a05160601c60c05160e05161010051610120516101405161406462000ab96000396000610a8601526000610ad401526000610aac01526000610a3501526000610a5e01526000818161031c0152818161317c0152818161322e015281816132d101528181613404015261357601526000818161043101528181610f6c015281816113cc0152818161170c0152818161180b0152818161191f015281816119dc01528181611b3401528181611bd80152611c9601526140646000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063a234d608116100c3578063c62c610b11610087578063c62c610b146105cd578063c87b56dd146105d6578063c9bbd04a146105e9578063e985e9c5146105fc578063eeb876eb14610638578063f2fde38b1461064157600080fd5b8063a234d6081461055a578063a39b10fa1461056d578063aba0784714610580578063b4e13c8d14610593578063b88d4fde146105ba57600080fd5b80638da5cb5b116101155780638da5cb5b146104e8578063904dfb8e146104f957806395d89b41146105195780639be56c6714610521578063a0712d6814610534578063a22cb4651461054757600080fd5b8063715018a614610479578063719242c2146104815780637492ee281461049457806374f2380a146104a75780637ac2ff7b146104d557600080fd5b806330adf81f116101ea5780634fd3c34a116101ae5780634fd3c34a146103fd57806357339be61461040657806358bb45c9146104195780635fcbd2851461042c5780636352211e1461045357806370a082311461046657600080fd5b806330adf81f1461039f5780633644e515146103c657806338e97f44146103ce57806342842e0e146103d75780634f6ccce7146103ea57600080fd5b80630a0879031161023c5780630a08790314610317578063141a468c1461033e57806318160ddd1461035e57806323b872dd146103665780632aaefbe7146103795780632f745c591461038c57600080fd5b806301ffc9a71461027957806304eaa113146102a157806306fdde03146102c2578063081812fc146102d7578063095ea7b314610302575b600080fd5b61028c610287366004613a66565b610654565b60405190151581526020015b60405180910390f35b6102b46102af366004613b5e565b610665565b604051908152602001610298565b6102ca6106c3565b6040516102989190613c9a565b6102ea6102e5366004613b5e565b610755565b6040516001600160a01b039091168152602001610298565b610315610310366004613962565b6107ef565b005b6102ea7f000000000000000000000000000000000000000000000000000000000000000081565b6102b461034c366004613b5e565b60106020526000908152604090205481565b6009546102b4565b6103156103743660046137cc565b610905565b610315610387366004613b5e565b610936565b6102b461039a366004613962565b61099b565b6102b47f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b6102b4610a31565b6102b4600d5481565b6103156103e53660046137cc565b610b22565b6102b46103f8366004613b5e565b610b3d565b6102b4600e5481565b610315610414366004613b5e565b610bd0565b6102b4610427366004613b5e565b610c7d565b6102ea7f000000000000000000000000000000000000000000000000000000000000000081565b6102ea610461366004613b5e565b610cd1565b6102b4610474366004613776565b610d48565b610315610dcf565b61031561048f3660046139ce565b610e05565b6103156104a2366004613bb2565b610f2c565b6104ba6104b5366004613b5e565b610fe2565b60408051938452602084019290925290820152606001610298565b6103156104e336600461398e565b611015565b6000546001600160a01b03166102ea565b6102b4610507366004613776565b60116020526000908152604090205481565b6102ca6112ef565b61031561052f366004613b90565b6112fe565b6102b4610542366004613b5e565b6114f3565b610315610555366004613934565b6115d3565b610315610568366004613b90565b6115e2565b61031561057b366004613962565b6117c3565b61031561058e3660046138d1565b611cc7565b6102b47fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281565b6103156105c836600461380d565b611f36565b6102b4600c5481565b6102ca6105e4366004613b5e565b611f6e565b600b546102ea906001600160a01b031681565b61028c61060a366004613793565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102b460125481565b61031561064f366004613776565b612048565b600061065f8261219b565b92915050565b6000806013838154811061067b5761067b613fa2565b90600052602060002090600302019050670de0b6b3a764000060125482600101546106a69190613e94565b6106b09190613e80565b81546106bc9190613e68565b9392505050565b6060600180546106d290613ef6565b80601f01602080910402602001604051908101604052809291908181526020018280546106fe90613ef6565b801561074b5780601f106107205761010080835404028352916020019161074b565b820191906000526020600020905b81548152906001019060200180831161072e57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107fa82610cd1565b9050806001600160a01b0316836001600160a01b031614156108685760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ca565b336001600160a01b03821614806108845750610884813361060a565b6108f65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ca565b61090083836121c0565b505050565b61090f338261222e565b61092b5760405162461bcd60e51b81526004016107ca90613de6565b610900838383612325565b6000546001600160a01b031633146109605760405162461bcd60e51b81526004016107ca90613db1565b60128190556040518181527f92520b5c64c2bcbe3d5d49595f9d11e5b5107f89b7f9deb71128f3bbf11c1f869060200160405180910390a150565b60006109a683610d48565b8210610a085760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ca565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60007f0000000000000000000000000000000000000000000000000000000000000000461415610a8057507f000000000000000000000000000000000000000000000000000000000000000090565b604080517f000000000000000000000000000000000000000000000000000000000000000060208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b61090083838360405180602001604052806000815250611f36565b6000610b4860095490565b8210610bab5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ca565b60098281548110610bbe57610bbe613fa2565b90600052602060002001549050919050565b33610bda82610cd1565b6001600160a01b031614610c005760405162461bcd60e51b81526004016107ca90613d36565b610c5260138281548110610c1657610c16613fa2565b90600052602060002090600302016001015460138381548110610c3b57610c3b613fa2565b9060005260206000209060030201600201546124d0565b60138281548110610c6557610c65613fa2565b90600052602060002090600302016002018190555050565b600061065f60138381548110610c9557610c95613fa2565b90600052602060002090600302016001015460138481548110610cba57610cba613fa2565b90600052602060002090600302016002015461267b565b6000818152600360205260408120546001600160a01b03168061065f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ca565b60006001600160a01b038216610db35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ca565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610df95760405162461bcd60e51b81526004016107ca90613db1565b610e03600061281a565b565b6000546001600160a01b03163314610e2f5760405162461bcd60e51b81526004016107ca90613db1565b818114610e885760405162461bcd60e51b815260206004820152602160248201527f4c696e67657269654769726c733a20496e76616c696420706172616d657465726044820152607360f81b60648201526084016107ca565b60135460005b82811015610f255760136040518060600160405280878785818110610eb557610eb5613fa2565b602090810292909201358352506000828201819052604092830181905284546001818101875595825290829020845160039092020190815590830151938101939093550151600290910155610f1333610f0e8484613e68565b61286a565b610f1e600182613e68565b9050610e8e565b5050505050565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d505accf9060e401600060405180830381600087803b158015610fb857600080fd5b505af1158015610fcc573d6000803e3d6000fd5b50505050610fda86866112fe565b505050505050565b60138181548110610ff257600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b834211156110655760405162461bcd60e51b815260206004820152601f60248201527f4c696e67657269654769726c733a204578706972656420646561646c696e650060448201526064016107ca565b600061106f610a31565b6000878152601060208181526040808420805482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818601526001600160a01b038f1681850152606081018e90526080810182905260a08082018e90528451808303909101815260c08201855280519086012061190160f01b60e083015260e2820189905261010280830191909152845180830390910181526101229091019093528251928401929092208c865293909252939450909260019290611136908490613e68565b909155506000905061114788610cd1565b9050806001600160a01b0316896001600160a01b031614156111ab5760405162461bcd60e51b815260206004820152601e60248201527f4c696e67657269654769726c733a20496e76616c6964207370656e646572000060448201526064016107ca565b803b1561129757604080516020810187905280820186905260f888901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03831691631626ba7e91611213918691606501613c81565b60206040518083038186803b15801561122b57600080fd5b505afa15801561123f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112639190613a83565b6001600160e01b031916631626ba7e60e01b146112925760405162461bcd60e51b81526004016107ca90613cad565b6112da565b60006112a5838888886129b8565b9050816001600160a01b0316816001600160a01b0316146112d85760405162461bcd60e51b81526004016107ca90613cad565b505b6112e489896121c0565b505050505050505050565b6060600280546106d290613ef6565b3361130883610cd1565b6001600160a01b03161461132e5760405162461bcd60e51b81526004016107ca90613d36565b6000811161134e5760405162461bcd60e51b81526004016107ca90613d6d565b60006013838154811061136357611363613fa2565b906000526020600020906003020160010154905081816113839190613e68565b6013848154811061139657611396613fa2565b60009182526020909120600390910201600101556040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561141857600080fd5b505af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190613a49565b50600c5480156114b35761148a8184846013888154811061147357611473613fa2565b906000526020600020906003020160020154612b61565b6013858154811061149d5761149d613fa2565b9060005260206000209060030201600201819055505b837f9c86c947c690753cc6de6016e1c45414d895662cc13af08319148419baf5df2f846040516114e591815260200190565b60405180910390a250505050565b600080546001600160a01b0316331461151e5760405162461bcd60e51b81526004016107ca90613db1565b50601380546040805160608101825284815260006020820181815292820181815260018501865594905251600383027f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09081019190915590517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09182015591517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a092909201919091556115ce338261286a565b919050565b6115de338383612c53565b5050565b336115ec83610cd1565b6001600160a01b0316146116125760405162461bcd60e51b81526004016107ca90613d36565b600081116116325760405162461bcd60e51b81526004016107ca90613d6d565b60006013838154811061164757611647613fa2565b906000526020600020906003020160010154905081816116679190613eb3565b6013848154811061167a5761167a613fa2565b6000918252602090912060016003909202010155600c5480156116f0576116c7818484601388815481106116b0576116b0613fa2565b906000526020600020906003020160020154612d22565b601385815481106116da576116da613fa2565b9060005260206000209060030201600201819055505b60405163a9059cbb60e01b8152336004820152602481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561175857600080fd5b505af115801561176c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117909190613a49565b50837fb08330c00f69f3f2343fd81719784be16358c64832e868cd5ccec5b98ec62897846040516114e591815260200190565b6000546001600160a01b031633146117ed5760405162461bcd60e51b81526004016107ca90613db1565b604051631526fe2760e01b8152600481018290526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169190841690631526fe279060240160806040518083038186803b15801561185257600080fd5b505afa158015611866573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188a9190613aa0565b516001600160a01b0316146118e15760405162461bcd60e51b815260206004820152601d60248201527f4d6173746572436865664d6f64756c653a20496e76616c69642070696400000060448201526064016107ca565b600f5460ff16611a6057600f805460ff1916600117905560405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b15801561196357600080fd5b505af1158015611977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199b9190613a49565b50600b80546001600160a01b0319166001600160a01b0384811691909117909155600c8290556040516370a0823160e01b81523060048201526109009183917f0000000000000000000000000000000000000000000000000000000000000000909116906370a08231906024015b60206040518083038186803b158015611a2157600080fd5b505afa158015611a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a599190613b77565b6000612e0a565b600b54600c546040516393f1a40b60e01b8152600481018290523060248201526001600160a01b0390921691611af490829084906393f1a40b90604401604080518083038186803b158015611ab457600080fd5b505afa158015611ac8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aec9190613b0f565b516000612e19565b50816001600160a01b0316846001600160a01b031614611c565760405163095ea7b360e01b81526001600160a01b038381166004830152600060248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b158015611b7857600080fd5b505af1158015611b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb09190613a49565b5060405163095ea7b360e01b81526001600160a01b03858116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613a49565b505b600b80546001600160a01b0319166001600160a01b0386811691909117909155600c8490556040516370a0823160e01b8152306004820152610f259185917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401611a09565b83421115611d175760405162461bcd60e51b815260206004820152601f60248201527f4c696e67657269654769726c733a204578706972656420646561646c696e650060448201526064016107ca565b6000611d21610a31565b6001600160a01b038881166000818152601160208181526040808420805482517fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281860152808401889052978f1660608901526080880181905260a08089018f90528351808a03909101815260c08901845280519085012061190160f01b60e08a015260e289018a9052610102808a01919091528351808a03909101815261012290980190925286519683019690962094845291905293945090926001929190611dec908490613e68565b9091555050873b15611edd57604080516020810186905280820185905260f887901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b038a1691631626ba7e91611e59918591606501613c81565b60206040518083038186803b158015611e7157600080fd5b505afa158015611e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea99190613a83565b6001600160e01b031916631626ba7e60e01b14611ed85760405162461bcd60e51b81526004016107ca90613cad565b611f20565b6000611eeb828787876129b8565b9050886001600160a01b0316816001600160a01b031614611f1e5760405162461bcd60e51b81526004016107ca90613cad565b505b611f2c88886001612c53565b5050505050505050565b611f40338361222e565b611f5c5760405162461bcd60e51b81526004016107ca90613de6565b611f6884848484612e28565b50505050565b6000818152600360205260409020546060906001600160a01b0316611fed5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ca565b6000611ff7612e5b565b9050600081511161201757604051806020016040528060008152506106bc565b8061202184612e7b565b604051602001612032929190613c15565b6040516020818303038152906040529392505050565b6000546001600160a01b031633146120725760405162461bcd60e51b81526004016107ca90613db1565b6001600160a01b0381166120d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ca565b6120e08161281a565b50565b6001600160a01b03831661213e5761213981600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612161565b816001600160a01b0316836001600160a01b031614612161576121618382612f79565b6001600160a01b0382166121785761090081613016565b826001600160a01b0316826001600160a01b0316146109005761090082826130c5565b60006001600160e01b0319821663780e9d6360e01b148061065f575061065f82613109565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121f582610cd1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166122a75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ca565b60006122b283610cd1565b9050806001600160a01b0316846001600160a01b031614806122ed5750836001600160a01b03166122e284610755565b6001600160a01b0316145b8061231d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661233882610cd1565b6001600160a01b0316146123a05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ca565b6001600160a01b0382166124025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ca565b61240d838383613159565b6124186000826121c0565b6001600160a01b0383166000908152600460205260408120805460019290612441908490613eb3565b90915550506001600160a01b038216600090815260046020526040812080546001929061246f908490613e68565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c54600090806125235760405162461bcd60e51b815260206004820152601d60248201527f4d6173746572436865664d6f64756c653a20556e636c61696d61626c6500000060448201526064016107ca565b600b546040516393f1a40b60e01b81526004810183905230602482015285916000916001600160a01b03909116906393f1a40b90604401604080518083038186803b15801561257157600080fd5b505afa158015612585573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a99190613b0f565b51905060006125b9848284612e0a565b9050600086670de0b6b3a76400006125d18487613e94565b6125db9190613e80565b6125e59190613eb3565b9050600081116126485760405162461bcd60e51b815260206004820152602860248201527f4d6173746572436865664d6f64756c653a204e6f7468696e672063616e2062656044820152670818db185a5b595960c21b60648201526084016107ca565b6126523382613164565b670de0b6b3a76400006126658386613e94565b61266f9190613e80565b98975050505050505050565b600c546000908061269057600091505061065f565b600b546040516393f1a40b60e01b81526004810183905230602482015285916000916001600160a01b03909116906393f1a40b90604401604080518083038186803b1580156126de57600080fd5b505afa1580156126f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127169190613b0f565b51600e54600d54919250904311801561272e57508115155b156127e757600b54600c5460405163065509bb60e21b815260048101919091523060248201526000916001600160a01b03169063195426ec9060440160206040518083038186803b15801561278257600080fd5b505afa158015612796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ba9190613b77565b9050826127cf82670de0b6b3a7640000613e94565b6127d99190613e80565b6127e39083613e68565b9150505b85670de0b6b3a76400006127fb8386613e94565b6128059190613e80565b61280f9190613eb3565b979650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166128c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ca565b6000818152600360205260409020546001600160a01b0316156129255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ca565b61293160008383613159565b6001600160a01b038216600090815260046020526040812080546001929061295a908490613e68565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612a355760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107ca565b8360ff16601b1480612a4a57508360ff16601c145b612aa15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107ca565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612af5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b585760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107ca565b95945050505050565b600b546040516393f1a40b60e01b81526004810186905230602482015260009182916001600160a01b03909116906393f1a40b90604401604080518083038186803b158015612baf57600080fd5b505afa158015612bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be79190613b0f565b5190506000612bf7878784612e0a565b9050600084670de0b6b3a7640000612c0f8489613e94565b612c199190613e80565b612c239190613eb3565b90508015612c3557612c353382613164565b670de0b6b3a764000082612c498989613e68565b6126659190613e94565b816001600160a01b0316836001600160a01b03161415612cb55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ca565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600b546040516393f1a40b60e01b81526004810186905230602482015260009182916001600160a01b03909116906393f1a40b90604401604080518083038186803b158015612d7057600080fd5b505afa158015612d84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da89190613b0f565b5190506000612db8878784612e19565b9050600084670de0b6b3a7640000612dd08489613e94565b612dda9190613e80565b612de49190613eb3565b90508015612df657612df63382613164565b670de0b6b3a764000082612c498989613eb3565b600061231d6001858585613300565b600061231d6000858585613300565b612e33848484612325565b612e3f8484848461365b565b611f685760405162461bcd60e51b81526004016107ca90613ce4565b606060405180606001604052806027815260200161400860279139905090565b606081612e9f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ec95780612eb381613f31565b9150612ec29050600a83613e80565b9150612ea3565b60008167ffffffffffffffff811115612ee457612ee4613fb8565b6040519080825280601f01601f191660200182016040528015612f0e576020820181803683370190505b5090505b841561231d57612f23600183613eb3565b9150612f30600a86613f4c565b612f3b906030613e68565b60f81b818381518110612f5057612f50613fa2565b60200101906001600160f81b031916908160001a905350612f72600a86613e80565b9450612f12565b60006001612f8684610d48565b612f909190613eb3565b600083815260086020526040902054909150808214612fe3576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061302890600190613eb3565b6000838152600a60205260408120546009805493945090928490811061305057613050613fa2565b90600052602060002001549050806009838154811061307157613071613fa2565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130a9576130a9613f8c565b6001900381819060005260206000200160009055905550505050565b60006130d083610d48565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b148061313a57506001600160e01b03198216635b5e139f60e01b145b8061065f57506301ffc9a760e01b6001600160e01b031983161461065f565b6109008383836120e3565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156131c657600080fd5b505afa1580156131da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fe9190613b77565b9050808211156132ab5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044015b602060405180830381600087803b15801561327357600080fd5b505af1158015613287573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f689190613a49565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401613259565b600080600d5443116133ec57851561337c57600b54604051631c57762b60e31b815260048101879052602481018690526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561335f57600080fd5b505af1158015613373573d6000803e3d6000fd5b505050506133e2565b600b54604051630441a3e760e41b815260048101879052602481018690526001600160a01b039091169063441a3e7090604401600060405180830381600087803b1580156133c957600080fd5b505af11580156133dd573d6000803e3d6000fd5b505050505b5050600e5461231d565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561344e57600080fd5b505afa158015613462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134869190613b77565b905086156134f857600b54604051631c57762b60e31b815260048101889052602481018790526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b1580156134db57600080fd5b505af11580156134ef573d6000803e3d6000fd5b5050505061355e565b600b54604051630441a3e760e41b815260048101889052602481018790526001600160a01b039091169063441a3e7090604401600060405180830381600087803b15801561354557600080fd5b505af1158015613559573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156135c057600080fd5b505afa1580156135d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f89190613b77565b90506136048282613eb3565b9250505043600d55821580159061361b5750600081115b156133e25760008361363583670de0b6b3a7640000613e94565b61363f9190613e80565b600e5461364c9190613e68565b600e819055925061231d915050565b60006001600160a01b0384163b1561375d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061369f903390899088908890600401613c44565b602060405180830381600087803b1580156136b957600080fd5b505af19250505080156136e9575060408051601f3d908101601f191682019092526136e691810190613a83565b60015b613743573d808015613717576040519150601f19603f3d011682016040523d82523d6000602084013e61371c565b606091505b50805161373b5760405162461bcd60e51b81526004016107ca90613ce4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061231d565b50600161231d565b803560ff811681146115ce57600080fd5b60006020828403121561378857600080fd5b81356106bc81613fce565b600080604083850312156137a657600080fd5b82356137b181613fce565b915060208301356137c181613fce565b809150509250929050565b6000806000606084860312156137e157600080fd5b83356137ec81613fce565b925060208401356137fc81613fce565b929592945050506040919091013590565b6000806000806080858703121561382357600080fd5b843561382e81613fce565b935060208581013561383f81613fce565b935060408601359250606086013567ffffffffffffffff8082111561386357600080fd5b818801915088601f83011261387757600080fd5b81358181111561388957613889613fb8565b61389b601f8201601f19168501613e37565b915080825289848285010111156138b157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060008060008060c087890312156138ea57600080fd5b86356138f581613fce565b9550602087013561390581613fce565b94506040870135935061391a60608801613765565b92506080870135915060a087013590509295509295509295565b6000806040838503121561394757600080fd5b823561395281613fce565b915060208301356137c181613fe3565b6000806040838503121561397557600080fd5b823561398081613fce565b946020939093013593505050565b60008060008060008060c087890312156139a757600080fd5b86356139b281613fce565b9550602087013594506040870135935061391a60608801613765565b6000806000604084860312156139e357600080fd5b833567ffffffffffffffff808211156139fb57600080fd5b818601915086601f830112613a0f57600080fd5b813581811115613a1e57600080fd5b8760208260051b8501011115613a3357600080fd5b6020928301989097509590910135949350505050565b600060208284031215613a5b57600080fd5b81516106bc81613fe3565b600060208284031215613a7857600080fd5b81356106bc81613ff1565b600060208284031215613a9557600080fd5b81516106bc81613ff1565b600060808284031215613ab257600080fd5b6040516080810181811067ffffffffffffffff82111715613ad557613ad5613fb8565b6040528251613ae381613fce565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215613b2157600080fd5b6040516040810181811067ffffffffffffffff82111715613b4457613b44613fb8565b604052825181526020928301519281019290925250919050565b600060208284031215613b7057600080fd5b5035919050565b600060208284031215613b8957600080fd5b5051919050565b60008060408385031215613ba357600080fd5b50508035926020909101359150565b60008060008060008060c08789031215613bcb57600080fd5b86359550602087013594506040870135935061391a60608801613765565b60008151808452613c01816020860160208601613eca565b601f01601f19169290920160200192915050565b60008351613c27818460208801613eca565b835190830190613c3b818360208801613eca565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c7790830184613be9565b9695505050505050565b82815260406020820152600061231d6040830184613be9565b6020815260006106bc6020830184613be9565b6020808252601b908201527f4c696e67657269654769726c733a20556e617574686f72697a65640000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526018908201527f4c696e67657269654769726c733a20466f7262696464656e0000000000000000604082015260600190565b60208082526024908201527f4c696e67657269654769726c733a20496e76616c6964206c70546f6b656e416d6040820152631bdd5b9d60e21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e6057613e60613fb8565b604052919050565b60008219821115613e7b57613e7b613f60565b500190565b600082613e8f57613e8f613f76565b500490565b6000816000190483118215151615613eae57613eae613f60565b500290565b600082821015613ec557613ec5613f60565b500390565b60005b83811015613ee5578181015183820152602001613ecd565b83811115611f685750506000910152565b600181811c90821680613f0a57607f821691505b60208210811415613f2b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f4557613f45613f60565b5060010190565b600082613f5b57613f5b613f76565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146120e057600080fd5b80151581146120e057600080fd5b6001600160e01b0319811681146120e057600080fdfe68747470733a2f2f6170692e6d616964636f696e2e6f72672f6c696e67657269656769726c732fa26469706673582212201039610d44df0436d57b706f70224c8792ca3387116954bbeebb4479463d742864736f6c63430008050033000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000000000000000000000000000000000000000004f000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000043000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000004700000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004800000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000045000000000000000000000000000000000000000000000000000000000000003f000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000047000000000000000000000000000000000000000000000000000000000000004300000000000000000000000000000000000000000000000000000000000000490000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004f0000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000000000000000000000000000490000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004d000000000000000000000000000000000000000000000000000000000000004e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063a234d608116100c3578063c62c610b11610087578063c62c610b146105cd578063c87b56dd146105d6578063c9bbd04a146105e9578063e985e9c5146105fc578063eeb876eb14610638578063f2fde38b1461064157600080fd5b8063a234d6081461055a578063a39b10fa1461056d578063aba0784714610580578063b4e13c8d14610593578063b88d4fde146105ba57600080fd5b80638da5cb5b116101155780638da5cb5b146104e8578063904dfb8e146104f957806395d89b41146105195780639be56c6714610521578063a0712d6814610534578063a22cb4651461054757600080fd5b8063715018a614610479578063719242c2146104815780637492ee281461049457806374f2380a146104a75780637ac2ff7b146104d557600080fd5b806330adf81f116101ea5780634fd3c34a116101ae5780634fd3c34a146103fd57806357339be61461040657806358bb45c9146104195780635fcbd2851461042c5780636352211e1461045357806370a082311461046657600080fd5b806330adf81f1461039f5780633644e515146103c657806338e97f44146103ce57806342842e0e146103d75780634f6ccce7146103ea57600080fd5b80630a0879031161023c5780630a08790314610317578063141a468c1461033e57806318160ddd1461035e57806323b872dd146103665780632aaefbe7146103795780632f745c591461038c57600080fd5b806301ffc9a71461027957806304eaa113146102a157806306fdde03146102c2578063081812fc146102d7578063095ea7b314610302575b600080fd5b61028c610287366004613a66565b610654565b60405190151581526020015b60405180910390f35b6102b46102af366004613b5e565b610665565b604051908152602001610298565b6102ca6106c3565b6040516102989190613c9a565b6102ea6102e5366004613b5e565b610755565b6040516001600160a01b039091168152602001610298565b610315610310366004613962565b6107ef565b005b6102ea7f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe281565b6102b461034c366004613b5e565b60106020526000908152604090205481565b6009546102b4565b6103156103743660046137cc565b610905565b610315610387366004613b5e565b610936565b6102b461039a366004613962565b61099b565b6102b47f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b6102b4610a31565b6102b4600d5481565b6103156103e53660046137cc565b610b22565b6102b46103f8366004613b5e565b610b3d565b6102b4600e5481565b610315610414366004613b5e565b610bd0565b6102b4610427366004613b5e565b610c7d565b6102ea7f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f81565b6102ea610461366004613b5e565b610cd1565b6102b4610474366004613776565b610d48565b610315610dcf565b61031561048f3660046139ce565b610e05565b6103156104a2366004613bb2565b610f2c565b6104ba6104b5366004613b5e565b610fe2565b60408051938452602084019290925290820152606001610298565b6103156104e336600461398e565b611015565b6000546001600160a01b03166102ea565b6102b4610507366004613776565b60116020526000908152604090205481565b6102ca6112ef565b61031561052f366004613b90565b6112fe565b6102b4610542366004613b5e565b6114f3565b610315610555366004613934565b6115d3565b610315610568366004613b90565b6115e2565b61031561057b366004613962565b6117c3565b61031561058e3660046138d1565b611cc7565b6102b47fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281565b6103156105c836600461380d565b611f36565b6102b4600c5481565b6102ca6105e4366004613b5e565b611f6e565b600b546102ea906001600160a01b031681565b61028c61060a366004613793565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102b460125481565b61031561064f366004613776565b612048565b600061065f8261219b565b92915050565b6000806013838154811061067b5761067b613fa2565b90600052602060002090600302019050670de0b6b3a764000060125482600101546106a69190613e94565b6106b09190613e80565b81546106bc9190613e68565b9392505050565b6060600180546106d290613ef6565b80601f01602080910402602001604051908101604052809291908181526020018280546106fe90613ef6565b801561074b5780601f106107205761010080835404028352916020019161074b565b820191906000526020600020905b81548152906001019060200180831161072e57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107fa82610cd1565b9050806001600160a01b0316836001600160a01b031614156108685760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ca565b336001600160a01b03821614806108845750610884813361060a565b6108f65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ca565b61090083836121c0565b505050565b61090f338261222e565b61092b5760405162461bcd60e51b81526004016107ca90613de6565b610900838383612325565b6000546001600160a01b031633146109605760405162461bcd60e51b81526004016107ca90613db1565b60128190556040518181527f92520b5c64c2bcbe3d5d49595f9d11e5b5107f89b7f9deb71128f3bbf11c1f869060200160405180910390a150565b60006109a683610d48565b8210610a085760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ca565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60007f0000000000000000000000000000000000000000000000000000000000000001461415610a8057507fe8cc833f9d58eb018278ad8ee2ef6a8b663a130daa9b14f62eee760fc8dc39ba90565b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f02977ef9b05b250ec858107890c46633d0a0138c3018ccc25a485a8e081b77d4918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b61090083838360405180602001604052806000815250611f36565b6000610b4860095490565b8210610bab5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ca565b60098281548110610bbe57610bbe613fa2565b90600052602060002001549050919050565b33610bda82610cd1565b6001600160a01b031614610c005760405162461bcd60e51b81526004016107ca90613d36565b610c5260138281548110610c1657610c16613fa2565b90600052602060002090600302016001015460138381548110610c3b57610c3b613fa2565b9060005260206000209060030201600201546124d0565b60138281548110610c6557610c65613fa2565b90600052602060002090600302016002018190555050565b600061065f60138381548110610c9557610c95613fa2565b90600052602060002090600302016001015460138481548110610cba57610cba613fa2565b90600052602060002090600302016002015461267b565b6000818152600360205260408120546001600160a01b03168061065f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ca565b60006001600160a01b038216610db35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ca565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610df95760405162461bcd60e51b81526004016107ca90613db1565b610e03600061281a565b565b6000546001600160a01b03163314610e2f5760405162461bcd60e51b81526004016107ca90613db1565b818114610e885760405162461bcd60e51b815260206004820152602160248201527f4c696e67657269654769726c733a20496e76616c696420706172616d657465726044820152607360f81b60648201526084016107ca565b60135460005b82811015610f255760136040518060600160405280878785818110610eb557610eb5613fa2565b602090810292909201358352506000828201819052604092830181905284546001818101875595825290829020845160039092020190815590830151938101939093550151600290910155610f1333610f0e8484613e68565b61286a565b610f1e600182613e68565b9050610e8e565b5050505050565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b03169063d505accf9060e401600060405180830381600087803b158015610fb857600080fd5b505af1158015610fcc573d6000803e3d6000fd5b50505050610fda86866112fe565b505050505050565b60138181548110610ff257600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b834211156110655760405162461bcd60e51b815260206004820152601f60248201527f4c696e67657269654769726c733a204578706972656420646561646c696e650060448201526064016107ca565b600061106f610a31565b6000878152601060208181526040808420805482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818601526001600160a01b038f1681850152606081018e90526080810182905260a08082018e90528451808303909101815260c08201855280519086012061190160f01b60e083015260e2820189905261010280830191909152845180830390910181526101229091019093528251928401929092208c865293909252939450909260019290611136908490613e68565b909155506000905061114788610cd1565b9050806001600160a01b0316896001600160a01b031614156111ab5760405162461bcd60e51b815260206004820152601e60248201527f4c696e67657269654769726c733a20496e76616c6964207370656e646572000060448201526064016107ca565b803b1561129757604080516020810187905280820186905260f888901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03831691631626ba7e91611213918691606501613c81565b60206040518083038186803b15801561122b57600080fd5b505afa15801561123f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112639190613a83565b6001600160e01b031916631626ba7e60e01b146112925760405162461bcd60e51b81526004016107ca90613cad565b6112da565b60006112a5838888886129b8565b9050816001600160a01b0316816001600160a01b0316146112d85760405162461bcd60e51b81526004016107ca90613cad565b505b6112e489896121c0565b505050505050505050565b6060600280546106d290613ef6565b3361130883610cd1565b6001600160a01b03161461132e5760405162461bcd60e51b81526004016107ca90613d36565b6000811161134e5760405162461bcd60e51b81526004016107ca90613d6d565b60006013838154811061136357611363613fa2565b906000526020600020906003020160010154905081816113839190613e68565b6013848154811061139657611396613fa2565b60009182526020909120600390910201600101556040516323b872dd60e01b8152336004820152306024820152604481018390527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561141857600080fd5b505af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190613a49565b50600c5480156114b35761148a8184846013888154811061147357611473613fa2565b906000526020600020906003020160020154612b61565b6013858154811061149d5761149d613fa2565b9060005260206000209060030201600201819055505b837f9c86c947c690753cc6de6016e1c45414d895662cc13af08319148419baf5df2f846040516114e591815260200190565b60405180910390a250505050565b600080546001600160a01b0316331461151e5760405162461bcd60e51b81526004016107ca90613db1565b50601380546040805160608101825284815260006020820181815292820181815260018501865594905251600383027f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09081019190915590517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09182015591517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a092909201919091556115ce338261286a565b919050565b6115de338383612c53565b5050565b336115ec83610cd1565b6001600160a01b0316146116125760405162461bcd60e51b81526004016107ca90613d36565b600081116116325760405162461bcd60e51b81526004016107ca90613d6d565b60006013838154811061164757611647613fa2565b906000526020600020906003020160010154905081816116679190613eb3565b6013848154811061167a5761167a613fa2565b6000918252602090912060016003909202010155600c5480156116f0576116c7818484601388815481106116b0576116b0613fa2565b906000526020600020906003020160020154612d22565b601385815481106116da576116da613fa2565b9060005260206000209060030201600201819055505b60405163a9059cbb60e01b8152336004820152602481018490527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561175857600080fd5b505af115801561176c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117909190613a49565b50837fb08330c00f69f3f2343fd81719784be16358c64832e868cd5ccec5b98ec62897846040516114e591815260200190565b6000546001600160a01b031633146117ed5760405162461bcd60e51b81526004016107ca90613db1565b604051631526fe2760e01b8152600481018290526001600160a01b037f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f81169190841690631526fe279060240160806040518083038186803b15801561185257600080fd5b505afa158015611866573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188a9190613aa0565b516001600160a01b0316146118e15760405162461bcd60e51b815260206004820152601d60248201527f4d6173746572436865664d6f64756c653a20496e76616c69642070696400000060448201526064016107ca565b600f5460ff16611a6057600f805460ff1916600117905560405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b15801561196357600080fd5b505af1158015611977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199b9190613a49565b50600b80546001600160a01b0319166001600160a01b0384811691909117909155600c8290556040516370a0823160e01b81523060048201526109009183917f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f909116906370a08231906024015b60206040518083038186803b158015611a2157600080fd5b505afa158015611a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a599190613b77565b6000612e0a565b600b54600c546040516393f1a40b60e01b8152600481018290523060248201526001600160a01b0390921691611af490829084906393f1a40b90604401604080518083038186803b158015611ab457600080fd5b505afa158015611ac8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aec9190613b0f565b516000612e19565b50816001600160a01b0316846001600160a01b031614611c565760405163095ea7b360e01b81526001600160a01b038381166004830152600060248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b158015611b7857600080fd5b505af1158015611b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb09190613a49565b5060405163095ea7b360e01b81526001600160a01b03858116600483015260001960248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613a49565b505b600b80546001600160a01b0319166001600160a01b0386811691909117909155600c8490556040516370a0823160e01b8152306004820152610f259185917f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f909116906370a0823190602401611a09565b83421115611d175760405162461bcd60e51b815260206004820152601f60248201527f4c696e67657269654769726c733a204578706972656420646561646c696e650060448201526064016107ca565b6000611d21610a31565b6001600160a01b038881166000818152601160208181526040808420805482517fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281860152808401889052978f1660608901526080880181905260a08089018f90528351808a03909101815260c08901845280519085012061190160f01b60e08a015260e289018a9052610102808a01919091528351808a03909101815261012290980190925286519683019690962094845291905293945090926001929190611dec908490613e68565b9091555050873b15611edd57604080516020810186905280820185905260f887901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b038a1691631626ba7e91611e59918591606501613c81565b60206040518083038186803b158015611e7157600080fd5b505afa158015611e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea99190613a83565b6001600160e01b031916631626ba7e60e01b14611ed85760405162461bcd60e51b81526004016107ca90613cad565b611f20565b6000611eeb828787876129b8565b9050886001600160a01b0316816001600160a01b031614611f1e5760405162461bcd60e51b81526004016107ca90613cad565b505b611f2c88886001612c53565b5050505050505050565b611f40338361222e565b611f5c5760405162461bcd60e51b81526004016107ca90613de6565b611f6884848484612e28565b50505050565b6000818152600360205260409020546060906001600160a01b0316611fed5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ca565b6000611ff7612e5b565b9050600081511161201757604051806020016040528060008152506106bc565b8061202184612e7b565b604051602001612032929190613c15565b6040516020818303038152906040529392505050565b6000546001600160a01b031633146120725760405162461bcd60e51b81526004016107ca90613db1565b6001600160a01b0381166120d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ca565b6120e08161281a565b50565b6001600160a01b03831661213e5761213981600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612161565b816001600160a01b0316836001600160a01b031614612161576121618382612f79565b6001600160a01b0382166121785761090081613016565b826001600160a01b0316826001600160a01b0316146109005761090082826130c5565b60006001600160e01b0319821663780e9d6360e01b148061065f575061065f82613109565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121f582610cd1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166122a75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ca565b60006122b283610cd1565b9050806001600160a01b0316846001600160a01b031614806122ed5750836001600160a01b03166122e284610755565b6001600160a01b0316145b8061231d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661233882610cd1565b6001600160a01b0316146123a05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ca565b6001600160a01b0382166124025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ca565b61240d838383613159565b6124186000826121c0565b6001600160a01b0383166000908152600460205260408120805460019290612441908490613eb3565b90915550506001600160a01b038216600090815260046020526040812080546001929061246f908490613e68565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c54600090806125235760405162461bcd60e51b815260206004820152601d60248201527f4d6173746572436865664d6f64756c653a20556e636c61696d61626c6500000060448201526064016107ca565b600b546040516393f1a40b60e01b81526004810183905230602482015285916000916001600160a01b03909116906393f1a40b90604401604080518083038186803b15801561257157600080fd5b505afa158015612585573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a99190613b0f565b51905060006125b9848284612e0a565b9050600086670de0b6b3a76400006125d18487613e94565b6125db9190613e80565b6125e59190613eb3565b9050600081116126485760405162461bcd60e51b815260206004820152602860248201527f4d6173746572436865664d6f64756c653a204e6f7468696e672063616e2062656044820152670818db185a5b595960c21b60648201526084016107ca565b6126523382613164565b670de0b6b3a76400006126658386613e94565b61266f9190613e80565b98975050505050505050565b600c546000908061269057600091505061065f565b600b546040516393f1a40b60e01b81526004810183905230602482015285916000916001600160a01b03909116906393f1a40b90604401604080518083038186803b1580156126de57600080fd5b505afa1580156126f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127169190613b0f565b51600e54600d54919250904311801561272e57508115155b156127e757600b54600c5460405163065509bb60e21b815260048101919091523060248201526000916001600160a01b03169063195426ec9060440160206040518083038186803b15801561278257600080fd5b505afa158015612796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ba9190613b77565b9050826127cf82670de0b6b3a7640000613e94565b6127d99190613e80565b6127e39083613e68565b9150505b85670de0b6b3a76400006127fb8386613e94565b6128059190613e80565b61280f9190613eb3565b979650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166128c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ca565b6000818152600360205260409020546001600160a01b0316156129255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ca565b61293160008383613159565b6001600160a01b038216600090815260046020526040812080546001929061295a908490613e68565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612a355760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107ca565b8360ff16601b1480612a4a57508360ff16601c145b612aa15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107ca565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612af5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b585760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107ca565b95945050505050565b600b546040516393f1a40b60e01b81526004810186905230602482015260009182916001600160a01b03909116906393f1a40b90604401604080518083038186803b158015612baf57600080fd5b505afa158015612bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be79190613b0f565b5190506000612bf7878784612e0a565b9050600084670de0b6b3a7640000612c0f8489613e94565b612c199190613e80565b612c239190613eb3565b90508015612c3557612c353382613164565b670de0b6b3a764000082612c498989613e68565b6126659190613e94565b816001600160a01b0316836001600160a01b03161415612cb55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ca565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600b546040516393f1a40b60e01b81526004810186905230602482015260009182916001600160a01b03909116906393f1a40b90604401604080518083038186803b158015612d7057600080fd5b505afa158015612d84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da89190613b0f565b5190506000612db8878784612e19565b9050600084670de0b6b3a7640000612dd08489613e94565b612dda9190613e80565b612de49190613eb3565b90508015612df657612df63382613164565b670de0b6b3a764000082612c498989613eb3565b600061231d6001858585613300565b600061231d6000858585613300565b612e33848484612325565b612e3f8484848461365b565b611f685760405162461bcd60e51b81526004016107ca90613ce4565b606060405180606001604052806027815260200161400860279139905090565b606081612e9f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ec95780612eb381613f31565b9150612ec29050600a83613e80565b9150612ea3565b60008167ffffffffffffffff811115612ee457612ee4613fb8565b6040519080825280601f01601f191660200182016040528015612f0e576020820181803683370190505b5090505b841561231d57612f23600183613eb3565b9150612f30600a86613f4c565b612f3b906030613e68565b60f81b818381518110612f5057612f50613fa2565b60200101906001600160f81b031916908160001a905350612f72600a86613e80565b9450612f12565b60006001612f8684610d48565b612f909190613eb3565b600083815260086020526040902054909150808214612fe3576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061302890600190613eb3565b6000838152600a60205260408120546009805493945090928490811061305057613050613fa2565b90600052602060002001549050806009838154811061307157613071613fa2565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130a9576130a9613f8c565b6001900381819060005260206000200160009055905550505050565b60006130d083610d48565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b148061313a57506001600160e01b03198216635b5e139f60e01b145b8061065f57506301ffc9a760e01b6001600160e01b031983161461065f565b6109008383836120e3565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b1580156131c657600080fd5b505afa1580156131da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fe9190613b77565b9050808211156132ab5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2169063a9059cbb906044015b602060405180830381600087803b15801561327357600080fd5b505af1158015613287573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f689190613a49565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2169063a9059cbb90604401613259565b600080600d5443116133ec57851561337c57600b54604051631c57762b60e31b815260048101879052602481018690526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561335f57600080fd5b505af1158015613373573d6000803e3d6000fd5b505050506133e2565b600b54604051630441a3e760e41b815260048101879052602481018690526001600160a01b039091169063441a3e7090604401600060405180830381600087803b1580156133c957600080fd5b505af11580156133dd573d6000803e3d6000fd5b505050505b5050600e5461231d565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b15801561344e57600080fd5b505afa158015613462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134869190613b77565b905086156134f857600b54604051631c57762b60e31b815260048101889052602481018790526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b1580156134db57600080fd5b505af11580156134ef573d6000803e3d6000fd5b5050505061355e565b600b54604051630441a3e760e41b815260048101889052602481018790526001600160a01b039091169063441a3e7090604401600060405180830381600087803b15801561354557600080fd5b505af1158015613559573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b1580156135c057600080fd5b505afa1580156135d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f89190613b77565b90506136048282613eb3565b9250505043600d55821580159061361b5750600081115b156133e25760008361363583670de0b6b3a7640000613e94565b61363f9190613e80565b600e5461364c9190613e68565b600e819055925061231d915050565b60006001600160a01b0384163b1561375d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061369f903390899088908890600401613c44565b602060405180830381600087803b1580156136b957600080fd5b505af19250505080156136e9575060408051601f3d908101601f191682019092526136e691810190613a83565b60015b613743573d808015613717576040519150601f19603f3d011682016040523d82523d6000602084013e61371c565b606091505b50805161373b5760405162461bcd60e51b81526004016107ca90613ce4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061231d565b50600161231d565b803560ff811681146115ce57600080fd5b60006020828403121561378857600080fd5b81356106bc81613fce565b600080604083850312156137a657600080fd5b82356137b181613fce565b915060208301356137c181613fce565b809150509250929050565b6000806000606084860312156137e157600080fd5b83356137ec81613fce565b925060208401356137fc81613fce565b929592945050506040919091013590565b6000806000806080858703121561382357600080fd5b843561382e81613fce565b935060208581013561383f81613fce565b935060408601359250606086013567ffffffffffffffff8082111561386357600080fd5b818801915088601f83011261387757600080fd5b81358181111561388957613889613fb8565b61389b601f8201601f19168501613e37565b915080825289848285010111156138b157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060008060008060c087890312156138ea57600080fd5b86356138f581613fce565b9550602087013561390581613fce565b94506040870135935061391a60608801613765565b92506080870135915060a087013590509295509295509295565b6000806040838503121561394757600080fd5b823561395281613fce565b915060208301356137c181613fe3565b6000806040838503121561397557600080fd5b823561398081613fce565b946020939093013593505050565b60008060008060008060c087890312156139a757600080fd5b86356139b281613fce565b9550602087013594506040870135935061391a60608801613765565b6000806000604084860312156139e357600080fd5b833567ffffffffffffffff808211156139fb57600080fd5b818601915086601f830112613a0f57600080fd5b813581811115613a1e57600080fd5b8760208260051b8501011115613a3357600080fd5b6020928301989097509590910135949350505050565b600060208284031215613a5b57600080fd5b81516106bc81613fe3565b600060208284031215613a7857600080fd5b81356106bc81613ff1565b600060208284031215613a9557600080fd5b81516106bc81613ff1565b600060808284031215613ab257600080fd5b6040516080810181811067ffffffffffffffff82111715613ad557613ad5613fb8565b6040528251613ae381613fce565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215613b2157600080fd5b6040516040810181811067ffffffffffffffff82111715613b4457613b44613fb8565b604052825181526020928301519281019290925250919050565b600060208284031215613b7057600080fd5b5035919050565b600060208284031215613b8957600080fd5b5051919050565b60008060408385031215613ba357600080fd5b50508035926020909101359150565b60008060008060008060c08789031215613bcb57600080fd5b86359550602087013594506040870135935061391a60608801613765565b60008151808452613c01816020860160208601613eca565b601f01601f19169290920160200192915050565b60008351613c27818460208801613eca565b835190830190613c3b818360208801613eca565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c7790830184613be9565b9695505050505050565b82815260406020820152600061231d6040830184613be9565b6020815260006106bc6020830184613be9565b6020808252601b908201527f4c696e67657269654769726c733a20556e617574686f72697a65640000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526018908201527f4c696e67657269654769726c733a20466f7262696464656e0000000000000000604082015260600190565b60208082526024908201527f4c696e67657269654769726c733a20496e76616c6964206c70546f6b656e416d6040820152631bdd5b9d60e21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e6057613e60613fb8565b604052919050565b60008219821115613e7b57613e7b613f60565b500190565b600082613e8f57613e8f613f76565b500490565b6000816000190483118215151615613eae57613eae613f60565b500290565b600082821015613ec557613ec5613f60565b500390565b60005b83811015613ee5578181015183820152602001613ecd565b83811115611f685750506000910152565b600181811c90821680613f0a57607f821691505b60208210811415613f2b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f4557613f45613f60565b5060010190565b600082613f5b57613f5b613f76565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146120e057600080fd5b80151581146120e057600080fd5b6001600160e01b0319811681146120e057600080fdfe68747470733a2f2f6170692e6d616964636f696e2e6f72672f6c696e67657269656769726c732fa26469706673582212201039610d44df0436d57b706f70224c8792ca3387116954bbeebb4479463d742864736f6c63430008050033

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

000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000000000000000000000000000000000000000004f000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000043000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000004700000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000004800000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000045000000000000000000000000000000000000000000000000000000000000003f000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000047000000000000000000000000000000000000000000000000000000000000004300000000000000000000000000000000000000000000000000000000000000490000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004f0000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000000000000000000000000000490000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004d000000000000000000000000000000000000000000000000000000000000004e

-----Decoded View---------------
Arg [0] : _lpToken (address): 0xc7175038323562cB68E4BbdD379E9fE65134937f
Arg [1] : _sushi (address): 0x6B3595068778DD592e39A122f4f5a5cF09C90fE2
Arg [2] : powers (uint256[30]): 79,75,67,78,71,72,66,72,68,65,76,69,63,70,69,71,67,73,70,62,74,79,65,75,64,69,73,68,77,78

-----Encoded View---------------
32 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f
Arg [1] : 0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
Arg [2] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [3] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [5] : 000000000000000000000000000000000000000000000000000000000000004e
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000047
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000048
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000048
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [12] : 000000000000000000000000000000000000000000000000000000000000004c
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [14] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000047
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000049
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [21] : 000000000000000000000000000000000000000000000000000000000000003e
Arg [22] : 000000000000000000000000000000000000000000000000000000000000004a
Arg [23] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [25] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000049
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [30] : 000000000000000000000000000000000000000000000000000000000000004d
Arg [31] : 000000000000000000000000000000000000000000000000000000000000004e


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.