Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Kapiton
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-09 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/[email protected]/proxy/beacon/IBeaconUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File: @openzeppelin/[email protected]/interfaces/draft-IERC1822Upgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File: @openzeppelin/[email protected]/interfaces/IERC3156FlashBorrowerUpgradeable.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 IERC3156FlashBorrowerUpgradeable { /** * @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/IERC3156FlashLenderUpgradeable.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 IERC3156FlashLenderUpgradeable { /** * @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( IERC3156FlashBorrowerUpgradeable receiver, address token, uint256 amount, bytes calldata data ) external returns (bool); } // File: @openzeppelin/[email protected]/utils/math/SafeCastUpgradeable.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 SafeCastUpgradeable { /** * @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/IVotesUpgradeable.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 IVotesUpgradeable { /** * @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-IERC20PermitUpgradeable.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 IERC20PermitUpgradeable { /** * @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/CountersUpgradeable.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 CountersUpgradeable { 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/MathUpgradeable.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 MathUpgradeable { 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/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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 = MathUpgradeable.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, MathUpgradeable.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/ECDSAUpgradeable.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 ECDSAUpgradeable { 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", StringsUpgradeable.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/StorageSlotUpgradeable.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 StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @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/ArraysUpgradeable.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 ArraysUpgradeable { using StorageSlotUpgradeable 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 = MathUpgradeable.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 (StorageSlotUpgradeable.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 (StorageSlotUpgradeable.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 (StorageSlotUpgradeable.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/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/[email protected]/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File: @openzeppelin/[email protected]/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/utils/cryptography/EIP712Upgradeable.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._ * * @custom:storage-size 52 */ abstract contract EIP712Upgradeable is Initializable { /* solhint-disable var-name-mixedcase */ bytes32 private _HASHED_NAME; bytes32 private _HASHED_VERSION; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /* 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]. */ function __EIP712_init(string memory name, string memory version) internal onlyInitializing { __EIP712_init_unchained(name, version); } function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash()); } 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 ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712NameHash() internal virtual view returns (bytes32) { return _HASHED_NAME; } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712VersionHash() internal virtual view returns (bytes32) { return _HASHED_VERSION; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/utils/ContextUpgradeable.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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/security/PausableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/[email protected]/access/OwnableUpgradeable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/IERC20Upgradeable.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 IERC20Upgradeable { /** * @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/IERC20MetadataUpgradeable.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 IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @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/ERC20Upgradeable.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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { 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. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _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 {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[45] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20FlashMintUpgradeable.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 ERC20FlashMintUpgradeable is Initializable, ERC20Upgradeable, IERC3156FlashLenderUpgradeable { function __ERC20FlashMint_init() internal onlyInitializing { } function __ERC20FlashMint_init_unchained() internal onlyInitializing { } 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 - ERC20Upgradeable.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( IERC3156FlashBorrowerUpgradeable 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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20PermitUpgradeable.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._ * * @custom:storage-size 51 */ abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable { using CountersUpgradeable for CountersUpgradeable.Counter; mapping(address => CountersUpgradeable.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. */ function __ERC20Permit_init(string memory name) internal onlyInitializing { __EIP712_init_unchained(name, "1"); } function __ERC20Permit_init_unchained(string memory) internal onlyInitializing {} /** * @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 = ECDSAUpgradeable.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) { CountersUpgradeable.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20VotesUpgradeable.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 ERC20VotesUpgradeable is Initializable, IVotesUpgradeable, ERC20PermitUpgradeable { function __ERC20Votes_init() internal onlyInitializing { } function __ERC20Votes_init_unchained() internal onlyInitializing { } 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 SafeCastUpgradeable.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 - MathUpgradeable.sqrt(length); if (_unsafeAccess(ckpts, mid).fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } while (low < high) { uint256 mid = MathUpgradeable.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 = ECDSAUpgradeable.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 = SafeCastUpgradeable.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCastUpgradeable.toUint32(block.number), votes: SafeCastUpgradeable.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) } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20SnapshotUpgradeable.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 ERC20SnapshotUpgradeable is Initializable, ERC20Upgradeable { function __ERC20Snapshot_init() internal onlyInitializing { } function __ERC20Snapshot_init_unchained() internal onlyInitializing { } // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using ArraysUpgradeable for uint256[]; using CountersUpgradeable for CountersUpgradeable.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. CountersUpgradeable.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]; } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[46] private __gap; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20BurnableUpgradeable.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 ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable { function __ERC20Burnable_init() internal onlyInitializing { } function __ERC20Burnable_init_unchained() internal onlyInitializing { } /** * @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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: Kapiton.sol pragma solidity ^0.8.9; /// @custom:security-contact [email protected] contract Kapiton is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, OwnableUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, ERC20FlashMintUpgradeable, UUPSUpgradeable { /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize() initializer public { __ERC20_init("Kapiton", "KPT"); __ERC20Burnable_init(); __ERC20Snapshot_init(); __Ownable_init(); __Pausable_init(); __ERC20Permit_init("Kapiton"); __ERC20Votes_init(); __ERC20FlashMint_init(); __UUPSUpgradeable_init(); _mint(msg.sender, 52000000 * 10 ** decimals()); } function snapshot() public onlyOwner { _snapshot(); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override(ERC20Upgradeable, ERC20SnapshotUpgradeable) { super._beforeTokenTransfer(from, to, amount); } function _authorizeUpgrade(address newImplementation) internal onlyOwner override {} // The following functions are overrides required by Solidity. function _afterTokenTransfer(address from, address to, uint256 amount) internal override(ERC20Upgradeable, ERC20VotesUpgradeable) { super._afterTokenTransfer(from, to, amount); } function _mint(address to, uint256 amount) internal override(ERC20Upgradeable, ERC20VotesUpgradeable) { super._mint(to, amount); } function _burn(address account, uint256 amount) internal override(ERC20Upgradeable, ERC20VotesUpgradeable) { super._burn(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"beacon","type":"address"}],"name":"BeaconUpgraded","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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","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 ERC20VotesUpgradeable.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 IERC3156FlashBorrowerUpgradeable","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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e8565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000e6576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6080516139a66200012060003960008181610886015281816108cf01528181610a8f01528181610acf0152610b5e01526139a66000f3fe6080604052600436106102465760003560e01c80636fcfff45116101395780639711715a116100b6578063c3cda5201161007a578063c3cda520146106b1578063d505accf146106d1578063d9d98ce4146106f1578063dd62ed3e14610711578063f1127ed814610731578063f2fde38b1461077b57600080fd5b80639711715a1461061c578063981b24d0146106315780639ab24eb014610651578063a457c2d714610671578063a9059cbb1461069157600080fd5b80638129fc1c116100fd5780638129fc1c1461059f5780638456cb59146105b45780638da5cb5b146105c95780638e539e8c146105e757806395d89b411461060757600080fd5b80636fcfff45146104df57806370a0823114610514578063715018a61461054a57806379cc67901461055f5780637ecebe001461057f57600080fd5b806340c10f19116101c7578063587cde1e1161018b578063587cde1e146104155780635c19a95c146104675780635c975abb146104875780635cffe9de1461049f578063613255ab146104bf57600080fd5b806340c10f191461038d57806342966c68146103ad5780634ee2cd7e146103cd5780634f1ef286146103ed57806352d1902d1461040057600080fd5b80633644e5151161020e5780633644e515146103015780633659cfe61461031657806339509351146103385780633a46b1a8146103585780633f4ba83a1461037857600080fd5b806306fdde031461024b578063095ea7b31461027657806318160ddd146102a657806323b872dd146102c5578063313ce567146102e5575b600080fd5b34801561025757600080fd5b5061026061079b565b60405161026d9190613124565b60405180910390f35b34801561028257600080fd5b5061029661029136600461316c565b61082d565b604051901515815260200161026d565b3480156102b257600080fd5b506035545b60405190815260200161026d565b3480156102d157600080fd5b506102966102e0366004613198565b610847565b3480156102f157600080fd5b506040516012815260200161026d565b34801561030d57600080fd5b506102b761086d565b34801561032257600080fd5b506103366103313660046131d9565b61087c565b005b34801561034457600080fd5b5061029661035336600461316c565b610964565b34801561036457600080fd5b506102b761037336600461316c565b610986565b34801561038457600080fd5b506103366109fa565b34801561039957600080fd5b506103366103a836600461316c565b610a0c565b3480156103b957600080fd5b506103366103c83660046131f6565b610a22565b3480156103d957600080fd5b506102b76103e836600461316c565b610a2c565b6103366103fb366004613225565b610a85565b34801561040c57600080fd5b506102b7610b51565b34801561042157600080fd5b5061044f6104303660046131d9565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b03909116815260200161026d565b34801561047357600080fd5b506103366104823660046131d9565b610c04565b34801561049357600080fd5b5060fb5460ff16610296565b3480156104ab57600080fd5b506102966104ba3660046132e9565b610c0e565b3480156104cb57600080fd5b506102b76104da3660046131d9565b610df2565b3480156104eb57600080fd5b506104ff6104fa3660046131d9565b610e1a565b60405163ffffffff909116815260200161026d565b34801561052057600080fd5b506102b761052f3660046131d9565b6001600160a01b031660009081526033602052604090205490565b34801561055657600080fd5b50610336610e3d565b34801561056b57600080fd5b5061033661057a36600461316c565b610e4f565b34801561058b57600080fd5b506102b761059a3660046131d9565b610e64565b3480156105ab57600080fd5b50610336610e83565b3480156105c057600080fd5b50610336611052565b3480156105d557600080fd5b5060c9546001600160a01b031661044f565b3480156105f357600080fd5b506102b76106023660046131f6565b611062565b34801561061357600080fd5b506102606110bf565b34801561062857600080fd5b506103366110ce565b34801561063d57600080fd5b506102b761064c3660046131f6565b6110de565b34801561065d57600080fd5b506102b761066c3660046131d9565b611109565b34801561067d57600080fd5b5061029661068c36600461316c565b611192565b34801561069d57600080fd5b506102966106ac36600461316c565b611218565b3480156106bd57600080fd5b506103366106cc366004613399565b611226565b3480156106dd57600080fd5b506103366106ec3660046133f3565b61135c565b3480156106fd57600080fd5b506102b761070c36600461316c565b6114c0565b34801561071d57600080fd5b506102b761072c366004613461565b611521565b34801561073d57600080fd5b5061075161074c36600461349a565b61154c565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161026d565b34801561078757600080fd5b506103366107963660046131d9565b6115d1565b6060603680546107aa906134d1565b80601f01602080910402602001604051908101604052809291908181526020018280546107d6906134d1565b80156108235780601f106107f857610100808354040283529160200191610823565b820191906000526020600020905b81548152906001019060200180831161080657829003601f168201915b5050505050905090565b60003361083b818585611647565b60019150505b92915050565b60003361085585828561176b565b6108608585856117e5565b60019150505b9392505050565b60006108776119a1565b905090565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036108cd5760405162461bcd60e51b81526004016108c490613505565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661091660008051602061392a833981519152546001600160a01b031690565b6001600160a01b03161461093c5760405162461bcd60e51b81526004016108c490613551565b61094581611a1e565b6040805160008082526020820190925261096191839190611a26565b50565b60003361083b8185856109778383611521565b61098191906135b3565b611647565b60004382106109d75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016108c4565b6001600160a01b0383166000908152610195602052604090206108669083611b96565b610a02611c8d565b610a0a611ce7565b565b610a14611c8d565b610a1e8282611d39565b5050565b6109613382611d43565b6001600160a01b038216600090815260976020526040812081908190610a53908590611d4d565b9150915081610a7a576001600160a01b038516600090815260336020526040902054610a7c565b805b95945050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610acd5760405162461bcd60e51b81526004016108c490613505565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1660008051602061392a833981519152546001600160a01b031690565b6001600160a01b031614610b3c5760405162461bcd60e51b81526004016108c490613551565b610b4582611a1e565b610a1e82826001611a26565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bf15760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108c4565b5060008051602061392a83398151915290565b6109613382611e49565b6000610c1985610df2565b841115610c7c5760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201526a30bc233630b9b42637b0b760a91b60648201526084016108c4565b6000610c8886866114c0565b9050610c948786611d39565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610cec9033908b908b9088908c908c906004016135c6565b6020604051808303816000875af1158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190613622565b14610d885760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b60648201526084016108c4565b6000610d9e8830610d99858a6135b3565b61176b565b811580610db257506001600160a01b038116155b15610dcf57610dca88610dc584896135b3565b611d43565b610de4565b610dd98887611d43565b610de48882846117e5565b506001979650505050505050565b60006001600160a01b0382163014610e0b576000610841565b6035546108419060001961363b565b6001600160a01b0381166000908152610195602052604081205461084190611ec4565b610e45611c8d565b610a0a6000611f2d565b610e5a82338361176b565b610a1e8282611d43565b6001600160a01b03811660009081526101616020526040812054610841565b600054610100900460ff1615808015610ea35750600054600160ff909116105b80610ebd5750303b158015610ebd575060005460ff166001145b610f205760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108c4565b6000805460ff191660011790558015610f43576000805461ff0019166101001790555b610f876040518060400160405280600781526020016625b0b834ba37b760c91b8152506040518060400160405280600381526020016212d41560ea1b815250611f7f565b610f8f611fb0565b610f97611fb0565b610f9f611fd7565b610fa7612006565b610fcf6040518060400160405280600781526020016625b0b834ba37b760c91b815250612035565b610fd7611fb0565b610fdf611fb0565b610fe7611fb0565b61100a33610ff76012600a61372a565b611005906303197500613739565b611d39565b8015610961576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61105a611c8d565b610a0a61207f565b60004382106110b35760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016108c4565b61084161019683611b96565b6060603780546107aa906134d1565b6110d6611c8d565b6109616120bc565b60008060006110ee846098611d4d565b91509150816110ff57603554611101565b805b949350505050565b6001600160a01b03811660009081526101956020526040812054801561117f576001600160a01b03831660009081526101956020526040902061114d60018361363b565b8154811061115d5761115d613750565b60009182526020909120015464010000000090046001600160e01b0316611182565b60005b6001600160e01b03169392505050565b600033816111a08286611521565b9050838110156112005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108c4565b61120d8286868403611647565b506001949350505050565b60003361083b8185856117e5565b834211156112765760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016108c4565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906112f0906112e89060a00160405160208183030381529060405280519060200120612116565b858585612164565b90506112fb8161218c565b86146113495760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016108c4565b6113538188611e49565b50505050505050565b834211156113ac5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108c4565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113db8c61218c565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061143682612116565b9050600061144682878787612164565b9050896001600160a01b0316816001600160a01b0316146114a95760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108c4565b6114b48a8a8a611647565b50505050505050505050565b60006001600160a01b038316301461151a5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e000000000060448201526064016108c4565b6000610866565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff841690811061159157611591613750565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6115d9611c8d565b6001600160a01b03811661163e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c4565b61096181611f2d565b6001600160a01b0383166116a95760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108c4565b6001600160a01b03821661170a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108c4565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006117778484611521565b905060001981146117df57818110156117d25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c4565b6117df8484848403611647565b50505050565b6001600160a01b0383166118495760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108c4565b6001600160a01b0382166118ab5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108c4565b6118b68383836121b5565b6001600160a01b0383166000908152603360205260409020548181101561192e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108c4565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061198e9086815260200190565b60405180910390a36117df8484846121c8565b60006108777f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119d161012d5490565b61012e546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b610961611c8d565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a5e57611a59836121d3565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ab8575060408051601f3d908101601f19168201909252611ab591810190613622565b60015b611b1b5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108c4565b60008051602061392a8339815191528114611b8a5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108c4565b50611a5983838361226f565b815460009081816005811115611bf0576000611bb184612294565b611bbb908561363b565b600088815260209020909150869082015463ffffffff161115611be057809150611bee565b611beb8160016135b3565b92505b505b80821015611c3d576000611c04838361237c565b600088815260209020909150869082015463ffffffff161115611c2957809150611c37565b611c348160016135b3565b92505b50611bf0565b8015611c7757611c6086611c5260018461363b565b600091825260209091200190565b5464010000000090046001600160e01b0316611c7a565b60005b6001600160e01b03169695505050505050565b60c9546001600160a01b03163314610a0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108c4565b611cef612397565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a1e82826123e0565b610a1e828261246b565b60008060008411611d995760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016108c4565b611da1612484565b841115611df05760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016108c4565b6000611dfc848661248f565b84549091508103611e14576000809250925050611e42565b6001846001018281548110611e2b57611e2b613750565b90600052602060002001549250925050611e42565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46117df82848361252e565b600063ffffffff821115611f295760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016108c4565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611fa65760405162461bcd60e51b81526004016108c490613766565b610a1e828261266d565b600054610100900460ff16610a0a5760405162461bcd60e51b81526004016108c490613766565b600054610100900460ff16611ffe5760405162461bcd60e51b81526004016108c490613766565b610a0a6126ad565b600054610100900460ff1661202d5760405162461bcd60e51b81526004016108c490613766565b610a0a6126dd565b600054610100900460ff1661205c5760405162461bcd60e51b81526004016108c490613766565b61096181604051806040016040528060018152602001603160f81b815250612710565b612087612753565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d1c3390565b60006120cc609a80546001019055565b60006120d6612484565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161210991815260200190565b60405180910390a1919050565b60006108416121236119a1565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061217587878787612799565b915091506121828161285d565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b6121bd612753565b611a598383836129a7565b611a598383836129ef565b6001600160a01b0381163b6122405760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108c4565b60008051602061392a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61227883612a22565b6000825111806122855750805b15611a59576117df8383612a62565b6000816000036122a657506000919050565b600060016122b384612b4d565b901c6001901b905060018184816122cc576122cc6137b1565b048201901c905060018184816122e4576122e46137b1565b048201901c905060018184816122fc576122fc6137b1565b048201901c90506001818481612314576123146137b1565b048201901c9050600181848161232c5761232c6137b1565b048201901c90506001818481612344576123446137b1565b048201901c9050600181848161235c5761235c6137b1565b048201901c905061086681828581612376576123766137b1565b04612be1565b600061238b60028484186137c7565b610866908484166135b3565b60fb5460ff16610a0a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c4565b6123ea8282612bf7565b6035546001600160e01b03101561245c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016108c4565b6117df610196612ccc83612cd8565b6124758282612e2c565b6117df610196612f7383612cd8565b6000610877609a5490565b815460009081036124a257506000610841565b82546000905b808210156124ef5760006124bc838361237c565b600087815260209020909150859082015411156124db578091506124e9565b6124e68160016135b3565b92505b506124a8565b60008211801561250d57508361250a86611c5260018661363b565b54145b156125265761251d60018361363b565b92505050610841565b509050610841565b816001600160a01b0316836001600160a01b0316141580156125505750600081115b15611a59576001600160a01b038316156125df576001600160a01b038316600090815261019560205260408120819061258c90612f7385612cd8565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516125d4929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a59576001600160a01b038216600090815261019560205260408120819061261690612ccc85612cd8565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161265e929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff166126945760405162461bcd60e51b81526004016108c490613766565b60366126a08382613837565b506037611a598282613837565b600054610100900460ff166126d45760405162461bcd60e51b81526004016108c490613766565b610a0a33611f2d565b600054610100900460ff166127045760405162461bcd60e51b81526004016108c490613766565b60fb805460ff19169055565b600054610100900460ff166127375760405162461bcd60e51b81526004016108c490613766565b81516020928301208151919092012061012d9190915561012e55565b60fb5460ff1615610a0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108c4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127d05750600090506003612854565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612824573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661284d57600060019250925050612854565b9150600090505b94509492505050565b6000816004811115612871576128716138f7565b036128795750565b600181600481111561288d5761288d6138f7565b036128da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108c4565b60028160048111156128ee576128ee6138f7565b0361293b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108c4565b600381600481111561294f5761294f6138f7565b036109615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108c4565b6001600160a01b0383166129c6576129be82612f7f565b611a59612fb2565b6001600160a01b0382166129dd576129be83612f7f565b6129e683612f7f565b611a5982612f7f565b6001600160a01b0383811660009081526101946020526040808220548584168352912054611a599291821691168361252e565b612a2b816121d3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612aca5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016108c4565b600080846001600160a01b031684604051612ae5919061390d565b600060405180830381855af49150503d8060008114612b20576040519150601f19603f3d011682016040523d82523d6000602084013e612b25565b606091505b5091509150610a7c828260405180606001604052806027815260200161394a60279139612fc0565b600080608083901c15612b6257608092831c92015b604083901c15612b7457604092831c92015b602083901c15612b8657602092831c92015b601083901c15612b9857601092831c92015b600883901c15612baa57600892831c92015b600483901c15612bbc57600492831c92015b600283901c15612bce57600292831c92015b600183901c156108415760010192915050565b6000818310612bf05781610866565b5090919050565b6001600160a01b038216612c4d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c4565b612c59600083836121b5565b8060356000828254612c6b91906135b3565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a1e600083836121c8565b600061086682846135b3565b82546000908190818115612d2557612cf587611c5260018561363b565b60408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152612d3a565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350612d5a84868863ffffffff16565b9250600082118015612d725750805163ffffffff1643145b15612db757612d8083612fd9565b612d8f88611c5260018661363b565b80546001600160e01b03929092166401000000000263ffffffff909216919091179055612e22565b866040518060400160405280612dcc43611ec4565b63ffffffff168152602001612de086612fd9565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6001600160a01b038216612e8c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108c4565b612e98826000836121b5565b6001600160a01b03821660009081526033602052604090205481811015612f0c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108c4565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a59836000846121c8565b6000610866828461363b565b6001600160a01b03811660009081526097602090815260408083206033909252909120546109619190613042565b613042565b610a0a6098612fad60355490565b60608315612fcf575081610866565b610866838361308c565b60006001600160e01b03821115611f295760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016108c4565b600061304c612484565b905080613058846130b6565b1015611a59578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b81511561309c5781518083602001fd5b8060405162461bcd60e51b81526004016108c49190613124565b805460009081036130c957506000919050565b815482906130d99060019061363b565b815481106130e9576130e9613750565b90600052602060002001549050919050565b919050565b60005b8381101561311b578181015183820152602001613103565b50506000910152565b6020815260008251806020840152613143816040850160208701613100565b601f01601f19169190910160400192915050565b6001600160a01b038116811461096157600080fd5b6000806040838503121561317f57600080fd5b823561318a81613157565b946020939093013593505050565b6000806000606084860312156131ad57600080fd5b83356131b881613157565b925060208401356131c881613157565b929592945050506040919091013590565b6000602082840312156131eb57600080fd5b813561086681613157565b60006020828403121561320857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561323857600080fd5b823561324381613157565b9150602083013567ffffffffffffffff8082111561326057600080fd5b818501915085601f83011261327457600080fd5b8135818111156132865761328661320f565b604051601f8201601f19908116603f011681019083821181831017156132ae576132ae61320f565b816040528281528860208487010111156132c757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060006080868803121561330157600080fd5b853561330c81613157565b9450602086013561331c81613157565b935060408601359250606086013567ffffffffffffffff8082111561334057600080fd5b818801915088601f83011261335457600080fd5b81358181111561336357600080fd5b89602082850101111561337557600080fd5b9699959850939650602001949392505050565b803560ff811681146130fb57600080fd5b60008060008060008060c087890312156133b257600080fd5b86356133bd81613157565b955060208701359450604087013593506133d960608801613388565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561340e57600080fd5b873561341981613157565b9650602088013561342981613157565b9550604088013594506060880135935061344560808901613388565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561347457600080fd5b823561347f81613157565b9150602083013561348f81613157565b809150509250929050565b600080604083850312156134ad57600080fd5b82356134b881613157565b9150602083013563ffffffff8116811461348f57600080fd5b600181811c908216806134e557607f821691505b6020821081036121af57634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108415761084161359d565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b60006020828403121561363457600080fd5b5051919050565b818103818111156108415761084161359d565b600181815b80851115611e4057816000190482111561366f5761366f61359d565b8085161561367c57918102915b93841c9390800290613653565b60008261369857506001610841565b816136a557506000610841565b81600181146136bb57600281146136c5576136e1565b6001915050610841565b60ff8411156136d6576136d661359d565b50506001821b610841565b5060208310610133831016604e8410600b8410161715613704575081810a610841565b61370e838361364e565b80600019048211156137225761372261359d565b029392505050565b600061086660ff841683613689565b80820281158282048414176108415761084161359d565b634e487b7160e01b600052603260045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137e457634e487b7160e01b600052601260045260246000fd5b500490565b601f821115611a5957600081815260208120601f850160051c810160208610156138105750805b601f850160051c820191505b8181101561382f5782815560010161381c565b505050505050565b815167ffffffffffffffff8111156138515761385161320f565b6138658161385f84546134d1565b846137e9565b602080601f83116001811461389a57600084156138825750858301515b600019600386901b1c1916600185901b17855561382f565b600085815260208120601f198616915b828110156138c9578886015182559484019460019091019084016138aa565b50858210156138e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b6000825161391f818460208701613100565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122030944a2a25b8ea885cc9280ef27b2b6e415b4dfed51f177f0fd3e5e4ab587ed364736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102465760003560e01c80636fcfff45116101395780639711715a116100b6578063c3cda5201161007a578063c3cda520146106b1578063d505accf146106d1578063d9d98ce4146106f1578063dd62ed3e14610711578063f1127ed814610731578063f2fde38b1461077b57600080fd5b80639711715a1461061c578063981b24d0146106315780639ab24eb014610651578063a457c2d714610671578063a9059cbb1461069157600080fd5b80638129fc1c116100fd5780638129fc1c1461059f5780638456cb59146105b45780638da5cb5b146105c95780638e539e8c146105e757806395d89b411461060757600080fd5b80636fcfff45146104df57806370a0823114610514578063715018a61461054a57806379cc67901461055f5780637ecebe001461057f57600080fd5b806340c10f19116101c7578063587cde1e1161018b578063587cde1e146104155780635c19a95c146104675780635c975abb146104875780635cffe9de1461049f578063613255ab146104bf57600080fd5b806340c10f191461038d57806342966c68146103ad5780634ee2cd7e146103cd5780634f1ef286146103ed57806352d1902d1461040057600080fd5b80633644e5151161020e5780633644e515146103015780633659cfe61461031657806339509351146103385780633a46b1a8146103585780633f4ba83a1461037857600080fd5b806306fdde031461024b578063095ea7b31461027657806318160ddd146102a657806323b872dd146102c5578063313ce567146102e5575b600080fd5b34801561025757600080fd5b5061026061079b565b60405161026d9190613124565b60405180910390f35b34801561028257600080fd5b5061029661029136600461316c565b61082d565b604051901515815260200161026d565b3480156102b257600080fd5b506035545b60405190815260200161026d565b3480156102d157600080fd5b506102966102e0366004613198565b610847565b3480156102f157600080fd5b506040516012815260200161026d565b34801561030d57600080fd5b506102b761086d565b34801561032257600080fd5b506103366103313660046131d9565b61087c565b005b34801561034457600080fd5b5061029661035336600461316c565b610964565b34801561036457600080fd5b506102b761037336600461316c565b610986565b34801561038457600080fd5b506103366109fa565b34801561039957600080fd5b506103366103a836600461316c565b610a0c565b3480156103b957600080fd5b506103366103c83660046131f6565b610a22565b3480156103d957600080fd5b506102b76103e836600461316c565b610a2c565b6103366103fb366004613225565b610a85565b34801561040c57600080fd5b506102b7610b51565b34801561042157600080fd5b5061044f6104303660046131d9565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b03909116815260200161026d565b34801561047357600080fd5b506103366104823660046131d9565b610c04565b34801561049357600080fd5b5060fb5460ff16610296565b3480156104ab57600080fd5b506102966104ba3660046132e9565b610c0e565b3480156104cb57600080fd5b506102b76104da3660046131d9565b610df2565b3480156104eb57600080fd5b506104ff6104fa3660046131d9565b610e1a565b60405163ffffffff909116815260200161026d565b34801561052057600080fd5b506102b761052f3660046131d9565b6001600160a01b031660009081526033602052604090205490565b34801561055657600080fd5b50610336610e3d565b34801561056b57600080fd5b5061033661057a36600461316c565b610e4f565b34801561058b57600080fd5b506102b761059a3660046131d9565b610e64565b3480156105ab57600080fd5b50610336610e83565b3480156105c057600080fd5b50610336611052565b3480156105d557600080fd5b5060c9546001600160a01b031661044f565b3480156105f357600080fd5b506102b76106023660046131f6565b611062565b34801561061357600080fd5b506102606110bf565b34801561062857600080fd5b506103366110ce565b34801561063d57600080fd5b506102b761064c3660046131f6565b6110de565b34801561065d57600080fd5b506102b761066c3660046131d9565b611109565b34801561067d57600080fd5b5061029661068c36600461316c565b611192565b34801561069d57600080fd5b506102966106ac36600461316c565b611218565b3480156106bd57600080fd5b506103366106cc366004613399565b611226565b3480156106dd57600080fd5b506103366106ec3660046133f3565b61135c565b3480156106fd57600080fd5b506102b761070c36600461316c565b6114c0565b34801561071d57600080fd5b506102b761072c366004613461565b611521565b34801561073d57600080fd5b5061075161074c36600461349a565b61154c565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161026d565b34801561078757600080fd5b506103366107963660046131d9565b6115d1565b6060603680546107aa906134d1565b80601f01602080910402602001604051908101604052809291908181526020018280546107d6906134d1565b80156108235780601f106107f857610100808354040283529160200191610823565b820191906000526020600020905b81548152906001019060200180831161080657829003601f168201915b5050505050905090565b60003361083b818585611647565b60019150505b92915050565b60003361085585828561176b565b6108608585856117e5565b60019150505b9392505050565b60006108776119a1565b905090565b6001600160a01b037f000000000000000000000000955850b077aa8e6e7591987beb140204624da1c51630036108cd5760405162461bcd60e51b81526004016108c490613505565b60405180910390fd5b7f000000000000000000000000955850b077aa8e6e7591987beb140204624da1c56001600160a01b031661091660008051602061392a833981519152546001600160a01b031690565b6001600160a01b03161461093c5760405162461bcd60e51b81526004016108c490613551565b61094581611a1e565b6040805160008082526020820190925261096191839190611a26565b50565b60003361083b8185856109778383611521565b61098191906135b3565b611647565b60004382106109d75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016108c4565b6001600160a01b0383166000908152610195602052604090206108669083611b96565b610a02611c8d565b610a0a611ce7565b565b610a14611c8d565b610a1e8282611d39565b5050565b6109613382611d43565b6001600160a01b038216600090815260976020526040812081908190610a53908590611d4d565b9150915081610a7a576001600160a01b038516600090815260336020526040902054610a7c565b805b95945050505050565b6001600160a01b037f000000000000000000000000955850b077aa8e6e7591987beb140204624da1c5163003610acd5760405162461bcd60e51b81526004016108c490613505565b7f000000000000000000000000955850b077aa8e6e7591987beb140204624da1c56001600160a01b0316610b1660008051602061392a833981519152546001600160a01b031690565b6001600160a01b031614610b3c5760405162461bcd60e51b81526004016108c490613551565b610b4582611a1e565b610a1e82826001611a26565b6000306001600160a01b037f000000000000000000000000955850b077aa8e6e7591987beb140204624da1c51614610bf15760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108c4565b5060008051602061392a83398151915290565b6109613382611e49565b6000610c1985610df2565b841115610c7c5760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201526a30bc233630b9b42637b0b760a91b60648201526084016108c4565b6000610c8886866114c0565b9050610c948786611d39565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610cec9033908b908b9088908c908c906004016135c6565b6020604051808303816000875af1158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190613622565b14610d885760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b60648201526084016108c4565b6000610d9e8830610d99858a6135b3565b61176b565b811580610db257506001600160a01b038116155b15610dcf57610dca88610dc584896135b3565b611d43565b610de4565b610dd98887611d43565b610de48882846117e5565b506001979650505050505050565b60006001600160a01b0382163014610e0b576000610841565b6035546108419060001961363b565b6001600160a01b0381166000908152610195602052604081205461084190611ec4565b610e45611c8d565b610a0a6000611f2d565b610e5a82338361176b565b610a1e8282611d43565b6001600160a01b03811660009081526101616020526040812054610841565b600054610100900460ff1615808015610ea35750600054600160ff909116105b80610ebd5750303b158015610ebd575060005460ff166001145b610f205760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108c4565b6000805460ff191660011790558015610f43576000805461ff0019166101001790555b610f876040518060400160405280600781526020016625b0b834ba37b760c91b8152506040518060400160405280600381526020016212d41560ea1b815250611f7f565b610f8f611fb0565b610f97611fb0565b610f9f611fd7565b610fa7612006565b610fcf6040518060400160405280600781526020016625b0b834ba37b760c91b815250612035565b610fd7611fb0565b610fdf611fb0565b610fe7611fb0565b61100a33610ff76012600a61372a565b611005906303197500613739565b611d39565b8015610961576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61105a611c8d565b610a0a61207f565b60004382106110b35760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016108c4565b61084161019683611b96565b6060603780546107aa906134d1565b6110d6611c8d565b6109616120bc565b60008060006110ee846098611d4d565b91509150816110ff57603554611101565b805b949350505050565b6001600160a01b03811660009081526101956020526040812054801561117f576001600160a01b03831660009081526101956020526040902061114d60018361363b565b8154811061115d5761115d613750565b60009182526020909120015464010000000090046001600160e01b0316611182565b60005b6001600160e01b03169392505050565b600033816111a08286611521565b9050838110156112005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108c4565b61120d8286868403611647565b506001949350505050565b60003361083b8185856117e5565b834211156112765760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016108c4565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906112f0906112e89060a00160405160208183030381529060405280519060200120612116565b858585612164565b90506112fb8161218c565b86146113495760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016108c4565b6113538188611e49565b50505050505050565b834211156113ac5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108c4565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113db8c61218c565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061143682612116565b9050600061144682878787612164565b9050896001600160a01b0316816001600160a01b0316146114a95760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108c4565b6114b48a8a8a611647565b50505050505050505050565b60006001600160a01b038316301461151a5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e000000000060448201526064016108c4565b6000610866565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff841690811061159157611591613750565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6115d9611c8d565b6001600160a01b03811661163e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c4565b61096181611f2d565b6001600160a01b0383166116a95760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108c4565b6001600160a01b03821661170a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108c4565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006117778484611521565b905060001981146117df57818110156117d25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c4565b6117df8484848403611647565b50505050565b6001600160a01b0383166118495760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108c4565b6001600160a01b0382166118ab5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108c4565b6118b68383836121b5565b6001600160a01b0383166000908152603360205260409020548181101561192e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108c4565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061198e9086815260200190565b60405180910390a36117df8484846121c8565b60006108777f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119d161012d5490565b61012e546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b610961611c8d565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a5e57611a59836121d3565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ab8575060408051601f3d908101601f19168201909252611ab591810190613622565b60015b611b1b5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108c4565b60008051602061392a8339815191528114611b8a5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108c4565b50611a5983838361226f565b815460009081816005811115611bf0576000611bb184612294565b611bbb908561363b565b600088815260209020909150869082015463ffffffff161115611be057809150611bee565b611beb8160016135b3565b92505b505b80821015611c3d576000611c04838361237c565b600088815260209020909150869082015463ffffffff161115611c2957809150611c37565b611c348160016135b3565b92505b50611bf0565b8015611c7757611c6086611c5260018461363b565b600091825260209091200190565b5464010000000090046001600160e01b0316611c7a565b60005b6001600160e01b03169695505050505050565b60c9546001600160a01b03163314610a0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108c4565b611cef612397565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a1e82826123e0565b610a1e828261246b565b60008060008411611d995760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016108c4565b611da1612484565b841115611df05760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016108c4565b6000611dfc848661248f565b84549091508103611e14576000809250925050611e42565b6001846001018281548110611e2b57611e2b613750565b90600052602060002001549250925050611e42565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46117df82848361252e565b600063ffffffff821115611f295760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016108c4565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611fa65760405162461bcd60e51b81526004016108c490613766565b610a1e828261266d565b600054610100900460ff16610a0a5760405162461bcd60e51b81526004016108c490613766565b600054610100900460ff16611ffe5760405162461bcd60e51b81526004016108c490613766565b610a0a6126ad565b600054610100900460ff1661202d5760405162461bcd60e51b81526004016108c490613766565b610a0a6126dd565b600054610100900460ff1661205c5760405162461bcd60e51b81526004016108c490613766565b61096181604051806040016040528060018152602001603160f81b815250612710565b612087612753565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d1c3390565b60006120cc609a80546001019055565b60006120d6612484565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161210991815260200190565b60405180910390a1919050565b60006108416121236119a1565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061217587878787612799565b915091506121828161285d565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b6121bd612753565b611a598383836129a7565b611a598383836129ef565b6001600160a01b0381163b6122405760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108c4565b60008051602061392a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61227883612a22565b6000825111806122855750805b15611a59576117df8383612a62565b6000816000036122a657506000919050565b600060016122b384612b4d565b901c6001901b905060018184816122cc576122cc6137b1565b048201901c905060018184816122e4576122e46137b1565b048201901c905060018184816122fc576122fc6137b1565b048201901c90506001818481612314576123146137b1565b048201901c9050600181848161232c5761232c6137b1565b048201901c90506001818481612344576123446137b1565b048201901c9050600181848161235c5761235c6137b1565b048201901c905061086681828581612376576123766137b1565b04612be1565b600061238b60028484186137c7565b610866908484166135b3565b60fb5460ff16610a0a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c4565b6123ea8282612bf7565b6035546001600160e01b03101561245c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016108c4565b6117df610196612ccc83612cd8565b6124758282612e2c565b6117df610196612f7383612cd8565b6000610877609a5490565b815460009081036124a257506000610841565b82546000905b808210156124ef5760006124bc838361237c565b600087815260209020909150859082015411156124db578091506124e9565b6124e68160016135b3565b92505b506124a8565b60008211801561250d57508361250a86611c5260018661363b565b54145b156125265761251d60018361363b565b92505050610841565b509050610841565b816001600160a01b0316836001600160a01b0316141580156125505750600081115b15611a59576001600160a01b038316156125df576001600160a01b038316600090815261019560205260408120819061258c90612f7385612cd8565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516125d4929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a59576001600160a01b038216600090815261019560205260408120819061261690612ccc85612cd8565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161265e929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff166126945760405162461bcd60e51b81526004016108c490613766565b60366126a08382613837565b506037611a598282613837565b600054610100900460ff166126d45760405162461bcd60e51b81526004016108c490613766565b610a0a33611f2d565b600054610100900460ff166127045760405162461bcd60e51b81526004016108c490613766565b60fb805460ff19169055565b600054610100900460ff166127375760405162461bcd60e51b81526004016108c490613766565b81516020928301208151919092012061012d9190915561012e55565b60fb5460ff1615610a0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108c4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127d05750600090506003612854565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612824573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661284d57600060019250925050612854565b9150600090505b94509492505050565b6000816004811115612871576128716138f7565b036128795750565b600181600481111561288d5761288d6138f7565b036128da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108c4565b60028160048111156128ee576128ee6138f7565b0361293b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108c4565b600381600481111561294f5761294f6138f7565b036109615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108c4565b6001600160a01b0383166129c6576129be82612f7f565b611a59612fb2565b6001600160a01b0382166129dd576129be83612f7f565b6129e683612f7f565b611a5982612f7f565b6001600160a01b0383811660009081526101946020526040808220548584168352912054611a599291821691168361252e565b612a2b816121d3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612aca5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016108c4565b600080846001600160a01b031684604051612ae5919061390d565b600060405180830381855af49150503d8060008114612b20576040519150601f19603f3d011682016040523d82523d6000602084013e612b25565b606091505b5091509150610a7c828260405180606001604052806027815260200161394a60279139612fc0565b600080608083901c15612b6257608092831c92015b604083901c15612b7457604092831c92015b602083901c15612b8657602092831c92015b601083901c15612b9857601092831c92015b600883901c15612baa57600892831c92015b600483901c15612bbc57600492831c92015b600283901c15612bce57600292831c92015b600183901c156108415760010192915050565b6000818310612bf05781610866565b5090919050565b6001600160a01b038216612c4d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c4565b612c59600083836121b5565b8060356000828254612c6b91906135b3565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a1e600083836121c8565b600061086682846135b3565b82546000908190818115612d2557612cf587611c5260018561363b565b60408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152612d3a565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350612d5a84868863ffffffff16565b9250600082118015612d725750805163ffffffff1643145b15612db757612d8083612fd9565b612d8f88611c5260018661363b565b80546001600160e01b03929092166401000000000263ffffffff909216919091179055612e22565b866040518060400160405280612dcc43611ec4565b63ffffffff168152602001612de086612fd9565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6001600160a01b038216612e8c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108c4565b612e98826000836121b5565b6001600160a01b03821660009081526033602052604090205481811015612f0c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108c4565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a59836000846121c8565b6000610866828461363b565b6001600160a01b03811660009081526097602090815260408083206033909252909120546109619190613042565b613042565b610a0a6098612fad60355490565b60608315612fcf575081610866565b610866838361308c565b60006001600160e01b03821115611f295760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016108c4565b600061304c612484565b905080613058846130b6565b1015611a59578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b81511561309c5781518083602001fd5b8060405162461bcd60e51b81526004016108c49190613124565b805460009081036130c957506000919050565b815482906130d99060019061363b565b815481106130e9576130e9613750565b90600052602060002001549050919050565b919050565b60005b8381101561311b578181015183820152602001613103565b50506000910152565b6020815260008251806020840152613143816040850160208701613100565b601f01601f19169190910160400192915050565b6001600160a01b038116811461096157600080fd5b6000806040838503121561317f57600080fd5b823561318a81613157565b946020939093013593505050565b6000806000606084860312156131ad57600080fd5b83356131b881613157565b925060208401356131c881613157565b929592945050506040919091013590565b6000602082840312156131eb57600080fd5b813561086681613157565b60006020828403121561320857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561323857600080fd5b823561324381613157565b9150602083013567ffffffffffffffff8082111561326057600080fd5b818501915085601f83011261327457600080fd5b8135818111156132865761328661320f565b604051601f8201601f19908116603f011681019083821181831017156132ae576132ae61320f565b816040528281528860208487010111156132c757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060006080868803121561330157600080fd5b853561330c81613157565b9450602086013561331c81613157565b935060408601359250606086013567ffffffffffffffff8082111561334057600080fd5b818801915088601f83011261335457600080fd5b81358181111561336357600080fd5b89602082850101111561337557600080fd5b9699959850939650602001949392505050565b803560ff811681146130fb57600080fd5b60008060008060008060c087890312156133b257600080fd5b86356133bd81613157565b955060208701359450604087013593506133d960608801613388565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561340e57600080fd5b873561341981613157565b9650602088013561342981613157565b9550604088013594506060880135935061344560808901613388565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561347457600080fd5b823561347f81613157565b9150602083013561348f81613157565b809150509250929050565b600080604083850312156134ad57600080fd5b82356134b881613157565b9150602083013563ffffffff8116811461348f57600080fd5b600181811c908216806134e557607f821691505b6020821081036121af57634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156108415761084161359d565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b60006020828403121561363457600080fd5b5051919050565b818103818111156108415761084161359d565b600181815b80851115611e4057816000190482111561366f5761366f61359d565b8085161561367c57918102915b93841c9390800290613653565b60008261369857506001610841565b816136a557506000610841565b81600181146136bb57600281146136c5576136e1565b6001915050610841565b60ff8411156136d6576136d661359d565b50506001821b610841565b5060208310610133831016604e8410600b8410161715613704575081810a610841565b61370e838361364e565b80600019048211156137225761372261359d565b029392505050565b600061086660ff841683613689565b80820281158282048414176108415761084161359d565b634e487b7160e01b600052603260045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137e457634e487b7160e01b600052601260045260246000fd5b500490565b601f821115611a5957600081815260208120601f850160051c810160208610156138105750805b601f850160051c820191505b8181101561382f5782815560010161381c565b505050505050565b815167ffffffffffffffff8111156138515761385161320f565b6138658161385f84546134d1565b846137e9565b602080601f83116001811461389a57600084156138825750858301515b600019600386901b1c1916600185901b17855561382f565b600085815260208120601f198616915b828110156138c9578886015182559484019460019091019084016138aa565b50858210156138e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b6000825161391f818460208701613100565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122030944a2a25b8ea885cc9280ef27b2b6e415b4dfed51f177f0fd3e5e4ab587ed364736f6c63430008110033
Deployed Bytecode Sourcemap
166859:2120:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124010:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;126361:201;;;;;;;;;;-1:-1:-1;126361:201:0;;;;;:::i;:::-;;:::i;:::-;;;1291:14:1;;1284:22;1266:41;;1254:2;1239:18;126361:201:0;1126:187:1;125130:108:0;;;;;;;;;;-1:-1:-1;125218:12:0;;125130:108;;;1464:25:1;;;1452:2;1437:18;125130:108:0;1318:177:1;127142:295:0;;;;;;;;;;-1:-1:-1;127142:295:0;;;;;:::i;:::-;;:::i;124972:93::-;;;;;;;;;;-1:-1:-1;124972:93:0;;125055:2;2103:36:1;;2091:2;2076:18;124972:93:0;1961:184:1;144010:115:0;;;;;;;;;;;;;:::i;103434:200::-;;;;;;;;;;-1:-1:-1;103434:200:0;;;;;:::i;:::-;;:::i;:::-;;127846:238;;;;;;;;;;-1:-1:-1;127846:238:0;;;;;:::i;:::-;;:::i;147761:268::-;;;;;;;;;;-1:-1:-1;147761:268:0;;;;;:::i;:::-;;:::i;167780:65::-;;;;;;;;;;;;;:::i;167853:95::-;;;;;;;;;;-1:-1:-1;167853:95:0;;;;;:::i;:::-;;:::i;165857:91::-;;;;;;;;;;-1:-1:-1;165857:91:0;;;;;:::i;:::-;;:::i;160846:266::-;;;;;;;;;;-1:-1:-1;160846:266:0;;;;;:::i;:::-;;:::i;103893:225::-;;;;;;:::i;:::-;;:::i;103112:133::-;;;;;;;;;;;;;:::i;147135:128::-;;;;;;;;;;-1:-1:-1;147135:128:0;;;;;:::i;:::-;-1:-1:-1;;;;;147236:19:0;;;147209:7;147236:19;;;:10;:19;;;;;;;;147135:128;;;;-1:-1:-1;;;;;4126:32:1;;;4108:51;;4096:2;4081:18;147135:128:0;3962:203:1;150669:114:0;;;;;;;;;;-1:-1:-1;150669:114:0;;;;;:::i;:::-;;:::i;113369:86::-;;;;;;;;;;-1:-1:-1;113440:7:0;;;;113369:86;;139586:970;;;;;;;;;;-1:-1:-1;139586:970:0;;;;;:::i;:::-;;:::i;136661:189::-;;;;;;;;;;-1:-1:-1;136661:189:0;;;;;:::i;:::-;;:::i;146880:162::-;;;;;;;;;;-1:-1:-1;146880:162:0;;;;;:::i;:::-;;:::i;:::-;;;5324:10:1;5312:23;;;5294:42;;5282:2;5267:18;146880:162:0;5150:192:1;125301:127:0;;;;;;;;;;-1:-1:-1;125301:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;125402:18:0;125375:7;125402:18;;;:9;:18;;;;;;;125301:127;116753:103;;;;;;;;;;;;;:::i;166267:164::-;;;;;;;;;;-1:-1:-1;166267:164:0;;;;;:::i;:::-;;:::i;143752:128::-;;;;;;;;;;-1:-1:-1;143752:128:0;;;;;:::i;:::-;;:::i;167219:409::-;;;;;;;;;;;;;:::i;167711:61::-;;;;;;;;;;;;;:::i;116105:87::-;;;;;;;;;;-1:-1:-1;116178:6:0;;-1:-1:-1;;;;;116178:6:0;116105:87;;148318:259;;;;;;;;;;-1:-1:-1;148318:259:0;;;;;:::i;:::-;;:::i;124229:104::-;;;;;;;;;;;;;:::i;167636:67::-;;;;;;;;;;;;;:::i;161216:234::-;;;;;;;;;;-1:-1:-1;161216:234:0;;;;;:::i;:::-;;:::i;147347:212::-;;;;;;;;;;-1:-1:-1;147347:212:0;;;;;:::i;:::-;;:::i;128587:436::-;;;;;;;;;;-1:-1:-1;128587:436:0;;;;;:::i;:::-;;:::i;125634:193::-;;;;;;;;;;-1:-1:-1;125634:193:0;;;;;:::i;:::-;;:::i;150865:602::-;;;;;;;;;;-1:-1:-1;150865:602:0;;;;;:::i;:::-;;:::i;143030:656::-;;;;;;;;;;-1:-1:-1;143030:656:0;;;;;:::i;:::-;;:::i;137226:219::-;;;;;;;;;;-1:-1:-1;137226:219:0;;;;;:::i;:::-;;:::i;125890:151::-;;;;;;;;;;-1:-1:-1;125890:151:0;;;;;:::i;:::-;;:::i;146650:150::-;;;;;;;;;;-1:-1:-1;146650:150:0;;;;;:::i;:::-;;:::i;:::-;;;;7885:13:1;;7900:10;7881:30;7863:49;;7972:4;7960:17;;;7954:24;-1:-1:-1;;;;;7950:50:1;7928:20;;;7921:80;;;;7836:18;146650:150:0;7661:346:1;117011:201:0;;;;;;;;;;-1:-1:-1;117011:201:0;;;;;:::i;:::-;;:::i;124010:100::-;124064:13;124097:5;124090:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124010:100;:::o;126361:201::-;126444:4;111040:10;126500:32;111040:10;126516:7;126525:6;126500:8;:32::i;:::-;126550:4;126543:11;;;126361:201;;;;;:::o;127142:295::-;127273:4;111040:10;127331:38;127347:4;111040:10;127362:6;127331:15;:38::i;:::-;127380:27;127390:4;127396:2;127400:6;127380:9;:27::i;:::-;127425:4;127418:11;;;127142:295;;;;;;:::o;144010:115::-;144070:7;144097:20;:18;:20::i;:::-;144090:27;;144010:115;:::o;103434:200::-;-1:-1:-1;;;;;101982:6:0;101965:23;101973:4;101965:23;101957:80;;;;-1:-1:-1;;;101957:80:0;;;;;;;:::i;:::-;;;;;;;;;102080:6;-1:-1:-1;;;;;102056:30:0;:20;-1:-1:-1;;;;;;;;;;;93763:65:0;-1:-1:-1;;;;;93763:65:0;;93683:153;102056:20;-1:-1:-1;;;;;102056:30:0;;102048:87;;;;-1:-1:-1;;;102048:87:0;;;;;;;:::i;:::-;103518:36:::1;103536:17;103518;:36::i;:::-;103606:12;::::0;;103616:1:::1;103606:12:::0;;;::::1;::::0;::::1;::::0;;;103565:61:::1;::::0;103587:17;;103606:12;103565:21:::1;:61::i;:::-;103434:200:::0;:::o;127846:238::-;127934:4;111040:10;127990:64;111040:10;128006:7;128043:10;128015:25;111040:10;128006:7;128015:9;:25::i;:::-;:38;;;;:::i;:::-;127990:8;:64::i;147761:268::-;147859:7;147901:12;147887:11;:26;147879:70;;;;-1:-1:-1;;;147879:70:0;;9687:2:1;147879:70:0;;;9669:21:1;9726:2;9706:18;;;9699:30;9765:33;9745:18;;;9738:61;9816:18;;147879:70:0;9485:355:1;147879:70:0;-1:-1:-1;;;;;147986:21:0;;;;;;:12;:21;;;;;147967:54;;148009:11;147967:18;:54::i;167780:65::-;115991:13;:11;:13::i;:::-;167827:10:::1;:8;:10::i;:::-;167780:65::o:0;167853:95::-;115991:13;:11;:13::i;:::-;167923:17:::1;167929:2;167933:6;167923:5;:17::i;:::-;167853:95:::0;;:::o;165857:91::-;165913:27;111040:10;165933:6;165913:5;:27::i;160846:266::-;-1:-1:-1;;;;;161010:33:0;;160933:7;161010:33;;;:24;:33;;;;;160933:7;;;;160989:55;;160998:10;;160989:8;:55::i;:::-;160953:91;;;;161064:11;:40;;-1:-1:-1;;;;;125402:18:0;;125375:7;125402:18;;;:9;:18;;;;;;161064:40;;;161078:5;161064:40;161057:47;160846:266;-1:-1:-1;;;;;160846:266:0:o;103893:225::-;-1:-1:-1;;;;;101982:6:0;101965:23;101973:4;101965:23;101957:80;;;;-1:-1:-1;;;101957:80:0;;;;;;;:::i;:::-;102080:6;-1:-1:-1;;;;;102056:30:0;:20;-1:-1:-1;;;;;;;;;;;93763:65:0;-1:-1:-1;;;;;93763:65:0;;93683:153;102056:20;-1:-1:-1;;;;;102056:30:0;;102048:87;;;;-1:-1:-1;;;102048:87:0;;;;;;;:::i;:::-;104011:36:::1;104029:17;104011;:36::i;:::-;104058:52;104080:17;104099:4;104105;104058:21;:52::i;103112:133::-:0;103190:7;102418:4;-1:-1:-1;;;;;102427:6:0;102410:23;;102402:92;;;;-1:-1:-1;;;102402:92:0;;10047:2:1;102402:92:0;;;10029:21:1;10086:2;10066:18;;;10059:30;10125:34;10105:18;;;10098:62;10196:26;10176:18;;;10169:54;10240:19;;102402:92:0;9845:420:1;102402:92:0;-1:-1:-1;;;;;;;;;;;;103112:133:0;:::o;150669:114::-;150741:34;111040:10;150765:9;150741;:34::i;139586:970::-;139776:4;139811:19;139824:5;139811:12;:19::i;:::-;139801:6;:29;;139793:85;;;;-1:-1:-1;;;139793:85:0;;10472:2:1;139793:85:0;;;10454:21:1;10511:2;10491:18;;;10484:30;10550:34;10530:18;;;10523:62;-1:-1:-1;;;10601:18:1;;;10594:41;10652:19;;139793:85:0;10270:407:1;139793:85:0;139889:11;139903:23;139912:5;139919:6;139903:8;:23::i;:::-;139889:37;;139937:32;139951:8;139962:6;139937:5;:32::i;:::-;140002:58;;-1:-1:-1;;;140002:58:0;;136398:45;;-1:-1:-1;;;;;140002:20:0;;;;;:58;;140023:10;;140035:5;;140042:6;;140050:3;;140055:4;;;;140002:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:75;139980:161;;;;-1:-1:-1;;;139980:161:0;;11812:2:1;139980:161:0;;;11794:21:1;11851:2;11831:18;;;11824:30;11890:34;11870:18;;;11863:62;-1:-1:-1;;;11941:18:1;;;11934:34;11985:19;;139980:161:0;11610:400:1;139980:161:0;140152:24;140209:63;140233:8;140252:4;140259:12;140268:3;140259:6;:12;:::i;:::-;140209:15;:63::i;:::-;140287:8;;;:42;;-1:-1:-1;;;;;;140299:30:0;;;140287:42;140283:244;;;140346:38;140360:8;140371:12;140380:3;140371:6;:12;:::i;:::-;140346:5;:38::i;:::-;140283:244;;;140417:32;140431:8;140442:6;140417:5;:32::i;:::-;140464:51;140482:8;140493:16;140511:3;140464:9;:51::i;:::-;-1:-1:-1;140544:4:0;;139586:970;-1:-1:-1;;;;;;;139586:970:0:o;136661:189::-;136736:7;-1:-1:-1;;;;;136763:22:0;;136780:4;136763:22;:79;;136841:1;136763:79;;;125218:12;;136788:50;;-1:-1:-1;;136788:50:0;:::i;146880:162::-;-1:-1:-1;;;;;147005:21:0;;146950:6;147005:21;;;:12;:21;;;;;:28;146976:58;;:28;:58::i;116753:103::-;115991:13;:11;:13::i;:::-;116818:30:::1;116845:1;116818:18;:30::i;166267:164::-:0;166344:46;166360:7;111040:10;166383:6;166344:15;:46::i;:::-;166401:22;166407:7;166416:6;166401:5;:22::i;143752:128::-;-1:-1:-1;;;;;143848:14:0;;143821:7;143848:14;;;:7;:14;;;;;46020;143848:24;45928:114;167219:409;88792:19;88815:13;;;;;;88814:14;;88862:34;;;;-1:-1:-1;88880:12:0;;88895:1;88880:12;;;;:16;88862:34;88861:108;;;-1:-1:-1;88941:4:0;78447:19;:23;;;88902:66;;-1:-1:-1;88951:12:0;;;;;:17;88902:66;88839:204;;;;-1:-1:-1;;;88839:204:0;;12350:2:1;88839:204:0;;;12332:21:1;12389:2;12369:18;;;12362:30;12428:34;12408:18;;;12401:62;-1:-1:-1;;;12479:18:1;;;12472:44;12533:19;;88839:204:0;12148:410:1;88839:204:0;89054:12;:16;;-1:-1:-1;;89054:16:0;89069:1;89054:16;;;89081:67;;;;89116:13;:20;;-1:-1:-1;;89116:20:0;;;;;89081:67;167271:30:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;167271:30:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;167271:30:0::1;;::::0;:12:::1;:30::i;:::-;167312:22;:20;:22::i;:::-;167345;:20;:22::i;:::-;167378:16;:14;:16::i;:::-;167405:17;:15;:17::i;:::-;167433:29;;;;;;;;;;;;;;-1:-1:-1::0;;;167433:29:0::1;;::::0;:18:::1;:29::i;:::-;167473:19;:17;:19::i;:::-;167503:23;:21;:23::i;:::-;167537:24;:22;:24::i;:::-;167574:46;167580:10;167603:16;125055:2:::0;167603::::1;:16;:::i;:::-;167592:27;::::0;:8:::1;:27;:::i;:::-;167574:5;:46::i;:::-;89174:14:::0;89170:102;;;89221:5;89205:21;;-1:-1:-1;;89205:21:0;;;89246:14;;-1:-1:-1;2103:36:1;;89246:14:0;;2091:2:1;2076:18;89246:14:0;;;;;;;88781:498;167219:409::o;167711:61::-;115991:13;:11;:13::i;:::-;167756:8:::1;:6;:8::i;148318:259::-:0;148405:7;148447:12;148433:11;:26;148425:70;;;;-1:-1:-1;;;148425:70:0;;9687:2:1;148425:70:0;;;9669:21:1;9726:2;9706:18;;;9699:30;9765:33;9745:18;;;9738:61;9816:18;;148425:70:0;9485:355:1;148425:70:0;148513:56;148532:23;148557:11;148513:18;:56::i;124229:104::-;124285:13;124318:7;124311:14;;;;;:::i;167636:67::-;115991:13;:11;:13::i;:::-;167684:11:::1;:9;:11::i;161216:234::-:0;161288:7;161309:16;161327:13;161344:43;161353:10;161365:21;161344:8;:43::i;:::-;161308:79;;;;161407:11;:35;;125218:12;;161407:35;;;161421:5;161407:35;161400:42;161216:234;-1:-1:-1;;;;161216:234:0:o;147347:212::-;-1:-1:-1;;;;;147454:21:0;;147420:7;147454:21;;;:12;:21;;;;;:28;147500:8;;:51;;-1:-1:-1;;;;;147515:21:0;;;;;;:12;:21;;;;;147537:7;147543:1;147537:3;:7;:::i;:::-;147515:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;147515:36:0;147500:51;;;147511:1;147500:51;-1:-1:-1;;;;;147493:58:0;;147347:212;-1:-1:-1;;;147347:212:0:o;128587:436::-;128680:4;111040:10;128680:4;128763:25;111040:10;128780:7;128763:9;:25::i;:::-;128736:52;;128827:15;128807:16;:35;;128799:85;;;;-1:-1:-1;;;128799:85:0;;14652:2:1;128799:85:0;;;14634:21:1;14691:2;14671:18;;;14664:30;14730:34;14710:18;;;14703:62;-1:-1:-1;;;14781:18:1;;;14774:35;14826:19;;128799:85:0;14450:401:1;128799:85:0;128920:60;128929:5;128936:7;128964:15;128945:16;:34;128920:8;:60::i;:::-;-1:-1:-1;129011:4:0;;128587:436;-1:-1:-1;;;;128587:436:0:o;125634:193::-;125713:4;111040:10;125769:28;111040:10;125786:2;125790:6;125769:9;:28::i;150865:602::-;151092:6;151073:15;:25;;151065:67;;;;-1:-1:-1;;;151065:67:0;;15058:2:1;151065:67:0;;;15040:21:1;15097:2;15077:18;;;15070:30;15136:31;15116:18;;;15109:59;15185:18;;151065:67:0;14856:353:1;151065:67:0;151226:58;;;146330:71;151226:58;;;15445:25:1;-1:-1:-1;;;;;15506:32:1;;15486:18;;;15479:60;;;;15555:18;;;15548:34;;;15598:18;;;15591:34;;;151143:14:0;;151160:185;;151199:87;;15417:19:1;;151226:58:0;;;;;;;;;;;;151216:69;;;;;;151199:16;:87::i;:::-;151301:1;151317;151333;151160:24;:185::i;:::-;151143:202;;151373:17;151383:6;151373:9;:17::i;:::-;151364:5;:26;151356:64;;;;-1:-1:-1;;;151356:64:0;;15838:2:1;151356:64:0;;;15820:21:1;15877:2;15857:18;;;15850:30;15916:27;15896:18;;;15889:55;15961:18;;151356:64:0;15636:349:1;151356:64:0;151431:28;151441:6;151449:9;151431;:28::i;:::-;151054:413;150865:602;;;;;;:::o;143030:656::-;143274:8;143255:15;:27;;143247:69;;;;-1:-1:-1;;;143247:69:0;;16192:2:1;143247:69:0;;;16174:21:1;16231:2;16211:18;;;16204:30;16270:31;16250:18;;;16243:59;16319:18;;143247:69:0;15990:353:1;143247:69:0;143329:18;142041:95;143389:5;143396:7;143405:5;143412:16;143422:5;143412:9;:16::i;:::-;143360:79;;;;;;16635:25:1;;;;-1:-1:-1;;;;;16734:15:1;;;16714:18;;;16707:43;16786:15;;;;16766:18;;;16759:43;16818:18;;;16811:34;16861:19;;;16854:35;16905:19;;;16898:35;;;16607:19;;143360:79:0;;;;;;;;;;;;143350:90;;;;;;143329:111;;143453:12;143468:28;143485:10;143468:16;:28::i;:::-;143453:43;;143509:14;143526:39;143551:4;143557:1;143560;143563;143526:24;:39::i;:::-;143509:56;;143594:5;-1:-1:-1;;;;;143584:15:0;:6;-1:-1:-1;;;;;143584:15:0;;143576:58;;;;-1:-1:-1;;;143576:58:0;;17146:2:1;143576:58:0;;;17128:21:1;17185:2;17165:18;;;17158:30;17224:32;17204:18;;;17197:60;17274:18;;143576:58:0;16944:354:1;143576:58:0;143647:31;143656:5;143663:7;143672:5;143647:8;:31::i;:::-;143236:450;;;143030:656;;;;;;;:::o;137226:219::-;137313:7;-1:-1:-1;;;;;137341:22:0;;137358:4;137341:22;137333:62;;;;-1:-1:-1;;;137333:62:0;;17505:2:1;137333:62:0;;;17487:21:1;17544:2;17524:18;;;17517:30;17583:29;17563:18;;;17556:57;17630:18;;137333:62:0;17303:351:1;137333:62:0;137925:7;137413:24;137844:234;125890:151;-1:-1:-1;;;;;126006:18:0;;;125979:7;126006:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;125890:151::o;146650:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;146766:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;146759:33;;;;;;;;;146766:26;;146759:33;;;;;;;;;-1:-1:-1;;;;;146759:33:0;;;;;;;;;146650:150;-1:-1:-1;;;146650:150:0:o;117011:201::-;115991:13;:11;:13::i;:::-;-1:-1:-1;;;;;117100:22:0;::::1;117092:73;;;::::0;-1:-1:-1;;;117092:73:0;;17861:2:1;117092:73:0::1;::::0;::::1;17843:21:1::0;17900:2;17880:18;;;17873:30;17939:34;17919:18;;;17912:62;-1:-1:-1;;;17990:18:1;;;17983:36;18036:19;;117092:73:0::1;17659:402:1::0;117092:73:0::1;117176:28;117195:8;117176:18;:28::i;132614:380::-:0;-1:-1:-1;;;;;132750:19:0;;132742:68;;;;-1:-1:-1;;;132742:68:0;;18268:2:1;132742:68:0;;;18250:21:1;18307:2;18287:18;;;18280:30;18346:34;18326:18;;;18319:62;-1:-1:-1;;;18397:18:1;;;18390:34;18441:19;;132742:68:0;18066:400:1;132742:68:0;-1:-1:-1;;;;;132829:21:0;;132821:68;;;;-1:-1:-1;;;132821:68:0;;18673:2:1;132821:68:0;;;18655:21:1;18712:2;18692:18;;;18685:30;18751:34;18731:18;;;18724:62;-1:-1:-1;;;18802:18:1;;;18795:32;18844:19;;132821:68:0;18471:398:1;132821:68:0;-1:-1:-1;;;;;132902:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;132954:32;;1464:25:1;;;132954:32:0;;1437:18:1;132954:32:0;;;;;;;132614:380;;;:::o;133285:453::-;133420:24;133447:25;133457:5;133464:7;133447:9;:25::i;:::-;133420:52;;-1:-1:-1;;133487:16:0;:37;133483:248;;133569:6;133549:16;:26;;133541:68;;;;-1:-1:-1;;;133541:68:0;;19076:2:1;133541:68:0;;;19058:21:1;19115:2;19095:18;;;19088:30;19154:31;19134:18;;;19127:59;19203:18;;133541:68:0;18874:353:1;133541:68:0;133653:51;133662:5;133669:7;133697:6;133678:16;:25;133653:8;:51::i;:::-;133409:329;133285:453;;;:::o;129493:840::-;-1:-1:-1;;;;;129624:18:0;;129616:68;;;;-1:-1:-1;;;129616:68:0;;19434:2:1;129616:68:0;;;19416:21:1;19473:2;19453:18;;;19446:30;19512:34;19492:18;;;19485:62;-1:-1:-1;;;19563:18:1;;;19556:35;19608:19;;129616:68:0;19232:401:1;129616:68:0;-1:-1:-1;;;;;129703:16:0;;129695:64;;;;-1:-1:-1;;;129695:64:0;;19840:2:1;129695:64:0;;;19822:21:1;19879:2;19859:18;;;19852:30;19918:34;19898:18;;;19891:62;-1:-1:-1;;;19969:18:1;;;19962:33;20012:19;;129695:64:0;19638:399:1;129695:64:0;129772:38;129793:4;129799:2;129803:6;129772:20;:38::i;:::-;-1:-1:-1;;;;;129845:15:0;;129823:19;129845:15;;;:9;:15;;;;;;129879:21;;;;129871:72;;;;-1:-1:-1;;;129871:72:0;;20244:2:1;129871:72:0;;;20226:21:1;20283:2;20263:18;;;20256:30;20322:34;20302:18;;;20295:62;-1:-1:-1;;;20373:18:1;;;20366:36;20419:19;;129871:72:0;20042:402:1;129871:72:0;-1:-1:-1;;;;;129979:15:0;;;;;;;:9;:15;;;;;;129997:20;;;129979:38;;130197:13;;;;;;;;;;:23;;;;;;130249:26;;;;;;130011:6;1464:25:1;;1452:2;1437:18;;1318:177;130249:26:0;;;;;;;;130288:37;130308:4;130314:2;130318:6;130288:19;:37::i;107813:162::-;107866:7;107893:74;106536:95;107927:17;109395:12;;;109310:105;107927:17;109750:15;;108164:73;;;;;;23422:25:1;;;23463:18;;;23456:34;;;23506:18;;;23499:34;;;108208:13:0;23549:18:1;;;23542:34;108231:4:0;23592:19:1;;;23585:61;108127:7:0;;23394:19:1;;108164:73:0;;;;;;;;;;;;108154:84;;;;;;108147:91;;107983:263;;;;;;168207:116;115991:13;:11;:13::i;95101:992::-;93054:66;95555:59;;;95551:535;;;95631:37;95650:17;95631:18;:37::i;:::-;95101:992;;;:::o;95551:535::-;95734:17;-1:-1:-1;;;;;95705:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95705:63:0;;;;;;;;-1:-1:-1;;95705:63:0;;;;;;;;;;;;:::i;:::-;;;95701:306;;95935:56;;-1:-1:-1;;;95935:56:0;;20651:2:1;95935:56:0;;;20633:21:1;20690:2;20670:18;;;20663:30;20729:34;20709:18;;;20702:62;-1:-1:-1;;;20780:18:1;;;20773:44;20834:19;;95935:56:0;20449:410:1;95701:306:0;-1:-1:-1;;;;;;;;;;;95819:28:0;;95811:82;;;;-1:-1:-1;;;95811:82:0;;21066:2:1;95811:82:0;;;21048:21:1;21105:2;21085:18;;;21078:30;21144:34;21124:18;;;21117:62;-1:-1:-1;;;21195:18:1;;;21188:39;21244:19;;95811:82:0;20864:405:1;95811:82:0;95769:140;96021:53;96039:17;96058:4;96064:9;96021:17;:53::i;148666:1917::-;149883:12;;148765:7;;;149883:12;149981:1;149972:10;;149968:262;;;149999:11;150022:28;150043:6;150022:20;:28::i;:::-;150013:37;;:6;:37;:::i;:::-;155062:25;155124:21;;;155191:4;155178:18;;149999:51;;-1:-1:-1;150107:11:0;;155174:28;;150069:35;;;:49;150065:154;;;150146:3;150139:10;;150065:154;;;150196:7;:3;150202:1;150196:7;:::i;:::-;150190:13;;150065:154;149984:246;149968:262;150255:4;150249:3;:10;150242:262;;;150276:11;150290:34;150314:3;150319:4;150290:23;:34::i;:::-;155062:25;155124:21;;;155191:4;155178:18;;150276:48;;-1:-1:-1;150381:11:0;;155174:28;;150343:35;;;:49;150339:154;;;150420:3;150413:10;;150339:154;;;150470:7;:3;150476:1;150470:7;:::i;:::-;150464:13;;150339:154;150261:243;150242:262;;;150523:9;;:52;;150539:30;150553:5;150560:8;150567:1;150560:4;:8;:::i;:::-;155062:25;155124:21;;;155191:4;155178:18;;;155174:28;;154976:244;150539:30;:36;;;;-1:-1:-1;;;;;150539:36:0;150523:52;;;150535:1;150523:52;-1:-1:-1;;;;;150516:59:0;;148666:1917;-1:-1:-1;;;;;;148666:1917:0:o;116270:132::-;116178:6;;-1:-1:-1;;;;;116178:6:0;111040:10;116334:23;116326:68;;;;-1:-1:-1;;;116326:68:0;;21476:2:1;116326:68:0;;;21458:21:1;;;21495:18;;;21488:30;21554:34;21534:18;;;21527:62;21606:18;;116326:68:0;21274:356:1;114224:120:0;113233:16;:14;:16::i;:::-;114283:7:::1;:15:::0;;-1:-1:-1;;114283:15:0::1;::::0;;114314:22:::1;111040:10:::0;114323:12:::1;114314:22;::::0;-1:-1:-1;;;;;4126:32:1;;;4108:51;;4096:2;4081:18;114314:22:0::1;;;;;;;114224:120::o:0;168624:167::-;168760:23;168772:2;168776:6;168760:11;:23::i;168799:177::-;168940:28;168952:7;168961:6;168940:11;:28::i;162297:1619::-;162386:4;162392:7;162433:1;162420:10;:14;162412:49;;;;-1:-1:-1;;;162412:49:0;;21837:2:1;162412:49:0;;;21819:21:1;21876:2;21856:18;;;21849:30;-1:-1:-1;;;21895:18:1;;;21888:52;21957:18;;162412:49:0;21635:346:1;162412:49:0;162494:23;:21;:23::i;:::-;162480:10;:37;;162472:79;;;;-1:-1:-1;;;162472:79:0;;22188:2:1;162472:79:0;;;22170:21:1;22227:2;22207:18;;;22200:30;22266:31;22246:18;;;22239:59;22315:18;;162472:79:0;21986:353:1;162472:79:0;163690:13;163706:40;:9;163735:10;163706:28;:40::i;:::-;163772:20;;163690:56;;-1:-1:-1;163763:29:0;;163759:150;;163817:5;163824:1;163809:17;;;;;;;163759:150;163867:4;163873:9;:16;;163890:5;163873:23;;;;;;;;:::i;:::-;;;;;;;;;163859:38;;;;;;;163759:150;162401:1515;162297:1619;;;;;;:::o;152938:388::-;-1:-1:-1;;;;;147236:19:0;;;153023:23;147236:19;;;:10;:19;;;;;;;;;;125402:9;:18;;;;;;153138:21;;;;:33;;;-1:-1:-1;;;;;;153138:33:0;;;;;;;153189:54;;147236:19;;;;;125402:18;;153138:33;;147236:19;;;153189:54;;153023:23;153189:54;153256:62;153273:15;153290:9;153301:16;153256;:62::i;19949:190::-;20005:6;20041:16;20032:25;;;20024:76;;;;-1:-1:-1;;;20024:76:0;;22546:2:1;20024:76:0;;;22528:21:1;22585:2;22565:18;;;22558:30;22624:34;22604:18;;;22597:62;-1:-1:-1;;;22675:18:1;;;22668:36;22721:19;;20024:76:0;22344:402:1;20024:76:0;-1:-1:-1;20125:5:0;19949:190::o;117372:191::-;117465:6;;;-1:-1:-1;;;;;117482:17:0;;;-1:-1:-1;;;;;;117482:17:0;;;;;;;117515:40;;117465:6;;;117482:17;117465:6;;117515:40;;117446:16;;117515:40;117435:128;117372:191;:::o;123621:149::-;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;123724:38:::1;123747:5;123754:7;123724:22;:38::i;165593:66::-:0;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;115648:97::-;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;115711:26:::1;:24;:26::i;112539:99::-:0;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;112603:27:::1;:25;:27::i;142748:127::-:0;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;142833:34:::1;142857:4;142833:34;;;;;;;;;;;;;-1:-1:-1::0;;;142833:34:0::1;;::::0;:23:::1;:34::i;113965:118::-:0;112974:19;:17;:19::i;:::-;114025:7:::1;:14:::0;;-1:-1:-1;;114025:14:0::1;114035:4;114025:14;::::0;;114055:20:::1;114062:12;111040:10:::0;;110960:98;160318:223;160365:7;160385:30;:18;46139:19;;46157:1;46139:19;;;46050:127;160385:30;160428:17;160448:23;:21;:23::i;:::-;160428:43;;160487:19;160496:9;160487:19;;;;1464:25:1;;1452:2;1437:18;;1318:177;160487:19:0;;;;;;;;160524:9;160318:223;-1:-1:-1;160318:223:0:o;108888:178::-;108965:7;108992:66;109025:20;:18;:20::i;:::-;109047:10;70561:57;;-1:-1:-1;;;70561:57:0;;;28251:27:1;28294:11;;;28287:27;;;28330:12;;;28323:28;;;70524:7:0;;28367:12:1;;70561:57:0;;;;;;;;;;;;70551:68;;;;;;70544:75;;70431:196;;;;;68729:279;68857:7;68878:17;68897:18;68919:25;68930:4;68936:1;68939;68942;68919:10;:25::i;:::-;68877:67;;;;68955:18;68967:5;68955:11;:18::i;:::-;-1:-1:-1;68991:9:0;68729:279;-1:-1:-1;;;;;68729:279:0:o;144263:218::-;-1:-1:-1;;;;;144395:14:0;;144323:15;144395:14;;;:7;:14;;;;;46020;;46157:1;46139:19;;;;46020:14;144456:17;144340:141;144263:218;;;:::o;167956:243::-;112974:19;:17;:19::i;:::-;168147:44:::1;168174:4;168180:2;168184:6;168147:26;:44::i;168401:215::-:0;168565:43;168591:4;168597:2;168601:6;168565:25;:43::i;93932:284::-;-1:-1:-1;;;;;78447:19:0;;;94006:106;;;;-1:-1:-1;;;94006:106:0;;23859:2:1;94006:106:0;;;23841:21:1;23898:2;23878:18;;;23871:30;23937:34;23917:18;;;23910:62;-1:-1:-1;;;23988:18:1;;;23981:43;24041:19;;94006:106:0;23657:409:1;94006:106:0;-1:-1:-1;;;;;;;;;;;94123:85:0;;-1:-1:-1;;;;;;94123:85:0;-1:-1:-1;;;;;94123:85:0;;;;;;;;;;93932:284::o;94625:297::-;94768:29;94779:17;94768:10;:29::i;:::-;94826:1;94812:4;:11;:15;:28;;;;94831:9;94812:28;94808:107;;;94857:46;94879:17;94898:4;94857:21;:46::i;53023:1673::-;53071:7;53095:1;53100;53095:6;53091:47;;-1:-1:-1;53125:1:0;;53023:1673;-1:-1:-1;53023:1673:0:o;53091:47::-;53829:14;53863:1;53852:7;53857:1;53852:4;:7::i;:::-;:12;;53846:1;:19;;53829:36;;54331:1;54320:6;54316:1;:10;;;;;:::i;:::-;;54307:6;:19;54306:26;;54297:35;;54381:1;54370:6;54366:1;:10;;;;;:::i;:::-;;54357:6;:19;54356:26;;54347:35;;54431:1;54420:6;54416:1;:10;;;;;:::i;:::-;;54407:6;:19;54406:26;;54397:35;;54481:1;54470:6;54466:1;:10;;;;;:::i;:::-;;54457:6;:19;54456:26;;54447:35;;54531:1;54520:6;54516:1;:10;;;;;:::i;:::-;;54507:6;:19;54506:26;;54497:35;;54581:1;54570:6;54566:1;:10;;;;;:::i;:::-;;54557:6;:19;54556:26;;54547:35;;54631:1;54620:6;54616:1;:10;;;;;:::i;:::-;;54607:6;:19;54606:26;;54597:35;;54654:23;54658:6;54670;54666:1;:10;;;;;:::i;:::-;;54654:3;:23::i;47424:156::-;47486:7;47561:11;47571:1;47562:5;;;47561:11;:::i;:::-;47551:21;;47552:5;;;47551:21;:::i;113713:108::-;113440:7;;;;113772:41;;;;-1:-1:-1;;;113772:41:0;;24627:2:1;113772:41:0;;;24609:21:1;24666:2;24646:18;;;24639:30;-1:-1:-1;;;24685:18:1;;;24678:50;24745:18;;113772:41:0;24425:344:1;151773:290:0;151858:28;151870:7;151879:6;151858:11;:28::i;:::-;125218:12;;-1:-1:-1;;;;;;151905:29:0;151897:90;;;;-1:-1:-1;;;151897:90:0;;24976:2:1;151897:90:0;;;24958:21:1;25015:2;24995:18;;;24988:30;25054:34;25034:18;;;25027:62;-1:-1:-1;;;25105:18:1;;;25098:46;25161:19;;151897:90:0;24774:412:1;151897:90:0;152000:55;152017:23;152042:4;152048:6;152000:16;:55::i;152157:194::-;152242:28;152254:7;152263:6;152242:11;:28::i;:::-;152283:60;152300:23;152325:9;152336:6;152283:16;:60::i;160607:127::-;160671:7;160698:28;:18;46020:14;;45928:114;74217:969;74330:12;;74306:7;;74330:17;;74326:58;;-1:-1:-1;74371:1:0;74364:8;;74326:58;74437:12;;74396:11;;74462:455;74475:4;74469:3;:10;74462:455;;;74496:11;74510:34;74534:3;74539:4;74510:23;:34::i;:::-;76600:42;76746:19;;;76804:4;76791:18;;74496:48;;-1:-1:-1;74798:7:0;;76787:28;;74765:30;:40;74761:145;;;74833:3;74826:10;;74761:145;;;74883:7;:3;74889:1;74883:7;:::i;:::-;74877:13;;74761:145;74481:436;74462:455;;;75043:1;75037:3;:7;:56;;;;-1:-1:-1;75086:7:0;75048:28;75061:5;75068:7;75074:1;75068:3;:7;:::i;75048:28::-;:34;:45;75037:56;75033:146;;;75117:7;75123:1;75117:3;:7;:::i;:::-;75110:14;;;;;;75033:146;-1:-1:-1;75164:3:0;-1:-1:-1;75157:10:0;;153334:643;153466:3;-1:-1:-1;;;;;153459:10:0;:3;-1:-1:-1;;;;;153459:10:0;;;:24;;;;;153482:1;153473:6;:10;153459:24;153455:515;;;-1:-1:-1;;;;;153504:17:0;;;153500:224;;-1:-1:-1;;;;;153600:17:0;;153543;153600;;;:12;:17;;;;;153543;;153583:54;;153619:9;153630:6;153583:16;:54::i;:::-;153542:95;;;;153682:3;-1:-1:-1;;;;;153661:47:0;;153687:9;153698;153661:47;;;;;;25365:25:1;;;25421:2;25406:18;;25399:34;25353:2;25338:18;;25191:248;153661:47:0;;;;;;;;153523:201;;153500:224;-1:-1:-1;;;;;153744:17:0;;;153740:219;;-1:-1:-1;;;;;153840:17:0;;153783;153840;;;:12;:17;;;;;153783;;153823:49;;153859:4;153865:6;153823:16;:49::i;:::-;153782:90;;;;153917:3;-1:-1:-1;;;;;153896:47:0;;153922:9;153933;153896:47;;;;;;25365:25:1;;;25421:2;25406:18;;25399:34;25353:2;25338:18;;25191:248;153896:47:0;;;;;;;;153763:196;;153334:643;;;:::o;123778:162::-;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;123891:5:::1;:13;123899:5:::0;123891;:13:::1;:::i;:::-;-1:-1:-1::0;123915:7:0::1;:17;123925:7:::0;123915;:17:::1;:::i;115753:113::-:0;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;115826:32:::1;111040:10:::0;115826:18:::1;:32::i;112646:97::-:0;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;112720:7:::1;:15:::0;;-1:-1:-1;;112720:15:0::1;::::0;;112646:97::o;107420:302::-;90935:13;;;;;;;90927:69;;;;-1:-1:-1;;;90927:69:0;;;;;;;:::i;:::-;107554:22;;::::1;::::0;;::::1;::::0;107611:25;;;;;::::1;::::0;107647:12:::1;:25:::0;;;;107683:15:::1;:31:::0;107420:302::o;113528:108::-;113440:7;;;;113598:9;113590:38;;;;-1:-1:-1;;;113590:38:0;;27850:2:1;113590:38:0;;;27832:21:1;27889:2;27869:18;;;27862:30;-1:-1:-1;;;27908:18:1;;;27901:46;27964:18;;113590:38:0;27648:340:1;67070:1520:0;67201:7;;68135:66;68122:79;;68118:163;;;-1:-1:-1;68234:1:0;;-1:-1:-1;68238:30:0;68218:51;;68118:163;68395:24;;;68378:14;68395:24;;;;;;;;;28617:25:1;;;28690:4;28678:17;;28658:18;;;28651:45;;;;28712:18;;;28705:34;;;28755:18;;;28748:34;;;68395:24:0;;28589:19:1;;68395:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68395:24:0;;-1:-1:-1;;68395:24:0;;;-1:-1:-1;;;;;;;68434:20:0;;68430:103;;68487:1;68491:29;68471:50;;;;;;;68430:103;68553:6;-1:-1:-1;68561:20:0;;-1:-1:-1;67070:1520:0;;;;;;;;:::o;62462:521::-;62540:20;62531:5;:29;;;;;;;;:::i;:::-;;62527:449;;62462:521;:::o;62527:449::-;62638:29;62629:5;:38;;;;;;;;:::i;:::-;;62625:351;;62684:34;;-1:-1:-1;;;62684:34:0;;29127:2:1;62684:34:0;;;29109:21:1;29166:2;29146:18;;;29139:30;29205:26;29185:18;;;29178:54;29249:18;;62684:34:0;28925:348:1;62625:351:0;62749:35;62740:5;:44;;;;;;;;:::i;:::-;;62736:240;;62801:41;;-1:-1:-1;;;62801:41:0;;29480:2:1;62801:41:0;;;29462:21:1;29519:2;29499:18;;;29492:30;29558:33;29538:18;;;29531:61;29609:18;;62801:41:0;29278:355:1;62736:240:0;62873:30;62864:5;:39;;;;;;;;:::i;:::-;;62860:116;;62920:44;;-1:-1:-1;;;62920:44:0;;29840:2:1;62920:44:0;;;29822:21:1;29879:2;29859:18;;;29852:30;29918:34;29898:18;;;29891:62;-1:-1:-1;;;29969:18:1;;;29962:32;30011:19;;62920:44:0;29638:398:1;161667:622:0;-1:-1:-1;;;;;161871:18:0;;161867:415;;161927:26;161950:2;161927:22;:26::i;:::-;161968:28;:26;:28::i;161867:415::-;-1:-1:-1;;;;;162018:16:0;;162014:268;;162072:28;162095:4;162072:22;:28::i;162014:268::-;162201:28;162224:4;162201:22;:28::i;:::-;162244:26;162267:2;162244:22;:26::i;152498:262::-;-1:-1:-1;;;;;147236:19:0;;;147209:7;147236:19;;;:10;:19;;;;;;;;;;;;;;;152696:56;;147236:19;;;;;152745:6;152696:16;:56::i;94329:155::-;94396:37;94415:17;94396:18;:37::i;:::-;94449:27;;-1:-1:-1;;;;;94449:27:0;;;;;;;;94329:155;:::o;99362:461::-;99445:12;-1:-1:-1;;;;;78447:19:0;;;99470:88;;;;-1:-1:-1;;;99470:88:0;;30243:2:1;99470:88:0;;;30225:21:1;30282:2;30262:18;;;30255:30;30321:34;30301:18;;;30294:62;-1:-1:-1;;;30372:18:1;;;30365:36;30418:19;;99470:88:0;30041:402:1;99470:88:0;99632:12;99646:23;99673:6;-1:-1:-1;;;;;99673:19:0;99693:4;99673:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99631:67;;;;99716:99;99752:7;99761:10;99716:99;;;;;;;;;;;;;;;;;:35;:99::i;55173:1019::-;55225:7;;55312:3;55303:12;;;:16;55299:102;;55350:3;55340:13;;;;55372;55299:102;55428:2;55419:11;;;:15;55415:99;;55465:2;55455:12;;;;55486;55415:99;55541:2;55532:11;;;:15;55528:99;;55578:2;55568:12;;;;55599;55528:99;55654:2;55645:11;;;:15;55641:99;;55691:2;55681:12;;;;55712;55641:99;55767:1;55758:10;;;:14;55754:96;;55803:1;55793:11;;;;55823;55754:96;55877:1;55868:10;;;:14;55864:96;;55913:1;55903:11;;;;55933;55864:96;55987:1;55978:10;;;:14;55974:96;;56023:1;56013:11;;;;56043;55974:96;56097:1;56088:10;;;:14;56084:66;;56133:1;56123:11;56178:6;55173:1019;-1:-1:-1;;55173:1019:0:o;47199:106::-;47257:7;47288:1;47284;:5;:13;;47296:1;47284:13;;;-1:-1:-1;47292:1:0;;47199:106;-1:-1:-1;47199:106:0:o;130620:548::-;-1:-1:-1;;;;;130704:21:0;;130696:65;;;;-1:-1:-1;;;130696:65:0;;30942:2:1;130696:65:0;;;30924:21:1;30981:2;30961:18;;;30954:30;31020:33;31000:18;;;30993:61;31071:18;;130696:65:0;30740:355:1;130696:65:0;130774:49;130803:1;130807:7;130816:6;130774:20;:49::i;:::-;130852:6;130836:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;131007:18:0;;;;;;:9;:18;;;;;;;;:28;;;;;;131062:37;1464:25:1;;;131062:37:0;;1437:18:1;131062:37:0;;;;;;;131112:48;131140:1;131144:7;131153:6;131112:19;:48::i;154759:98::-;154817:7;154844:5;154848:1;154844;:5;:::i;153985:766::-;154222:12;;154159:17;;;;;154275:8;;:59;;154305:29;154319:5;154326:7;154332:1;154326:3;:7;:::i;154305:29::-;154275:59;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;154275:59:0;;;;;;;;154286:16;;;;;;;;;-1:-1:-1;154286:16:0;;;;;;;154275:59;154247:87;;154359:7;:13;;;-1:-1:-1;;;;;154347:25:0;;;154395:20;154398:9;154409:5;154395:2;:20;;:::i;:::-;154383:32;;154438:1;154432:3;:7;:44;;;;-1:-1:-1;154443:17:0;;:33;;154464:12;154443:33;154432:44;154428:316;;;154531:40;154561:9;154531:29;:40::i;:::-;154493:29;154507:5;154514:7;154520:1;154514:3;:7;:::i;154493:29::-;:78;;-1:-1:-1;;;;;154493:78:0;;;;;;;;;;;;;;;;154428:316;;;154604:5;154615:116;;;;;;;;154638:42;154667:12;154638:28;:42::i;:::-;154615:116;;;;;;154689:40;154719:9;154689:29;:40::i;:::-;-1:-1:-1;;;;;154615:116:0;;;;;;154604:128;;;;;;;-1:-1:-1;154604:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;154428:316;154197:554;;153985:766;;;;;;:::o;131501:675::-;-1:-1:-1;;;;;131585:21:0;;131577:67;;;;-1:-1:-1;;;131577:67:0;;31302:2:1;131577:67:0;;;31284:21:1;31341:2;31321:18;;;31314:30;31380:34;31360:18;;;31353:62;-1:-1:-1;;;31431:18:1;;;31424:31;31472:19;;131577:67:0;31100:397:1;131577:67:0;131657:49;131678:7;131695:1;131699:6;131657:20;:49::i;:::-;-1:-1:-1;;;;;131744:18:0;;131719:22;131744:18;;;:9;:18;;;;;;131781:24;;;;131773:71;;;;-1:-1:-1;;;131773:71:0;;31704:2:1;131773:71:0;;;31686:21:1;31743:2;31723:18;;;31716:30;31782:34;31762:18;;;31755:62;-1:-1:-1;;;31833:18:1;;;31826:32;31875:19;;131773:71:0;31502:398:1;131773:71:0;-1:-1:-1;;;;;131880:18:0;;;;;;:9;:18;;;;;;;;131901:23;;;131880:44;;132019:12;:22;;;;;;;132070:37;1464:25:1;;;131880:18:0;;;132070:37;;1437:18:1;132070:37:0;;;;;;;132120:48;132140:7;132157:1;132161:6;132120:19;:48::i;154865:103::-;154928:7;154955:5;154959:1;154955;:5;:::i;163924:146::-;-1:-1:-1;;;;;164008:33:0;;;;;;:24;:33;;;;;;;;125402:9;:18;;;;;;;163992:70;;164008:33;163992:15;:70::i;164043:18::-;163992:15;:70::i;164078:118::-;164135:53;164151:21;164174:13;125218:12;;;125130:108;84562:305;84712:12;84741:7;84737:123;;;-1:-1:-1;84772:10:0;84765:17;;84737:123;84815:33;84823:10;84835:12;84815:7;:33::i;7113:195::-;7170:7;-1:-1:-1;;;;;7198:26:0;;;7190:78;;;;-1:-1:-1;;;7190:78:0;;32107:2:1;7190:78:0;;;32089:21:1;32146:2;32126:18;;;32119:30;32185:34;32165:18;;;32158:62;-1:-1:-1;;;32236:18:1;;;32229:37;32283:19;;7190:78:0;31905:403:1;164204:310:0;164299:17;164319:23;:21;:23::i;:::-;164299:43;-1:-1:-1;164299:43:0;164357:30;164373:9;164357:15;:30::i;:::-;:42;164353:154;;;164416:29;;;;;;;;-1:-1:-1;164416:29:0;;;;;;;;;;;;;;164460:16;;;:35;;;;;;;;;;;;;;;164204:310::o;84875:552::-;85036:17;;:21;85032:388;;85268:10;85262:17;85325:15;85312:10;85308:2;85304:19;85297:44;85032:388;85395:12;85388:20;;-1:-1:-1;;;85388:20:0;;;;;;;;:::i;164522:212::-;164616:10;;164592:7;;164616:15;;164612:115;;-1:-1:-1;164655:1:0;;164522:212;-1:-1:-1;164522:212:0:o;164612:115::-;164700:10;;164696:3;;164700:14;;164713:1;;164700:14;:::i;:::-;164696:19;;;;;;;;:::i;:::-;;;;;;;;;164689:26;;164522:212;;;:::o;164612:115::-;164522:212;;;:::o;14:250:1:-;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:1;238:16;;231:27;14:250::o;269:396::-;418:2;407:9;400:21;381:4;450:6;444:13;493:6;488:2;477:9;473:18;466:34;509:79;581:6;576:2;565:9;561:18;556:2;548:6;544:15;509:79;:::i;:::-;649:2;628:15;-1:-1:-1;;624:29:1;609:45;;;;656:2;605:54;;269:396;-1:-1:-1;;269:396:1:o;670:131::-;-1:-1:-1;;;;;745:31:1;;735:42;;725:70;;791:1;788;781:12;806:315;874:6;882;935:2;923:9;914:7;910:23;906:32;903:52;;;951:1;948;941:12;903:52;990:9;977:23;1009:31;1034:5;1009:31;:::i;:::-;1059:5;1111:2;1096:18;;;;1083:32;;-1:-1:-1;;;806:315:1:o;1500:456::-;1577:6;1585;1593;1646:2;1634:9;1625:7;1621:23;1617:32;1614:52;;;1662:1;1659;1652:12;1614:52;1701:9;1688:23;1720:31;1745:5;1720:31;:::i;:::-;1770:5;-1:-1:-1;1827:2:1;1812:18;;1799:32;1840:33;1799:32;1840:33;:::i;:::-;1500:456;;1892:7;;-1:-1:-1;;;1946:2:1;1931:18;;;;1918:32;;1500:456::o;2332:247::-;2391:6;2444:2;2432:9;2423:7;2419:23;2415:32;2412:52;;;2460:1;2457;2450:12;2412:52;2499:9;2486:23;2518:31;2543:5;2518:31;:::i;2584:180::-;2643:6;2696:2;2684:9;2675:7;2671:23;2667:32;2664:52;;;2712:1;2709;2702:12;2664:52;-1:-1:-1;2735:23:1;;2584:180;-1:-1:-1;2584:180:1:o;2769:127::-;2830:10;2825:3;2821:20;2818:1;2811:31;2861:4;2858:1;2851:15;2885:4;2882:1;2875:15;2901:1056;2978:6;2986;3039:2;3027:9;3018:7;3014:23;3010:32;3007:52;;;3055:1;3052;3045:12;3007:52;3094:9;3081:23;3113:31;3138:5;3113:31;:::i;:::-;3163:5;-1:-1:-1;3219:2:1;3204:18;;3191:32;3242:18;3272:14;;;3269:34;;;3299:1;3296;3289:12;3269:34;3337:6;3326:9;3322:22;3312:32;;3382:7;3375:4;3371:2;3367:13;3363:27;3353:55;;3404:1;3401;3394:12;3353:55;3440:2;3427:16;3462:2;3458;3455:10;3452:36;;;3468:18;;:::i;:::-;3543:2;3537:9;3511:2;3597:13;;-1:-1:-1;;3593:22:1;;;3617:2;3589:31;3585:40;3573:53;;;3641:18;;;3661:22;;;3638:46;3635:72;;;3687:18;;:::i;:::-;3727:10;3723:2;3716:22;3762:2;3754:6;3747:18;3802:7;3797:2;3792;3788;3784:11;3780:20;3777:33;3774:53;;;3823:1;3820;3813:12;3774:53;3879:2;3874;3870;3866:11;3861:2;3853:6;3849:15;3836:46;3924:1;3919:2;3914;3906:6;3902:15;3898:24;3891:35;3945:6;3935:16;;;;;;;2901:1056;;;;;:::o;4170:975::-;4306:6;4314;4322;4330;4338;4391:3;4379:9;4370:7;4366:23;4362:33;4359:53;;;4408:1;4405;4398:12;4359:53;4447:9;4434:23;4466:31;4491:5;4466:31;:::i;:::-;4516:5;-1:-1:-1;4573:2:1;4558:18;;4545:32;4586:33;4545:32;4586:33;:::i;:::-;4638:7;-1:-1:-1;4692:2:1;4677:18;;4664:32;;-1:-1:-1;4747:2:1;4732:18;;4719:32;4770:18;4800:14;;;4797:34;;;4827:1;4824;4817:12;4797:34;4865:6;4854:9;4850:22;4840:32;;4910:7;4903:4;4899:2;4895:13;4891:27;4881:55;;4932:1;4929;4922:12;4881:55;4972:2;4959:16;4998:2;4990:6;4987:14;4984:34;;;5014:1;5011;5004:12;4984:34;5059:7;5054:2;5045:6;5041:2;5037:15;5033:24;5030:37;5027:57;;;5080:1;5077;5070:12;5027:57;4170:975;;;;-1:-1:-1;4170:975:1;;-1:-1:-1;5111:2:1;5103:11;;5133:6;4170:975;-1:-1:-1;;;4170:975:1:o;5347:156::-;5413:20;;5473:4;5462:16;;5452:27;;5442:55;;5493:1;5490;5483:12;5508:592;5610:6;5618;5626;5634;5642;5650;5703:3;5691:9;5682:7;5678:23;5674:33;5671:53;;;5720:1;5717;5710:12;5671:53;5759:9;5746:23;5778:31;5803:5;5778:31;:::i;:::-;5828:5;-1:-1:-1;5880:2:1;5865:18;;5852:32;;-1:-1:-1;5931:2:1;5916:18;;5903:32;;-1:-1:-1;5954:36:1;5986:2;5971:18;;5954:36;:::i;:::-;5944:46;;6037:3;6026:9;6022:19;6009:33;5999:43;;6089:3;6078:9;6074:19;6061:33;6051:43;;5508:592;;;;;;;;:::o;6105:734::-;6216:6;6224;6232;6240;6248;6256;6264;6317:3;6305:9;6296:7;6292:23;6288:33;6285:53;;;6334:1;6331;6324:12;6285:53;6373:9;6360:23;6392:31;6417:5;6392:31;:::i;:::-;6442:5;-1:-1:-1;6499:2:1;6484:18;;6471:32;6512:33;6471:32;6512:33;:::i;:::-;6564:7;-1:-1:-1;6618:2:1;6603:18;;6590:32;;-1:-1:-1;6669:2:1;6654:18;;6641:32;;-1:-1:-1;6692:37:1;6724:3;6709:19;;6692:37;:::i;:::-;6682:47;;6776:3;6765:9;6761:19;6748:33;6738:43;;6828:3;6817:9;6813:19;6800:33;6790:43;;6105:734;;;;;;;;;;:::o;6844:388::-;6912:6;6920;6973:2;6961:9;6952:7;6948:23;6944:32;6941:52;;;6989:1;6986;6979:12;6941:52;7028:9;7015:23;7047:31;7072:5;7047:31;:::i;:::-;7097:5;-1:-1:-1;7154:2:1;7139:18;;7126:32;7167:33;7126:32;7167:33;:::i;:::-;7219:7;7209:17;;;6844:388;;;;;:::o;7237:419::-;7304:6;7312;7365:2;7353:9;7344:7;7340:23;7336:32;7333:52;;;7381:1;7378;7371:12;7333:52;7420:9;7407:23;7439:31;7464:5;7439:31;:::i;:::-;7489:5;-1:-1:-1;7546:2:1;7531:18;;7518:32;7594:10;7581:24;;7569:37;;7559:65;;7620:1;7617;7610:12;8012:380;8091:1;8087:12;;;;8134;;;8155:61;;8209:4;8201:6;8197:17;8187:27;;8155:61;8262:2;8254:6;8251:14;8231:18;8228:38;8225:161;;8308:10;8303:3;8299:20;8296:1;8289:31;8343:4;8340:1;8333:15;8371:4;8368:1;8361:15;8397:408;8599:2;8581:21;;;8638:2;8618:18;;;8611:30;8677:34;8672:2;8657:18;;8650:62;-1:-1:-1;;;8743:2:1;8728:18;;8721:42;8795:3;8780:19;;8397:408::o;8810:::-;9012:2;8994:21;;;9051:2;9031:18;;;9024:30;9090:34;9085:2;9070:18;;9063:62;-1:-1:-1;;;9156:2:1;9141:18;;9134:42;9208:3;9193:19;;8810:408::o;9223:127::-;9284:10;9279:3;9275:20;9272:1;9265:31;9315:4;9312:1;9305:15;9339:4;9336:1;9329:15;9355:125;9420:9;;;9441:10;;;9438:36;;;9454:18;;:::i;10682:734::-;-1:-1:-1;;;;;10989:15:1;;;10971:34;;11041:15;;11036:2;11021:18;;11014:43;11088:2;11073:18;;11066:34;;;11131:2;11116:18;;11109:34;;;10951:3;11174;11159:19;;11152:32;;;11200:19;;11193:35;;;10914:4;11221:6;11271;11265:3;11250:19;;11237:49;11336:1;11330:3;11321:6;11310:9;11306:22;11302:32;11295:43;11406:3;11399:2;11395:7;11390:2;11382:6;11378:15;11374:29;11363:9;11359:45;11355:55;11347:63;;10682:734;;;;;;;;;:::o;11421:184::-;11491:6;11544:2;11532:9;11523:7;11519:23;11515:32;11512:52;;;11560:1;11557;11550:12;11512:52;-1:-1:-1;11583:16:1;;11421:184;-1:-1:-1;11421:184:1:o;12015:128::-;12082:9;;;12103:11;;;12100:37;;;12117:18;;:::i;12563:422::-;12652:1;12695:5;12652:1;12709:270;12730:7;12720:8;12717:21;12709:270;;;12789:4;12785:1;12781:6;12777:17;12771:4;12768:27;12765:53;;;12798:18;;:::i;:::-;12848:7;12838:8;12834:22;12831:55;;;12868:16;;;;12831:55;12947:22;;;;12907:15;;;;12709:270;;12990:806;13039:5;13069:8;13059:80;;-1:-1:-1;13110:1:1;13124:5;;13059:80;13158:4;13148:76;;-1:-1:-1;13195:1:1;13209:5;;13148:76;13240:4;13258:1;13253:59;;;;13326:1;13321:130;;;;13233:218;;13253:59;13283:1;13274:10;;13297:5;;;13321:130;13358:3;13348:8;13345:17;13342:43;;;13365:18;;:::i;:::-;-1:-1:-1;;13421:1:1;13407:16;;13436:5;;13233:218;;13535:2;13525:8;13522:16;13516:3;13510:4;13507:13;13503:36;13497:2;13487:8;13484:16;13479:2;13473:4;13470:12;13466:35;13463:77;13460:159;;;-1:-1:-1;13572:19:1;;;13604:5;;13460:159;13651:34;13676:8;13670:4;13651:34;:::i;:::-;13721:6;13717:1;13713:6;13709:19;13700:7;13697:32;13694:58;;;13732:18;;:::i;:::-;13770:20;;12990:806;-1:-1:-1;;;12990:806:1:o;13801:140::-;13859:5;13888:47;13929:4;13919:8;13915:19;13909:4;13888:47;:::i;13946:168::-;14019:9;;;14050;;14067:15;;;14061:22;;14047:37;14037:71;;14088:18;;:::i;14318:127::-;14379:10;14374:3;14370:20;14367:1;14360:31;14410:4;14407:1;14400:15;14434:4;14431:1;14424:15;22751:407;22953:2;22935:21;;;22992:2;22972:18;;;22965:30;23031:34;23026:2;23011:18;;23004:62;-1:-1:-1;;;23097:2:1;23082:18;;23075:41;23148:3;23133:19;;22751:407::o;24071:127::-;24132:10;24127:3;24123:20;24120:1;24113:31;24163:4;24160:1;24153:15;24187:4;24184:1;24177:15;24203:217;24243:1;24269;24259:132;;24313:10;24308:3;24304:20;24301:1;24294:31;24348:4;24345:1;24338:15;24376:4;24373:1;24366:15;24259:132;-1:-1:-1;24405:9:1;;24203:217::o;25570:545::-;25672:2;25667:3;25664:11;25661:448;;;25708:1;25733:5;25729:2;25722:17;25778:4;25774:2;25764:19;25848:2;25836:10;25832:19;25829:1;25825:27;25819:4;25815:38;25884:4;25872:10;25869:20;25866:47;;;-1:-1:-1;25907:4:1;25866:47;25962:2;25957:3;25953:12;25950:1;25946:20;25940:4;25936:31;25926:41;;26017:82;26035:2;26028:5;26025:13;26017:82;;;26080:17;;;26061:1;26050:13;26017:82;;;26021:3;;;25570:545;;;:::o;26291:1352::-;26417:3;26411:10;26444:18;26436:6;26433:30;26430:56;;;26466:18;;:::i;:::-;26495:97;26585:6;26545:38;26577:4;26571:11;26545:38;:::i;:::-;26539:4;26495:97;:::i;:::-;26647:4;;26711:2;26700:14;;26728:1;26723:663;;;;27430:1;27447:6;27444:89;;;-1:-1:-1;27499:19:1;;;27493:26;27444:89;-1:-1:-1;;26248:1:1;26244:11;;;26240:24;26236:29;26226:40;26272:1;26268:11;;;26223:57;27546:81;;26693:944;;26723:663;25517:1;25510:14;;;25554:4;25541:18;;-1:-1:-1;;26759:20:1;;;26877:236;26891:7;26888:1;26885:14;26877:236;;;26980:19;;;26974:26;26959:42;;27072:27;;;;27040:1;27028:14;;;;26907:19;;26877:236;;;26881:3;27141:6;27132:7;27129:19;27126:201;;;27202:19;;;27196:26;-1:-1:-1;;27285:1:1;27281:14;;;27297:3;27277:24;27273:37;27269:42;27254:58;27239:74;;27126:201;-1:-1:-1;;;;;27373:1:1;27357:14;;;27353:22;27340:36;;-1:-1:-1;26291:1352:1:o;28793:127::-;28854:10;28849:3;28845:20;28842:1;28835:31;28885:4;28882:1;28875:15;28909:4;28906:1;28899:15;30448:287;30577:3;30615:6;30609:13;30631:66;30690:6;30685:3;30678:4;30670:6;30666:17;30631:66;:::i;:::-;30713:16;;;;;30448:287;-1:-1:-1;;30448:287:1:o
Swarm Source
ipfs://30944a2a25b8ea885cc9280ef27b2b6e415b4dfed51f177f0fd3e5e4ab587ed3
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.