ETH Price: $2,776.62 (+5.78%)

Token

Shibarium Network (SHI)
 

Overview

Max Total Supply

1,000,000,000 SHI

Holders

21

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
ayylmaomacarena.eth
Balance
987,077,745.642644377852860165 SHI

Value
$0.00
0x36f8a9ebb4479b1b877920b4ce0a11ee25c29a8b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
ShibariumNetwork

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-12-27
*/

// https://twitter.com/ShibariumNet
// https://shibarium.dog

// SPDX-License-Identifier: MIT

// File: @openzeppelin/[email protected]/interfaces/IERC3156FlashBorrower.sol


// OpenZeppelin Contracts (last updated v4.7.0) (interfaces/IERC3156FlashBorrower.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC3156 FlashBorrower, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * _Available since v4.1._
 */
interface IERC3156FlashBorrower {
    /**
     * @dev Receive a flash loan.
     * @param initiator The initiator of the loan.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @param fee The additional amount of tokens to repay.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     * @return The keccak256 hash of "IERC3156FlashBorrower.onFlashLoan"
     */
    function onFlashLoan(
        address initiator,
        address token,
        uint256 amount,
        uint256 fee,
        bytes calldata data
    ) external returns (bytes32);
}

// File: @openzeppelin/[email protected]/interfaces/IERC3156FlashLender.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashLender.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface of the ERC3156 FlashLender, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * _Available since v4.1._
 */
interface IERC3156FlashLender {
    /**
     * @dev The amount of currency available to be lended.
     * @param token The loan currency.
     * @return The amount of `token` that can be borrowed.
     */
    function maxFlashLoan(address token) external view returns (uint256);

    /**
     * @dev The fee to be charged for a given loan.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @return The amount of `token` to be charged for the loan, on top of the returned principal.
     */
    function flashFee(address token, uint256 amount) external view returns (uint256);

    /**
     * @dev Initiate a flash loan.
     * @param receiver The receiver of the tokens in the loan, and the receiver of the callback.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     */
    function flashLoan(
        IERC3156FlashBorrower receiver,
        address token,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);
}

// File: @openzeppelin/[email protected]/utils/math/SafeCast.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits");
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits");
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits");
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.2._
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits");
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits");
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits");
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits");
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits");
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits");
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits");
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits");
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits");
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits");
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits");
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v2.5._
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits");
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits");
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits");
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.2._
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits");
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits");
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits");
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v2.5._
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits");
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits");
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits");
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v2.5._
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits");
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v2.5._
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v2.5._
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     *
     * _Available since v3.0._
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toInt248(int256 value) internal pure returns (int248 downcasted) {
        downcasted = int248(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 248 bits");
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toInt240(int256 value) internal pure returns (int240 downcasted) {
        downcasted = int240(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 240 bits");
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toInt232(int256 value) internal pure returns (int232 downcasted) {
        downcasted = int232(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 232 bits");
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.7._
     */
    function toInt224(int256 value) internal pure returns (int224 downcasted) {
        downcasted = int224(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 224 bits");
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toInt216(int256 value) internal pure returns (int216 downcasted) {
        downcasted = int216(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 216 bits");
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toInt208(int256 value) internal pure returns (int208 downcasted) {
        downcasted = int208(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 208 bits");
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toInt200(int256 value) internal pure returns (int200 downcasted) {
        downcasted = int200(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 200 bits");
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toInt192(int256 value) internal pure returns (int192 downcasted) {
        downcasted = int192(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 192 bits");
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toInt184(int256 value) internal pure returns (int184 downcasted) {
        downcasted = int184(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 184 bits");
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toInt176(int256 value) internal pure returns (int176 downcasted) {
        downcasted = int176(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 176 bits");
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toInt168(int256 value) internal pure returns (int168 downcasted) {
        downcasted = int168(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 168 bits");
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toInt160(int256 value) internal pure returns (int160 downcasted) {
        downcasted = int160(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 160 bits");
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toInt152(int256 value) internal pure returns (int152 downcasted) {
        downcasted = int152(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 152 bits");
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toInt144(int256 value) internal pure returns (int144 downcasted) {
        downcasted = int144(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 144 bits");
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toInt136(int256 value) internal pure returns (int136 downcasted) {
        downcasted = int136(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 136 bits");
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128 downcasted) {
        downcasted = int128(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 128 bits");
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toInt120(int256 value) internal pure returns (int120 downcasted) {
        downcasted = int120(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 120 bits");
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toInt112(int256 value) internal pure returns (int112 downcasted) {
        downcasted = int112(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 112 bits");
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toInt104(int256 value) internal pure returns (int104 downcasted) {
        downcasted = int104(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 104 bits");
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.7._
     */
    function toInt96(int256 value) internal pure returns (int96 downcasted) {
        downcasted = int96(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 96 bits");
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toInt88(int256 value) internal pure returns (int88 downcasted) {
        downcasted = int88(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 88 bits");
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toInt80(int256 value) internal pure returns (int80 downcasted) {
        downcasted = int80(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 80 bits");
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toInt72(int256 value) internal pure returns (int72 downcasted) {
        downcasted = int72(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 72 bits");
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64 downcasted) {
        downcasted = int64(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 64 bits");
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toInt56(int256 value) internal pure returns (int56 downcasted) {
        downcasted = int56(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 56 bits");
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toInt48(int256 value) internal pure returns (int48 downcasted) {
        downcasted = int48(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 48 bits");
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toInt40(int256 value) internal pure returns (int40 downcasted) {
        downcasted = int40(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 40 bits");
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32 downcasted) {
        downcasted = int32(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 32 bits");
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toInt24(int256 value) internal pure returns (int24 downcasted) {
        downcasted = int24(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 24 bits");
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16 downcasted) {
        downcasted = int16(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 16 bits");
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8 downcasted) {
        downcasted = int8(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 8 bits");
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     *
     * _Available since v3.0._
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

// File: @openzeppelin/[email protected]/governance/utils/IVotes.sol


// OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol)
pragma solidity ^0.8.0;

/**
 * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts.
 *
 * _Available since v4.5._
 */
interface IVotes {
    /**
     * @dev Emitted when an account changes their delegate.
     */
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /**
     * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes.
     */
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @dev Returns the current amount of votes that `account` has.
     */
    function getVotes(address account) external view returns (uint256);

    /**
     * @dev Returns the amount of votes that `account` had at the end of a past block (`blockNumber`).
     */
    function getPastVotes(address account, uint256 blockNumber) external view returns (uint256);

    /**
     * @dev Returns the total supply of votes available at the end of a past block (`blockNumber`).
     *
     * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes.
     * Votes that have not been delegated are still part of total supply, even though they would not participate in a
     * vote.
     */
    function getPastTotalSupply(uint256 blockNumber) external view returns (uint256);

    /**
     * @dev Returns the delegate that `account` has chosen.
     */
    function delegates(address account) external view returns (address);

    /**
     * @dev Delegates votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) external;

    /**
     * @dev Delegates votes from signer to `delegatee`.
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-IERC20Permit.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

// File: @openzeppelin/[email protected]/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/[email protected]/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

// File: @openzeppelin/[email protected]/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: @openzeppelin/[email protected]/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// File: @openzeppelin/[email protected]/utils/cryptography/EIP712.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;


/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

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

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

// File: @openzeppelin/[email protected]/utils/StorageSlot.sol


// OpenZeppelin Contracts (last updated v4.7.0) (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 StorageSlot {
    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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

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

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

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

// File: @openzeppelin/[email protected]/utils/Arrays.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Arrays.sol)

pragma solidity ^0.8.0;



/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    using StorageSlot for bytes32;

    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        if (array.length == 0) {
            return 0;
        }

        uint256 low = 0;
        uint256 high = array.length;

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds down (it does integer division with truncation).
            if (unsafeAccess(array, mid).value > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && unsafeAccess(array, low - 1).value == element) {
            return low - 1;
        } else {
            return low;
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
        bytes32 slot;
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getAddressSlot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
        bytes32 slot;
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getBytes32Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
        bytes32 slot;
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getUint256Slot();
    }
}

// File: @openzeppelin/[email protected]/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/[email protected]/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20FlashMint.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/ERC20FlashMint.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the ERC3156 Flash loans extension, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * Adds the {flashLoan} method, which provides flash loan support at the token
 * level. By default there is no fee, but this can be changed by overriding {flashFee}.
 *
 * _Available since v4.1._
 */
abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender {
    bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan");

    /**
     * @dev Returns the maximum amount of tokens available for loan.
     * @param token The address of the token that is requested.
     * @return The amount of token that can be loaned.
     */
    function maxFlashLoan(address token) public view virtual override returns (uint256) {
        return token == address(this) ? type(uint256).max - ERC20.totalSupply() : 0;
    }

    /**
     * @dev Returns the fee applied when doing flash loans. This function calls
     * the {_flashFee} function which returns the fee applied when doing flash
     * loans.
     * @param token The token to be flash loaned.
     * @param amount The amount of tokens to be loaned.
     * @return The fees applied to the corresponding flash loan.
     */
    function flashFee(address token, uint256 amount) public view virtual override returns (uint256) {
        require(token == address(this), "ERC20FlashMint: wrong token");
        return _flashFee(token, amount);
    }

    /**
     * @dev Returns the fee applied when doing flash loans. By default this
     * implementation has 0 fees. This function can be overloaded to make
     * the flash loan mechanism deflationary.
     * @param token The token to be flash loaned.
     * @param amount The amount of tokens to be loaned.
     * @return The fees applied to the corresponding flash loan.
     */
    function _flashFee(address token, uint256 amount) internal view virtual returns (uint256) {
        // silence warning about unused variable without the addition of bytecode.
        token;
        amount;
        return 0;
    }

    /**
     * @dev Returns the receiver address of the flash fee. By default this
     * implementation returns the address(0) which means the fee amount will be burnt.
     * This function can be overloaded to change the fee receiver.
     * @return The address for which the flash fee will be sent to.
     */
    function _flashFeeReceiver() internal view virtual returns (address) {
        return address(0);
    }

    /**
     * @dev Performs a flash loan. New tokens are minted and sent to the
     * `receiver`, who is required to implement the {IERC3156FlashBorrower}
     * interface. By the end of the flash loan, the receiver is expected to own
     * amount + fee tokens and have them approved back to the token contract itself so
     * they can be burned.
     * @param receiver The receiver of the flash loan. Should implement the
     * {IERC3156FlashBorrower-onFlashLoan} interface.
     * @param token The token to be flash loaned. Only `address(this)` is
     * supported.
     * @param amount The amount of tokens to be loaned.
     * @param data An arbitrary datafield that is passed to the receiver.
     * @return `true` if the flash loan was successful.
     */
    // This function can reenter, but it doesn't pose a risk because it always preserves the property that the amount
    // minted at the beginning is always recovered and burned at the end, or else the entire function will revert.
    // slither-disable-next-line reentrancy-no-eth
    function flashLoan(
        IERC3156FlashBorrower receiver,
        address token,
        uint256 amount,
        bytes calldata data
    ) public virtual override returns (bool) {
        require(amount <= maxFlashLoan(token), "ERC20FlashMint: amount exceeds maxFlashLoan");
        uint256 fee = flashFee(token, amount);
        _mint(address(receiver), amount);
        require(
            receiver.onFlashLoan(msg.sender, token, amount, fee, data) == _RETURN_VALUE,
            "ERC20FlashMint: invalid return value"
        );
        address flashFeeReceiver = _flashFeeReceiver();
        _spendAllowance(address(receiver), address(this), amount + fee);
        if (fee == 0 || flashFeeReceiver == address(0)) {
            _burn(address(receiver), amount + fee);
        } else {
            _burn(address(receiver), amount);
            _transfer(address(receiver), flashFeeReceiver, fee);
        }
        return true;
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20Permit.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;






/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private constant _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    /**
     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.
     * However, to ensure consistency with the upgradeable transpiler, we will continue
     * to reserve a slot.
     * @custom:oz-renamed-from _PERMIT_TYPEHASH
     */
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Votes.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/ERC20Votes.sol)

pragma solidity ^0.8.0;






/**
 * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,
 * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.
 *
 * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.
 *
 * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
 * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
 * power can be queried through the public accessors {getVotes} and {getPastVotes}.
 *
 * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
 * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
 *
 * _Available since v4.2._
 */
abstract contract ERC20Votes is IVotes, ERC20Permit {
    struct Checkpoint {
        uint32 fromBlock;
        uint224 votes;
    }

    bytes32 private constant _DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    mapping(address => address) private _delegates;
    mapping(address => Checkpoint[]) private _checkpoints;
    Checkpoint[] private _totalSupplyCheckpoints;

    /**
     * @dev Get the `pos`-th checkpoint for `account`.
     */
    function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) {
        return _checkpoints[account][pos];
    }

    /**
     * @dev Get number of checkpoints for `account`.
     */
    function numCheckpoints(address account) public view virtual returns (uint32) {
        return SafeCast.toUint32(_checkpoints[account].length);
    }

    /**
     * @dev Get the address `account` is currently delegating to.
     */
    function delegates(address account) public view virtual override returns (address) {
        return _delegates[account];
    }

    /**
     * @dev Gets the current votes balance for `account`
     */
    function getVotes(address account) public view virtual override returns (uint256) {
        uint256 pos = _checkpoints[account].length;
        return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes;
    }

    /**
     * @dev Retrieve the number of votes for `account` at the end of `blockNumber`.
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_checkpoints[account], blockNumber);
    }

    /**
     * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances.
     * It is but NOT the sum of all the delegated votes!
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastTotalSupply(uint256 blockNumber) public view virtual override returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber);
    }

    /**
     * @dev Lookup a value in a list of (sorted) checkpoints.
     */
    function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) {
        // We run a binary search to look for the earliest checkpoint taken after `blockNumber`.
        //
        // Initially we check if the block is recent to narrow the search range.
        // During the loop, the index of the wanted checkpoint remains in the range [low-1, high).
        // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant.
        // - If the middle checkpoint is after `blockNumber`, we look in [low, mid)
        // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high)
        // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not
        // out of bounds (in which case we're looking too far in the past and the result is 0).
        // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is
        // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out
        // the same.
        uint256 length = ckpts.length;

        uint256 low = 0;
        uint256 high = length;

        if (length > 5) {
            uint256 mid = length - Math.sqrt(length);
            if (_unsafeAccess(ckpts, mid).fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);
            if (_unsafeAccess(ckpts, mid).fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        return high == 0 ? 0 : _unsafeAccess(ckpts, high - 1).votes;
    }

    /**
     * @dev Delegate votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) public virtual override {
        _delegate(_msgSender(), delegatee);
    }

    /**
     * @dev Delegates votes from signer to `delegatee`
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= expiry, "ERC20Votes: signature expired");
        address signer = ECDSA.recover(
            _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))),
            v,
            r,
            s
        );
        require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce");
        _delegate(signer, delegatee);
    }

    /**
     * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1).
     */
    function _maxSupply() internal view virtual returns (uint224) {
        return type(uint224).max;
    }

    /**
     * @dev Snapshots the totalSupply after it has been increased.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        super._mint(account, amount);
        require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes");

        _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);
    }

    /**
     * @dev Snapshots the totalSupply after it has been decreased.
     */
    function _burn(address account, uint256 amount) internal virtual override {
        super._burn(account, amount);

        _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
    }

    /**
     * @dev Move voting power when tokens are transferred.
     *
     * Emits a {IVotes-DelegateVotesChanged} event.
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._afterTokenTransfer(from, to, amount);

        _moveVotingPower(delegates(from), delegates(to), amount);
    }

    /**
     * @dev Change delegation for `delegator` to `delegatee`.
     *
     * Emits events {IVotes-DelegateChanged} and {IVotes-DelegateVotesChanged}.
     */
    function _delegate(address delegator, address delegatee) internal virtual {
        address currentDelegate = delegates(delegator);
        uint256 delegatorBalance = balanceOf(delegator);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveVotingPower(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveVotingPower(
        address src,
        address dst,
        uint256 amount
    ) private {
        if (src != dst && amount > 0) {
            if (src != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount);
                emit DelegateVotesChanged(src, oldWeight, newWeight);
            }

            if (dst != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount);
                emit DelegateVotesChanged(dst, oldWeight, newWeight);
            }
        }
    }

    function _writeCheckpoint(
        Checkpoint[] storage ckpts,
        function(uint256, uint256) view returns (uint256) op,
        uint256 delta
    ) private returns (uint256 oldWeight, uint256 newWeight) {
        uint256 pos = ckpts.length;

        Checkpoint memory oldCkpt = pos == 0 ? Checkpoint(0, 0) : _unsafeAccess(ckpts, pos - 1);

        oldWeight = oldCkpt.votes;
        newWeight = op(oldWeight, delta);

        if (pos > 0 && oldCkpt.fromBlock == block.number) {
            _unsafeAccess(ckpts, pos - 1).votes = SafeCast.toUint224(newWeight);
        } else {
            ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)}));
        }
    }

    function _add(uint256 a, uint256 b) private pure returns (uint256) {
        return a + b;
    }

    function _subtract(uint256 a, uint256 b) private pure returns (uint256) {
        return a - b;
    }

    function _unsafeAccess(Checkpoint[] storage ckpts, uint256 pos) private pure returns (Checkpoint storage result) {
        assembly {
            mstore(0, ckpts.slot)
            result.slot := add(keccak256(0, 0x20), pos)
        }
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Snapshot.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/extensions/ERC20Snapshot.sol)

pragma solidity ^0.8.0;




/**
 * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
 * total supply at the time are recorded for later access.
 *
 * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
 * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
 * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
 * used to create an efficient ERC20 forking mechanism.
 *
 * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
 * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
 * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
 * and the account address.
 *
 * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it
 * return `block.number` will trigger the creation of snapshot at the beginning of each new block. When overriding this
 * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract.
 *
 * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient
 * alternative consider {ERC20Votes}.
 *
 * ==== Gas Costs
 *
 * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
 * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
 * smaller since identical balances in subsequent snapshots are stored as a single entry.
 *
 * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
 * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
 * transfers will have normal cost until the next snapshot, and so on.
 */

abstract contract ERC20Snapshot is ERC20 {
    // Inspired by Jordi Baylina's MiniMeToken to record historical balances:
    // https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol

    using Arrays for uint256[];
    using Counters for Counters.Counter;

    // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
    // Snapshot struct, but that would impede usage of functions that work on an array.
    struct Snapshots {
        uint256[] ids;
        uint256[] values;
    }

    mapping(address => Snapshots) private _accountBalanceSnapshots;
    Snapshots private _totalSupplySnapshots;

    // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
    Counters.Counter private _currentSnapshotId;

    /**
     * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
     */
    event Snapshot(uint256 id);

    /**
     * @dev Creates a new snapshot and returns its snapshot id.
     *
     * Emits a {Snapshot} event that contains the same id.
     *
     * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
     * set of accounts, for example using {AccessControl}, or it may be open to the public.
     *
     * [WARNING]
     * ====
     * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
     * you must consider that it can potentially be used by attackers in two ways.
     *
     * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
     * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
     * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
     * section above.
     *
     * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
     * ====
     */
    function _snapshot() internal virtual returns (uint256) {
        _currentSnapshotId.increment();

        uint256 currentId = _getCurrentSnapshotId();
        emit Snapshot(currentId);
        return currentId;
    }

    /**
     * @dev Get the current snapshotId
     */
    function _getCurrentSnapshotId() internal view virtual returns (uint256) {
        return _currentSnapshotId.current();
    }

    /**
     * @dev Retrieves the balance of `account` at the time `snapshotId` was created.
     */
    function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);

        return snapshotted ? value : balanceOf(account);
    }

    /**
     * @dev Retrieves the total supply at the time `snapshotId` was created.
     */
    function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);

        return snapshotted ? value : totalSupply();
    }

    // Update balance and/or total supply snapshots before the values are modified. This is implemented
    // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) {
            // mint
            _updateAccountSnapshot(to);
            _updateTotalSupplySnapshot();
        } else if (to == address(0)) {
            // burn
            _updateAccountSnapshot(from);
            _updateTotalSupplySnapshot();
        } else {
            // transfer
            _updateAccountSnapshot(from);
            _updateAccountSnapshot(to);
        }
    }

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id");

        // When a valid snapshot is queried, there are three possibilities:
        //  a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
        //  created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
        //  to this id is the current one.
        //  b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
        //  requested id, and its value is the one to return.
        //  c) More snapshots were created after the requested one, and the queried value was later modified. There will be
        //  no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
        //  larger than the requested one.
        //
        // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
        // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
        // exactly this.

        uint256 index = snapshots.ids.findUpperBound(snapshotId);

        if (index == snapshots.ids.length) {
            return (false, 0);
        } else {
            return (true, snapshots.values[index]);
        }
    }

    function _updateAccountSnapshot(address account) private {
        _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
    }

    function _updateTotalSupplySnapshot() private {
        _updateSnapshot(_totalSupplySnapshots, totalSupply());
    }

    function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
        uint256 currentId = _getCurrentSnapshotId();
        if (_lastSnapshotId(snapshots.ids) < currentId) {
            snapshots.ids.push(currentId);
            snapshots.values.push(currentValue);
        }
    }

    function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
        if (ids.length == 0) {
            return 0;
        } else {
            return ids[ids.length - 1];
        }
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: SHI.sol


pragma solidity ^0.8.9;








contract ShibariumNetwork is ERC20, ERC20Burnable, ERC20Snapshot, Ownable, ERC20Permit, ERC20Votes, ERC20FlashMint {
    constructor()
        ERC20("Shibarium Network", "SHI")
        ERC20Permit("Shibarium Network")
    {
        _mint(msg.sender, 1000000000 * 10 ** decimals());
    }

    function snapshot() public onlyOwner {
        _snapshot();
    }

    // The following functions are overrides required by Solidity.

    function _beforeTokenTransfer(address from, address to, uint256 amount)
        internal
        override(ERC20, ERC20Snapshot)
    {
        super._beforeTokenTransfer(from, to, amount);
    }

    function _afterTokenTransfer(address from, address to, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._afterTokenTransfer(from, to, amount);
    }

    function _mint(address to, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._mint(to, amount);
    }

    function _burn(address account, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._burn(account, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b506040518060400160405280601181526020017053686962617269756d204e6574776f726b60781b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280601181526020017053686962617269756d204e6574776f726b60781b8152506040518060400160405280600381526020016253484960e81b8152508160039081620000af919062000a02565b506004620000be828262000a02565b505050620000db620000d56200019a60201b60201c565b6200019e565b815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c094850190915281519190950120905291909152610120525062000194336200017e6012600a62000be1565b6200018e90633b9aca0062000bf2565b620001f0565b62000c4e565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200020782826200020b60201b62000f221760201c565b5050565b620002228282620002c260201b62000fb21760201c565b6001600160e01b03620002366200039d8216565b1115620002a35760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084015b60405180910390fd5b620002bc600e62001085620003a360201b1783620003ba565b50505050565b6001600160a01b0382166200031a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200029a565b62000328600083836200054c565b80600260008282546200033c919062000c0c565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3620002076000838362000569565b60025490565b6000620003b1828462000c0c565b90505b92915050565b825460009081908181156200041a57620003e987620003db60018562000c22565b600091825260209091200190565b60408051808201909152905463ffffffff8116825264010000000090046001600160e01b031660208201526200042f565b60408051808201909152600080825260208201525b905080602001516001600160e01b031693506200044d84868860201c565b9250600082118015620004665750805163ffffffff1643145b15620004bd5762000482836200058160201b620010911760201c565b6200049488620003db60018662000c22565b80546001600160e01b03929092166401000000000263ffffffff90921691909117905562000542565b866040518060400160405280620004df43620005f060201b620010fe1760201c565b63ffffffff16815260200162000500866200058160201b620010911760201c565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b620005648383836200065760201b620011631760201c565b505050565b62000564838383620006c360201b620011b01760201c565b60006001600160e01b03821115620005ec5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016200029a565b5090565b600063ffffffff821115620005ec5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016200029a565b6200066f8383836200056460201b620011821760201c565b6001600160a01b038316620006935762000689826200070f565b6200056462000747565b6001600160a01b038216620006ad5762000689836200070f565b620006b8836200070f565b62000564826200070f565b620006db8383836200056460201b620011821760201c565b6001600160a01b038381166000908152600c6020526040808220548584168352912054620005649291821691168362000759565b6001600160a01b0381166000908152600560209081526040808320918390529091205462000744919062000894565b62000894565b50565b6200075760066200073e60025490565b565b816001600160a01b0316836001600160a01b0316141580156200077c5750600081115b1562000564576001600160a01b0383161562000809576001600160a01b0383166000908152600d6020908152604082208291620007c69190620008e3901b620011e21785620003ba565b91509150846001600160a01b0316600080516020620034cc8339815191528383604051620007fe929190918252602082015260400190565b60405180910390a250505b6001600160a01b0382161562000564576001600160a01b0382166000908152600d60209081526040822082916200084d9190620003a3901b620010851785620003ba565b91509150836001600160a01b0316600080516020620034cc833981519152838360405162000885929190918252602082015260400190565b60405180910390a25050505050565b6000620008a0620008f1565b905080620008ae846200090f565b101562000564578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b6000620003b1828462000c22565b60006200090a60086200095a60201b620011ee1760201c565b905090565b805460009081036200092357506000919050565b81548290620009359060019062000c22565b8154811062000948576200094862000c38565b90600052602060002001549050919050565b5490565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200098957607f821691505b602082108103620009aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200056457600081815260208120601f850160051c81016020861015620009d95750805b601f850160051c820191505b81811015620009fa57828155600101620009e5565b505050505050565b81516001600160401b0381111562000a1e5762000a1e6200095e565b62000a368162000a2f845462000974565b84620009b0565b602080601f83116001811462000a6e576000841562000a555750858301515b600019600386901b1c1916600185901b178555620009fa565b600085815260208120601f198616915b8281101562000a9f5788860151825594840194600190910190840162000a7e565b508582101562000abe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000b2557816000190482111562000b095762000b0962000ace565b8085161562000b1757918102915b93841c939080029062000ae9565b509250929050565b60008262000b3e57506001620003b4565b8162000b4d57506000620003b4565b816001811462000b66576002811462000b715762000b91565b6001915050620003b4565b60ff84111562000b855762000b8562000ace565b50506001821b620003b4565b5060208310610133831016604e8410600b841016171562000bb6575081810a620003b4565b62000bc2838362000ae4565b806000190482111562000bd95762000bd962000ace565b029392505050565b6000620003b160ff84168362000b2d565b8082028115828204841417620003b457620003b462000ace565b80820180821115620003b457620003b462000ace565b81810381811115620003b457620003b462000ace565b634e487b7160e01b600052603260045260246000fd5b60805160a05160c05160e051610100516101205161282e62000c9e60003960006115c901526000611618015260006115f30152600061154c01526000611576015260006115a0015261282e6000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a5780639ab24eb0116100ad578063d505accf1161007c578063d505accf1461045a578063d9d98ce41461046d578063dd62ed3e14610480578063f1127ed814610493578063f2fde38b146104d057600080fd5b80639ab24eb01461040e578063a457c2d714610421578063a9059cbb14610434578063c3cda5201461044757600080fd5b80638e539e8c116100e95780638e539e8c146103d857806395d89b41146103eb5780639711715a146103f3578063981b24d0146103fb57600080fd5b8063715018a61461039957806379cc6790146103a15780637ecebe00146103b45780638da5cb5b146103c757600080fd5b806342966c68116101925780635cffe9de116101615780635cffe9de14610322578063613255ab146103355780636fcfff451461034857806370a082311461037057600080fd5b806342966c68146102a35780634ee2cd7e146102b8578063587cde1e146102cb5780635c19a95c1461030f57600080fd5b8063313ce567116101ce578063313ce567146102665780633644e51514610275578063395093511461027d5780633a46b1a81461029057600080fd5b806306fdde0314610200578063095ea7b31461021e57806318160ddd1461024157806323b872dd14610253575b600080fd5b6102086104e3565b60405161021591906123c1565b60405180910390f35b61023161022c366004612424565b610575565b6040519015158152602001610215565b6002545b604051908152602001610215565b610231610261366004612450565b61058f565b60405160128152602001610215565b6102456105b3565b61023161028b366004612424565b6105c2565b61024561029e366004612424565b6105e4565b6102b66102b1366004612491565b610663565b005b6102456102c6366004612424565b610670565b6102f76102d93660046124aa565b6001600160a01b039081166000908152600c60205260409020541690565b6040516001600160a01b039091168152602001610215565b6102b661031d3660046124aa565b6106c9565b6102316103303660046124c7565b6106d3565b6102456103433660046124aa565b6108b7565b61035b6103563660046124aa565b6108df565b60405163ffffffff9091168152602001610215565b61024561037e3660046124aa565b6001600160a01b031660009081526020819052604090205490565b6102b6610901565b6102b66103af366004612424565b610915565b6102456103c23660046124aa565b61092e565b6009546001600160a01b03166102f7565b6102456103e6366004612491565b61094c565b6102086109a8565b6102b66109b7565b610245610409366004612491565b6109c7565b61024561041c3660046124aa565b6109f2565b61023161042f366004612424565b610a79565b610231610442366004612424565b610af4565b6102b6610455366004612577565b610b02565b6102b66104683660046125d1565b610c38565b61024561047b366004612424565b610d9c565b61024561048e36600461263f565b610dfd565b6104a66104a1366004612678565b610e28565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610215565b6102b66104de3660046124aa565b610eac565b6060600380546104f2906126af565b80601f016020809104026020016040519081016040528092919081815260200182805461051e906126af565b801561056b5780601f106105405761010080835404028352916020019161056b565b820191906000526020600020905b81548152906001019060200180831161054e57829003601f168201915b5050505050905090565b6000336105838185856111f2565b60019150505b92915050565b60003361059d858285611316565b6105a885858561138a565b506001949350505050565b60006105bd61153f565b905090565b6000336105838185856105d58383610dfd565b6105df91906126f9565b6111f2565b600043821061063a5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064015b60405180910390fd5b6001600160a01b0383166000908152600d6020526040902061065c9083611666565b9392505050565b61066d338261175d565b50565b6001600160a01b038216600090815260056020526040812081908190610697908590611767565b91509150816106be576001600160a01b0385166000908152602081905260409020546106c0565b805b95945050505050565b61066d338261185d565b60006106de856108b7565b8411156107415760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201526a30bc233630b9b42637b0b760a91b6064820152608401610631565b600061074d8686610d9c565b905061075987866118d6565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906107b19033908b908b9088908c908c9060040161270c565b6020604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190612768565b1461084d5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610631565b6000610863883061085e858a6126f9565b611316565b81158061087757506001600160a01b038116155b156108945761088f8861088a84896126f9565b61175d565b6108a9565b61089e888761175d565b6108a988828461138a565b506001979650505050505050565b60006001600160a01b03821630146108d0576000610589565b60025461058990600019612781565b6001600160a01b0381166000908152600d6020526040812054610589906110fe565b6109096118e0565b610913600061193a565b565b610920823383611316565b61092a828261175d565b5050565b6001600160a01b0381166000908152600a6020526040812054610589565b600043821061099d5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610631565b610589600e83611666565b6060600480546104f2906126af565b6109bf6118e0565b61066d61198c565b60008060006109d7846006611767565b91509150816109e8576002546109ea565b805b949350505050565b6001600160a01b0381166000908152600d60205260408120548015610a66576001600160a01b0383166000908152600d60205260409020610a34600183612781565b81548110610a4457610a44612794565b60009182526020909120015464010000000090046001600160e01b0316610a69565b60005b6001600160e01b03169392505050565b60003381610a878286610dfd565b905083811015610ae75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610631565b6105a882868684036111f2565b60003361058381858561138a565b83421115610b525760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610631565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610bcc90610bc49060a001604051602081830303815290604052805190602001206119e6565b858585611a34565b9050610bd781611a5c565b8614610c255760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610631565b610c2f818861185d565b50505050505050565b83421115610c885760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610631565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610cb78c611a5c565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610d12826119e6565b90506000610d2282878787611a34565b9050896001600160a01b0316816001600160a01b031614610d855760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610631565b610d908a8a8a6111f2565b50505050505050505050565b60006001600160a01b0383163014610df65760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610631565b600061065c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b0383166000908152600d60205260409020805463ffffffff8416908110610e6c57610e6c612794565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b610eb46118e0565b6001600160a01b038116610f195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610631565b61066d8161193a565b610f2c8282610fb2565b6002546001600160e01b031015610f9e5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610631565b610fac600e61108583611a84565b50505050565b6001600160a01b0382166110085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610631565b61101460008383611bd8565b806002600082825461102691906126f9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361092a60008383611be3565b600061065c82846126f9565b60006001600160e01b038211156110fa5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610631565b5090565b600063ffffffff8211156110fa5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610631565b6001600160a01b0383166111875761117a82611bee565b611182611c20565b505050565b6001600160a01b03821661119e5761117a83611bee565b6111a783611bee565b61118282611bee565b6001600160a01b038381166000908152600c602052604080822054858416835291205461118292918216911683611c2e565b600061065c8284612781565b5490565b6001600160a01b0383166112545760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610631565b6001600160a01b0382166112b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610631565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006113228484610dfd565b90506000198114610fac578181101561137d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610631565b610fac84848484036111f2565b6001600160a01b0383166113ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610631565b6001600160a01b0382166114505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610631565b61145b838383611bd8565b6001600160a01b038316600090815260208190526040902054818110156114d35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610631565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610fac848484611be3565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561159857507f000000000000000000000000000000000000000000000000000000000000000046145b156115c257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090818160058111156116c057600061168184611d6b565b61168b9085612781565b600088815260209020909150869082015463ffffffff1611156116b0578091506116be565b6116bb8160016126f9565b92505b505b8082101561170d5760006116d48383611e53565b600088815260209020909150869082015463ffffffff1611156116f957809150611707565b6117048160016126f9565b92505b506116c0565b80156117475761173086611722600184612781565b600091825260209091200190565b5464010000000090046001600160e01b031661174a565b60005b6001600160e01b03169695505050505050565b61092a8282611e6e565b600080600084116117b35760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610631565b6117bb611e86565b84111561180a5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610631565b60006118168486611e91565b8454909150810361182e576000809250925050611856565b600184600101828154811061184557611845612794565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600c60208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610fac828483611c2e565b61092a8282610f22565b6009546001600160a01b031633146109135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610631565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061199c600880546001019055565b60006119a6611e86565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516119d991815260200190565b60405180910390a1919050565b60006105896119f361153f565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611a4587878787611f30565b91509150611a5281611ff4565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b82546000908190818115611ad157611aa187611722600185612781565b60408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152611ae6565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350611b0684868863ffffffff16565b9250600082118015611b1e5750805163ffffffff1643145b15611b6357611b2c83611091565b611b3b88611722600186612781565b80546001600160e01b03929092166401000000000263ffffffff909216919091179055611bce565b866040518060400160405280611b78436110fe565b63ffffffff168152602001611b8c86611091565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b611182838383611163565b6111828383836111b0565b6001600160a01b0381166000908152600560209081526040808320918390529091205461066d919061213e565b61213e565b6109136006611c1b60025490565b816001600160a01b0316836001600160a01b031614158015611c505750600081115b15611182576001600160a01b03831615611cde576001600160a01b0383166000908152600d602052604081208190611c8b906111e285611a84565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611cd3929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611182576001600160a01b0382166000908152600d602052604081208190611d149061108585611a84565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611d5c929190918252602082015260400190565b60405180910390a25050505050565b600081600003611d7d57506000919050565b60006001611d8a84612188565b901c6001901b90506001818481611da357611da36127aa565b048201901c90506001818481611dbb57611dbb6127aa565b048201901c90506001818481611dd357611dd36127aa565b048201901c90506001818481611deb57611deb6127aa565b048201901c90506001818481611e0357611e036127aa565b048201901c90506001818481611e1b57611e1b6127aa565b048201901c90506001818481611e3357611e336127aa565b048201901c905061065c81828581611e4d57611e4d6127aa565b0461221c565b6000611e6260028484186127c0565b61065c908484166126f9565b611e788282612232565b610fac600e6111e283611a84565b60006105bd60085490565b81546000908103611ea457506000610589565b82546000905b80821015611ef1576000611ebe8383611e53565b60008781526020902090915085908201541115611edd57809150611eeb565b611ee88160016126f9565b92505b50611eaa565b600082118015611f0f575083611f0c86611722600186612781565b54145b15611f2857611f1f600183612781565b92505050610589565b509050610589565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f675750600090506003611feb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611fbb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fe457600060019250925050611feb565b9150600090505b94509492505050565b6000816004811115612008576120086127e2565b036120105750565b6001816004811115612024576120246127e2565b036120715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610631565b6002816004811115612085576120856127e2565b036120d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610631565b60038160048111156120e6576120e66127e2565b0361066d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610631565b6000612148611e86565b90508061215484612377565b1015611182578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b600080608083901c1561219d57608092831c92015b604083901c156121af57604092831c92015b602083901c156121c157602092831c92015b601083901c156121d357601092831c92015b600883901c156121e557600892831c92015b600483901c156121f757600492831c92015b600283901c1561220957600292831c92015b600183901c156105895760010192915050565b600081831061222b578161065c565b5090919050565b6001600160a01b0382166122925760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610631565b61229e82600083611bd8565b6001600160a01b038216600090815260208190526040902054818110156123125760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610631565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361118283600084611be3565b8054600090810361238a57506000919050565b8154829061239a90600190612781565b815481106123aa576123aa612794565b90600052602060002001549050919050565b919050565b600060208083528351808285015260005b818110156123ee578581018301518582016040015282016123d2565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461066d57600080fd5b6000806040838503121561243757600080fd5b82356124428161240f565b946020939093013593505050565b60008060006060848603121561246557600080fd5b83356124708161240f565b925060208401356124808161240f565b929592945050506040919091013590565b6000602082840312156124a357600080fd5b5035919050565b6000602082840312156124bc57600080fd5b813561065c8161240f565b6000806000806000608086880312156124df57600080fd5b85356124ea8161240f565b945060208601356124fa8161240f565b935060408601359250606086013567ffffffffffffffff8082111561251e57600080fd5b818801915088601f83011261253257600080fd5b81358181111561254157600080fd5b89602082850101111561255357600080fd5b9699959850939650602001949392505050565b803560ff811681146123bc57600080fd5b60008060008060008060c0878903121561259057600080fd5b863561259b8161240f565b955060208701359450604087013593506125b760608801612566565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156125ec57600080fd5b87356125f78161240f565b965060208801356126078161240f565b9550604088013594506060880135935061262360808901612566565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561265257600080fd5b823561265d8161240f565b9150602083013561266d8161240f565b809150509250929050565b6000806040838503121561268b57600080fd5b82356126968161240f565b9150602083013563ffffffff8116811461266d57600080fd5b600181811c908216806126c357607f821691505b602082108103611a7e57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610589576105896126e3565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b60006020828403121561277a57600080fd5b5051919050565b81810381811115610589576105896126e3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6000826127dd57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220cd59b9b5175307a13af680b3593a761d9274d51fbb5d5bc6e3371c2b6e915a7464736f6c63430008110033dec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a5780639ab24eb0116100ad578063d505accf1161007c578063d505accf1461045a578063d9d98ce41461046d578063dd62ed3e14610480578063f1127ed814610493578063f2fde38b146104d057600080fd5b80639ab24eb01461040e578063a457c2d714610421578063a9059cbb14610434578063c3cda5201461044757600080fd5b80638e539e8c116100e95780638e539e8c146103d857806395d89b41146103eb5780639711715a146103f3578063981b24d0146103fb57600080fd5b8063715018a61461039957806379cc6790146103a15780637ecebe00146103b45780638da5cb5b146103c757600080fd5b806342966c68116101925780635cffe9de116101615780635cffe9de14610322578063613255ab146103355780636fcfff451461034857806370a082311461037057600080fd5b806342966c68146102a35780634ee2cd7e146102b8578063587cde1e146102cb5780635c19a95c1461030f57600080fd5b8063313ce567116101ce578063313ce567146102665780633644e51514610275578063395093511461027d5780633a46b1a81461029057600080fd5b806306fdde0314610200578063095ea7b31461021e57806318160ddd1461024157806323b872dd14610253575b600080fd5b6102086104e3565b60405161021591906123c1565b60405180910390f35b61023161022c366004612424565b610575565b6040519015158152602001610215565b6002545b604051908152602001610215565b610231610261366004612450565b61058f565b60405160128152602001610215565b6102456105b3565b61023161028b366004612424565b6105c2565b61024561029e366004612424565b6105e4565b6102b66102b1366004612491565b610663565b005b6102456102c6366004612424565b610670565b6102f76102d93660046124aa565b6001600160a01b039081166000908152600c60205260409020541690565b6040516001600160a01b039091168152602001610215565b6102b661031d3660046124aa565b6106c9565b6102316103303660046124c7565b6106d3565b6102456103433660046124aa565b6108b7565b61035b6103563660046124aa565b6108df565b60405163ffffffff9091168152602001610215565b61024561037e3660046124aa565b6001600160a01b031660009081526020819052604090205490565b6102b6610901565b6102b66103af366004612424565b610915565b6102456103c23660046124aa565b61092e565b6009546001600160a01b03166102f7565b6102456103e6366004612491565b61094c565b6102086109a8565b6102b66109b7565b610245610409366004612491565b6109c7565b61024561041c3660046124aa565b6109f2565b61023161042f366004612424565b610a79565b610231610442366004612424565b610af4565b6102b6610455366004612577565b610b02565b6102b66104683660046125d1565b610c38565b61024561047b366004612424565b610d9c565b61024561048e36600461263f565b610dfd565b6104a66104a1366004612678565b610e28565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610215565b6102b66104de3660046124aa565b610eac565b6060600380546104f2906126af565b80601f016020809104026020016040519081016040528092919081815260200182805461051e906126af565b801561056b5780601f106105405761010080835404028352916020019161056b565b820191906000526020600020905b81548152906001019060200180831161054e57829003601f168201915b5050505050905090565b6000336105838185856111f2565b60019150505b92915050565b60003361059d858285611316565b6105a885858561138a565b506001949350505050565b60006105bd61153f565b905090565b6000336105838185856105d58383610dfd565b6105df91906126f9565b6111f2565b600043821061063a5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064015b60405180910390fd5b6001600160a01b0383166000908152600d6020526040902061065c9083611666565b9392505050565b61066d338261175d565b50565b6001600160a01b038216600090815260056020526040812081908190610697908590611767565b91509150816106be576001600160a01b0385166000908152602081905260409020546106c0565b805b95945050505050565b61066d338261185d565b60006106de856108b7565b8411156107415760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201526a30bc233630b9b42637b0b760a91b6064820152608401610631565b600061074d8686610d9c565b905061075987866118d6565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906107b19033908b908b9088908c908c9060040161270c565b6020604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190612768565b1461084d5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610631565b6000610863883061085e858a6126f9565b611316565b81158061087757506001600160a01b038116155b156108945761088f8861088a84896126f9565b61175d565b6108a9565b61089e888761175d565b6108a988828461138a565b506001979650505050505050565b60006001600160a01b03821630146108d0576000610589565b60025461058990600019612781565b6001600160a01b0381166000908152600d6020526040812054610589906110fe565b6109096118e0565b610913600061193a565b565b610920823383611316565b61092a828261175d565b5050565b6001600160a01b0381166000908152600a6020526040812054610589565b600043821061099d5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610631565b610589600e83611666565b6060600480546104f2906126af565b6109bf6118e0565b61066d61198c565b60008060006109d7846006611767565b91509150816109e8576002546109ea565b805b949350505050565b6001600160a01b0381166000908152600d60205260408120548015610a66576001600160a01b0383166000908152600d60205260409020610a34600183612781565b81548110610a4457610a44612794565b60009182526020909120015464010000000090046001600160e01b0316610a69565b60005b6001600160e01b03169392505050565b60003381610a878286610dfd565b905083811015610ae75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610631565b6105a882868684036111f2565b60003361058381858561138a565b83421115610b525760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610631565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610bcc90610bc49060a001604051602081830303815290604052805190602001206119e6565b858585611a34565b9050610bd781611a5c565b8614610c255760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610631565b610c2f818861185d565b50505050505050565b83421115610c885760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610631565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610cb78c611a5c565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610d12826119e6565b90506000610d2282878787611a34565b9050896001600160a01b0316816001600160a01b031614610d855760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610631565b610d908a8a8a6111f2565b50505050505050505050565b60006001600160a01b0383163014610df65760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610631565b600061065c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b0383166000908152600d60205260409020805463ffffffff8416908110610e6c57610e6c612794565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b610eb46118e0565b6001600160a01b038116610f195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610631565b61066d8161193a565b610f2c8282610fb2565b6002546001600160e01b031015610f9e5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610631565b610fac600e61108583611a84565b50505050565b6001600160a01b0382166110085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610631565b61101460008383611bd8565b806002600082825461102691906126f9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361092a60008383611be3565b600061065c82846126f9565b60006001600160e01b038211156110fa5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610631565b5090565b600063ffffffff8211156110fa5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610631565b6001600160a01b0383166111875761117a82611bee565b611182611c20565b505050565b6001600160a01b03821661119e5761117a83611bee565b6111a783611bee565b61118282611bee565b6001600160a01b038381166000908152600c602052604080822054858416835291205461118292918216911683611c2e565b600061065c8284612781565b5490565b6001600160a01b0383166112545760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610631565b6001600160a01b0382166112b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610631565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006113228484610dfd565b90506000198114610fac578181101561137d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610631565b610fac84848484036111f2565b6001600160a01b0383166113ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610631565b6001600160a01b0382166114505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610631565b61145b838383611bd8565b6001600160a01b038316600090815260208190526040902054818110156114d35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610631565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610fac848484611be3565b6000306001600160a01b037f000000000000000000000000ba5db223543a20972e7417b91323475b228dceb31614801561159857507f000000000000000000000000000000000000000000000000000000000000000146145b156115c257507f332d16aa9754d65d369b752a65964ab6884ee436abc2620abd4f36fa51a64d6190565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f49631d422b96e9c1cd699e5f82de67a4e6a81487989008edf0ede8dbeebfc7f9828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090818160058111156116c057600061168184611d6b565b61168b9085612781565b600088815260209020909150869082015463ffffffff1611156116b0578091506116be565b6116bb8160016126f9565b92505b505b8082101561170d5760006116d48383611e53565b600088815260209020909150869082015463ffffffff1611156116f957809150611707565b6117048160016126f9565b92505b506116c0565b80156117475761173086611722600184612781565b600091825260209091200190565b5464010000000090046001600160e01b031661174a565b60005b6001600160e01b03169695505050505050565b61092a8282611e6e565b600080600084116117b35760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610631565b6117bb611e86565b84111561180a5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610631565b60006118168486611e91565b8454909150810361182e576000809250925050611856565b600184600101828154811061184557611845612794565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600c60208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610fac828483611c2e565b61092a8282610f22565b6009546001600160a01b031633146109135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610631565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061199c600880546001019055565b60006119a6611e86565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516119d991815260200190565b60405180910390a1919050565b60006105896119f361153f565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611a4587878787611f30565b91509150611a5281611ff4565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b82546000908190818115611ad157611aa187611722600185612781565b60408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152611ae6565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350611b0684868863ffffffff16565b9250600082118015611b1e5750805163ffffffff1643145b15611b6357611b2c83611091565b611b3b88611722600186612781565b80546001600160e01b03929092166401000000000263ffffffff909216919091179055611bce565b866040518060400160405280611b78436110fe565b63ffffffff168152602001611b8c86611091565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b611182838383611163565b6111828383836111b0565b6001600160a01b0381166000908152600560209081526040808320918390529091205461066d919061213e565b61213e565b6109136006611c1b60025490565b816001600160a01b0316836001600160a01b031614158015611c505750600081115b15611182576001600160a01b03831615611cde576001600160a01b0383166000908152600d602052604081208190611c8b906111e285611a84565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611cd3929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611182576001600160a01b0382166000908152600d602052604081208190611d149061108585611a84565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611d5c929190918252602082015260400190565b60405180910390a25050505050565b600081600003611d7d57506000919050565b60006001611d8a84612188565b901c6001901b90506001818481611da357611da36127aa565b048201901c90506001818481611dbb57611dbb6127aa565b048201901c90506001818481611dd357611dd36127aa565b048201901c90506001818481611deb57611deb6127aa565b048201901c90506001818481611e0357611e036127aa565b048201901c90506001818481611e1b57611e1b6127aa565b048201901c90506001818481611e3357611e336127aa565b048201901c905061065c81828581611e4d57611e4d6127aa565b0461221c565b6000611e6260028484186127c0565b61065c908484166126f9565b611e788282612232565b610fac600e6111e283611a84565b60006105bd60085490565b81546000908103611ea457506000610589565b82546000905b80821015611ef1576000611ebe8383611e53565b60008781526020902090915085908201541115611edd57809150611eeb565b611ee88160016126f9565b92505b50611eaa565b600082118015611f0f575083611f0c86611722600186612781565b54145b15611f2857611f1f600183612781565b92505050610589565b509050610589565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f675750600090506003611feb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611fbb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fe457600060019250925050611feb565b9150600090505b94509492505050565b6000816004811115612008576120086127e2565b036120105750565b6001816004811115612024576120246127e2565b036120715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610631565b6002816004811115612085576120856127e2565b036120d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610631565b60038160048111156120e6576120e66127e2565b0361066d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610631565b6000612148611e86565b90508061215484612377565b1015611182578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b600080608083901c1561219d57608092831c92015b604083901c156121af57604092831c92015b602083901c156121c157602092831c92015b601083901c156121d357601092831c92015b600883901c156121e557600892831c92015b600483901c156121f757600492831c92015b600283901c1561220957600292831c92015b600183901c156105895760010192915050565b600081831061222b578161065c565b5090919050565b6001600160a01b0382166122925760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610631565b61229e82600083611bd8565b6001600160a01b038216600090815260208190526040902054818110156123125760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610631565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361118283600084611be3565b8054600090810361238a57506000919050565b8154829061239a90600190612781565b815481106123aa576123aa612794565b90600052602060002001549050919050565b919050565b600060208083528351808285015260005b818110156123ee578581018301518582016040015282016123d2565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461066d57600080fd5b6000806040838503121561243757600080fd5b82356124428161240f565b946020939093013593505050565b60008060006060848603121561246557600080fd5b83356124708161240f565b925060208401356124808161240f565b929592945050506040919091013590565b6000602082840312156124a357600080fd5b5035919050565b6000602082840312156124bc57600080fd5b813561065c8161240f565b6000806000806000608086880312156124df57600080fd5b85356124ea8161240f565b945060208601356124fa8161240f565b935060408601359250606086013567ffffffffffffffff8082111561251e57600080fd5b818801915088601f83011261253257600080fd5b81358181111561254157600080fd5b89602082850101111561255357600080fd5b9699959850939650602001949392505050565b803560ff811681146123bc57600080fd5b60008060008060008060c0878903121561259057600080fd5b863561259b8161240f565b955060208701359450604087013593506125b760608801612566565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156125ec57600080fd5b87356125f78161240f565b965060208801356126078161240f565b9550604088013594506060880135935061262360808901612566565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561265257600080fd5b823561265d8161240f565b9150602083013561266d8161240f565b809150509250929050565b6000806040838503121561268b57600080fd5b82356126968161240f565b9150602083013563ffffffff8116811461266d57600080fd5b600181811c908216806126c357607f821691505b602082108103611a7e57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610589576105896126e3565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b60006020828403121561277a57600080fd5b5051919050565b81810381811115610589576105896126e3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6000826127dd57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220cd59b9b5175307a13af680b3593a761d9274d51fbb5d5bc6e3371c2b6e915a7464736f6c63430008110033

Deployed Bytecode Sourcemap

128602:1164:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88980:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;91331:201;;;;;;:::i;:::-;;:::i;:::-;;;1188:14:1;;1181:22;1163:41;;1151:2;1136:18;91331:201:0;1023:187:1;90100:108:0;90188:12;;90100:108;;;1361:25:1;;;1349:2;1334:18;90100:108:0;1215:177:1;92112:295:0;;;;;;:::i;:::-;;:::i;89942:93::-;;;90025:2;2000:36:1;;1988:2;1973:18;89942:93:0;1858:184:1;107807:115:0;;;:::i;92816:238::-;;;;;;:::i;:::-;;:::i;111015:268::-;;;;;;:::i;:::-;;:::i;127958:91::-;;;;;;:::i;:::-;;:::i;:::-;;123474:266;;;;;;:::i;:::-;;:::i;110389:128::-;;;;;;:::i;:::-;-1:-1:-1;;;;;110490:19:0;;;110463:7;110490:19;;;:10;:19;;;;;;;;110389:128;;;;-1:-1:-1;;;;;2830:32:1;;;2812:51;;2800:2;2785:18;110389:128:0;2666:203:1;113901:114:0;;;;;;:::i;:::-;;:::i;104016:959::-;;;;;;:::i;:::-;;:::i;101102:178::-;;;;;;:::i;:::-;;:::i;110145:151::-;;;;;;:::i;:::-;;:::i;:::-;;;4017:10:1;4005:23;;;3987:42;;3975:2;3960:18;110145:151:0;3843:192:1;90271:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;90372:18:0;90345:7;90372:18;;;;;;;;;;;;90271:127;82387:103;;;:::i;128368:164::-;;;;;;:::i;:::-;;:::i;107549:128::-;;;;;;:::i;:::-;;:::i;81739:87::-;81812:6;;-1:-1:-1;;;;;81812:6:0;81739:87;;111572:259;;;;;;:::i;:::-;;:::i;89199:104::-;;;:::i;128903:67::-;;;:::i;123844:234::-;;;;;;:::i;:::-;;:::i;110601:212::-;;;;;;:::i;:::-;;:::i;93557:436::-;;;;;;:::i;:::-;;:::i;90604:193::-;;;;;;:::i;:::-;;:::i;114097:591::-;;;;;;:::i;:::-;;:::i;106838:645::-;;;;;;:::i;:::-;;:::i;101656:219::-;;;;;;:::i;:::-;;:::i;90860:151::-;;;;;;:::i;:::-;;:::i;109915:150::-;;;;;;:::i;:::-;;:::i;:::-;;;;6578:13:1;;6593:10;6574:30;6556:49;;6665:4;6653:17;;;6647:24;-1:-1:-1;;;;;6643:50:1;6621:20;;;6614:80;;;;6529:18;109915:150:0;6354:346:1;82645:201:0;;;;;;:::i;:::-;;:::i;88980:100::-;89034:13;89067:5;89060:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88980:100;:::o;91331:201::-;91414:4;80364:10;91470:32;80364:10;91486:7;91495:6;91470:8;:32::i;:::-;91520:4;91513:11;;;91331:201;;;;;:::o;92112:295::-;92243:4;80364:10;92301:38;92317:4;80364:10;92332:6;92301:15;:38::i;:::-;92350:27;92360:4;92366:2;92370:6;92350:9;:27::i;:::-;-1:-1:-1;92395:4:0;;92112:295;-1:-1:-1;;;;92112:295:0:o;107807:115::-;107867:7;107894:20;:18;:20::i;:::-;107887:27;;107807:115;:::o;92816:238::-;92904:4;80364:10;92960:64;80364:10;92976:7;93013:10;92985:25;80364:10;92976:7;92985:9;:25::i;:::-;:38;;;;:::i;:::-;92960:8;:64::i;111015:268::-;111113:7;111155:12;111141:11;:26;111133:70;;;;-1:-1:-1;;;111133:70:0;;7554:2:1;111133:70:0;;;7536:21:1;7593:2;7573:18;;;7566:30;7632:33;7612:18;;;7605:61;7683:18;;111133:70:0;;;;;;;;;-1:-1:-1;;;;;111240:21:0;;;;;;:12;:21;;;;;111221:54;;111263:11;111221:18;:54::i;:::-;111214:61;111015:268;-1:-1:-1;;;111015:268:0:o;127958:91::-;128014:27;80364:10;128034:6;128014:5;:27::i;:::-;127958:91;:::o;123474:266::-;-1:-1:-1;;;;;123638:33:0;;123561:7;123638:33;;;:24;:33;;;;;123561:7;;;;123617:55;;123626:10;;123617:8;:55::i;:::-;123581:91;;;;123692:11;:40;;-1:-1:-1;;;;;90372:18:0;;90345:7;90372:18;;;;;;;;;;;123692:40;;;123706:5;123692:40;123685:47;123474:266;-1:-1:-1;;;;;123474:266:0:o;113901:114::-;113973:34;80364:10;113997:9;113973;:34::i;104016:959::-;104195:4;104230:19;104243:5;104230:12;:19::i;:::-;104220:6;:29;;104212:85;;;;-1:-1:-1;;;104212:85:0;;7914:2:1;104212:85:0;;;7896:21:1;7953:2;7933:18;;;7926:30;7992:34;7972:18;;;7965:62;-1:-1:-1;;;8043:18:1;;;8036:41;8094:19;;104212:85:0;7712:407:1;104212:85:0;104308:11;104322:23;104331:5;104338:6;104322:8;:23::i;:::-;104308:37;;104356:32;104370:8;104381:6;104356:5;:32::i;:::-;104421:58;;-1:-1:-1;;;104421:58:0;;100839:45;;-1:-1:-1;;;;;104421:20:0;;;;;:58;;104442:10;;104454:5;;104461:6;;104469:3;;104474:4;;;;104421:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:75;104399:161;;;;-1:-1:-1;;;104399:161:0;;9254:2:1;104399:161:0;;;9236:21:1;9293:2;9273:18;;;9266:30;9332:34;9312:18;;;9305:62;-1:-1:-1;;;9383:18:1;;;9376:34;9427:19;;104399:161:0;9052:400:1;104399:161:0;104571:24;104628:63;104652:8;104671:4;104678:12;104687:3;104678:6;:12;:::i;:::-;104628:15;:63::i;:::-;104706:8;;;:42;;-1:-1:-1;;;;;;104718:30:0;;;104706:42;104702:244;;;104765:38;104779:8;104790:12;104799:3;104790:6;:12;:::i;:::-;104765:5;:38::i;:::-;104702:244;;;104836:32;104850:8;104861:6;104836:5;:32::i;:::-;104883:51;104901:8;104912:16;104930:3;104883:9;:51::i;:::-;-1:-1:-1;104963:4:0;;104016:959;-1:-1:-1;;;;;;;104016:959:0:o;101102:178::-;101177:7;-1:-1:-1;;;;;101204:22:0;;101221:4;101204:22;:68;;101271:1;101204:68;;;90188:12;;101229:39;;-1:-1:-1;;101229:39:0;:::i;110145:151::-;-1:-1:-1;;;;;110259:21:0;;110215:6;110259:21;;;:12;:21;;;;;:28;110241:47;;:17;:47::i;82387:103::-;81625:13;:11;:13::i;:::-;82452:30:::1;82479:1;82452:18;:30::i;:::-;82387:103::o:0;128368:164::-;128445:46;128461:7;80364:10;128484:6;128445:15;:46::i;:::-;128502:22;128508:7;128517:6;128502:5;:22::i;:::-;128368:164;;:::o;107549:128::-;-1:-1:-1;;;;;107645:14:0;;107618:7;107645:14;;;:7;:14;;;;;44358;107645:24;44266:114;111572:259;111659:7;111701:12;111687:11;:26;111679:70;;;;-1:-1:-1;;;111679:70:0;;7554:2:1;111679:70:0;;;7536:21:1;7593:2;7573:18;;;7566:30;7632:33;7612:18;;;7605:61;7683:18;;111679:70:0;7352:355:1;111679:70:0;111767:56;111786:23;111811:11;111767:18;:56::i;89199:104::-;89255:13;89288:7;89281:14;;;;;:::i;128903:67::-;81625:13;:11;:13::i;:::-;128951:11:::1;:9;:11::i;123844:234::-:0;123916:7;123937:16;123955:13;123972:43;123981:10;123993:21;123972:8;:43::i;:::-;123936:79;;;;124035:11;:35;;90188:12;;124035:35;;;124049:5;124035:35;124028:42;123844:234;-1:-1:-1;;;;123844:234:0:o;110601:212::-;-1:-1:-1;;;;;110708:21:0;;110674:7;110708:21;;;:12;:21;;;;;:28;110754:8;;:51;;-1:-1:-1;;;;;110769:21:0;;;;;;:12;:21;;;;;110791:7;110797:1;110791:3;:7;:::i;:::-;110769:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;110769:36:0;110754:51;;;110765:1;110754:51;-1:-1:-1;;;;;110747:58:0;;110601:212;-1:-1:-1;;;110601:212:0:o;93557:436::-;93650:4;80364:10;93650:4;93733:25;80364:10;93750:7;93733:9;:25::i;:::-;93706:52;;93797:15;93777:16;:35;;93769:85;;;;-1:-1:-1;;;93769:85:0;;9924:2:1;93769:85:0;;;9906:21:1;9963:2;9943:18;;;9936:30;10002:34;9982:18;;;9975:62;-1:-1:-1;;;10053:18:1;;;10046:35;10098:19;;93769:85:0;9722:401:1;93769:85:0;93890:60;93899:5;93906:7;93934:15;93915:16;:34;93890:8;:60::i;90604:193::-;90683:4;80364:10;90739:28;80364:10;90756:2;90760:6;90739:9;:28::i;114097:591::-;114324:6;114305:15;:25;;114297:67;;;;-1:-1:-1;;;114297:67:0;;10330:2:1;114297:67:0;;;10312:21:1;10369:2;10349:18;;;10342:30;10408:31;10388:18;;;10381:59;10457:18;;114297:67:0;10128:353:1;114297:67:0;114447:58;;;109595:71;114447:58;;;10717:25:1;-1:-1:-1;;;;;10778:32:1;;10758:18;;;10751:60;;;;10827:18;;;10820:34;;;10870:18;;;10863:34;;;114375:14:0;;114392:174;;114420:87;;10689:19:1;;114447:58:0;;;;;;;;;;;;114437:69;;;;;;114420:16;:87::i;:::-;114522:1;114538;114554;114392:13;:174::i;:::-;114375:191;;114594:17;114604:6;114594:9;:17::i;:::-;114585:5;:26;114577:64;;;;-1:-1:-1;;;114577:64:0;;11110:2:1;114577:64:0;;;11092:21:1;11149:2;11129:18;;;11122:30;11188:27;11168:18;;;11161:55;11233:18;;114577:64:0;10908:349:1;114577:64:0;114652:28;114662:6;114670:9;114652;:28::i;:::-;114286:402;114097:591;;;;;;:::o;106838:645::-;107082:8;107063:15;:27;;107055:69;;;;-1:-1:-1;;;107055:69:0;;11464:2:1;107055:69:0;;;11446:21:1;11503:2;11483:18;;;11476:30;11542:31;11522:18;;;11515:59;11591:18;;107055:69:0;11262:353:1;107055:69:0;107137:18;106013:95;107197:5;107204:7;107213:5;107220:16;107230:5;107220:9;:16::i;:::-;107168:79;;;;;;11907:25:1;;;;-1:-1:-1;;;;;12006:15:1;;;11986:18;;;11979:43;12058:15;;;;12038:18;;;12031:43;12090:18;;;12083:34;12133:19;;;12126:35;12177:19;;;12170:35;;;11879:19;;107168:79:0;;;;;;;;;;;;107158:90;;;;;;107137:111;;107261:12;107276:28;107293:10;107276:16;:28::i;:::-;107261:43;;107317:14;107334:28;107348:4;107354:1;107357;107360;107334:13;:28::i;:::-;107317:45;;107391:5;-1:-1:-1;;;;;107381:15:0;:6;-1:-1:-1;;;;;107381:15:0;;107373:58;;;;-1:-1:-1;;;107373:58:0;;12418:2:1;107373:58:0;;;12400:21:1;12457:2;12437:18;;;12430:30;12496:32;12476:18;;;12469:60;12546:18;;107373:58:0;12216:354:1;107373:58:0;107444:31;107453:5;107460:7;107469:5;107444:8;:31::i;:::-;107044:439;;;106838:645;;;;;;;:::o;101656:219::-;101743:7;-1:-1:-1;;;;;101771:22:0;;101788:4;101771:22;101763:62;;;;-1:-1:-1;;;101763:62:0;;12777:2:1;101763:62:0;;;12759:21:1;12816:2;12796:18;;;12789:30;12855:29;12835:18;;;12828:57;12902:18;;101763:62:0;12575:351:1;101763:62:0;102355:7;101843:24;102274:234;90860:151;-1:-1:-1;;;;;90976:18:0;;;90949:7;90976:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;90860:151::o;109915:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;110031:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;110024:33;;;;;;;;;110031:26;;110024:33;;;;;;;;;-1:-1:-1;;;;;110024:33:0;;;;;;;;;109915:150;-1:-1:-1;;;109915:150:0:o;82645:201::-;81625:13;:11;:13::i;:::-;-1:-1:-1;;;;;82734:22:0;::::1;82726:73;;;::::0;-1:-1:-1;;;82726:73:0;;13133:2:1;82726:73:0::1;::::0;::::1;13115:21:1::0;13172:2;13152:18;;;13145:30;13211:34;13191:18;;;13184:62;-1:-1:-1;;;13262:18:1;;;13255:36;13308:19;;82726:73:0::1;12931:402:1::0;82726:73:0::1;82810:28;82829:8;82810:18;:28::i;114994:290::-:0;115079:28;115091:7;115100:6;115079:11;:28::i;:::-;90188:12;;-1:-1:-1;;;;;;115126:29:0;115118:90;;;;-1:-1:-1;;;115118:90:0;;13540:2:1;115118:90:0;;;13522:21:1;13579:2;13559:18;;;13552:30;13618:34;13598:18;;;13591:62;-1:-1:-1;;;13669:18:1;;;13662:46;13725:19;;115118:90:0;13338:412:1;115118:90:0;115221:55;115238:23;115263:4;115269:6;115221:16;:55::i;:::-;;;114994:290;;:::o;95590:548::-;-1:-1:-1;;;;;95674:21:0;;95666:65;;;;-1:-1:-1;;;95666:65:0;;13957:2:1;95666:65:0;;;13939:21:1;13996:2;13976:18;;;13969:30;14035:33;14015:18;;;14008:61;14086:18;;95666:65:0;13755:355:1;95666:65:0;95744:49;95773:1;95777:7;95786:6;95744:20;:49::i;:::-;95822:6;95806:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;95977:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;96032:37;1361:25:1;;;96032:37:0;;1334:18:1;96032:37:0;;;;;;;96082:48;96110:1;96114:7;96123:6;96082:19;:48::i;117947:98::-;118005:7;118032:5;118036:1;118032;:5;:::i;5553:195::-;5610:7;-1:-1:-1;;;;;5638:26:0;;;5630:78;;;;-1:-1:-1;;;5630:78:0;;14317:2:1;5630:78:0;;;14299:21:1;14356:2;14336:18;;;14329:30;14395:34;14375:18;;;14368:62;-1:-1:-1;;;14446:18:1;;;14439:37;14493:19;;5630:78:0;14115:403:1;5630:78:0;-1:-1:-1;5734:5:0;5553:195::o;18389:190::-;18445:6;18481:16;18472:25;;;18464:76;;;;-1:-1:-1;;;18464:76:0;;14725:2:1;18464:76:0;;;14707:21:1;14764:2;14744:18;;;14737:30;14803:34;14783:18;;;14776:62;-1:-1:-1;;;14854:18:1;;;14847:36;14900:19;;18464:76:0;14523:402:1;124295:622:0;-1:-1:-1;;;;;124499:18:0;;124495:415;;124555:26;124578:2;124555:22;:26::i;:::-;124596:28;:26;:28::i;:::-;124295:622;;;:::o;124495:415::-;-1:-1:-1;;;;;124646:16:0;;124642:268;;124700:28;124723:4;124700:22;:28::i;124642:268::-;124829:28;124852:4;124829:22;:28::i;:::-;124872:26;124895:2;124872:22;:26::i;115719:262::-;-1:-1:-1;;;;;110490:19:0;;;110463:7;110490:19;;;:10;:19;;;;;;;;;;;;;;;115917:56;;110490:19;;;;;115966:6;115917:16;:56::i;118053:103::-;118116:7;118143:5;118147:1;118143;:5;:::i;44266:114::-;44358:14;;44266:114::o;97584:380::-;-1:-1:-1;;;;;97720:19:0;;97712:68;;;;-1:-1:-1;;;97712:68:0;;15132:2:1;97712:68:0;;;15114:21:1;15171:2;15151:18;;;15144:30;15210:34;15190:18;;;15183:62;-1:-1:-1;;;15261:18:1;;;15254:34;15305:19;;97712:68:0;14930:400:1;97712:68:0;-1:-1:-1;;;;;97799:21:0;;97791:68;;;;-1:-1:-1;;;97791:68:0;;15537:2:1;97791:68:0;;;15519:21:1;15576:2;15556:18;;;15549:30;15615:34;15595:18;;;15588:62;-1:-1:-1;;;15666:18:1;;;15659:32;15708:19;;97791:68:0;15335:398:1;97791:68:0;-1:-1:-1;;;;;97872:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;97924:32;;1361:25:1;;;97924:32:0;;1334:18:1;97924:32:0;;;;;;;97584:380;;;:::o;98255:453::-;98390:24;98417:25;98427:5;98434:7;98417:9;:25::i;:::-;98390:52;;-1:-1:-1;;98457:16:0;:37;98453:248;;98539:6;98519:16;:26;;98511:68;;;;-1:-1:-1;;;98511:68:0;;15940:2:1;98511:68:0;;;15922:21:1;15979:2;15959:18;;;15952:30;16018:31;15998:18;;;15991:59;16067:18;;98511:68:0;15738:353:1;98511:68:0;98623:51;98632:5;98639:7;98667:6;98648:16;:25;98623:8;:51::i;94463:840::-;-1:-1:-1;;;;;94594:18:0;;94586:68;;;;-1:-1:-1;;;94586:68:0;;16298:2:1;94586:68:0;;;16280:21:1;16337:2;16317:18;;;16310:30;16376:34;16356:18;;;16349:62;-1:-1:-1;;;16427:18:1;;;16420:35;16472:19;;94586:68:0;16096:401:1;94586:68:0;-1:-1:-1;;;;;94673:16:0;;94665:64;;;;-1:-1:-1;;;94665:64:0;;16704:2:1;94665:64:0;;;16686:21:1;16743:2;16723:18;;;16716:30;16782:34;16762:18;;;16755:62;-1:-1:-1;;;16833:18:1;;;16826:33;16876:19;;94665:64:0;16502:399:1;94665:64:0;94742:38;94763:4;94769:2;94773:6;94742:20;:38::i;:::-;-1:-1:-1;;;;;94815:15:0;;94793:19;94815:15;;;;;;;;;;;94849:21;;;;94841:72;;;;-1:-1:-1;;;94841:72:0;;17108:2:1;94841:72:0;;;17090:21:1;17147:2;17127:18;;;17120:30;17186:34;17166:18;;;17159:62;-1:-1:-1;;;17237:18:1;;;17230:36;17283:19;;94841:72:0;16906:402:1;94841:72:0;-1:-1:-1;;;;;94949:15:0;;;:9;:15;;;;;;;;;;;94967:20;;;94949:38;;95167:13;;;;;;;;;;:23;;;;;;95219:26;;1361:25:1;;;95167:13:0;;95219:26;;1334:18:1;95219:26:0;;;;;;;95258:37;95278:4;95284:2;95288:6;95258:19;:37::i;72076:314::-;72129:7;72161:4;-1:-1:-1;;;;;72170:12:0;72153:29;;:66;;;;;72203:16;72186:13;:33;72153:66;72149:234;;;-1:-1:-1;72243:24:0;;72076:314::o;72149:234::-;-1:-1:-1;72579:73:0;;;72329:10;72579:73;;;;18895:25:1;;;;72341:12:0;18936:18:1;;;18929:34;72355:15:0;18979:18:1;;;18972:34;72623:13:0;19022:18:1;;;19015:34;72646:4:0;19065:19:1;;;;19058:61;;;;72579:73:0;;;;;;;;;;18867:19:1;;;;72579:73:0;;;72569:84;;;;;;107807:115::o;111920:1895::-;113137:12;;112019:7;;;113137:12;113235:1;113226:10;;113222:251;;;113253:11;113276:17;113286:6;113276:9;:17::i;:::-;113267:26;;:6;:26;:::i;:::-;118250:25;118312:21;;;118379:4;118366:18;;113253:40;;-1:-1:-1;113350:11:0;;118362:28;;113312:35;;;:49;113308:154;;;113389:3;113382:10;;113308:154;;;113439:7;:3;113445:1;113439:7;:::i;:::-;113433:13;;113308:154;113238:235;113222:251;113498:4;113492:3;:10;113485:251;;;113519:11;113533:23;113546:3;113551:4;113533:12;:23::i;:::-;118250:25;118312:21;;;118379:4;118366:18;;113519:37;;-1:-1:-1;113613:11:0;;118362:28;;113575:35;;;:49;113571:154;;;113652:3;113645:10;;113571:154;;;113702:7;:3;113708:1;113702:7;:::i;:::-;113696:13;;113571:154;113504:232;113485:251;;;113755:9;;:52;;113771:30;113785:5;113792:8;113799:1;113792:4;:8;:::i;:::-;118250:25;118312:21;;;118379:4;118366:18;;;118362:28;;118164:244;113771:30;:36;;;;-1:-1:-1;;;;;113771:36:0;113755:52;;;113767:1;113755:52;-1:-1:-1;;;;;113748:59:0;;111920:1895;-1:-1:-1;;;;;;111920:1895:0:o;129608:155::-;129727:28;129739:7;129748:6;129727:11;:28::i;124925:1619::-;125014:4;125020:7;125061:1;125048:10;:14;125040:49;;;;-1:-1:-1;;;125040:49:0;;17515:2:1;125040:49:0;;;17497:21:1;17554:2;17534:18;;;17527:30;-1:-1:-1;;;17573:18:1;;;17566:52;17635:18;;125040:49:0;17313:346:1;125040:49:0;125122:23;:21;:23::i;:::-;125108:10;:37;;125100:79;;;;-1:-1:-1;;;125100:79:0;;17866:2:1;125100:79:0;;;17848:21:1;17905:2;17885:18;;;17878:30;17944:31;17924:18;;;17917:59;17993:18;;125100:79:0;17664:353:1;125100:79:0;126318:13;126334:40;:9;126363:10;126334:28;:40::i;:::-;126400:20;;126318:56;;-1:-1:-1;126391:29:0;;126387:150;;126445:5;126452:1;126437:17;;;;;;;126387:150;126495:4;126501:9;:16;;126518:5;126501:23;;;;;;;;:::i;:::-;;;;;;;;;126487:38;;;;;124925:1619;;;;;;:::o;116159:388::-;-1:-1:-1;;;;;110490:19:0;;;116244:23;110490:19;;;:10;:19;;;;;;;;;;90372:18;;;;;;;116359:21;;;;:33;;;-1:-1:-1;;;;;;116359:33:0;;;;;;;116410:54;;110490:19;;;;;90372:18;;116359:33;;110490:19;;;116410:54;;116244:23;116410:54;116477:62;116494:15;116511:9;116522:16;116477;:62::i;129455:145::-;129569:23;129581:2;129585:6;129569:11;:23::i;81904:132::-;81812:6;;-1:-1:-1;;;;;81812:6:0;80364:10;81968:23;81960:68;;;;-1:-1:-1;;;81960:68:0;;18224:2:1;81960:68:0;;;18206:21:1;;;18243:18;;;18236:30;18302:34;18282:18;;;18275:62;18354:18;;81960:68:0;18022:356:1;83006:191:0;83099:6;;;-1:-1:-1;;;;;83116:17:0;;;-1:-1:-1;;;;;;83116:17:0;;;;;;;83149:40;;83099:6;;;83116:17;83099:6;;83149:40;;83080:16;;83149:40;83069:128;83006:191;:::o;122946:223::-;122993:7;123013:30;:18;44477:19;;44495:1;44477:19;;;44388:127;123013:30;123056:17;123076:23;:21;:23::i;:::-;123056:43;;123115:19;123124:9;123115:19;;;;1361:25:1;;1349:2;1334:18;;1215:177;123115:19:0;;;;;;;;123152:9;122946:223;-1:-1:-1;122946:223:0:o;73303:167::-;73380:7;73407:55;73429:20;:18;:20::i;:::-;73451:10;68764:57;;-1:-1:-1;;;68764:57:0;;;19742:27:1;19785:11;;;19778:27;;;19821:12;;;19814:28;;;68727:7:0;;19858:12:1;;68764:57:0;;;;;;;;;;;;68754:68;;;;;;68747:75;;68634:196;;;;;66943:279;67071:7;67092:17;67111:18;67133:25;67144:4;67150:1;67153;67156;67133:10;:25::i;:::-;67091:67;;;;67169:18;67181:5;67169:11;:18::i;:::-;-1:-1:-1;67205:9:0;66943:279;-1:-1:-1;;;;;66943:279:0:o;108060:207::-;-1:-1:-1;;;;;108181:14:0;;108120:15;108181:14;;;:7;:14;;;;;44358;;44495:1;44477:19;;;;44358:14;108242:17;108137:130;108060:207;;;:::o;117206:733::-;117443:12;;117380:17;;;;;117496:8;;:59;;117526:29;117540:5;117547:7;117553:1;117547:3;:7;:::i;117526:29::-;117496:59;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;117496:59:0;;;;;;;;117507:16;;;;;;;;;-1:-1:-1;117507:16:0;;;;;;;117496:59;117468:87;;117580:7;:13;;;-1:-1:-1;;;;;117568:25:0;;;117616:20;117619:9;117630:5;117616:2;:20;;:::i;:::-;117604:32;;117659:1;117653:3;:7;:44;;;;-1:-1:-1;117664:17:0;;:33;;117685:12;117664:33;117653:44;117649:283;;;117752:29;117771:9;117752:18;:29::i;:::-;117714;117728:5;117735:7;117741:1;117735:3;:7;:::i;117714:29::-;:67;;-1:-1:-1;;;;;117714:67:0;;;;;;;;;;;;;;;;117649:283;;;117814:5;117825:94;;;;;;;;117848:31;117866:12;117848:17;:31::i;:::-;117825:94;;;;;;117888:29;117907:9;117888:18;:29::i;:::-;-1:-1:-1;;;;;117825:94:0;;;;;;117814:106;;;;;;;-1:-1:-1;117814:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117649:283;117418:521;;117206:733;;;;;;:::o;129048:198::-;129194:44;129221:4;129227:2;129231:6;129194:26;:44::i;129254:193::-;129396:43;129422:4;129428:2;129432:6;129396:25;:43::i;126552:146::-;-1:-1:-1;;;;;126636:33:0;;;;;;:24;:33;;;;;;;;90372:18;;;;;;;;126620:70;;126636:33;126620:15;:70::i;126671:18::-;126620:15;:70::i;126706:118::-;126763:53;126779:21;126802:13;90188:12;;;90100:108;116555:643;116687:3;-1:-1:-1;;;;;116680:10:0;:3;-1:-1:-1;;;;;116680:10:0;;;:24;;;;;116703:1;116694:6;:10;116680:24;116676:515;;;-1:-1:-1;;;;;116725:17:0;;;116721:224;;-1:-1:-1;;;;;116821:17:0;;116764;116821;;;:12;:17;;;;;116764;;116804:54;;116840:9;116851:6;116804:16;:54::i;:::-;116763:95;;;;116903:3;-1:-1:-1;;;;;116882:47:0;;116908:9;116919;116882:47;;;;;;18557:25:1;;;18613:2;18598:18;;18591:34;18545:2;18530:18;;18383:248;116882:47:0;;;;;;;;116744:201;;116721:224;-1:-1:-1;;;;;116965:17:0;;;116961:219;;-1:-1:-1;;;;;117061:17:0;;117004;117061;;;:12;:17;;;;;117004;;117044:49;;117080:4;117086:6;117044:16;:49::i;:::-;117003:90;;;;117138:3;-1:-1:-1;;;;;117117:47:0;;117143:9;117154;117117:47;;;;;;18557:25:1;;;18613:2;18598:18;;18591:34;18545:2;18530:18;;18383:248;117117:47:0;;;;;;;;116984:196;;116555:643;;;:::o;51327:1673::-;51375:7;51399:1;51404;51399:6;51395:47;;-1:-1:-1;51429:1:0;;51327:1673;-1:-1:-1;51327:1673:0:o;51395:47::-;52133:14;52167:1;52156:7;52161:1;52156:4;:7::i;:::-;:12;;52150:1;:19;;52133:36;;52635:1;52624:6;52620:1;:10;;;;;:::i;:::-;;52611:6;:19;52610:26;;52601:35;;52685:1;52674:6;52670:1;:10;;;;;:::i;:::-;;52661:6;:19;52660:26;;52651:35;;52735:1;52724:6;52720:1;:10;;;;;:::i;:::-;;52711:6;:19;52710:26;;52701:35;;52785:1;52774:6;52770:1;:10;;;;;:::i;:::-;;52761:6;:19;52760:26;;52751:35;;52835:1;52824:6;52820:1;:10;;;;;:::i;:::-;;52811:6;:19;52810:26;;52801:35;;52885:1;52874:6;52870:1;:10;;;;;:::i;:::-;;52861:6;:19;52860:26;;52851:35;;52935:1;52924:6;52920:1;:10;;;;;:::i;:::-;;52911:6;:19;52910:26;;52901:35;;52958:23;52962:6;52974;52970:1;:10;;;;;:::i;:::-;;52958:3;:23::i;45728:156::-;45790:7;45865:11;45875:1;45866:5;;;45865:11;:::i;:::-;45855:21;;45856:5;;;45855:21;:::i;115378:194::-;115463:28;115475:7;115484:6;115463:11;:28::i;:::-;115504:60;115521:23;115546:9;115557:6;115504:16;:60::i;123235:127::-;123299:7;123326:28;:18;44358:14;;44266:114;76981:958;77094:12;;77070:7;;77094:17;;77090:58;;-1:-1:-1;77135:1:0;77128:8;;77090:58;77201:12;;77160:11;;77226:444;77239:4;77233:3;:10;77226:444;;;77260:11;77274:23;77287:3;77292:4;77274:12;:23::i;:::-;79331:31;79466:19;;;79524:4;79511:18;;77260:37;;-1:-1:-1;77551:7:0;;79507:28;;77518:30;:40;77514:145;;;77586:3;77579:10;;77514:145;;;77636:7;:3;77642:1;77636:7;:::i;:::-;77630:13;;77514:145;77245:425;77226:444;;;77796:1;77790:3;:7;:56;;;;-1:-1:-1;77839:7:0;77801:28;77814:5;77821:7;77827:1;77821:3;:7;:::i;77801:28::-;:34;:45;77790:56;77786:146;;;77870:7;77876:1;77870:3;:7;:::i;:::-;77863:14;;;;;;77786:146;-1:-1:-1;77917:3:0;-1:-1:-1;77910:10:0;;65284:1520;65415:7;;66349:66;66336:79;;66332:163;;;-1:-1:-1;66448:1:0;;-1:-1:-1;66452:30:0;66432:51;;66332:163;66609:24;;;66592:14;66609:24;;;;;;;;;20108:25:1;;;20181:4;20169:17;;20149:18;;;20142:45;;;;20203:18;;;20196:34;;;20246:18;;;20239:34;;;66609:24:0;;20080:19:1;;66609:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66609:24:0;;-1:-1:-1;;66609:24:0;;;-1:-1:-1;;;;;;;66648:20:0;;66644:103;;66701:1;66705:29;66685:50;;;;;;;66644:103;66767:6;-1:-1:-1;66775:20:0;;-1:-1:-1;65284:1520:0;;;;;;;;:::o;60676:521::-;60754:20;60745:5;:29;;;;;;;;:::i;:::-;;60741:449;;60676:521;:::o;60741:449::-;60852:29;60843:5;:38;;;;;;;;:::i;:::-;;60839:351;;60898:34;;-1:-1:-1;;;60898:34:0;;20618:2:1;60898:34:0;;;20600:21:1;20657:2;20637:18;;;20630:30;20696:26;20676:18;;;20669:54;20740:18;;60898:34:0;20416:348:1;60839:351:0;60963:35;60954:5;:44;;;;;;;;:::i;:::-;;60950:240;;61015:41;;-1:-1:-1;;;61015:41:0;;20971:2:1;61015:41:0;;;20953:21:1;21010:2;20990:18;;;20983:30;21049:33;21029:18;;;21022:61;21100:18;;61015:41:0;20769:355:1;60950:240:0;61087:30;61078:5;:39;;;;;;;;:::i;:::-;;61074:116;;61134:44;;-1:-1:-1;;;61134:44:0;;21331:2:1;61134:44:0;;;21313:21:1;21370:2;21350:18;;;21343:30;21409:34;21389:18;;;21382:62;-1:-1:-1;;;21460:18:1;;;21453:32;21502:19;;61134:44:0;21129:398:1;126832:310:0;126927:17;126947:23;:21;:23::i;:::-;126927:43;-1:-1:-1;126927:43:0;126985:30;127001:9;126985:15;:30::i;:::-;:42;126981:154;;;127044:29;;;;;;;;-1:-1:-1;127044:29:0;;;;;;;;;;;;;;127088:16;;;:35;;;;;;;;;;;;;;;126832:310::o;53477:1019::-;53529:7;;53616:3;53607:12;;;:16;53603:102;;53654:3;53644:13;;;;53676;53603:102;53732:2;53723:11;;;:15;53719:99;;53769:2;53759:12;;;;53790;53719:99;53845:2;53836:11;;;:15;53832:99;;53882:2;53872:12;;;;53903;53832:99;53958:2;53949:11;;;:15;53945:99;;53995:2;53985:12;;;;54016;53945:99;54071:1;54062:10;;;:14;54058:96;;54107:1;54097:11;;;;54127;54058:96;54181:1;54172:10;;;:14;54168:96;;54217:1;54207:11;;;;54237;54168:96;54291:1;54282:10;;;:14;54278:96;;54327:1;54317:11;;;;54347;54278:96;54401:1;54392:10;;;:14;54388:66;;54437:1;54427:11;54482:6;53477:1019;-1:-1:-1;;53477:1019:0:o;45503:106::-;45561:7;45592:1;45588;:5;:13;;45600:1;45588:13;;;-1:-1:-1;45596:1:0;;45503:106;-1:-1:-1;45503:106:0:o;96471:675::-;-1:-1:-1;;;;;96555:21:0;;96547:67;;;;-1:-1:-1;;;96547:67:0;;21734:2:1;96547:67:0;;;21716:21:1;21773:2;21753:18;;;21746:30;21812:34;21792:18;;;21785:62;-1:-1:-1;;;21863:18:1;;;21856:31;21904:19;;96547:67:0;21532:397:1;96547:67:0;96627:49;96648:7;96665:1;96669:6;96627:20;:49::i;:::-;-1:-1:-1;;;;;96714:18:0;;96689:22;96714:18;;;;;;;;;;;96751:24;;;;96743:71;;;;-1:-1:-1;;;96743:71:0;;22136:2:1;96743:71:0;;;22118:21:1;22175:2;22155:18;;;22148:30;22214:34;22194:18;;;22187:62;-1:-1:-1;;;22265:18:1;;;22258:32;22307:19;;96743:71:0;21934:398:1;96743:71:0;-1:-1:-1;;;;;96850:18:0;;:9;:18;;;;;;;;;;;96871:23;;;96850:44;;96989:12;:22;;;;;;;97040:37;1361:25:1;;;96850:9:0;;:18;97040:37;;1334:18:1;97040:37:0;;;;;;;97090:48;97110:7;97127:1;97131:6;97090:19;:48::i;127150:212::-;127244:10;;127220:7;;127244:15;;127240:115;;-1:-1:-1;127283:1:0;;127150:212;-1:-1:-1;127150:212:0:o;127240:115::-;127328:10;;127324:3;;127328:14;;127341:1;;127328:14;:::i;:::-;127324:19;;;;;;;;:::i;:::-;;;;;;;;;127317:26;;127150:212;;;:::o;127240:115::-;127150:212;;;:::o;14:548:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:131::-;-1:-1:-1;;;;;642:31:1;;632:42;;622:70;;688:1;685;678:12;703:315;771:6;779;832:2;820:9;811:7;807:23;803:32;800:52;;;848:1;845;838:12;800:52;887:9;874:23;906:31;931:5;906:31;:::i;:::-;956:5;1008:2;993:18;;;;980:32;;-1:-1:-1;;;703:315:1:o;1397:456::-;1474:6;1482;1490;1543:2;1531:9;1522:7;1518:23;1514:32;1511:52;;;1559:1;1556;1549:12;1511:52;1598:9;1585:23;1617:31;1642:5;1617:31;:::i;:::-;1667:5;-1:-1:-1;1724:2:1;1709:18;;1696:32;1737:33;1696:32;1737:33;:::i;:::-;1397:456;;1789:7;;-1:-1:-1;;;1843:2:1;1828:18;;;;1815:32;;1397:456::o;2229:180::-;2288:6;2341:2;2329:9;2320:7;2316:23;2312:32;2309:52;;;2357:1;2354;2347:12;2309:52;-1:-1:-1;2380:23:1;;2229:180;-1:-1:-1;2229:180:1:o;2414:247::-;2473:6;2526:2;2514:9;2505:7;2501:23;2497:32;2494:52;;;2542:1;2539;2532:12;2494:52;2581:9;2568:23;2600:31;2625:5;2600:31;:::i;2874:964::-;2999:6;3007;3015;3023;3031;3084:3;3072:9;3063:7;3059:23;3055:33;3052:53;;;3101:1;3098;3091:12;3052:53;3140:9;3127:23;3159:31;3184:5;3159:31;:::i;:::-;3209:5;-1:-1:-1;3266:2:1;3251:18;;3238:32;3279:33;3238:32;3279:33;:::i;:::-;3331:7;-1:-1:-1;3385:2:1;3370:18;;3357:32;;-1:-1:-1;3440:2:1;3425:18;;3412:32;3463:18;3493:14;;;3490:34;;;3520:1;3517;3510:12;3490:34;3558:6;3547:9;3543:22;3533:32;;3603:7;3596:4;3592:2;3588:13;3584:27;3574:55;;3625:1;3622;3615:12;3574:55;3665:2;3652:16;3691:2;3683:6;3680:14;3677:34;;;3707:1;3704;3697:12;3677:34;3752:7;3747:2;3738:6;3734:2;3730:15;3726:24;3723:37;3720:57;;;3773:1;3770;3763:12;3720:57;2874:964;;;;-1:-1:-1;2874:964:1;;-1:-1:-1;3804:2:1;3796:11;;3826:6;2874:964;-1:-1:-1;;;2874:964:1:o;4040:156::-;4106:20;;4166:4;4155:16;;4145:27;;4135:55;;4186:1;4183;4176:12;4201:592;4303:6;4311;4319;4327;4335;4343;4396:3;4384:9;4375:7;4371:23;4367:33;4364:53;;;4413:1;4410;4403:12;4364:53;4452:9;4439:23;4471:31;4496:5;4471:31;:::i;:::-;4521:5;-1:-1:-1;4573:2:1;4558:18;;4545:32;;-1:-1:-1;4624:2:1;4609:18;;4596:32;;-1:-1:-1;4647:36:1;4679:2;4664:18;;4647:36;:::i;:::-;4637:46;;4730:3;4719:9;4715:19;4702:33;4692:43;;4782:3;4771:9;4767:19;4754:33;4744:43;;4201:592;;;;;;;;:::o;4798:734::-;4909:6;4917;4925;4933;4941;4949;4957;5010:3;4998:9;4989:7;4985:23;4981:33;4978:53;;;5027:1;5024;5017:12;4978:53;5066:9;5053:23;5085:31;5110:5;5085:31;:::i;:::-;5135:5;-1:-1:-1;5192:2:1;5177:18;;5164:32;5205:33;5164:32;5205:33;:::i;:::-;5257:7;-1:-1:-1;5311:2:1;5296:18;;5283:32;;-1:-1:-1;5362:2:1;5347:18;;5334:32;;-1:-1:-1;5385:37:1;5417:3;5402:19;;5385:37;:::i;:::-;5375:47;;5469:3;5458:9;5454:19;5441:33;5431:43;;5521:3;5510:9;5506:19;5493:33;5483:43;;4798:734;;;;;;;;;;:::o;5537:388::-;5605:6;5613;5666:2;5654:9;5645:7;5641:23;5637:32;5634:52;;;5682:1;5679;5672:12;5634:52;5721:9;5708:23;5740:31;5765:5;5740:31;:::i;:::-;5790:5;-1:-1:-1;5847:2:1;5832:18;;5819:32;5860:33;5819:32;5860:33;:::i;:::-;5912:7;5902:17;;;5537:388;;;;;:::o;5930:419::-;5997:6;6005;6058:2;6046:9;6037:7;6033:23;6029:32;6026:52;;;6074:1;6071;6064:12;6026:52;6113:9;6100:23;6132:31;6157:5;6132:31;:::i;:::-;6182:5;-1:-1:-1;6239:2:1;6224:18;;6211:32;6287:10;6274:24;;6262:37;;6252:65;;6313:1;6310;6303:12;6705:380;6784:1;6780:12;;;;6827;;;6848:61;;6902:4;6894:6;6890:17;6880:27;;6848:61;6955:2;6947:6;6944:14;6924:18;6921:38;6918:161;;7001:10;6996:3;6992:20;6989:1;6982:31;7036:4;7033:1;7026:15;7064:4;7061:1;7054:15;7090:127;7151:10;7146:3;7142:20;7139:1;7132:31;7182:4;7179:1;7172:15;7206:4;7203:1;7196:15;7222:125;7287:9;;;7308:10;;;7305:36;;;7321:18;;:::i;8124:734::-;-1:-1:-1;;;;;8431:15:1;;;8413:34;;8483:15;;8478:2;8463:18;;8456:43;8530:2;8515:18;;8508:34;;;8573:2;8558:18;;8551:34;;;8393:3;8616;8601:19;;8594:32;;;8642:19;;8635:35;;;8356:4;8663:6;8713;8707:3;8692:19;;8679:49;8778:1;8772:3;8763:6;8752:9;8748:22;8744:32;8737:43;8848:3;8841:2;8837:7;8832:2;8824:6;8820:15;8816:29;8805:9;8801:45;8797:55;8789:63;;8124:734;;;;;;;;;:::o;8863:184::-;8933:6;8986:2;8974:9;8965:7;8961:23;8957:32;8954:52;;;9002:1;8999;8992:12;8954:52;-1:-1:-1;9025:16:1;;8863:184;-1:-1:-1;8863:184:1:o;9457:128::-;9524:9;;;9545:11;;;9542:37;;;9559:18;;:::i;9590:127::-;9651:10;9646:3;9642:20;9639:1;9632:31;9682:4;9679:1;9672:15;9706:4;9703:1;9696:15;19130:127;19191:10;19186:3;19182:20;19179:1;19172:31;19222:4;19219:1;19212:15;19246:4;19243:1;19236:15;19262:217;19302:1;19328;19318:132;;19372:10;19367:3;19363:20;19360:1;19353:31;19407:4;19404:1;19397:15;19435:4;19432:1;19425:15;19318:132;-1:-1:-1;19464:9:1;;19262:217::o;20284:127::-;20345:10;20340:3;20336:20;20333:1;20326:31;20376:4;20373:1;20366:15;20400:4;20397:1;20390:15

Swarm Source

ipfs://cd59b9b5175307a13af680b3593a761d9274d51fbb5d5bc6e3371c2b6e915a74
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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