ETH Price: $2,261.32 (-5.14%)

Contract

0x00B7AB6A4b12A2548855Ee0b7598C6D267762636
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040150730252022-07-04 1:13:18796 days ago1656897198IN
 Create: ScrapStake
0 ETH0.0647346615.02524908

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ScrapStake

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : ScrapStaking.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";

//Interface for SCRAP V2 Hub that contains minting/balance of SCRAP

interface IScrapHub {
    function increaseScrapBalance(address _address, uint256 _amount) external;

    function decreaseScrapBalance(address _address, uint256 _amount) external;
}

//Interface for Genesis Dysto Apez Contract
interface IDystoGen {
    function ownerOf(uint256 id) external view returns (address);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

//Interface for Elder Apez Contract
interface IElderApe {
    function ownerOf(uint256 id) external view returns (address);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

contract ScrapStake is
    Initializable,
    UUPSUpgradeable,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable
{


//    ==== Declarations ====

    bool private _paused;

    //Structure for tracking genesis staking stats
    struct GenesisStake {
        uint256 legendaryCount;
        uint256 count;
        uint256[] tokens;
    }

    //Structure for tracking other staking stats
    struct stake {
        uint256 count;
        uint256[] tokens;
    }

    //Structure for tracking elder staking stats
    struct ElderStake {
        uint256 count;
        uint256[] tokens;
    }

    //Declaration of interfaces
    IScrapHub public constant SCRAP_HUB =
        IScrapHub(0x829cE04A6114e11217B6DcF38884d15260e569d0);
    IDystoGen public constant DYSTO_GEN =
        IDystoGen(0x648E8428e0104Ec7D08667866a3568a72Fe3898F);
    IElderApe public constant ELDER_APE =
        IElderApe(0x943f4f7fc2D48F3AD8C524cf8A8794B64100df3F);

    //There are 10 legendary Dysto Apez that receive a bonus yield
    uint256 public constant LEGENDARY_SUPPLY = 10;

    //Daily rate of yield
    uint256 public dailyRate;

    //Daily bonus for legendary Dysto Apez - legendary apez get bonus and daily rate
    uint256 public dailyLegendaryBonus;

    //Daily yield rate for elder apez - elder apez DO NOT also collect 100 SCRAP
    uint256 public dailyElderRate;

    //array of addresses to keep track of which addresses have been added to yield
    address[] public yieldAddressIndex;

    //mapping of user addresses to the genesis staking structure
    mapping(address => GenesisStake) public accountGenesisStake;

    //mapping of user addresses to the elder staking structure
    mapping(address => ElderStake) public accountElderStake;

    //mapping of contract addresses with cooresponding yield rates
    mapping(address => uint256) public yieldMap;

    //mapping for other, non-genesis staking
    mapping(address => mapping(address => stake)) public accountStake;

    //mapping to track ownership of individual tokenIds
    mapping(uint256 => address) public ownerOfGenesis;

    //mapping to track ownership of individual tokenIds
    mapping(uint256 => address) public ownerOfElder;

    //mappig to track ownership of non-genesis staked tokens
    mapping(address => mapping(uint256 => address)) public ownerOfOtherStake;

    //mapping to track global last update of user account
    mapping(address => uint256) public accountLastUpdate;

    //bool to enable staking/yield of non-genesis assets
    bool public otherStakeActive;
    bool public elderStakeActive;


//    ==== Modifiers ====


    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    function initialize() public initializer {
        __Ownable_init();
        __UUPSUpgradeable_init();
        __ReentrancyGuard_init();
        dailyRate = 100 ether;
        dailyLegendaryBonus = 700 ether;
        dailyElderRate = 500 ether;
    }

    function _authorizeUpgrade(address newImplementation)
        internal
        override
        onlyOwner
    {}

    /*
    ==== User Stake/Unstake Functions ====
*/

    function stakeGen(uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(
                DYSTO_GEN.ownerOf(tokenIds[i]) == msg.sender,
                "Not the owner"
            );
            DYSTO_GEN.transferFrom(msg.sender, address(this), tokenIds[i]);
            ownerOfGenesis[tokenIds[i]] = msg.sender;
            accountGenesisStake[msg.sender].tokens.push(tokenIds[i]);
            if (tokenIds[i] <= LEGENDARY_SUPPLY) {
                accountGenesisStake[msg.sender].legendaryCount++;
            }
        }
        accountGenesisStake[msg.sender].count =
            accountGenesisStake[msg.sender].count +
            tokenIds.length;
    }

    function unStakeGen(uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(ownerOfGenesis[tokenIds[i]] == msg.sender, "Not the owner");
            delete (ownerOfGenesis[tokenIds[i]]);
            removeGenToken(msg.sender, tokenIds[i]);
            DYSTO_GEN.transferFrom(address(this), msg.sender, tokenIds[i]);
            if (tokenIds[i] <= LEGENDARY_SUPPLY) {
                accountGenesisStake[msg.sender].legendaryCount--;
            }
        }
        accountGenesisStake[msg.sender].count =
            accountGenesisStake[msg.sender].count -
            tokenIds.length;
    }

    function stakeElder(uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(
                ELDER_APE.ownerOf(tokenIds[i]) == msg.sender,
                "Not the owner"
            );
            ELDER_APE.transferFrom(msg.sender, address(this), tokenIds[i]);
            ownerOfElder[tokenIds[i]] = msg.sender;
            accountElderStake[msg.sender].tokens.push(tokenIds[i]);
        }
        accountElderStake[msg.sender].count =
            accountElderStake[msg.sender].count +
            tokenIds.length;
    }

    function unStakeElder(uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(ownerOfElder[tokenIds[i]] == msg.sender, "Not the owner");
            delete (ownerOfElder[tokenIds[i]]);
            removeElderToken(msg.sender, tokenIds[i]);
            ELDER_APE.transferFrom(address(this), msg.sender, tokenIds[i]);
        }
        accountElderStake[msg.sender].count =
            accountElderStake[msg.sender].count -
            tokenIds.length;
    }

    function stakeOther(address _contract, uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        require(yieldMap[_contract] != 0, "This is not a stakable token");
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(
                IERC721(_contract).ownerOf(tokenIds[i]) == msg.sender,
                "Not the owner"
            );
            IERC721(_contract).transferFrom(
                msg.sender,
                address(this),
                tokenIds[i]
            );
            ownerOfOtherStake[_contract][tokenIds[i]] = msg.sender;
            accountStake[_contract][msg.sender].tokens.push(tokenIds[i]);
        }
        accountStake[_contract][msg.sender].count =
            accountStake[_contract][msg.sender].count +
            tokenIds.length;
    }

    function unStakeOther(address _contract, uint256[] memory tokenIds)
        public
        nonReentrant
        whenNotPaused
    {
        updateReward(msg.sender);
        for (uint256 i; i < tokenIds.length; i++) {
            require(
                ownerOfOtherStake[_contract][tokenIds[i]] == msg.sender,
                "Not the owner"
            );
            delete (ownerOfOtherStake[_contract][tokenIds[i]]);
            removeOtherToken(_contract, msg.sender, tokenIds[i]);
            IERC721(_contract).transferFrom(
                address(this),
                msg.sender,
                tokenIds[i]
            );
        }
        accountStake[_contract][msg.sender].count =
            accountStake[_contract][msg.sender].count -
            tokenIds.length;
    }

//    ==== View Functions ====

    function paused() public view virtual returns (bool) {
        return _paused;
    }

    //returns requested staking struct
    function getAccountGenesisStaked(address user)
        external
        view
        returns (GenesisStake memory)
    {
        return accountGenesisStake[user];
    }

    function getAccountElderStaked(address user)
        external
        view
        returns (ElderStake memory)
    {
        return accountElderStake[user];
    }

    function getAccountOtherStaked(address _contract, address user)
        external
        view
        returns (stake memory)
    {
        return accountStake[_contract][user];
    }

    //returns array of staked tokenIds for inputted address
    function getAccountStakedTokens(address user)
        external
        view
        returns (uint256[] memory)
    {
        return accountGenesisStake[user].tokens;
    }

    //returns the daily yield rate for an address
    function getYieldPerDay(address user) external view returns (uint256) {
        uint256 dailyYield = (accountGenesisStake[user].count * dailyRate) +
            (accountGenesisStake[user].legendaryCount * dailyLegendaryBonus);
        dailyYield += (accountElderStake[user].count * dailyElderRate);
        for (uint256 i; i < yieldAddressIndex.length; i++) {
            dailyYield += (accountStake[yieldAddressIndex[i]][user].count *
                yieldMap[yieldAddressIndex[i]]);
        }
        return dailyYield;
    }

    //Returns total pending rewards
    function viewRewards(address _staker) public view returns (uint256) {
        return
            getPendingGenReward(_staker) +
            getPendingReward(_staker) +
            getPendingElderReward(_staker);
    }


//    ==== Interal Staking Functions ====

    //calculates bonus yield for staking multiple Genesis Dysto Apez
    function _calculateBonus(address _user) internal view returns (uint256) {
        uint256 stakedBalance = accountGenesisStake[_user].count;
        if (stakedBalance >= 20) return 400 ether;
        if (stakedBalance >= 10) return 150 ether;
        if (stakedBalance >= 5) return 50 ether;
        if (stakedBalance >= 2) return 10 ether;
        return 0;
    }

    //Functions to return the pending rewards for user
    function getPendingGenReward(address user) internal view returns (uint256) {
        if (accountGenesisStake[user].count == 0) {
            return 0;
        } else {
            uint256 timeSinceLastClaim = block.timestamp -
                accountLastUpdate[user];
            uint256 pendingBasic = accountGenesisStake[user].count *
                ((dailyRate * timeSinceLastClaim) / 86400);
            uint256 pendingLegendary = accountGenesisStake[user]
                .legendaryCount *
                ((dailyLegendaryBonus * timeSinceLastClaim) / 86400);
            uint256 pendingBonus = (_calculateBonus(user) *
                timeSinceLastClaim) / 86400;
            return pendingBasic + pendingLegendary + pendingBonus;
        }
    }

    function getPendingElderReward(address user)
        internal
        view
        returns (uint256)
    {
        if (accountElderStake[user].count == 0) {
            return 0;
        } else {
            uint256 timeSinceLastClaim = block.timestamp -
                accountLastUpdate[user];
            uint256 pending = accountElderStake[user].count *
                ((dailyElderRate * timeSinceLastClaim) / 86400);
            return pending;
        }
    }

    function getPendingReward(address _user) internal view returns (uint256) {
        uint256 totalPendingReward;
        for (uint256 i; i < yieldAddressIndex.length; i++) {
            uint256 timeSinceLastClaim = block.timestamp -
                accountLastUpdate[_user];
            totalPendingReward +=
                accountStake[yieldAddressIndex[i]][_user].count *
                ((yieldMap[yieldAddressIndex[i]] * timeSinceLastClaim) / 86400);
        }
        return totalPendingReward;
    }

    //Functions to remove a specific tokenId from staked token array in staking structures
    function removeGenToken(address _user, uint256 id) internal {
        for (uint256 i; i < accountGenesisStake[_user].tokens.length; i++) {
            if (accountGenesisStake[_user].tokens[i] == id) {
                accountGenesisStake[_user].tokens[i] = accountGenesisStake[
                    _user
                ].tokens[accountGenesisStake[_user].tokens.length - 1];
                accountGenesisStake[_user].tokens.pop();
                break;
            }
        }
    }

    function removeElderToken(address _user, uint256 id) internal {
        for (uint256 i; i < accountElderStake[_user].tokens.length; i++) {
            if (accountElderStake[_user].tokens[i] == id) {
                accountElderStake[_user].tokens[i] = accountElderStake[_user]
                    .tokens[accountElderStake[_user].tokens.length - 1];
                accountElderStake[_user].tokens.pop();
                break;
            }
        }
    }

    function removeOtherToken(
        address _contract,
        address _user,
        uint256 id
    ) internal {
        for (uint256 i; i < accountStake[_contract][_user].tokens.length; i++) {
            if (accountStake[_contract][_user].tokens[i] == id) {
                accountStake[_contract][_user].tokens[i] = accountStake[
                    _contract
                ][_user].tokens[
                        accountStake[_contract][_user].tokens.length - 1
                    ];
                accountStake[_contract][_user].tokens.pop();
                break;
            }
        }
    }

    //Function to set the time of last yield update to the current block timestamp
    function updateLastTime(address user) internal {
        accountLastUpdate[user] = block.timestamp;
    }

    //Function to update reward and add pending rewards to user balance
    function updateReward(address _staker) public nonReentrant {
        uint256 pendingRewards = getPendingGenReward(_staker);
        if (otherStakeActive = true)
            pendingRewards += getPendingReward(_staker);
        if (elderStakeActive = true)
            pendingRewards += getPendingElderReward(_staker);
        updateLastTime(_staker);
        SCRAP_HUB.increaseScrapBalance(_staker, pendingRewards);
    }


//    ==== Admin Functions ====


    function setPaused(bool _state) external onlyOwner {
        _paused = _state;
    }

    //functions to update the yield rates - in ether
    function updateGenRate(uint256 rate) external onlyOwner {
        dailyRate = rate * 1 ether;
    }

    function updateLegendaryBonus(uint256 rate) external onlyOwner {
        dailyLegendaryBonus = rate * 1 ether;
    }

    function updateElderRate(uint256 rate) external onlyOwner {
        dailyElderRate = rate * 1 ether;
    }

    //Add a contract to the yielding process
    function addYieldcontract(address _contract, uint256 _rate)
        external
        onlyOwner
    {
        require(
            yieldMap[_contract] == 0,
            "This contract has already been added"
        );
        yieldMap[_contract] = _rate * 1 ether;
        yieldAddressIndex.push(_contract);
    }

    //Update the yield for a contract already added to the yielding process
    function updateContractYield(address _contract, uint256 _rate)
        external
        onlyOwner
    {
        require(
            yieldMap[_contract] != 0,
            "this contrcat has not been added to the yield system. Please add it using addYieldContract function"
        );
        yieldMap[_contract] = _rate * 1 ether;
    }

    //Remove contract from the yield mapping
    function removeYieldcontract(address _contract) external onlyOwner {
        require(yieldMap[_contract] != 0, "Contract not found");
        delete yieldMap[_contract];
        for (uint256 i; i < yieldAddressIndex.length; i++) {
            if (yieldAddressIndex[i] == _contract) {
                yieldAddressIndex[i] = yieldAddressIndex[
                    yieldAddressIndex.length - 1
                ];
                yieldAddressIndex.pop();
                break;
            }
        }
    }

    //withdraws tokens to their respective owner. For use in case of emergency.
    function emergencyWithdrawGen(uint256[] memory tokenIds)
        public
        onlyOwner
        whenPaused
    {
        require(tokenIds.length <= 50, "50 is max per tx");
        for (uint256 i; i < tokenIds.length; i++) {
            address receiver = ownerOfGenesis[tokenIds[i]];
            if (
                receiver != address(0) &&
                DYSTO_GEN.ownerOf(tokenIds[i]) == address(this)
            ) {
                DYSTO_GEN.transferFrom(address(this), receiver, tokenIds[i]);
            }
        }
    }

    function emergencyWithdrawElder(uint256[] memory tokenIds)
        public
        onlyOwner
        whenPaused
    {
        require(tokenIds.length <= 50, "50 is max per tx");
        for (uint256 i; i < tokenIds.length; i++) {
            address receiver = ownerOfElder[tokenIds[i]];
            if (
                receiver != address(0) &&
                ELDER_APE.ownerOf(tokenIds[i]) == address(this)
            ) {
                ELDER_APE.transferFrom(address(this), receiver, tokenIds[i]);
            }
        }
    }

    function emergencyWithdrawOther(
        uint256[] memory tokenIds,
        address _contract
    ) public onlyOwner whenPaused {
        require(tokenIds.length <= 50, "50 is max per tx");
        for (uint256 i; i < tokenIds.length; i++) {
            address receiver = ownerOfOtherStake[_contract][tokenIds[i]];
            if (
                receiver != address(0) &&
                IERC721(_contract).ownerOf(tokenIds[i]) == address(this)
            ) {
                IERC721(_contract).transferFrom(
                    address(this),
                    receiver,
                    tokenIds[i]
                );
            }
        }
    }
}

File 2 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 3 of 13 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 4 of 13 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 5 of 13 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate that the this implementation remains valid after an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 6 of 13 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 7 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 8 of 13 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 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 9 of 13 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 10 of 13 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 11 of 13 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 12 of 13 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 13 of 13 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"DYSTO_GEN","outputs":[{"internalType":"contract IDystoGen","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ELDER_APE","outputs":[{"internalType":"contract IElderApe","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEGENDARY_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCRAP_HUB","outputs":[{"internalType":"contract IScrapHub","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountElderStake","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountGenesisStake","outputs":[{"internalType":"uint256","name":"legendaryCount","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountLastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"accountStake","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"addYieldcontract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dailyElderRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyLegendaryBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"elderStakeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"emergencyWithdrawElder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"emergencyWithdrawGen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"_contract","type":"address"}],"name":"emergencyWithdrawOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccountElderStaked","outputs":[{"components":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"internalType":"struct ScrapStake.ElderStake","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccountGenesisStaked","outputs":[{"components":[{"internalType":"uint256","name":"legendaryCount","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"internalType":"struct ScrapStake.GenesisStake","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"getAccountOtherStaked","outputs":[{"components":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"internalType":"struct ScrapStake.stake","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccountStakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getYieldPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"otherStakeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOfElder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOfGenesis","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOfOtherStake","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"removeYieldcontract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeElder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeGen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unStakeElder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unStakeGen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unStakeOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"updateContractYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateElderRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateGenRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateLegendaryBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"viewRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"yieldAddressIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"yieldMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a0604052306080523480156200001557600080fd5b506200002062000026565b62000156565b6200003260ff62000035565b50565b60008054610100900460ff1615620000ce578160ff1660011480156200006e57506200006c306200014760201b620037131760201c565b155b620000c65760405162461bcd60e51b815260206004820152602e602482015260008051602062004e2383398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b506000919050565b60005460ff8084169116106200012d5760405162461bcd60e51b815260206004820152602e602482015260008051602062004e2383398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620000bd565b506000805460ff191660ff92909216919091179055600190565b6001600160a01b03163b151590565b608051614c956200018e60003960008181610c6d01528181610d0301528181610e7b01528181610f11015261100c0152614c956000f3fe60806040526004361061031e5760003560e01c80637386485f116101a5578063ae4debae116100ec578063d0a596a411610095578063dd7eb9a91161006f578063dd7eb9a91461097f578063f015dfd2146109b6578063f2fde38b146109d6578063f7ba2b35146109f657600080fd5b8063d0a596a414610917578063d98e85771461093f578063da40ef801461095f57600080fd5b8063ba2adee2116100c6578063ba2adee2146108c1578063c1c6be08146108e1578063d02370fc146108f757600080fd5b8063ae4debae14610861578063b6d760cf14610881578063b756abf6146108a157600080fd5b80638da5cb5b1161014e578063a0d04cbf11610128578063a0d04cbf146107f9578063a9830b4414610819578063ad0a602d1461083957600080fd5b80638da5cb5b1461079d5780638dfd5d07146107bb578063a08a09fd146107e357600080fd5b806376a47aae1161017f57806376a47aae146107315780638129fc1c146107515780638a79e0791461076657600080fd5b80637386485f146106db57806374355c3a146106fb57806374df19c31461071b57600080fd5b806352d1902d116102695780635f1b89c2116102125780636ab65915116101ec5780636ab65915146106915780636e6e6e3e146106a6578063715018a6146106c657600080fd5b80635f1b89c21461063157806361af189114610651578063632447c91461067157600080fd5b80635906aa6b116102435780635906aa6b146105cc5780635acdb6b3146105f95780635c975abb1461061957600080fd5b806352d1902d1461055c5780635314fba91461057157806353fa34bd1461059e57600080fd5b80631e213362116102cb5780633659cfe6116102a55780633659cfe6146104fc5780633b5320891461051c5780634f1ef2861461054957600080fd5b80631e2133621461042a5780632c078247146104585780632d3235d7146104b257600080fd5b806316c38b3c116102fc57806316c38b3c146103b157806319dee94d146103d15780631d5c2c67146103f157600080fd5b8063051f641e14610323578063077a194c14610353578063114ec98f1461038f575b600080fd5b34801561032f57600080fd5b506101085461033e9060ff1681565b60405190151581526020015b60405180910390f35b34801561035f57600080fd5b5061038161036e3660046146cb565b6101016020526000908152604090205481565b60405190815260200161034a565b34801561039b57600080fd5b506103af6103aa3660046146e8565b610a16565b005b3480156103bd57600080fd5b506103af6103cc366004614714565b610b83565b3480156103dd57600080fd5b506103af6103ec366004614736565b610bf0565b3480156103fd57600080fd5b5061038161040c36600461474f565b61010360209081526000928352604080842090915290825290205481565b34801561043657600080fd5b506103816104453660046146cb565b6101076020526000908152604090205481565b34801561046457600080fd5b5061049a6104733660046146e8565b6101066020908152600092835260408084209091529082529020546001600160a01b031681565b6040516001600160a01b03909116815260200161034a565b3480156104be57600080fd5b506104e76104cd3660046146cb565b610100602052600090815260409020805460019091015482565b6040805192835260208301919091520161034a565b34801561050857600080fd5b506103af6105173660046146cb565b610c62565b34801561052857600080fd5b5061053c6105373660046146cb565b610e00565b60405161034a9190614788565b6103af610557366004614813565b610e70565b34801561056857600080fd5b50610381610fff565b34801561057d57600080fd5b5061059161058c3660046146cb565b6110c4565b60405161034a91906148f6565b3480156105aa57600080fd5b506103816105b93660046146cb565b6101026020526000908152604090205481565b3480156105d857600080fd5b506105ec6105e736600461474f565b611175565b60405161034a9190614944565b34801561060557600080fd5b506103af6106143660046146cb565b611219565b34801561062557600080fd5b5060fb5460ff1661033e565b34801561063d57600080fd5b5061049a61064c366004614736565b611408565b34801561065d57600080fd5b506103af61066c3660046149d7565b611432565b34801561067d57600080fd5b506103af61068c3660046146cb565b611707565b34801561069d57600080fd5b50610381600a81565b3480156106b257600080fd5b506103af6106c1366004614a0c565b61186b565b3480156106d257600080fd5b506103af611b3a565b3480156106e757600080fd5b506101085461033e90610100900460ff1681565b34801561070757600080fd5b506105ec6107163660046146cb565b611ba0565b34801561072757600080fd5b5061038160fc5481565b34801561073d57600080fd5b506103af61074c366004614736565b611c39565b34801561075d57600080fd5b506103af611cab565b34801561077257600080fd5b5061049a610781366004614736565b610105602052600090815260409020546001600160a01b031681565b3480156107a957600080fd5b506097546001600160a01b031661049a565b3480156107c757600080fd5b5061049a73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f81565b3480156107ef57600080fd5b5061038160fd5481565b34801561080557600080fd5b506103af610814366004614a0c565b611d56565b34801561082557600080fd5b506103af6108343660046149d7565b6120ff565b34801561084557600080fd5b5061049a73648e8428e0104ec7d08667866a3568a72fe3898f81565b34801561086d57600080fd5b506103af61087c366004614a5c565b6123d8565b34801561088d57600080fd5b506103af61089c3660046149d7565b6126a0565b3480156108ad57600080fd5b506103af6108bc3660046149d7565b612a1c565b3480156108cd57600080fd5b506103af6108dc3660046146e8565b612d68565b3480156108ed57600080fd5b5061038160fe5481565b34801561090357600080fd5b506103af6109123660046149d7565b612ecd565b34801561092357600080fd5b5061049a73829ce04a6114e11217b6dcf38884d15260e569d081565b34801561094b57600080fd5b5061038161095a3660046146cb565b6131a2565b34801561096b57600080fd5b5061038161097a3660046146cb565b613316565b34801561098b57600080fd5b5061049a61099a366004614736565b610104602052600090815260409020546001600160a01b031681565b3480156109c257600080fd5b506103af6109d13660046149d7565b61334d565b3480156109e257600080fd5b506103af6109f13660046146cb565b6135c2565b348015610a0257600080fd5b506103af610a11366004614736565b6136a1565b6097546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0382166000908152610102602052604090205415610b015760405162461bcd60e51b8152602060048201526024808201527f5468697320636f6e74726163742068617320616c7265616479206265656e206160448201527f64646564000000000000000000000000000000000000000000000000000000006064820152608401610a6c565b610b1381670de0b6b3a7640000614ab9565b6001600160a01b039092166000818152610102602052604081209390935560ff805460018101825593527fe08ec2af2cfc251225e1968fd6ca21e4044f129bffa95bac3503be8bdb30a367909201805473ffffffffffffffffffffffffffffffffffffffff191690921790915550565b6097546001600160a01b03163314610bdd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb805460ff1916911515919091179055565b6097546001600160a01b03163314610c4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b610c5c81670de0b6b3a7640000614ab9565b60fe5550565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610d015760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610a6c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d5c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610dd85760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610a6c565b610de181613722565b60408051600080825260208201909252610dfd9183919061377c565b50565b6001600160a01b03811660009081526101006020908152604091829020600201805483518184028101840190945280845260609392830182828015610e6457602002820191906000526020600020905b815481526020019060010190808311610e50575b50505050509050919050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610f0f5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610a6c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f6a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610fe65760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610a6c565b610fef82613722565b610ffb8282600161377c565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461109f5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a6c565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6110e860405180606001604052806000815260200160008152602001606081525090565b6001600160a01b038216600090815261010060209081526040918290208251606081018452815481526001820154818401526002820180548551818602810186018752818152929593949386019383018282801561116557602002820191906000526020600020905b815481526020019060010190808311611151575b5050505050815250509050919050565b604080518082018252600080825260606020808401919091526001600160a01b038681168352610103825284832090861683528152908390208351808501855281548152600182018054865181860281018601909752808752949591949293858101939083018282801561120857602002820191906000526020600020905b8154815260200190600101908083116111f4575b505050505081525050905092915050565b6097546001600160a01b031633146112735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b038116600090815261010260205260409020546112d95760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e6400000000000000000000000000006044820152606401610a6c565b6001600160a01b0381166000908152610102602052604081208190555b60ff54811015610ffb57816001600160a01b031660ff828154811061131d5761131d614ad8565b6000918252602090912001546001600160a01b031614156113f65760ff805461134890600190614aee565b8154811061135857611358614ad8565b60009182526020909120015460ff80546001600160a01b03909216918390811061138457611384614ad8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060ff8054806113c3576113c3614b05565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff191690550190555050565b8061140081614b1b565b9150506112f6565b60ff818154811061141857600080fd5b6000918252602090912001546001600160a01b0316905081565b6097546001600160a01b0316331461148c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff166114de5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b6032815111156115305760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b8151811015610ffb576000610104600084848151811061155557611555614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906116455750306001600160a01b031673648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b0316636352211e8585815181106115c4576115c4614ad8565b60200260200101516040518263ffffffff1660e01b81526004016115ea91815260200190565b60206040518083038186803b15801561160257600080fd5b505afa158015611616573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163a9190614b36565b6001600160a01b0316145b156116f45773648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd308386868151811061168157611681614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156116db57600080fd5b505af11580156116ef573d6000803e3d6000fd5b505050505b50806116ff81614b1b565b915050611533565b600260c954141561175a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c955600061176a8261392b565b610108805460ff19166001179055905061178382613a4a565b61178d9082614b53565b9050610108805461ff0019166101001790556117a882613b4d565b6117b29082614b53565b90506117d5826001600160a01b0316600090815261010760205260409020429055565b6040517f742b3b5e0000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024810182905273829ce04a6114e11217b6dcf38884d15260e569d09063742b3b5e90604401600060405180830381600087803b15801561184a57600080fd5b505af115801561185e573d6000803e3d6000fd5b5050600160c95550505050565b600260c95414156118be5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff16156119095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b61191233611707565b60005b8151811015611ad7576001600160a01b038316600090815261010660205260408120835133929085908590811061194e5761194e614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146119af5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b6001600160a01b03831660009081526101066020526040812083519091908490849081106119df576119df614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b030219169055611a2f8333848481518110611a2257611a22614ad8565b6020026020010151613be3565b826001600160a01b03166323b872dd3033858581518110611a5257611a52614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611aac57600080fd5b505af1158015611ac0573d6000803e3d6000fd5b505050508080611acf90614b1b565b915050611915565b5080516001600160a01b038316600090815261010360209081526040808320338452909152902054611b099190614aee565b6001600160a01b0390921660009081526101036020908152604080832033845290915290209190915550600160c955565b6097546001600160a01b03163314611b945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b611b9e6000613d66565b565b6040805180820190915260008152606060208201526001600160a01b038216600090815261010160209081526040918290208251808401845281548152600182018054855181860281018601909652808652919492938581019392908301828280156111655760200282019190600052602060002090815481526020019060010190808311611151575050505050815250509050919050565b6097546001600160a01b03163314611c935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b611ca581670de0b6b3a7640000614ab9565b60fd5550565b6000611cb76001613dc5565b90508015611ccf576000805461ff0019166101001790555b611cd7613ef9565b611cdf613f6c565b611ce7613fd7565b68056bc75e2d6310000060fc556825f273933db570000060fd55681b1ae4d6e2ef50000060fe558015610dfd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600260c9541415611da95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff1615611df45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6001600160a01b03821660009081526101026020526040902054611e5a5760405162461bcd60e51b815260206004820152601c60248201527f54686973206973206e6f742061207374616b61626c6520746f6b656e000000006044820152606401610a6c565b611e6333611707565b60005b81518110156120cd57336001600160a01b0316836001600160a01b0316636352211e848481518110611e9a57611e9a614ad8565b60200260200101516040518263ffffffff1660e01b8152600401611ec091815260200190565b60206040518083038186803b158015611ed857600080fd5b505afa158015611eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f109190614b36565b6001600160a01b031614611f565760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b826001600160a01b03166323b872dd3330858581518110611f7957611f79614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611fd357600080fd5b505af1158015611fe7573d6000803e3d6000fd5b50505050336101066000856001600160a01b03166001600160a01b03168152602001908152602001600020600084848151811061202657612026614ad8565b60209081029190910181015182528181019290925260409081016000908120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0395861617905592861683526101038252808320338452909152902082516001919091019083908390811061209c5761209c614ad8565b60209081029190910181015182546001810184556000938452919092200155806120c581614b1b565b915050611e66565b5080516001600160a01b038316600090815261010360209081526040808320338452909152902054611b099190614b53565b600260c95414156121525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff161561219d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6121a633611707565b60005b815181101561239857336001600160a01b031661010460008484815181106121d3576121d3614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146122345760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b610104600083838151811061224b5761224b614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b03021916905561229a3383838151811061228d5761228d614ad8565b602002602001015161404a565b73648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd30338585815181106122d1576122d1614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561232b57600080fd5b505af115801561233f573d6000803e3d6000fd5b50505050600a82828151811061235757612357614ad8565b602002602001015111612386573360009081526101006020526040812080549161238083614b6b565b91905055505b8061239081614b1b565b9150506121a9565b50805133600090815261010060205260409020600101546123b99190614aee565b3360009081526101006020526040902060019081019190915560c95550565b6097546001600160a01b031633146124325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff166124845760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b6032825111156124d65760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b825181101561269b576001600160a01b0382166000908152610106602052604081208451829086908590811061251157612511614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906125ed5750306001600160a01b0316836001600160a01b0316636352211e86858151811061256c5761256c614ad8565b60200260200101516040518263ffffffff1660e01b815260040161259291815260200190565b60206040518083038186803b1580156125aa57600080fd5b505afa1580156125be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e29190614b36565b6001600160a01b0316145b1561268857826001600160a01b03166323b872dd308387868151811061261557612615614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561266f57600080fd5b505af1158015612683573d6000803e3d6000fd5b505050505b508061269381614b1b565b9150506124d9565b505050565b600260c95414156126f35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff161561273e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b61274733611707565b60005b81518110156129fb57336001600160a01b031673648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b0316636352211e84848151811061279257612792614ad8565b60200260200101516040518263ffffffff1660e01b81526004016127b891815260200190565b60206040518083038186803b1580156127d057600080fd5b505afa1580156127e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128089190614b36565b6001600160a01b03161461284e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b73648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd333085858151811061288557612885614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156128df57600080fd5b505af11580156128f3573d6000803e3d6000fd5b5050505033610104600084848151811061290f5761290f614ad8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101006000336001600160a01b03166001600160a01b0316815260200190815260200160002060020182828151811061298457612984614ad8565b602090810291909101810151825460018101845560009384529190922001558151600a908390839081106129ba576129ba614ad8565b6020026020010151116129e957336000908152610100602052604081208054916129e383614b1b565b91905055505b806129f381614b1b565b91505061274a565b50805133600090815261010060205260409020600101546123b99190614b53565b600260c9541415612a6f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff1615612aba5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b612ac333611707565b60005b8151811015612d3157336001600160a01b031673943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b0316636352211e848481518110612b0e57612b0e614ad8565b60200260200101516040518263ffffffff1660e01b8152600401612b3491815260200190565b60206040518083038186803b158015612b4c57600080fd5b505afa158015612b60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b849190614b36565b6001600160a01b031614612bca5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd3330858581518110612c0157612c01614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015612c5b57600080fd5b505af1158015612c6f573d6000803e3d6000fd5b50505050336101056000848481518110612c8b57612c8b614ad8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101016000336001600160a01b03166001600160a01b03168152602001908152602001600020600101828281518110612d0057612d00614ad8565b6020908102919091018101518254600181018455600093845291909220015580612d2981614b1b565b915050612ac6565b5080513360009081526101016020526040902054612d4f9190614b53565b336000908152610101602052604090205550600160c955565b6097546001600160a01b03163314612dc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b03821660009081526101026020526040902054612e9a5760405162461bcd60e51b815260206004820152606360248201527f7468697320636f6e747263617420686173206e6f74206265656e20616464656460448201527f20746f20746865207969656c642073797374656d2e20506c656173652061646460648201527f206974207573696e67206164645969656c64436f6e74726163742066756e637460848201527f696f6e000000000000000000000000000000000000000000000000000000000060a482015260c401610a6c565b612eac81670de0b6b3a7640000614ab9565b6001600160a01b039092166000908152610102602052604090209190915550565b6097546001600160a01b03163314612f275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff16612f795760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b603281511115612fcb5760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b8151811015610ffb5760006101056000848481518110612ff057612ff0614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906130e05750306001600160a01b031673943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b0316636352211e85858151811061305f5761305f614ad8565b60200260200101516040518263ffffffff1660e01b815260040161308591815260200190565b60206040518083038186803b15801561309d57600080fd5b505afa1580156130b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130d59190614b36565b6001600160a01b0316145b1561318f5773943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd308386868151811061311c5761311c614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561317657600080fd5b505af115801561318a573d6000803e3d6000fd5b505050505b508061319a81614b1b565b915050612fce565b60fd546001600160a01b03821660009081526101006020526040812054909182916131cd9190614ab9565b60fc546001600160a01b038516600090815261010060205260409020600101546131f79190614ab9565b6132019190614b53565b60fe546001600160a01b0385166000908152610101602052604090205491925061322a91614ab9565b6132349082614b53565b905060005b60ff5481101561330f57610102600060ff838154811061325b5761325b614ad8565b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054610103600060ff84815481106132b2576132b2614ad8565b60009182526020808320909101546001600160a01b03908116845283820194909452604092830182209389168252929092529020546132f19190614ab9565b6132fb9083614b53565b91508061330781614b1b565b915050613239565b5092915050565b600061332182613b4d565b61332a83613a4a565b6133338461392b565b61333d9190614b53565b6133479190614b53565b92915050565b600260c95414156133a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff16156133eb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6133f433611707565b60005b81518110156135a457336001600160a01b0316610105600084848151811061342157613421614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146134825760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b610105600083838151811061349957613499614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b0302191690556134e8338383815181106134db576134db614ad8565b6020026020010151614198565b73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd303385858151811061351f5761351f614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561357957600080fd5b505af115801561358d573d6000803e3d6000fd5b50505050808061359c90614b1b565b9150506133f7565b5080513360009081526101016020526040902054612d4f9190614aee565b6097546001600160a01b0316331461361c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b0381166136985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6c565b610dfd81613d66565b6097546001600160a01b031633146136fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b61370d81670de0b6b3a7640000614ab9565b60fc5550565b6001600160a01b03163b151590565b6097546001600160a01b03163314610dfd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137af5761269b836142cc565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156137e857600080fd5b505afa925050508015613818575060408051601f3d908101601f1916820190925261381591810190614b82565b60015b61388a5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610a6c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc811461391f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610a6c565b5061269b838383614397565b6001600160a01b0381166000908152610100602052604081206001015461395457506000919050565b6001600160a01b038216600090815261010760205260408120546139789042614aee565b90506000620151808260fc5461398e9190614ab9565b6139989190614b9b565b6001600160a01b038516600090815261010060205260409020600101546139bf9190614ab9565b90506000620151808360fd546139d59190614ab9565b6139df9190614b9b565b6001600160a01b03861660009081526101006020526040902054613a039190614ab9565b905060006201518084613a15886143bc565b613a1f9190614ab9565b613a299190614b9b565b905080613a368385614b53565b613a409190614b53565b9695505050505050565b60008060005b60ff5481101561330f576001600160a01b03841660009081526101076020526040812054613a7e9042614aee565b90506201518081610102600060ff8681548110613a9d57613a9d614ad8565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613acc9190614ab9565b613ad69190614b9b565b610103600060ff8581548110613aee57613aee614ad8565b60009182526020808320909101546001600160a01b0390811684528382019490945260409283018220938a16825292909252902054613b2d9190614ab9565b613b379084614b53565b9250508080613b4590614b1b565b915050613a50565b6001600160a01b03811660009081526101016020526040812054613b7357506000919050565b6001600160a01b03821660009081526101076020526040812054613b979042614aee565b90506000620151808260fe54613bad9190614ab9565b613bb79190614b9b565b6001600160a01b03851660009081526101016020526040902054613bdb9190614ab9565b949350505050565b60005b6001600160a01b0380851660009081526101036020908152604080832093871683529290522060010154811015613d60576001600160a01b03808516600090815261010360209081526040808320938716835292905220600101805483919083908110613c5557613c55614ad8565b90600052602060002001541415613d4e576001600160a01b03848116600090815261010360209081526040808320938716835292905220600190810180549091613c9e91614aee565b81548110613cae57613cae614ad8565b60009182526020808320909101546001600160a01b03808816845261010383526040808520918816855292529120600101805483908110613cf157613cf1614ad8565b60009182526020808320909101929092556001600160a01b038087168252610103835260408083209187168352925220600101805480613d3357613d33614b05565b60019003818190600052602060002001600090559055613d60565b80613d5881614b1b565b915050613be6565b50505050565b609780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615613e62578160ff166001148015613de85750303b155b613e5a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6c565b506000919050565b60005460ff808416911610613edf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6c565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff16613f645760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e614445565b600054610100900460ff16611b9e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b600054610100900460ff166140425760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e6144b9565b60005b6001600160a01b0383166000908152610100602052604090206002015481101561269b576001600160a01b0383166000908152610100602052604090206002018054839190839081106140a2576140a2614ad8565b90600052602060002001541415614186576001600160a01b03831660009081526101006020526040902060020180546140dd90600190614aee565b815481106140ed576140ed614ad8565b90600052602060002001546101006000856001600160a01b03166001600160a01b03168152602001908152602001600020600201828154811061413257614132614ad8565b60009182526020808320909101929092556001600160a01b03851681526101009091526040902060020180548061416b5761416b614b05565b60019003818190600052602060002001600090559055505050565b8061419081614b1b565b91505061404d565b60005b6001600160a01b0383166000908152610101602052604090206001015481101561269b576001600160a01b0383166000908152610101602052604090206001018054839190839081106141f0576141f0614ad8565b906000526020600020015414156142ba576001600160a01b03831660009081526101016020526040902060019081018054909161422c91614aee565b8154811061423c5761423c614ad8565b90600052602060002001546101016000856001600160a01b03166001600160a01b03168152602001908152602001600020600101828154811061428157614281614ad8565b60009182526020808320909101929092556001600160a01b03851681526101019091526040902060010180548061416b5761416b614b05565b806142c481614b1b565b91505061419b565b6001600160a01b0381163b6143495760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610a6c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6143a08361452b565b6000825111806143ad5750805b1561269b57613d60838361456b565b6001600160a01b03811660009081526101006020526040812060010154601481106143f257506815af1d78b58c40000092915050565b600a811061440b5750680821ab0d441498000092915050565b6005811061442457506802b5e3af16b188000092915050565b6002811061443c5750678ac7230489e8000092915050565b50600092915050565b600054610100900460ff166144b05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e33613d66565b600054610100900460ff166145245760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b600160c955565b614534816142cc565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6145ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610a6c565b600080846001600160a01b0316846040516146059190614be9565b600060405180830381855af49150503d8060008114614640576040519150601f19603f3d011682016040523d82523d6000602084013e614645565b606091505b509150915061466d8282604051806060016040528060278152602001614c3960279139614676565b95945050505050565b606083156146855750816146af565b8251156146955782518084602001fd5b8160405162461bcd60e51b8152600401610a6c9190614c05565b9392505050565b6001600160a01b0381168114610dfd57600080fd5b6000602082840312156146dd57600080fd5b81356146af816146b6565b600080604083850312156146fb57600080fd5b8235614706816146b6565b946020939093013593505050565b60006020828403121561472657600080fd5b813580151581146146af57600080fd5b60006020828403121561474857600080fd5b5035919050565b6000806040838503121561476257600080fd5b823561476d816146b6565b9150602083013561477d816146b6565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156147c0578351835292840192918401916001016147a4565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561480b5761480b6147cc565b604052919050565b6000806040838503121561482657600080fd5b8235614831816146b6565b915060208381013567ffffffffffffffff8082111561484f57600080fd5b818601915086601f83011261486357600080fd5b813581811115614875576148756147cc565b61488784601f19601f840116016147e2565b9150808252878482850101111561489d57600080fd5b80848401858401376000848284010152508093505050509250929050565b600081518084526020808501945080840160005b838110156148eb578151875295820195908201906001016148cf565b509495945050505050565b60208152815160208201526020820151604082015260006040830151606080840152613bdb60808401826148bb565b805182526000602082015160406020850152613bdb60408501826148bb565b6020815260006146af6020830184614925565b600082601f83011261496857600080fd5b8135602067ffffffffffffffff821115614984576149846147cc565b8160051b6149938282016147e2565b92835284810182019282810190878511156149ad57600080fd5b83870192505b848310156149cc578235825291830191908301906149b3565b979650505050505050565b6000602082840312156149e957600080fd5b813567ffffffffffffffff811115614a0057600080fd5b613bdb84828501614957565b60008060408385031215614a1f57600080fd5b8235614a2a816146b6565b9150602083013567ffffffffffffffff811115614a4657600080fd5b614a5285828601614957565b9150509250929050565b60008060408385031215614a6f57600080fd5b823567ffffffffffffffff811115614a8657600080fd5b614a9285828601614957565b925050602083013561477d816146b6565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614ad357614ad3614aa3565b500290565b634e487b7160e01b600052603260045260246000fd5b600082821015614b0057614b00614aa3565b500390565b634e487b7160e01b600052603160045260246000fd5b6000600019821415614b2f57614b2f614aa3565b5060010190565b600060208284031215614b4857600080fd5b81516146af816146b6565b60008219821115614b6657614b66614aa3565b500190565b600081614b7a57614b7a614aa3565b506000190190565b600060208284031215614b9457600080fd5b5051919050565b600082614bb857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015614bd8578181015183820152602001614bc0565b83811115613d605750506000910152565b60008251614bfb818460208701614bbd565b9190910192915050565b6020815260008251806020840152614c24816040850160208701614bbd565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203ef62925e6483abe5c39020fce86e5b0300e4750208964a470110bfbc611017664736f6c63430008090033496e697469616c697a61626c653a20636f6e747261637420697320616c726561

Deployed Bytecode

0x60806040526004361061031e5760003560e01c80637386485f116101a5578063ae4debae116100ec578063d0a596a411610095578063dd7eb9a91161006f578063dd7eb9a91461097f578063f015dfd2146109b6578063f2fde38b146109d6578063f7ba2b35146109f657600080fd5b8063d0a596a414610917578063d98e85771461093f578063da40ef801461095f57600080fd5b8063ba2adee2116100c6578063ba2adee2146108c1578063c1c6be08146108e1578063d02370fc146108f757600080fd5b8063ae4debae14610861578063b6d760cf14610881578063b756abf6146108a157600080fd5b80638da5cb5b1161014e578063a0d04cbf11610128578063a0d04cbf146107f9578063a9830b4414610819578063ad0a602d1461083957600080fd5b80638da5cb5b1461079d5780638dfd5d07146107bb578063a08a09fd146107e357600080fd5b806376a47aae1161017f57806376a47aae146107315780638129fc1c146107515780638a79e0791461076657600080fd5b80637386485f146106db57806374355c3a146106fb57806374df19c31461071b57600080fd5b806352d1902d116102695780635f1b89c2116102125780636ab65915116101ec5780636ab65915146106915780636e6e6e3e146106a6578063715018a6146106c657600080fd5b80635f1b89c21461063157806361af189114610651578063632447c91461067157600080fd5b80635906aa6b116102435780635906aa6b146105cc5780635acdb6b3146105f95780635c975abb1461061957600080fd5b806352d1902d1461055c5780635314fba91461057157806353fa34bd1461059e57600080fd5b80631e213362116102cb5780633659cfe6116102a55780633659cfe6146104fc5780633b5320891461051c5780634f1ef2861461054957600080fd5b80631e2133621461042a5780632c078247146104585780632d3235d7146104b257600080fd5b806316c38b3c116102fc57806316c38b3c146103b157806319dee94d146103d15780631d5c2c67146103f157600080fd5b8063051f641e14610323578063077a194c14610353578063114ec98f1461038f575b600080fd5b34801561032f57600080fd5b506101085461033e9060ff1681565b60405190151581526020015b60405180910390f35b34801561035f57600080fd5b5061038161036e3660046146cb565b6101016020526000908152604090205481565b60405190815260200161034a565b34801561039b57600080fd5b506103af6103aa3660046146e8565b610a16565b005b3480156103bd57600080fd5b506103af6103cc366004614714565b610b83565b3480156103dd57600080fd5b506103af6103ec366004614736565b610bf0565b3480156103fd57600080fd5b5061038161040c36600461474f565b61010360209081526000928352604080842090915290825290205481565b34801561043657600080fd5b506103816104453660046146cb565b6101076020526000908152604090205481565b34801561046457600080fd5b5061049a6104733660046146e8565b6101066020908152600092835260408084209091529082529020546001600160a01b031681565b6040516001600160a01b03909116815260200161034a565b3480156104be57600080fd5b506104e76104cd3660046146cb565b610100602052600090815260409020805460019091015482565b6040805192835260208301919091520161034a565b34801561050857600080fd5b506103af6105173660046146cb565b610c62565b34801561052857600080fd5b5061053c6105373660046146cb565b610e00565b60405161034a9190614788565b6103af610557366004614813565b610e70565b34801561056857600080fd5b50610381610fff565b34801561057d57600080fd5b5061059161058c3660046146cb565b6110c4565b60405161034a91906148f6565b3480156105aa57600080fd5b506103816105b93660046146cb565b6101026020526000908152604090205481565b3480156105d857600080fd5b506105ec6105e736600461474f565b611175565b60405161034a9190614944565b34801561060557600080fd5b506103af6106143660046146cb565b611219565b34801561062557600080fd5b5060fb5460ff1661033e565b34801561063d57600080fd5b5061049a61064c366004614736565b611408565b34801561065d57600080fd5b506103af61066c3660046149d7565b611432565b34801561067d57600080fd5b506103af61068c3660046146cb565b611707565b34801561069d57600080fd5b50610381600a81565b3480156106b257600080fd5b506103af6106c1366004614a0c565b61186b565b3480156106d257600080fd5b506103af611b3a565b3480156106e757600080fd5b506101085461033e90610100900460ff1681565b34801561070757600080fd5b506105ec6107163660046146cb565b611ba0565b34801561072757600080fd5b5061038160fc5481565b34801561073d57600080fd5b506103af61074c366004614736565b611c39565b34801561075d57600080fd5b506103af611cab565b34801561077257600080fd5b5061049a610781366004614736565b610105602052600090815260409020546001600160a01b031681565b3480156107a957600080fd5b506097546001600160a01b031661049a565b3480156107c757600080fd5b5061049a73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f81565b3480156107ef57600080fd5b5061038160fd5481565b34801561080557600080fd5b506103af610814366004614a0c565b611d56565b34801561082557600080fd5b506103af6108343660046149d7565b6120ff565b34801561084557600080fd5b5061049a73648e8428e0104ec7d08667866a3568a72fe3898f81565b34801561086d57600080fd5b506103af61087c366004614a5c565b6123d8565b34801561088d57600080fd5b506103af61089c3660046149d7565b6126a0565b3480156108ad57600080fd5b506103af6108bc3660046149d7565b612a1c565b3480156108cd57600080fd5b506103af6108dc3660046146e8565b612d68565b3480156108ed57600080fd5b5061038160fe5481565b34801561090357600080fd5b506103af6109123660046149d7565b612ecd565b34801561092357600080fd5b5061049a73829ce04a6114e11217b6dcf38884d15260e569d081565b34801561094b57600080fd5b5061038161095a3660046146cb565b6131a2565b34801561096b57600080fd5b5061038161097a3660046146cb565b613316565b34801561098b57600080fd5b5061049a61099a366004614736565b610104602052600090815260409020546001600160a01b031681565b3480156109c257600080fd5b506103af6109d13660046149d7565b61334d565b3480156109e257600080fd5b506103af6109f13660046146cb565b6135c2565b348015610a0257600080fd5b506103af610a11366004614736565b6136a1565b6097546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0382166000908152610102602052604090205415610b015760405162461bcd60e51b8152602060048201526024808201527f5468697320636f6e74726163742068617320616c7265616479206265656e206160448201527f64646564000000000000000000000000000000000000000000000000000000006064820152608401610a6c565b610b1381670de0b6b3a7640000614ab9565b6001600160a01b039092166000818152610102602052604081209390935560ff805460018101825593527fe08ec2af2cfc251225e1968fd6ca21e4044f129bffa95bac3503be8bdb30a367909201805473ffffffffffffffffffffffffffffffffffffffff191690921790915550565b6097546001600160a01b03163314610bdd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb805460ff1916911515919091179055565b6097546001600160a01b03163314610c4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b610c5c81670de0b6b3a7640000614ab9565b60fe5550565b306001600160a01b037f00000000000000000000000000b7ab6a4b12a2548855ee0b7598c6d267762636161415610d015760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610a6c565b7f00000000000000000000000000b7ab6a4b12a2548855ee0b7598c6d2677626366001600160a01b0316610d5c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610dd85760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610a6c565b610de181613722565b60408051600080825260208201909252610dfd9183919061377c565b50565b6001600160a01b03811660009081526101006020908152604091829020600201805483518184028101840190945280845260609392830182828015610e6457602002820191906000526020600020905b815481526020019060010190808311610e50575b50505050509050919050565b306001600160a01b037f00000000000000000000000000b7ab6a4b12a2548855ee0b7598c6d267762636161415610f0f5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610a6c565b7f00000000000000000000000000b7ab6a4b12a2548855ee0b7598c6d2677626366001600160a01b0316610f6a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610fe65760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610a6c565b610fef82613722565b610ffb8282600161377c565b5050565b6000306001600160a01b037f00000000000000000000000000b7ab6a4b12a2548855ee0b7598c6d267762636161461109f5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a6c565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6110e860405180606001604052806000815260200160008152602001606081525090565b6001600160a01b038216600090815261010060209081526040918290208251606081018452815481526001820154818401526002820180548551818602810186018752818152929593949386019383018282801561116557602002820191906000526020600020905b815481526020019060010190808311611151575b5050505050815250509050919050565b604080518082018252600080825260606020808401919091526001600160a01b038681168352610103825284832090861683528152908390208351808501855281548152600182018054865181860281018601909752808752949591949293858101939083018282801561120857602002820191906000526020600020905b8154815260200190600101908083116111f4575b505050505081525050905092915050565b6097546001600160a01b031633146112735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b038116600090815261010260205260409020546112d95760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e6400000000000000000000000000006044820152606401610a6c565b6001600160a01b0381166000908152610102602052604081208190555b60ff54811015610ffb57816001600160a01b031660ff828154811061131d5761131d614ad8565b6000918252602090912001546001600160a01b031614156113f65760ff805461134890600190614aee565b8154811061135857611358614ad8565b60009182526020909120015460ff80546001600160a01b03909216918390811061138457611384614ad8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060ff8054806113c3576113c3614b05565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff191690550190555050565b8061140081614b1b565b9150506112f6565b60ff818154811061141857600080fd5b6000918252602090912001546001600160a01b0316905081565b6097546001600160a01b0316331461148c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff166114de5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b6032815111156115305760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b8151811015610ffb576000610104600084848151811061155557611555614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906116455750306001600160a01b031673648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b0316636352211e8585815181106115c4576115c4614ad8565b60200260200101516040518263ffffffff1660e01b81526004016115ea91815260200190565b60206040518083038186803b15801561160257600080fd5b505afa158015611616573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163a9190614b36565b6001600160a01b0316145b156116f45773648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd308386868151811061168157611681614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156116db57600080fd5b505af11580156116ef573d6000803e3d6000fd5b505050505b50806116ff81614b1b565b915050611533565b600260c954141561175a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c955600061176a8261392b565b610108805460ff19166001179055905061178382613a4a565b61178d9082614b53565b9050610108805461ff0019166101001790556117a882613b4d565b6117b29082614b53565b90506117d5826001600160a01b0316600090815261010760205260409020429055565b6040517f742b3b5e0000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024810182905273829ce04a6114e11217b6dcf38884d15260e569d09063742b3b5e90604401600060405180830381600087803b15801561184a57600080fd5b505af115801561185e573d6000803e3d6000fd5b5050600160c95550505050565b600260c95414156118be5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff16156119095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b61191233611707565b60005b8151811015611ad7576001600160a01b038316600090815261010660205260408120835133929085908590811061194e5761194e614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146119af5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b6001600160a01b03831660009081526101066020526040812083519091908490849081106119df576119df614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b030219169055611a2f8333848481518110611a2257611a22614ad8565b6020026020010151613be3565b826001600160a01b03166323b872dd3033858581518110611a5257611a52614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611aac57600080fd5b505af1158015611ac0573d6000803e3d6000fd5b505050508080611acf90614b1b565b915050611915565b5080516001600160a01b038316600090815261010360209081526040808320338452909152902054611b099190614aee565b6001600160a01b0390921660009081526101036020908152604080832033845290915290209190915550600160c955565b6097546001600160a01b03163314611b945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b611b9e6000613d66565b565b6040805180820190915260008152606060208201526001600160a01b038216600090815261010160209081526040918290208251808401845281548152600182018054855181860281018601909652808652919492938581019392908301828280156111655760200282019190600052602060002090815481526020019060010190808311611151575050505050815250509050919050565b6097546001600160a01b03163314611c935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b611ca581670de0b6b3a7640000614ab9565b60fd5550565b6000611cb76001613dc5565b90508015611ccf576000805461ff0019166101001790555b611cd7613ef9565b611cdf613f6c565b611ce7613fd7565b68056bc75e2d6310000060fc556825f273933db570000060fd55681b1ae4d6e2ef50000060fe558015610dfd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600260c9541415611da95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff1615611df45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6001600160a01b03821660009081526101026020526040902054611e5a5760405162461bcd60e51b815260206004820152601c60248201527f54686973206973206e6f742061207374616b61626c6520746f6b656e000000006044820152606401610a6c565b611e6333611707565b60005b81518110156120cd57336001600160a01b0316836001600160a01b0316636352211e848481518110611e9a57611e9a614ad8565b60200260200101516040518263ffffffff1660e01b8152600401611ec091815260200190565b60206040518083038186803b158015611ed857600080fd5b505afa158015611eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f109190614b36565b6001600160a01b031614611f565760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b826001600160a01b03166323b872dd3330858581518110611f7957611f79614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611fd357600080fd5b505af1158015611fe7573d6000803e3d6000fd5b50505050336101066000856001600160a01b03166001600160a01b03168152602001908152602001600020600084848151811061202657612026614ad8565b60209081029190910181015182528181019290925260409081016000908120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0395861617905592861683526101038252808320338452909152902082516001919091019083908390811061209c5761209c614ad8565b60209081029190910181015182546001810184556000938452919092200155806120c581614b1b565b915050611e66565b5080516001600160a01b038316600090815261010360209081526040808320338452909152902054611b099190614b53565b600260c95414156121525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff161561219d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6121a633611707565b60005b815181101561239857336001600160a01b031661010460008484815181106121d3576121d3614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146122345760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b610104600083838151811061224b5761224b614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b03021916905561229a3383838151811061228d5761228d614ad8565b602002602001015161404a565b73648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd30338585815181106122d1576122d1614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561232b57600080fd5b505af115801561233f573d6000803e3d6000fd5b50505050600a82828151811061235757612357614ad8565b602002602001015111612386573360009081526101006020526040812080549161238083614b6b565b91905055505b8061239081614b1b565b9150506121a9565b50805133600090815261010060205260409020600101546123b99190614aee565b3360009081526101006020526040902060019081019190915560c95550565b6097546001600160a01b031633146124325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff166124845760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b6032825111156124d65760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b825181101561269b576001600160a01b0382166000908152610106602052604081208451829086908590811061251157612511614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906125ed5750306001600160a01b0316836001600160a01b0316636352211e86858151811061256c5761256c614ad8565b60200260200101516040518263ffffffff1660e01b815260040161259291815260200190565b60206040518083038186803b1580156125aa57600080fd5b505afa1580156125be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e29190614b36565b6001600160a01b0316145b1561268857826001600160a01b03166323b872dd308387868151811061261557612615614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561266f57600080fd5b505af1158015612683573d6000803e3d6000fd5b505050505b508061269381614b1b565b9150506124d9565b505050565b600260c95414156126f35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff161561273e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b61274733611707565b60005b81518110156129fb57336001600160a01b031673648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b0316636352211e84848151811061279257612792614ad8565b60200260200101516040518263ffffffff1660e01b81526004016127b891815260200190565b60206040518083038186803b1580156127d057600080fd5b505afa1580156127e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128089190614b36565b6001600160a01b03161461284e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b73648e8428e0104ec7d08667866a3568a72fe3898f6001600160a01b03166323b872dd333085858151811061288557612885614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156128df57600080fd5b505af11580156128f3573d6000803e3d6000fd5b5050505033610104600084848151811061290f5761290f614ad8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101006000336001600160a01b03166001600160a01b0316815260200190815260200160002060020182828151811061298457612984614ad8565b602090810291909101810151825460018101845560009384529190922001558151600a908390839081106129ba576129ba614ad8565b6020026020010151116129e957336000908152610100602052604081208054916129e383614b1b565b91905055505b806129f381614b1b565b91505061274a565b50805133600090815261010060205260409020600101546123b99190614b53565b600260c9541415612a6f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff1615612aba5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b612ac333611707565b60005b8151811015612d3157336001600160a01b031673943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b0316636352211e848481518110612b0e57612b0e614ad8565b60200260200101516040518263ffffffff1660e01b8152600401612b3491815260200190565b60206040518083038186803b158015612b4c57600080fd5b505afa158015612b60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b849190614b36565b6001600160a01b031614612bca5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd3330858581518110612c0157612c01614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015612c5b57600080fd5b505af1158015612c6f573d6000803e3d6000fd5b50505050336101056000848481518110612c8b57612c8b614ad8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101016000336001600160a01b03166001600160a01b03168152602001908152602001600020600101828281518110612d0057612d00614ad8565b6020908102919091018101518254600181018455600093845291909220015580612d2981614b1b565b915050612ac6565b5080513360009081526101016020526040902054612d4f9190614b53565b336000908152610101602052604090205550600160c955565b6097546001600160a01b03163314612dc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b03821660009081526101026020526040902054612e9a5760405162461bcd60e51b815260206004820152606360248201527f7468697320636f6e747263617420686173206e6f74206265656e20616464656460448201527f20746f20746865207969656c642073797374656d2e20506c656173652061646460648201527f206974207573696e67206164645969656c64436f6e74726163742066756e637460848201527f696f6e000000000000000000000000000000000000000000000000000000000060a482015260c401610a6c565b612eac81670de0b6b3a7640000614ab9565b6001600160a01b039092166000908152610102602052604090209190915550565b6097546001600160a01b03163314612f275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b60fb5460ff16612f795760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a6c565b603281511115612fcb5760405162461bcd60e51b815260206004820152601060248201527f3530206973206d617820706572207478000000000000000000000000000000006044820152606401610a6c565b60005b8151811015610ffb5760006101056000848481518110612ff057612ff0614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316905080158015906130e05750306001600160a01b031673943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b0316636352211e85858151811061305f5761305f614ad8565b60200260200101516040518263ffffffff1660e01b815260040161308591815260200190565b60206040518083038186803b15801561309d57600080fd5b505afa1580156130b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130d59190614b36565b6001600160a01b0316145b1561318f5773943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd308386868151811061311c5761311c614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561317657600080fd5b505af115801561318a573d6000803e3d6000fd5b505050505b508061319a81614b1b565b915050612fce565b60fd546001600160a01b03821660009081526101006020526040812054909182916131cd9190614ab9565b60fc546001600160a01b038516600090815261010060205260409020600101546131f79190614ab9565b6132019190614b53565b60fe546001600160a01b0385166000908152610101602052604090205491925061322a91614ab9565b6132349082614b53565b905060005b60ff5481101561330f57610102600060ff838154811061325b5761325b614ad8565b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054610103600060ff84815481106132b2576132b2614ad8565b60009182526020808320909101546001600160a01b03908116845283820194909452604092830182209389168252929092529020546132f19190614ab9565b6132fb9083614b53565b91508061330781614b1b565b915050613239565b5092915050565b600061332182613b4d565b61332a83613a4a565b6133338461392b565b61333d9190614b53565b6133479190614b53565b92915050565b600260c95414156133a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6c565b600260c95560fb5460ff16156133eb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a6c565b6133f433611707565b60005b81518110156135a457336001600160a01b0316610105600084848151811061342157613421614ad8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146134825760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b6044820152606401610a6c565b610105600083838151811061349957613499614ad8565b6020026020010151815260200190815260200160002060006101000a8154906001600160a01b0302191690556134e8338383815181106134db576134db614ad8565b6020026020010151614198565b73943f4f7fc2d48f3ad8c524cf8a8794b64100df3f6001600160a01b03166323b872dd303385858151811061351f5761351f614ad8565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561357957600080fd5b505af115801561358d573d6000803e3d6000fd5b50505050808061359c90614b1b565b9150506133f7565b5080513360009081526101016020526040902054612d4f9190614aee565b6097546001600160a01b0316331461361c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b6001600160a01b0381166136985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6c565b610dfd81613d66565b6097546001600160a01b031633146136fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b61370d81670de0b6b3a7640000614ab9565b60fc5550565b6001600160a01b03163b151590565b6097546001600160a01b03163314610dfd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137af5761269b836142cc565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156137e857600080fd5b505afa925050508015613818575060408051601f3d908101601f1916820190925261381591810190614b82565b60015b61388a5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610a6c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc811461391f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610a6c565b5061269b838383614397565b6001600160a01b0381166000908152610100602052604081206001015461395457506000919050565b6001600160a01b038216600090815261010760205260408120546139789042614aee565b90506000620151808260fc5461398e9190614ab9565b6139989190614b9b565b6001600160a01b038516600090815261010060205260409020600101546139bf9190614ab9565b90506000620151808360fd546139d59190614ab9565b6139df9190614b9b565b6001600160a01b03861660009081526101006020526040902054613a039190614ab9565b905060006201518084613a15886143bc565b613a1f9190614ab9565b613a299190614b9b565b905080613a368385614b53565b613a409190614b53565b9695505050505050565b60008060005b60ff5481101561330f576001600160a01b03841660009081526101076020526040812054613a7e9042614aee565b90506201518081610102600060ff8681548110613a9d57613a9d614ad8565b60009182526020808320909101546001600160a01b03168352820192909252604001902054613acc9190614ab9565b613ad69190614b9b565b610103600060ff8581548110613aee57613aee614ad8565b60009182526020808320909101546001600160a01b0390811684528382019490945260409283018220938a16825292909252902054613b2d9190614ab9565b613b379084614b53565b9250508080613b4590614b1b565b915050613a50565b6001600160a01b03811660009081526101016020526040812054613b7357506000919050565b6001600160a01b03821660009081526101076020526040812054613b979042614aee565b90506000620151808260fe54613bad9190614ab9565b613bb79190614b9b565b6001600160a01b03851660009081526101016020526040902054613bdb9190614ab9565b949350505050565b60005b6001600160a01b0380851660009081526101036020908152604080832093871683529290522060010154811015613d60576001600160a01b03808516600090815261010360209081526040808320938716835292905220600101805483919083908110613c5557613c55614ad8565b90600052602060002001541415613d4e576001600160a01b03848116600090815261010360209081526040808320938716835292905220600190810180549091613c9e91614aee565b81548110613cae57613cae614ad8565b60009182526020808320909101546001600160a01b03808816845261010383526040808520918816855292529120600101805483908110613cf157613cf1614ad8565b60009182526020808320909101929092556001600160a01b038087168252610103835260408083209187168352925220600101805480613d3357613d33614b05565b60019003818190600052602060002001600090559055613d60565b80613d5881614b1b565b915050613be6565b50505050565b609780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615613e62578160ff166001148015613de85750303b155b613e5a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6c565b506000919050565b60005460ff808416911610613edf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6c565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff16613f645760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e614445565b600054610100900460ff16611b9e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b600054610100900460ff166140425760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e6144b9565b60005b6001600160a01b0383166000908152610100602052604090206002015481101561269b576001600160a01b0383166000908152610100602052604090206002018054839190839081106140a2576140a2614ad8565b90600052602060002001541415614186576001600160a01b03831660009081526101006020526040902060020180546140dd90600190614aee565b815481106140ed576140ed614ad8565b90600052602060002001546101006000856001600160a01b03166001600160a01b03168152602001908152602001600020600201828154811061413257614132614ad8565b60009182526020808320909101929092556001600160a01b03851681526101009091526040902060020180548061416b5761416b614b05565b60019003818190600052602060002001600090559055505050565b8061419081614b1b565b91505061404d565b60005b6001600160a01b0383166000908152610101602052604090206001015481101561269b576001600160a01b0383166000908152610101602052604090206001018054839190839081106141f0576141f0614ad8565b906000526020600020015414156142ba576001600160a01b03831660009081526101016020526040902060019081018054909161422c91614aee565b8154811061423c5761423c614ad8565b90600052602060002001546101016000856001600160a01b03166001600160a01b03168152602001908152602001600020600101828154811061428157614281614ad8565b60009182526020808320909101929092556001600160a01b03851681526101019091526040902060010180548061416b5761416b614b05565b806142c481614b1b565b91505061419b565b6001600160a01b0381163b6143495760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610a6c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6143a08361452b565b6000825111806143ad5750805b1561269b57613d60838361456b565b6001600160a01b03811660009081526101006020526040812060010154601481106143f257506815af1d78b58c40000092915050565b600a811061440b5750680821ab0d441498000092915050565b6005811061442457506802b5e3af16b188000092915050565b6002811061443c5750678ac7230489e8000092915050565b50600092915050565b600054610100900460ff166144b05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b611b9e33613d66565b600054610100900460ff166145245760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a6c565b600160c955565b614534816142cc565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6145ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610a6c565b600080846001600160a01b0316846040516146059190614be9565b600060405180830381855af49150503d8060008114614640576040519150601f19603f3d011682016040523d82523d6000602084013e614645565b606091505b509150915061466d8282604051806060016040528060278152602001614c3960279139614676565b95945050505050565b606083156146855750816146af565b8251156146955782518084602001fd5b8160405162461bcd60e51b8152600401610a6c9190614c05565b9392505050565b6001600160a01b0381168114610dfd57600080fd5b6000602082840312156146dd57600080fd5b81356146af816146b6565b600080604083850312156146fb57600080fd5b8235614706816146b6565b946020939093013593505050565b60006020828403121561472657600080fd5b813580151581146146af57600080fd5b60006020828403121561474857600080fd5b5035919050565b6000806040838503121561476257600080fd5b823561476d816146b6565b9150602083013561477d816146b6565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156147c0578351835292840192918401916001016147a4565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561480b5761480b6147cc565b604052919050565b6000806040838503121561482657600080fd5b8235614831816146b6565b915060208381013567ffffffffffffffff8082111561484f57600080fd5b818601915086601f83011261486357600080fd5b813581811115614875576148756147cc565b61488784601f19601f840116016147e2565b9150808252878482850101111561489d57600080fd5b80848401858401376000848284010152508093505050509250929050565b600081518084526020808501945080840160005b838110156148eb578151875295820195908201906001016148cf565b509495945050505050565b60208152815160208201526020820151604082015260006040830151606080840152613bdb60808401826148bb565b805182526000602082015160406020850152613bdb60408501826148bb565b6020815260006146af6020830184614925565b600082601f83011261496857600080fd5b8135602067ffffffffffffffff821115614984576149846147cc565b8160051b6149938282016147e2565b92835284810182019282810190878511156149ad57600080fd5b83870192505b848310156149cc578235825291830191908301906149b3565b979650505050505050565b6000602082840312156149e957600080fd5b813567ffffffffffffffff811115614a0057600080fd5b613bdb84828501614957565b60008060408385031215614a1f57600080fd5b8235614a2a816146b6565b9150602083013567ffffffffffffffff811115614a4657600080fd5b614a5285828601614957565b9150509250929050565b60008060408385031215614a6f57600080fd5b823567ffffffffffffffff811115614a8657600080fd5b614a9285828601614957565b925050602083013561477d816146b6565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614ad357614ad3614aa3565b500290565b634e487b7160e01b600052603260045260246000fd5b600082821015614b0057614b00614aa3565b500390565b634e487b7160e01b600052603160045260246000fd5b6000600019821415614b2f57614b2f614aa3565b5060010190565b600060208284031215614b4857600080fd5b81516146af816146b6565b60008219821115614b6657614b66614aa3565b500190565b600081614b7a57614b7a614aa3565b506000190190565b600060208284031215614b9457600080fd5b5051919050565b600082614bb857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015614bd8578181015183820152602001614bc0565b83811115613d605750506000910152565b60008251614bfb818460208701614bbd565b9190910192915050565b6020815260008251806020840152614c24816040850160208701614bbd565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203ef62925e6483abe5c39020fce86e5b0300e4750208964a470110bfbc611017664736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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