Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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 Source Code Verified (Exact Match)
Contract Name:
PymeToken
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-09-23 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967Upgradeable { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); } // File: @openzeppelin/contracts-upgradeable/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/contracts-upgradeable/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/contracts-upgradeable/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/contracts-upgradeable/interfaces/IERC6372Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC6372.sol) pragma solidity ^0.8.0; interface IERC6372Upgradeable { /** * @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting). */ function clock() external view returns (uint48); /** * @dev Description of the clock */ // solhint-disable-next-line func-name-mixedcase function CLOCK_MODE() external view returns (string memory); } // File: @openzeppelin/contracts-upgradeable/governance/utils/IVotesUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. */ function getPastVotes(address account, uint256 timepoint) external view returns (uint256); /** * @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. * * 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 timepoint) 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/contracts-upgradeable/interfaces/IERC5805Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5805.sol) pragma solidity ^0.8.0; interface IERC5805Upgradeable is IERC6372Upgradeable, IVotesUpgradeable {} // File: @openzeppelin/contracts-upgradeable/interfaces/IERC5267Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267Upgradeable { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // File: @openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMathUpgradeable { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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/contracts-upgradeable/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/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @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 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } // File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. 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: * ```solidity * 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`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes 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 } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: @openzeppelin/contracts-upgradeable/utils/ArraysUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.17/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @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; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.17/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @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; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.17/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(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/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.9.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] * ```solidity * 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 Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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._ */ abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable { 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 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) { AddressUpgradeable.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 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 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) { AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), 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/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeTo(address newImplementation) public 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. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public 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/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; /** * @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]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:storage-size 52 */ abstract contract EIP712Upgradeable is Initializable, IERC5267Upgradeable { bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /// @custom:oz-renamed-from _HASHED_NAME bytes32 private _hashedName; /// @custom:oz-renamed-from _HASHED_VERSION bytes32 private _hashedVersion; string private _name; string private _version; /** * @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 { _name = name; _version = version; // Reset prior values in storage if upgrading _hashedName = 0; _hashedVersion = 0; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(); } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized // and the EIP712 domain is not reliable, as it will be missing name and version. require(_hashedName == 0 && _hashedVersion == 0, "EIP712: Uninitialized"); return ( hex"0f", // 01111 _EIP712Name(), _EIP712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev 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 _EIP712Name() internal virtual view returns (string memory) { return _name; } /** * @dev 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 _EIP712Version() internal virtual view returns (string memory) { return _version; } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead. */ function _EIP712NameHash() internal view returns (bytes32) { string memory name = _EIP712Name(); if (bytes(name).length > 0) { return keccak256(bytes(name)); } else { // If the name is empty, the contract may have been upgraded without initializing the new storage. // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design. bytes32 hashedName = _hashedName; if (hashedName != 0) { return hashedName; } else { return keccak256(""); } } } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead. */ function _EIP712VersionHash() internal view returns (bytes32) { string memory version = _EIP712Version(); if (bytes(version).length > 0) { return keccak256(bytes(version)); } else { // If the version is empty, the contract may have been upgraded without initializing the new storage. // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design. bytes32 hashedVersion = _hashedVersion; if (hashedVersion != 0) { return hashedVersion; } else { return keccak256(""); } } } /** * @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[48] private __gap; } // File: @openzeppelin/contracts-upgradeable/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/contracts-upgradeable/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/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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/contracts-upgradeable/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/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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: contracts/ERC20CappedUpgradeable.sol pragma solidity ^0.8.9; abstract contract ERC20CappedUpgradeable is ERC20Upgradeable { uint256 private _cap; function __ERC20Capped_init(uint256 cap_) internal initializer { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } function cap() public view virtual returns (uint256) { return _cap; } function _mint(address account, uint256 amount) internal virtual override { require(ERC20Upgradeable.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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, ERC20PermitUpgradeable, IERC5805Upgradeable { 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 Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting). */ function clock() public view virtual override returns (uint48) { return SafeCastUpgradeable.toUint48(block.number); } /** * @dev Description of the clock */ // solhint-disable-next-line func-name-mixedcase function CLOCK_MODE() public view virtual override returns (string memory) { // Check that the clock was not modified require(clock() == block.number, "ERC20Votes: broken clock mode"); return "mode=blocknumber&from=default"; } /** * @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; unchecked { return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } } /** * @dev Retrieve the number of votes for `account` at the end of `timepoint`. * * Requirements: * * - `timepoint` must be in the past */ function getPastVotes(address account, uint256 timepoint) public view virtual override returns (uint256) { require(timepoint < clock(), "ERC20Votes: future lookup"); return _checkpointsLookup(_checkpoints[account], timepoint); } /** * @dev Retrieve the `totalSupply` at the end of `timepoint`. Note, this value is the sum of all balances. * It is NOT the sum of all the delegated votes! * * Requirements: * * - `timepoint` must be in the past */ function getPastTotalSupply(uint256 timepoint) public view virtual override returns (uint256) { require(timepoint < clock(), "ERC20Votes: future lookup"); return _checkpointsLookup(_totalSupplyCheckpoints, timepoint); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 timepoint) private view returns (uint256) { // We run a binary search to look for the last (most recent) checkpoint taken before (or at) `timepoint`. // // 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 `timepoint`, we look in [low, mid) // - If the middle checkpoint is before or equal to `timepoint`, 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 `timepoint`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `timepoint`, 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 > timepoint) { high = mid; } else { low = mid + 1; } } while (low < high) { uint256 mid = MathUpgradeable.average(low, high); if (_unsafeAccess(ckpts, mid).fromBlock > timepoint) { high = mid; } else { low = mid + 1; } } unchecked { 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; unchecked { Checkpoint memory oldCkpt = pos == 0 ? Checkpoint(0, 0) : _unsafeAccess(ckpts, pos - 1); oldWeight = oldCkpt.votes; newWeight = op(oldWeight, delta); if (pos > 0 && oldCkpt.fromBlock == clock()) { _unsafeAccess(ckpts, pos - 1).votes = SafeCastUpgradeable.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCastUpgradeable.toUint32(clock()), 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; } /** * @dev Access an element of the array without performing bounds check. The position is assumed to be within bounds. */ 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/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; // EIP-2612 is Final as of 2022-11-01. This file is deprecated. // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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/contracts-upgradeable/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: contracts/PymeTokenv3.sol pragma solidity ^0.8.9; /* Contract: PYME Token Contract Version: v0.0.3 Date: 23rd of September, 2023 Author: Bilal Motiwala Security Contact: [email protected] */ contract PymeToken is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, OwnableUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, UUPSUpgradeable, ERC20CappedUpgradeable { // DEPRECATED - Whitelist Mapping, Mapping Retained For Storage Layout Sanctity mapping (address => bool) private whitelist; // DEPRECATED - Whitelist Mapping, Mapping Retained For Storage Layout Sanctity mapping (address => bool) private blacklist; constructor() { _disableInitializers(); } function initialize() initializer public { __ERC20_init("PymeDAO", "PYME"); __ERC20Burnable_init(); __ERC20Snapshot_init(); __Ownable_init(); __Pausable_init(); __ERC20Permit_init("PymeDAO"); __ERC20Votes_init(); __UUPSUpgradeable_init(); __ERC20Capped_init(1000000000 * 10 ** decimals()); _mint(msg.sender, 510000000 * 10 ** decimals()); } function snapshot() public onlyOwner { _snapshot(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal 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, ERC20CappedUpgradeable) { 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
[{"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":[],"name":"EIP712DomainChanged","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":"CLOCK_MODE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"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":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"clock","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"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":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timepoint","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"timepoint","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":"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":"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":[{"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
60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e7565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e5576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b60805161399e6200011f6000396000818161086e015281816108b701528181610b0f01528181610b4f0152610bde015261399e6000f3fe60806040526004361061023b5760003560e01c806370a082311161012e5780639711715a116100ab578063c3cda5201161006f578063c3cda520146106bb578063d505accf146106db578063dd62ed3e146106fb578063f1127ed81461071b578063f2fde38b1461076557600080fd5b80639711715a14610626578063981b24d01461063b5780639ab24eb01461065b578063a457c2d71461067b578063a9059cbb1461069b57600080fd5b806384b0196e116100f257806384b0196e1461057f5780638da5cb5b146105a75780638e539e8c146105c557806391ddadf4146105e557806395d89b411461061157600080fd5b806370a08231146104df578063715018a61461051557806379cc67901461052a5780637ecebe001461054a5780638129fc1c1461056a57600080fd5b806340c10f19116101bc57806352d1902d1161018057806352d1902d1461040b578063587cde1e146104205780635c19a95c146104725780635c975abb146104925780636fcfff45146104aa57600080fd5b806340c10f191461038357806342966c68146103a35780634bf5d7e9146103c35780634ee2cd7e146103d85780634f1ef286146103f857600080fd5b8063355274ea11610203578063355274ea146102f65780633644e5151461030c5780633659cfe61461032157806339509351146103435780633a46b1a81461036357600080fd5b806306fdde0314610240578063095ea7b31461026b57806318160ddd1461029b57806323b872dd146102ba578063313ce567146102da575b600080fd5b34801561024c57600080fd5b50610255610785565b604051610262919061315f565b60405180910390f35b34801561027757600080fd5b5061028b610286366004613189565b610817565b6040519015158152602001610262565b3480156102a757600080fd5b506035545b604051908152602001610262565b3480156102c657600080fd5b5061028b6102d53660046131b3565b610831565b3480156102e657600080fd5b5060405160128152602001610262565b34801561030257600080fd5b5061022a546102ac565b34801561031857600080fd5b506102ac610855565b34801561032d57600080fd5b5061034161033c3660046131ef565b610864565b005b34801561034f57600080fd5b5061028b61035e366004613189565b61094c565b34801561036f57600080fd5b506102ac61037e366004613189565b61096e565b34801561038f57600080fd5b5061034161039e366004613189565b6109f4565b3480156103af57600080fd5b506103416103be36600461320a565b610a0a565b3480156103cf57600080fd5b50610255610a14565b3480156103e457600080fd5b506102ac6103f3366004613189565b610aac565b610341610406366004613239565b610b05565b34801561041757600080fd5b506102ac610bd1565b34801561042c57600080fd5b5061045a61043b3660046131ef565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b039091168152602001610262565b34801561047e57600080fd5b5061034161048d3660046131ef565b610c84565b34801561049e57600080fd5b5060fb5460ff1661028b565b3480156104b657600080fd5b506104ca6104c53660046131ef565b610c8e565b60405163ffffffff9091168152602001610262565b3480156104eb57600080fd5b506102ac6104fa3660046131ef565b6001600160a01b031660009081526033602052604090205490565b34801561052157600080fd5b50610341610cb1565b34801561053657600080fd5b50610341610545366004613189565b610cc5565b34801561055657600080fd5b506102ac6105653660046131ef565b610cda565b34801561057657600080fd5b50610341610cf9565b34801561058b57600080fd5b50610594610e9c565b60405161026297969594939291906132fb565b3480156105b357600080fd5b5060c9546001600160a01b031661045a565b3480156105d157600080fd5b506102ac6105e036600461320a565b610f3c565b3480156105f157600080fd5b506105fa610fa4565b60405165ffffffffffff9091168152602001610262565b34801561061d57600080fd5b50610255610faf565b34801561063257600080fd5b50610341610fbe565b34801561064757600080fd5b506102ac61065636600461320a565b610fce565b34801561066757600080fd5b506102ac6106763660046131ef565b610ff9565b34801561068757600080fd5b5061028b610696366004613189565b61107d565b3480156106a757600080fd5b5061028b6106b6366004613189565b6110f8565b3480156106c757600080fd5b506103416106d63660046133a2565b611106565b3480156106e757600080fd5b506103416106f63660046133fa565b61123c565b34801561070757600080fd5b506102ac610716366004613464565b6113a0565b34801561072757600080fd5b5061073b610736366004613497565b6113cb565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610262565b34801561077157600080fd5b506103416107803660046131ef565b611450565b606060368054610794906134d7565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906134d7565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050905090565b6000336108258185856114c6565b60019150505b92915050565b60003361083f8582856115ea565b61084a858585611664565b506001949350505050565b600061085f611820565b905090565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036108b55760405162461bcd60e51b81526004016108ac9061350b565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166108fe600080516020613922833981519152546001600160a01b031690565b6001600160a01b0316146109245760405162461bcd60e51b81526004016108ac90613557565b61092d8161182a565b6040805160008082526020820190925261094991839190611832565b50565b60003361082581858561095f83836113a0565b61096991906135b9565b6114c6565b6000610978610fa4565b65ffffffffffff1682106109ca5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016108ac565b6001600160a01b0383166000908152610195602052604090206109ed90836119a2565b9392505050565b6109fc611a8b565b610a068282611ae5565b5050565b6109493382611aef565b606043610a1f610fa4565b65ffffffffffff1614610a745760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016108ac565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6001600160a01b038216600090815260976020526040812081908190610ad3908590611af9565b9150915081610afa576001600160a01b038516600090815260336020526040902054610afc565b805b95945050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610b4d5760405162461bcd60e51b81526004016108ac9061350b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b96600080516020613922833981519152546001600160a01b031690565b6001600160a01b031614610bbc5760405162461bcd60e51b81526004016108ac90613557565b610bc58261182a565b610a0682826001611832565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c715760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108ac565b5060008051602061392283398151915290565b6109493382611bf5565b6001600160a01b0381166000908152610195602052604081205461082b90611c70565b610cb9611a8b565b610cc36000611cd9565b565b610cd08233836115ea565b610a068282611aef565b6001600160a01b0381166000908152610161602052604081205461082b565b600054610100900460ff1615808015610d195750600054600160ff909116105b80610d335750303b158015610d33575060005460ff166001145b610d4f5760405162461bcd60e51b81526004016108ac906135cc565b6000805460ff191660011790558015610d72576000805461ff0019166101001790555b610db76040518060400160405280600781526020016650796d6544414f60c81b8152506040518060400160405280600481526020016350594d4560e01b815250611d2b565b610dbf611d5c565b610dc7611d5c565b610dcf611d83565b610dd7611db2565b610dff6040518060400160405280600781526020016650796d6544414f60c81b815250611de1565b610e07611d5c565b610e0f611d5c565b610e31610e1e6012600a6136f6565b610e2c90633b9aca00613705565b611e2b565b610e5433610e416012600a6136f6565b610e4f90631e65fb80613705565b611ae5565b8015610949576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b60006060806000806000606061012d546000801b148015610ebe575061012e54155b610f025760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016108ac565b610f0a611f3b565b610f12611f4b565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610f46610fa4565b65ffffffffffff168210610f985760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016108ac565b61082b610196836119a2565b600061085f43611f5b565b606060378054610794906134d7565b610fc6611a8b565b610949611fc2565b6000806000610fde846098611af9565b9150915081610fef57603554610ff1565b805b949350505050565b6001600160a01b03811660009081526101956020526040812054801561106a576001600160a01b038316600090815261019560205260409020805460001983019081106110485761104861371c565b60009182526020909120015464010000000090046001600160e01b031661106d565b60005b6001600160e01b03169392505050565b6000338161108b82866113a0565b9050838110156110eb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108ac565b61084a82868684036114c6565b600033610825818585611664565b834211156111565760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016108ac565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906111d0906111c89060a0016040516020818303038152906040528051906020012061201c565b858585612049565b90506111db81612071565b86146112295760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016108ac565b6112338188611bf5565b50505050505050565b8342111561128c5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108ac565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886112bb8c612071565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006113168261201c565b9050600061132682878787612049565b9050896001600160a01b0316816001600160a01b0316146113895760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108ac565b6113948a8a8a6114c6565b50505050505050505050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff84169081106114105761141061371c565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b611458611a8b565b6001600160a01b0381166114bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ac565b61094981611cd9565b6001600160a01b0383166115285760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108ac565b6001600160a01b0382166115895760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108ac565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006115f684846113a0565b9050600019811461165e57818110156116515760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108ac565b61165e84848484036114c6565b50505050565b6001600160a01b0383166116c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108ac565b6001600160a01b03821661172a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108ac565b61173583838361209a565b6001600160a01b038316600090815260336020526040902054818110156117ad5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108ac565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061180d9086815260200190565b60405180910390a361165e8484846120a5565b600061085f6120b0565b610949611a8b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561186a5761186583612124565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118c4575060408051601f3d908101601f191682019092526118c191810190613732565b60015b6119275760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108ac565b60008051602061392283398151915281146119965760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108ac565b506118658383836121c0565b8154600090818160058111156119fc5760006119bd846121e5565b6119c7908561374b565b600088815260209020909150869082015463ffffffff1611156119ec578091506119fa565b6119f78160016135b9565b92505b505b80821015611a49576000611a1083836122cd565b600088815260209020909150869082015463ffffffff161115611a3557809150611a43565b611a408160016135b9565b92505b506119fc565b8015611a75576000868152602090208101600019015464010000000090046001600160e01b0316611a78565b60005b6001600160e01b03169695505050505050565b60c9546001600160a01b03163314610cc35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ac565b610a0682826122e8565b610a068282612358565b60008060008411611b455760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016108ac565b611b4d612371565b841115611b9c5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016108ac565b6000611ba8848661237c565b84549091508103611bc0576000809250925050611bee565b6001846001018281548110611bd757611bd761371c565b90600052602060002001549250925050611bee565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461165e828483612429565b600063ffffffff821115611cd55760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016108ac565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611d525760405162461bcd60e51b81526004016108ac9061375e565b610a068282612568565b600054610100900460ff16610cc35760405162461bcd60e51b81526004016108ac9061375e565b600054610100900460ff16611daa5760405162461bcd60e51b81526004016108ac9061375e565b610cc36125a8565b600054610100900460ff16611dd95760405162461bcd60e51b81526004016108ac9061375e565b610cc36125d8565b600054610100900460ff16611e085760405162461bcd60e51b81526004016108ac9061375e565b61094981604051806040016040528060018152602001603160f81b81525061260b565b600054610100900460ff1615808015611e4b5750600054600160ff909116105b80611e655750303b158015611e65575060005460ff166001145b611e815760405162461bcd60e51b81526004016108ac906135cc565b6000805460ff191660011790558015611ea4576000805461ff0019166101001790555b60008211611eec5760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b60448201526064016108ac565b61022a8290558015610a06576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b606061012f8054610794906134d7565b60606101308054610794906134d7565b600065ffffffffffff821115611cd55760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016108ac565b6000611fd2609a80546001019055565b6000611fdc612371565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161200f91815260200190565b60405180910390a1919050565b600061082b612029611820565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061205a8787878761265e565b9150915061206781612722565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b61186583838361286c565b6118658383836128b4565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6120db6128e7565b6120e3612941565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b0381163b6121915760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108ac565b60008051602061392283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6121c983612973565b6000825111806121d65750805b156118655761165e83836129b3565b6000816000036121f757506000919050565b60006001612204846129d8565b901c6001901b9050600181848161221d5761221d6137a9565b048201901c90506001818481612235576122356137a9565b048201901c9050600181848161224d5761224d6137a9565b048201901c90506001818481612265576122656137a9565b048201901c9050600181848161227d5761227d6137a9565b048201901c90506001818481612295576122956137a9565b048201901c905060018184816122ad576122ad6137a9565b048201901c90506109ed818285816122c7576122c76137a9565b04612a6c565b60006122dc60028484186137bf565b6109ed908484166135b9565b61022a54816122f660355490565b61230091906135b9565b111561234e5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016108ac565b610a068282612a82565b6123628282612b0d565b61165e610196612c5483612c60565b600061085f609a5490565b8154600090810361238f5750600061082b565b82546000905b808210156123dc5760006123a983836122cd565b600087815260209020909150859082015411156123c8578091506123d6565b6123d38160016135b9565b92505b50612395565b600082118015612408575083612405866123f760018661374b565b600091825260209091200190565b54145b156124215761241860018361374b565b9250505061082b565b50905061082b565b816001600160a01b0316836001600160a01b03161415801561244b5750600081115b15611865576001600160a01b038316156124da576001600160a01b038316600090815261019560205260408120819061248790612c5485612c60565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124cf929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611865576001600160a01b038216600090815261019560205260408120819061251190612dd585612c60565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612559929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff1661258f5760405162461bcd60e51b81526004016108ac9061375e565b603661259b838261382f565b506037611865828261382f565b600054610100900460ff166125cf5760405162461bcd60e51b81526004016108ac9061375e565b610cc333611cd9565b600054610100900460ff166125ff5760405162461bcd60e51b81526004016108ac9061375e565b60fb805460ff19169055565b600054610100900460ff166126325760405162461bcd60e51b81526004016108ac9061375e565b61012f61263f838261382f565b5061013061264d828261382f565b5050600061012d81905561012e5550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126955750600090506003612719565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661271257600060019250925050612719565b9150600090505b94509492505050565b6000816004811115612736576127366138ef565b0361273e5750565b6001816004811115612752576127526138ef565b0361279f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108ac565b60028160048111156127b3576127b36138ef565b036128005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108ac565b6003816004811115612814576128146138ef565b036109495760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108ac565b6001600160a01b03831661288b5761288382612de1565b611865612e14565b6001600160a01b0382166128a25761288383612de1565b6128ab83612de1565b61186582612de1565b6001600160a01b038381166000908152610194602052604080822054858416835291205461186592918216911683612429565b6000806128f2611f3b565b805190915015612909578051602090910120919050565b61012d5480156129195792915050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4709250505090565b60008061294c611f4b565b805190915015612963578051602090910120919050565b61012e5480156129195792915050565b61297c81612124565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109ed838360405180606001604052806027815260200161394260279139612e22565b600080608083901c156129ed57608092831c92015b604083901c156129ff57604092831c92015b602083901c15612a1157602092831c92015b601083901c15612a2357601092831c92015b600883901c15612a3557600892831c92015b600483901c15612a4757600492831c92015b600283901c15612a5957600292831c92015b600183901c1561082b5760010192915050565b6000818310612a7b57816109ed565b5090919050565b612a8c8282612e9a565b6035546001600160e01b031015612afe5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016108ac565b61165e610196612dd583612c60565b6001600160a01b038216612b6d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108ac565b612b798260008361209a565b6001600160a01b03821660009081526033602052604090205481811015612bed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108ac565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611865836000846120a5565b60006109ed828461374b565b82546000908190818115612cad5760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152612cc2565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350612ce284868863ffffffff16565b9250600082118015612d0c5750612cf7610fa4565b65ffffffffffff16816000015163ffffffff16145b15612d5157612d1a83612f6f565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff909216919091179055612dcb565b866040518060400160405280612d75612d68610fa4565b65ffffffffffff16611c70565b63ffffffff168152602001612d8986612f6f565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b60006109ed82846135b9565b6001600160a01b03811660009081526097602090815260408083206033909252909120546109499190612fd8565b612fd8565b610cc36098612e0f60355490565b6060600080856001600160a01b031685604051612e3f9190613905565b600060405180830381855af49150503d8060008114612e7a576040519150601f19603f3d011682016040523d82523d6000602084013e612e7f565b606091505b5091509150612e9086838387613022565b9695505050505050565b6001600160a01b038216612ef05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108ac565b612efc6000838361209a565b8060356000828254612f0e91906135b9565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a06600083836120a5565b60006001600160e01b03821115611cd55760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016108ac565b6000612fe2612371565b905080612fee8461309b565b1015611865578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b6060831561309157825160000361308a576001600160a01b0385163b61308a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108ac565b5081610ff1565b610ff183836130e5565b805460009081036130ae57506000919050565b815482906130be9060019061374b565b815481106130ce576130ce61371c565b90600052602060002001549050919050565b919050565b8151156130f55781518083602001fd5b8060405162461bcd60e51b81526004016108ac919061315f565b60005b8381101561312a578181015183820152602001613112565b50506000910152565b6000815180845261314b81602086016020860161310f565b601f01601f19169290920160200192915050565b6020815260006109ed6020830184613133565b80356001600160a01b03811681146130e057600080fd5b6000806040838503121561319c57600080fd5b6131a583613172565b946020939093013593505050565b6000806000606084860312156131c857600080fd5b6131d184613172565b92506131df60208501613172565b9150604084013590509250925092565b60006020828403121561320157600080fd5b6109ed82613172565b60006020828403121561321c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561324c57600080fd5b61325583613172565b9150602083013567ffffffffffffffff8082111561327257600080fd5b818501915085601f83011261328657600080fd5b81358181111561329857613298613223565b604051601f8201601f19908116603f011681019083821181831017156132c0576132c0613223565b816040528281528860208487010111156132d957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60ff60f81b881681526000602060e08184015261331b60e084018a613133565b838103604085015261332d818a613133565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561337f57835183529284019291840191600101613363565b50909c9b505050505050505050505050565b803560ff811681146130e057600080fd5b60008060008060008060c087890312156133bb57600080fd5b6133c487613172565b955060208701359450604087013593506133e060608801613391565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561341557600080fd5b61341e88613172565b965061342c60208901613172565b9550604088013594506060880135935061344860808901613391565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561347757600080fd5b61348083613172565b915061348e60208401613172565b90509250929050565b600080604083850312156134aa57600080fd5b6134b383613172565b9150602083013563ffffffff811681146134cc57600080fd5b809150509250929050565b600181811c908216806134eb57607f821691505b60208210810361209457634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561082b5761082b6135a3565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181815b80851115611bec57816000190482111561363b5761363b6135a3565b8085161561364857918102915b93841c939080029061361f565b6000826136645750600161082b565b816136715750600061082b565b81600181146136875760028114613691576136ad565b600191505061082b565b60ff8411156136a2576136a26135a3565b50506001821b61082b565b5060208310610133831016604e8410600b84101617156136d0575081810a61082b565b6136da838361361a565b80600019048211156136ee576136ee6135a3565b029392505050565b60006109ed60ff841683613655565b808202811582820484141761082b5761082b6135a3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561374457600080fd5b5051919050565b8181038181111561082b5761082b6135a3565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137dc57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561186557600081815260208120601f850160051c810160208610156138085750805b601f850160051c820191505b8181101561382757828155600101613814565b505050505050565b815167ffffffffffffffff81111561384957613849613223565b61385d8161385784546134d7565b846137e1565b602080601f831160018114613892576000841561387a5750858301515b600019600386901b1c1916600185901b178555613827565b600085815260208120601f198616915b828110156138c1578886015182559484019460019091019084016138a2565b50858210156138df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b6000825161391781846020870161310f565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b858e2a72bb75dc042a2543dce7567335ba3ea1c114bfa78c8942acdca92b7ab64736f6c63430008120033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c806370a082311161012e5780639711715a116100ab578063c3cda5201161006f578063c3cda520146106bb578063d505accf146106db578063dd62ed3e146106fb578063f1127ed81461071b578063f2fde38b1461076557600080fd5b80639711715a14610626578063981b24d01461063b5780639ab24eb01461065b578063a457c2d71461067b578063a9059cbb1461069b57600080fd5b806384b0196e116100f257806384b0196e1461057f5780638da5cb5b146105a75780638e539e8c146105c557806391ddadf4146105e557806395d89b411461061157600080fd5b806370a08231146104df578063715018a61461051557806379cc67901461052a5780637ecebe001461054a5780638129fc1c1461056a57600080fd5b806340c10f19116101bc57806352d1902d1161018057806352d1902d1461040b578063587cde1e146104205780635c19a95c146104725780635c975abb146104925780636fcfff45146104aa57600080fd5b806340c10f191461038357806342966c68146103a35780634bf5d7e9146103c35780634ee2cd7e146103d85780634f1ef286146103f857600080fd5b8063355274ea11610203578063355274ea146102f65780633644e5151461030c5780633659cfe61461032157806339509351146103435780633a46b1a81461036357600080fd5b806306fdde0314610240578063095ea7b31461026b57806318160ddd1461029b57806323b872dd146102ba578063313ce567146102da575b600080fd5b34801561024c57600080fd5b50610255610785565b604051610262919061315f565b60405180910390f35b34801561027757600080fd5b5061028b610286366004613189565b610817565b6040519015158152602001610262565b3480156102a757600080fd5b506035545b604051908152602001610262565b3480156102c657600080fd5b5061028b6102d53660046131b3565b610831565b3480156102e657600080fd5b5060405160128152602001610262565b34801561030257600080fd5b5061022a546102ac565b34801561031857600080fd5b506102ac610855565b34801561032d57600080fd5b5061034161033c3660046131ef565b610864565b005b34801561034f57600080fd5b5061028b61035e366004613189565b61094c565b34801561036f57600080fd5b506102ac61037e366004613189565b61096e565b34801561038f57600080fd5b5061034161039e366004613189565b6109f4565b3480156103af57600080fd5b506103416103be36600461320a565b610a0a565b3480156103cf57600080fd5b50610255610a14565b3480156103e457600080fd5b506102ac6103f3366004613189565b610aac565b610341610406366004613239565b610b05565b34801561041757600080fd5b506102ac610bd1565b34801561042c57600080fd5b5061045a61043b3660046131ef565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b039091168152602001610262565b34801561047e57600080fd5b5061034161048d3660046131ef565b610c84565b34801561049e57600080fd5b5060fb5460ff1661028b565b3480156104b657600080fd5b506104ca6104c53660046131ef565b610c8e565b60405163ffffffff9091168152602001610262565b3480156104eb57600080fd5b506102ac6104fa3660046131ef565b6001600160a01b031660009081526033602052604090205490565b34801561052157600080fd5b50610341610cb1565b34801561053657600080fd5b50610341610545366004613189565b610cc5565b34801561055657600080fd5b506102ac6105653660046131ef565b610cda565b34801561057657600080fd5b50610341610cf9565b34801561058b57600080fd5b50610594610e9c565b60405161026297969594939291906132fb565b3480156105b357600080fd5b5060c9546001600160a01b031661045a565b3480156105d157600080fd5b506102ac6105e036600461320a565b610f3c565b3480156105f157600080fd5b506105fa610fa4565b60405165ffffffffffff9091168152602001610262565b34801561061d57600080fd5b50610255610faf565b34801561063257600080fd5b50610341610fbe565b34801561064757600080fd5b506102ac61065636600461320a565b610fce565b34801561066757600080fd5b506102ac6106763660046131ef565b610ff9565b34801561068757600080fd5b5061028b610696366004613189565b61107d565b3480156106a757600080fd5b5061028b6106b6366004613189565b6110f8565b3480156106c757600080fd5b506103416106d63660046133a2565b611106565b3480156106e757600080fd5b506103416106f63660046133fa565b61123c565b34801561070757600080fd5b506102ac610716366004613464565b6113a0565b34801561072757600080fd5b5061073b610736366004613497565b6113cb565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610262565b34801561077157600080fd5b506103416107803660046131ef565b611450565b606060368054610794906134d7565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906134d7565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050905090565b6000336108258185856114c6565b60019150505b92915050565b60003361083f8582856115ea565b61084a858585611664565b506001949350505050565b600061085f611820565b905090565b6001600160a01b037f000000000000000000000000f7c35798c05cfdc94f3a704cd4f905bd0d59092a1630036108b55760405162461bcd60e51b81526004016108ac9061350b565b60405180910390fd5b7f000000000000000000000000f7c35798c05cfdc94f3a704cd4f905bd0d59092a6001600160a01b03166108fe600080516020613922833981519152546001600160a01b031690565b6001600160a01b0316146109245760405162461bcd60e51b81526004016108ac90613557565b61092d8161182a565b6040805160008082526020820190925261094991839190611832565b50565b60003361082581858561095f83836113a0565b61096991906135b9565b6114c6565b6000610978610fa4565b65ffffffffffff1682106109ca5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016108ac565b6001600160a01b0383166000908152610195602052604090206109ed90836119a2565b9392505050565b6109fc611a8b565b610a068282611ae5565b5050565b6109493382611aef565b606043610a1f610fa4565b65ffffffffffff1614610a745760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016108ac565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6001600160a01b038216600090815260976020526040812081908190610ad3908590611af9565b9150915081610afa576001600160a01b038516600090815260336020526040902054610afc565b805b95945050505050565b6001600160a01b037f000000000000000000000000f7c35798c05cfdc94f3a704cd4f905bd0d59092a163003610b4d5760405162461bcd60e51b81526004016108ac9061350b565b7f000000000000000000000000f7c35798c05cfdc94f3a704cd4f905bd0d59092a6001600160a01b0316610b96600080516020613922833981519152546001600160a01b031690565b6001600160a01b031614610bbc5760405162461bcd60e51b81526004016108ac90613557565b610bc58261182a565b610a0682826001611832565b6000306001600160a01b037f000000000000000000000000f7c35798c05cfdc94f3a704cd4f905bd0d59092a1614610c715760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108ac565b5060008051602061392283398151915290565b6109493382611bf5565b6001600160a01b0381166000908152610195602052604081205461082b90611c70565b610cb9611a8b565b610cc36000611cd9565b565b610cd08233836115ea565b610a068282611aef565b6001600160a01b0381166000908152610161602052604081205461082b565b600054610100900460ff1615808015610d195750600054600160ff909116105b80610d335750303b158015610d33575060005460ff166001145b610d4f5760405162461bcd60e51b81526004016108ac906135cc565b6000805460ff191660011790558015610d72576000805461ff0019166101001790555b610db76040518060400160405280600781526020016650796d6544414f60c81b8152506040518060400160405280600481526020016350594d4560e01b815250611d2b565b610dbf611d5c565b610dc7611d5c565b610dcf611d83565b610dd7611db2565b610dff6040518060400160405280600781526020016650796d6544414f60c81b815250611de1565b610e07611d5c565b610e0f611d5c565b610e31610e1e6012600a6136f6565b610e2c90633b9aca00613705565b611e2b565b610e5433610e416012600a6136f6565b610e4f90631e65fb80613705565b611ae5565b8015610949576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b60006060806000806000606061012d546000801b148015610ebe575061012e54155b610f025760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016108ac565b610f0a611f3b565b610f12611f4b565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610f46610fa4565b65ffffffffffff168210610f985760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016108ac565b61082b610196836119a2565b600061085f43611f5b565b606060378054610794906134d7565b610fc6611a8b565b610949611fc2565b6000806000610fde846098611af9565b9150915081610fef57603554610ff1565b805b949350505050565b6001600160a01b03811660009081526101956020526040812054801561106a576001600160a01b038316600090815261019560205260409020805460001983019081106110485761104861371c565b60009182526020909120015464010000000090046001600160e01b031661106d565b60005b6001600160e01b03169392505050565b6000338161108b82866113a0565b9050838110156110eb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108ac565b61084a82868684036114c6565b600033610825818585611664565b834211156111565760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016108ac565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906111d0906111c89060a0016040516020818303038152906040528051906020012061201c565b858585612049565b90506111db81612071565b86146112295760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016108ac565b6112338188611bf5565b50505050505050565b8342111561128c5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108ac565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886112bb8c612071565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006113168261201c565b9050600061132682878787612049565b9050896001600160a01b0316816001600160a01b0316146113895760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108ac565b6113948a8a8a6114c6565b50505050505050505050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff84169081106114105761141061371c565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b611458611a8b565b6001600160a01b0381166114bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ac565b61094981611cd9565b6001600160a01b0383166115285760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108ac565b6001600160a01b0382166115895760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108ac565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006115f684846113a0565b9050600019811461165e57818110156116515760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108ac565b61165e84848484036114c6565b50505050565b6001600160a01b0383166116c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108ac565b6001600160a01b03821661172a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108ac565b61173583838361209a565b6001600160a01b038316600090815260336020526040902054818110156117ad5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108ac565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061180d9086815260200190565b60405180910390a361165e8484846120a5565b600061085f6120b0565b610949611a8b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561186a5761186583612124565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118c4575060408051601f3d908101601f191682019092526118c191810190613732565b60015b6119275760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108ac565b60008051602061392283398151915281146119965760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108ac565b506118658383836121c0565b8154600090818160058111156119fc5760006119bd846121e5565b6119c7908561374b565b600088815260209020909150869082015463ffffffff1611156119ec578091506119fa565b6119f78160016135b9565b92505b505b80821015611a49576000611a1083836122cd565b600088815260209020909150869082015463ffffffff161115611a3557809150611a43565b611a408160016135b9565b92505b506119fc565b8015611a75576000868152602090208101600019015464010000000090046001600160e01b0316611a78565b60005b6001600160e01b03169695505050505050565b60c9546001600160a01b03163314610cc35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ac565b610a0682826122e8565b610a068282612358565b60008060008411611b455760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016108ac565b611b4d612371565b841115611b9c5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016108ac565b6000611ba8848661237c565b84549091508103611bc0576000809250925050611bee565b6001846001018281548110611bd757611bd761371c565b90600052602060002001549250925050611bee565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461165e828483612429565b600063ffffffff821115611cd55760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016108ac565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611d525760405162461bcd60e51b81526004016108ac9061375e565b610a068282612568565b600054610100900460ff16610cc35760405162461bcd60e51b81526004016108ac9061375e565b600054610100900460ff16611daa5760405162461bcd60e51b81526004016108ac9061375e565b610cc36125a8565b600054610100900460ff16611dd95760405162461bcd60e51b81526004016108ac9061375e565b610cc36125d8565b600054610100900460ff16611e085760405162461bcd60e51b81526004016108ac9061375e565b61094981604051806040016040528060018152602001603160f81b81525061260b565b600054610100900460ff1615808015611e4b5750600054600160ff909116105b80611e655750303b158015611e65575060005460ff166001145b611e815760405162461bcd60e51b81526004016108ac906135cc565b6000805460ff191660011790558015611ea4576000805461ff0019166101001790555b60008211611eec5760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b60448201526064016108ac565b61022a8290558015610a06576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b606061012f8054610794906134d7565b60606101308054610794906134d7565b600065ffffffffffff821115611cd55760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016108ac565b6000611fd2609a80546001019055565b6000611fdc612371565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161200f91815260200190565b60405180910390a1919050565b600061082b612029611820565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061205a8787878761265e565b9150915061206781612722565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b61186583838361286c565b6118658383836128b4565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6120db6128e7565b6120e3612941565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b0381163b6121915760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108ac565b60008051602061392283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6121c983612973565b6000825111806121d65750805b156118655761165e83836129b3565b6000816000036121f757506000919050565b60006001612204846129d8565b901c6001901b9050600181848161221d5761221d6137a9565b048201901c90506001818481612235576122356137a9565b048201901c9050600181848161224d5761224d6137a9565b048201901c90506001818481612265576122656137a9565b048201901c9050600181848161227d5761227d6137a9565b048201901c90506001818481612295576122956137a9565b048201901c905060018184816122ad576122ad6137a9565b048201901c90506109ed818285816122c7576122c76137a9565b04612a6c565b60006122dc60028484186137bf565b6109ed908484166135b9565b61022a54816122f660355490565b61230091906135b9565b111561234e5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016108ac565b610a068282612a82565b6123628282612b0d565b61165e610196612c5483612c60565b600061085f609a5490565b8154600090810361238f5750600061082b565b82546000905b808210156123dc5760006123a983836122cd565b600087815260209020909150859082015411156123c8578091506123d6565b6123d38160016135b9565b92505b50612395565b600082118015612408575083612405866123f760018661374b565b600091825260209091200190565b54145b156124215761241860018361374b565b9250505061082b565b50905061082b565b816001600160a01b0316836001600160a01b03161415801561244b5750600081115b15611865576001600160a01b038316156124da576001600160a01b038316600090815261019560205260408120819061248790612c5485612c60565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124cf929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611865576001600160a01b038216600090815261019560205260408120819061251190612dd585612c60565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612559929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff1661258f5760405162461bcd60e51b81526004016108ac9061375e565b603661259b838261382f565b506037611865828261382f565b600054610100900460ff166125cf5760405162461bcd60e51b81526004016108ac9061375e565b610cc333611cd9565b600054610100900460ff166125ff5760405162461bcd60e51b81526004016108ac9061375e565b60fb805460ff19169055565b600054610100900460ff166126325760405162461bcd60e51b81526004016108ac9061375e565b61012f61263f838261382f565b5061013061264d828261382f565b5050600061012d81905561012e5550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126955750600090506003612719565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661271257600060019250925050612719565b9150600090505b94509492505050565b6000816004811115612736576127366138ef565b0361273e5750565b6001816004811115612752576127526138ef565b0361279f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108ac565b60028160048111156127b3576127b36138ef565b036128005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108ac565b6003816004811115612814576128146138ef565b036109495760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108ac565b6001600160a01b03831661288b5761288382612de1565b611865612e14565b6001600160a01b0382166128a25761288383612de1565b6128ab83612de1565b61186582612de1565b6001600160a01b038381166000908152610194602052604080822054858416835291205461186592918216911683612429565b6000806128f2611f3b565b805190915015612909578051602090910120919050565b61012d5480156129195792915050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4709250505090565b60008061294c611f4b565b805190915015612963578051602090910120919050565b61012e5480156129195792915050565b61297c81612124565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109ed838360405180606001604052806027815260200161394260279139612e22565b600080608083901c156129ed57608092831c92015b604083901c156129ff57604092831c92015b602083901c15612a1157602092831c92015b601083901c15612a2357601092831c92015b600883901c15612a3557600892831c92015b600483901c15612a4757600492831c92015b600283901c15612a5957600292831c92015b600183901c1561082b5760010192915050565b6000818310612a7b57816109ed565b5090919050565b612a8c8282612e9a565b6035546001600160e01b031015612afe5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016108ac565b61165e610196612dd583612c60565b6001600160a01b038216612b6d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108ac565b612b798260008361209a565b6001600160a01b03821660009081526033602052604090205481811015612bed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108ac565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611865836000846120a5565b60006109ed828461374b565b82546000908190818115612cad5760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b03166020820152612cc2565b60408051808201909152600080825260208201525b905080602001516001600160e01b03169350612ce284868863ffffffff16565b9250600082118015612d0c5750612cf7610fa4565b65ffffffffffff16816000015163ffffffff16145b15612d5157612d1a83612f6f565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff909216919091179055612dcb565b866040518060400160405280612d75612d68610fa4565b65ffffffffffff16611c70565b63ffffffff168152602001612d8986612f6f565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b60006109ed82846135b9565b6001600160a01b03811660009081526097602090815260408083206033909252909120546109499190612fd8565b612fd8565b610cc36098612e0f60355490565b6060600080856001600160a01b031685604051612e3f9190613905565b600060405180830381855af49150503d8060008114612e7a576040519150601f19603f3d011682016040523d82523d6000602084013e612e7f565b606091505b5091509150612e9086838387613022565b9695505050505050565b6001600160a01b038216612ef05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108ac565b612efc6000838361209a565b8060356000828254612f0e91906135b9565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a06600083836120a5565b60006001600160e01b03821115611cd55760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016108ac565b6000612fe2612371565b905080612fee8461309b565b1015611865578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b6060831561309157825160000361308a576001600160a01b0385163b61308a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108ac565b5081610ff1565b610ff183836130e5565b805460009081036130ae57506000919050565b815482906130be9060019061374b565b815481106130ce576130ce61371c565b90600052602060002001549050919050565b919050565b8151156130f55781518083602001fd5b8060405162461bcd60e51b81526004016108ac919061315f565b60005b8381101561312a578181015183820152602001613112565b50506000910152565b6000815180845261314b81602086016020860161310f565b601f01601f19169290920160200192915050565b6020815260006109ed6020830184613133565b80356001600160a01b03811681146130e057600080fd5b6000806040838503121561319c57600080fd5b6131a583613172565b946020939093013593505050565b6000806000606084860312156131c857600080fd5b6131d184613172565b92506131df60208501613172565b9150604084013590509250925092565b60006020828403121561320157600080fd5b6109ed82613172565b60006020828403121561321c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561324c57600080fd5b61325583613172565b9150602083013567ffffffffffffffff8082111561327257600080fd5b818501915085601f83011261328657600080fd5b81358181111561329857613298613223565b604051601f8201601f19908116603f011681019083821181831017156132c0576132c0613223565b816040528281528860208487010111156132d957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60ff60f81b881681526000602060e08184015261331b60e084018a613133565b838103604085015261332d818a613133565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561337f57835183529284019291840191600101613363565b50909c9b505050505050505050505050565b803560ff811681146130e057600080fd5b60008060008060008060c087890312156133bb57600080fd5b6133c487613172565b955060208701359450604087013593506133e060608801613391565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561341557600080fd5b61341e88613172565b965061342c60208901613172565b9550604088013594506060880135935061344860808901613391565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561347757600080fd5b61348083613172565b915061348e60208401613172565b90509250929050565b600080604083850312156134aa57600080fd5b6134b383613172565b9150602083013563ffffffff811681146134cc57600080fd5b809150509250929050565b600181811c908216806134eb57607f821691505b60208210810361209457634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561082b5761082b6135a3565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181815b80851115611bec57816000190482111561363b5761363b6135a3565b8085161561364857918102915b93841c939080029061361f565b6000826136645750600161082b565b816136715750600061082b565b81600181146136875760028114613691576136ad565b600191505061082b565b60ff8411156136a2576136a26135a3565b50506001821b61082b565b5060208310610133831016604e8410600b84101617156136d0575081810a61082b565b6136da838361361a565b80600019048211156136ee576136ee6135a3565b029392505050565b60006109ed60ff841683613655565b808202811582820484141761082b5761082b6135a3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561374457600080fd5b5051919050565b8181038181111561082b5761082b6135a3565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826137dc57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561186557600081815260208120601f850160051c810160208610156138085750805b601f850160051c820191505b8181101561382757828155600101613814565b505050505050565b815167ffffffffffffffff81111561384957613849613223565b61385d8161385784546134d7565b846137e1565b602080601f831160018114613892576000841561387a5750858301515b600019600386901b1c1916600185901b178555613827565b600085815260208120601f198616915b828110156138c1578886015182559484019460019091019084016138a2565b50858210156138df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b6000825161391781846020870161310f565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b858e2a72bb75dc042a2543dce7567335ba3ea1c114bfa78c8942acdca92b7ab64736f6c63430008120033
Deployed Bytecode Sourcemap
173897:2232:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134826:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;137186:201;;;;;;;;;;-1:-1:-1;137186:201:0;;;;;:::i;:::-;;:::i;:::-;;;1372:14:1;;1365:22;1347:41;;1335:2;1320:18;137186:201:0;1207:187:1;135955:108:0;;;;;;;;;;-1:-1:-1;136043:12:0;;135955:108;;;1545:25:1;;;1533:2;1518:18;135955:108:0;1399:177:1;137967:261:0;;;;;;;;;;-1:-1:-1;137967:261:0;;;;;:::i;:::-;;:::i;135797:93::-;;;;;;;;;;-1:-1:-1;135797:93:0;;135880:2;2056:36:1;;2044:2;2029:18;135797:93:0;1914:184:1;146448:83:0;;;;;;;;;;-1:-1:-1;146519:4:0;;146448:83;;149893:115;;;;;;;;;;;;;:::i;111243:198::-;;;;;;;;;;-1:-1:-1;111243:198:0;;;;;:::i;:::-;;:::i;:::-;;138637:238;;;;;;;;;;-1:-1:-1;138637:238:0;;;;;:::i;:::-;;:::i;154319:251::-;;;;;;;;;;-1:-1:-1;154319:251:0;;;;;:::i;:::-;;:::i;175002:95::-;;;;;;;;;;-1:-1:-1;175002:95:0;;;;;:::i;:::-;;:::i;172783:91::-;;;;;;;;;;-1:-1:-1;172783:91:0;;;;;:::i;:::-;;:::i;152845:258::-;;;;;;;;;;;;;:::i;167812:266::-;;;;;;;;;;-1:-1:-1;167812:266:0;;;;;:::i;:::-;;:::i;111772:223::-;;;;;;:::i;:::-;;:::i;110849:133::-;;;;;;;;;;;;;:::i;153670:128::-;;;;;;;;;;-1:-1:-1;153670:128:0;;;;;:::i;:::-;-1:-1:-1;;;;;153771:19:0;;;153744:7;153771:19;;;:10;:19;;;;;;;;153670:128;;;;-1:-1:-1;;;;;3957:32:1;;;3939:51;;3927:2;3912:18;153670:128:0;3793:203:1;157215:114:0;;;;;;;;;;-1:-1:-1;157215:114:0;;;;;:::i;:::-;;:::i;124246:86::-;;;;;;;;;;-1:-1:-1;124317:7:0;;;;124246:86;;153415:162;;;;;;;;;;-1:-1:-1;153415:162:0;;;;;:::i;:::-;;:::i;:::-;;;4175:10:1;4163:23;;;4145:42;;4133:2;4118:18;153415:162:0;4001:192:1;136126:127:0;;;;;;;;;;-1:-1:-1;136126:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;136227:18:0;136200:7;136227:18;;;:9;:18;;;;;;;136126:127;127617:103;;;;;;;;;;;;;:::i;173193:164::-;;;;;;;;;;-1:-1:-1;173193:164:0;;;;;:::i;:::-;;:::i;149635:128::-;;;;;;;;;;-1:-1:-1;149635:128:0;;;;;:::i;:::-;;:::i;174484:435::-;;;;;;;;;;;;;:::i;117326:889::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;126976:87::-;;;;;;;;;;-1:-1:-1;127049:6:0;;-1:-1:-1;;;;;127049:6:0;126976:87;;154842:242;;;;;;;;;;-1:-1:-1;154842:242:0;;;;;:::i;:::-;;:::i;152596:131::-;;;;;;;;;;;;;:::i;:::-;;;5636:14:1;5624:27;;;5606:46;;5594:2;5579:18;152596:131:0;5462:196:1;135045:104:0;;;;;;;;;;;;;:::i;174927:67::-;;;;;;;;;;;;;:::i;168182:234::-;;;;;;;;;;-1:-1:-1;168182:234:0;;;;;:::i;:::-;;:::i;153882:248::-;;;;;;;;;;-1:-1:-1;153882:248:0;;;;;:::i;:::-;;:::i;139378:436::-;;;;;;;;;;-1:-1:-1;139378:436:0;;;;;:::i;:::-;;:::i;136459:193::-;;;;;;;;;;-1:-1:-1;136459:193:0;;;;;:::i;:::-;;:::i;157411:602::-;;;;;;;;;;-1:-1:-1;157411:602:0;;;;;:::i;:::-;;:::i;148913:656::-;;;;;;;;;;-1:-1:-1;148913:656:0;;;;;:::i;:::-;;:::i;136715:151::-;;;;;;;;;;-1:-1:-1;136715:151:0;;;;;:::i;:::-;;:::i;153185:150::-;;;;;;;;;;-1:-1:-1;153185:150:0;;;;;:::i;:::-;;:::i;:::-;;;;7815:13:1;;7830:10;7811:30;7793:49;;7902:4;7890:17;;;7884:24;-1:-1:-1;;;;;7880:50:1;7858:20;;;7851:80;;;;7766:18;153185:150:0;7591:346:1;127875:201:0;;;;;;;;;;-1:-1:-1;127875:201:0;;;;;:::i;:::-;;:::i;134826:100::-;134880:13;134913:5;134906:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134826:100;:::o;137186:201::-;137269:4;121923:10;137325:32;121923:10;137341:7;137350:6;137325:8;:32::i;:::-;137375:4;137368:11;;;137186:201;;;;;:::o;137967:261::-;138064:4;121923:10;138122:38;138138:4;121923:10;138153:6;138122:15;:38::i;:::-;138171:27;138181:4;138187:2;138191:6;138171:9;:27::i;:::-;-1:-1:-1;138216:4:0;;137967:261;-1:-1:-1;;;;137967:261:0:o;149893:115::-;149953:7;149980:20;:18;:20::i;:::-;149973:27;;149893:115;:::o;111243:198::-;-1:-1:-1;;;;;109719:6:0;109702:23;109710:4;109702:23;109694:80;;;;-1:-1:-1;;;109694:80:0;;;;;;;:::i;:::-;;;;;;;;;109817:6;-1:-1:-1;;;;;109793:30:0;:20;-1:-1:-1;;;;;;;;;;;102491:65:0;-1:-1:-1;;;;;102491:65:0;;102411:153;109793:20;-1:-1:-1;;;;;109793:30:0;;109785:87;;;;-1:-1:-1;;;109785:87:0;;;;;;;:::i;:::-;111325:36:::1;111343:17;111325;:36::i;:::-;111413:12;::::0;;111423:1:::1;111413:12:::0;;;::::1;::::0;::::1;::::0;;;111372:61:::1;::::0;111394:17;;111413:12;111372:21:::1;:61::i;:::-;111243:198:::0;:::o;138637:238::-;138725:4;121923:10;138781:64;121923:10;138797:7;138834:10;138806:25;121923:10;138797:7;138806:9;:25::i;:::-;:38;;;;:::i;:::-;138781:8;:64::i;154319:251::-;154415:7;154455;:5;:7::i;:::-;154443:19;;:9;:19;154435:57;;;;-1:-1:-1;;;154435:57:0;;9617:2:1;154435:57:0;;;9599:21:1;9656:2;9636:18;;;9629:30;-1:-1:-1;;;9675:18:1;;;9668:55;9740:18;;154435:57:0;9415:349:1;154435:57:0;-1:-1:-1;;;;;154529:21:0;;;;;;:12;:21;;;;;154510:52;;154552:9;154510:18;:52::i;:::-;154503:59;154319:251;-1:-1:-1;;;154319:251:0:o;175002:95::-;126862:13;:11;:13::i;:::-;175072:17:::1;175078:2;175082:6;175072:5;:17::i;:::-;175002:95:::0;;:::o;172783:91::-;172839:27;121923:10;172859:6;172839:5;:27::i;152845:258::-;152905:13;153000:12;152989:7;:5;:7::i;:::-;:23;;;152981:65;;;;-1:-1:-1;;;152981:65:0;;9971:2:1;152981:65:0;;;9953:21:1;10010:2;9990:18;;;9983:30;10049:31;10029:18;;;10022:59;10098:18;;152981:65:0;9769:353:1;152981:65:0;-1:-1:-1;153057:38:0;;;;;;;;;;;;;;;;;;152845:258::o;167812:266::-;-1:-1:-1;;;;;167976:33:0;;167899:7;167976:33;;;:24;:33;;;;;167899:7;;;;167955:55;;167964:10;;167955:8;:55::i;:::-;167919:91;;;;168030:11;:40;;-1:-1:-1;;;;;136227:18:0;;136200:7;136227:18;;;:9;:18;;;;;;168030:40;;;168044:5;168030:40;168023:47;167812:266;-1:-1:-1;;;;;167812:266:0:o;111772:223::-;-1:-1:-1;;;;;109719:6:0;109702:23;109710:4;109702:23;109694:80;;;;-1:-1:-1;;;109694:80:0;;;;;;;:::i;:::-;109817:6;-1:-1:-1;;;;;109793:30:0;:20;-1:-1:-1;;;;;;;;;;;102491:65:0;-1:-1:-1;;;;;102491:65:0;;102411:153;109793:20;-1:-1:-1;;;;;109793:30:0;;109785:87;;;;-1:-1:-1;;;109785:87:0;;;;;;;:::i;:::-;111888:36:::1;111906:17;111888;:36::i;:::-;111935:52;111957:17;111976:4;111982;111935:21;:52::i;110849:133::-:0;110927:7;110155:4;-1:-1:-1;;;;;110164:6:0;110147:23;;110139:92;;;;-1:-1:-1;;;110139:92:0;;10329:2:1;110139:92:0;;;10311:21:1;10368:2;10348:18;;;10341:30;10407:34;10387:18;;;10380:62;10478:26;10458:18;;;10451:54;10522:19;;110139:92:0;10127:420:1;110139:92:0;-1:-1:-1;;;;;;;;;;;;110849:133:0;:::o;157215:114::-;157287:34;121923:10;157311:9;157287;:34::i;153415:162::-;-1:-1:-1;;;;;153540:21:0;;153485:6;153540:21;;;:12;:21;;;;;:28;153511:58;;:28;:58::i;127617:103::-;126862:13;:11;:13::i;:::-;127682:30:::1;127709:1;127682:18;:30::i;:::-;127617:103::o:0;173193:164::-;173270:46;173286:7;121923:10;173309:6;173270:15;:46::i;:::-;173327:22;173333:7;173342:6;173327:5;:22::i;149635:128::-;-1:-1:-1;;;;;149731:14:0;;149704:7;149731:14;;;:7;:14;;;;;50225;149731:24;50133:114;174484:435;97688:19;97711:13;;;;;;97710:14;;97758:34;;;;-1:-1:-1;97776:12:0;;97791:1;97776:12;;;;:16;97758:34;97757:108;;;-1:-1:-1;97837:4:0;86460:19;:23;;;97798:66;;-1:-1:-1;97847:12:0;;;;;:17;97798:66;97735:204;;;;-1:-1:-1;;;97735:204:0;;;;;;;:::i;:::-;97950:12;:16;;-1:-1:-1;;97950:16:0;97965:1;97950:16;;;97977:67;;;;98012:13;:20;;-1:-1:-1;;98012:20:0;;;;;97977:67;174536:31:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;174536:31:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;174536:31:0::1;;::::0;:12:::1;:31::i;:::-;174578:22;:20;:22::i;:::-;174611;:20;:22::i;:::-;174644:16;:14;:16::i;:::-;174671:17;:15;:17::i;:::-;174699:29;;;;;;;;;;;;;;-1:-1:-1::0;;;174699:29:0::1;;::::0;:18:::1;:29::i;:::-;174739:19;:17;:19::i;:::-;174769:24;:22;:24::i;:::-;174804:49;174836:16;135880:2:::0;174836::::1;:16;:::i;:::-;174823:29;::::0;:10:::1;:29;:::i;:::-;174804:18;:49::i;:::-;174864:47;174870:10;174894:16;135880:2:::0;174894::::1;:16;:::i;:::-;174882:28;::::0;:9:::1;:28;:::i;:::-;174864:5;:47::i;:::-;98070:14:::0;98066:102;;;98117:5;98101:21;;-1:-1:-1;;98101:21:0;;;98142:14;;-1:-1:-1;2056:36:1;;98142:14:0;;2044:2:1;2029:18;98142:14:0;;;;;;;97677:498;174484:435::o;117326:889::-;117447:13;117475:18;117508:21;117544:15;117574:25;117614:12;117641:27;117909:11;;117924:1;117909:16;;;:39;;;;-1:-1:-1;117929:14:0;;:19;117909:39;117901:73;;;;-1:-1:-1;;;117901:73:0;;12924:2:1;117901:73:0;;;12906:21:1;12963:2;12943:18;;;12936:30;-1:-1:-1;;;12982:18:1;;;12975:51;13043:18;;117901:73:0;12722:345:1;117901:73:0;118040:13;:11;:13::i;:::-;118068:16;:14;:16::i;:::-;118180;;;118163:1;118180:16;;;;;;;;;-1:-1:-1;;;117987:220:0;;;-1:-1:-1;117987:220:0;;-1:-1:-1;118099:13:0;;-1:-1:-1;118135:4:0;;-1:-1:-1;118163:1:0;-1:-1:-1;118180:16:0;-1:-1:-1;117987:220:0;-1:-1:-1;117326:889:0:o;154842:242::-;154927:7;154967;:5;:7::i;:::-;154955:19;;:9;:19;154947:57;;;;-1:-1:-1;;;154947:57:0;;9617:2:1;154947:57:0;;;9599:21:1;9656:2;9636:18;;;9629:30;-1:-1:-1;;;9675:18:1;;;9668:55;9740:18;;154947:57:0;9415:349:1;154947:57:0;155022:54;155041:23;155066:9;155022:18;:54::i;152596:131::-;152651:6;152677:42;152706:12;152677:28;:42::i;135045:104::-;135101:13;135134:7;135127:14;;;;;:::i;174927:67::-;126862:13;:11;:13::i;:::-;174975:11:::1;:9;:11::i;168182:234::-:0;168254:7;168275:16;168293:13;168310:43;168319:10;168331:21;168310:8;:43::i;:::-;168274:79;;;;168373:11;:35;;136043:12;;168373:35;;;168387:5;168373:35;168366:42;168182:234;-1:-1:-1;;;;168182:234:0:o;153882:248::-;-1:-1:-1;;;;;153989:21:0;;153955:7;153989:21;;;:12;:21;;;;;:28;154060:8;;:51;;-1:-1:-1;;;;;154075:21:0;;;;;;:12;:21;;;;;:30;;-1:-1:-1;;154097:7:0;;;154075:30;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;154075:36:0;154060:51;;;154071:1;154060:51;-1:-1:-1;;;;;154053:58:0;;153882:248;-1:-1:-1;;;153882:248:0:o;139378:436::-;139471:4;121923:10;139471:4;139554:25;121923:10;139571:7;139554:9;:25::i;:::-;139527:52;;139618:15;139598:16;:35;;139590:85;;;;-1:-1:-1;;;139590:85:0;;13406:2:1;139590:85:0;;;13388:21:1;13445:2;13425:18;;;13418:30;13484:34;13464:18;;;13457:62;-1:-1:-1;;;13535:18:1;;;13528:35;13580:19;;139590:85:0;13204:401:1;139590:85:0;139711:60;139720:5;139727:7;139755:15;139736:16;:34;139711:8;:60::i;136459:193::-;136538:4;121923:10;136594:28;121923:10;136611:2;136615:6;136594:9;:28::i;157411:602::-;157638:6;157619:15;:25;;157611:67;;;;-1:-1:-1;;;157611:67:0;;13812:2:1;157611:67:0;;;13794:21:1;13851:2;13831:18;;;13824:30;13890:31;13870:18;;;13863:59;13939:18;;157611:67:0;13610:353:1;157611:67:0;157772:58;;;152209:71;157772:58;;;14199:25:1;-1:-1:-1;;;;;14260:32:1;;14240:18;;;14233:60;;;;14309:18;;;14302:34;;;14352:18;;;14345:34;;;157689:14:0;;157706:185;;157745:87;;14171:19:1;;157772:58:0;;;;;;;;;;;;157762:69;;;;;;157745:16;:87::i;:::-;157847:1;157863;157879;157706:24;:185::i;:::-;157689:202;;157919:17;157929:6;157919:9;:17::i;:::-;157910:5;:26;157902:64;;;;-1:-1:-1;;;157902:64:0;;14592:2:1;157902:64:0;;;14574:21:1;14631:2;14611:18;;;14604:30;14670:27;14650:18;;;14643:55;14715:18;;157902:64:0;14390:349:1;157902:64:0;157977:28;157987:6;157995:9;157977;:28::i;:::-;157600:413;157411:602;;;;;;:::o;148913:656::-;149157:8;149138:15;:27;;149130:69;;;;-1:-1:-1;;;149130:69:0;;14946:2:1;149130:69:0;;;14928:21:1;14985:2;14965:18;;;14958:30;15024:31;15004:18;;;14997:59;15073:18;;149130:69:0;14744:353:1;149130:69:0;149212:18;147924:95;149272:5;149279:7;149288:5;149295:16;149305:5;149295:9;:16::i;:::-;149243:79;;;;;;15389:25:1;;;;-1:-1:-1;;;;;15488:15:1;;;15468:18;;;15461:43;15540:15;;;;15520:18;;;15513:43;15572:18;;;15565:34;15615:19;;;15608:35;15659:19;;;15652:35;;;15361:19;;149243:79:0;;;;;;;;;;;;149233:90;;;;;;149212:111;;149336:12;149351:28;149368:10;149351:16;:28::i;:::-;149336:43;;149392:14;149409:39;149434:4;149440:1;149443;149446;149409:24;:39::i;:::-;149392:56;;149477:5;-1:-1:-1;;;;;149467:15:0;:6;-1:-1:-1;;;;;149467:15:0;;149459:58;;;;-1:-1:-1;;;149459:58:0;;15900:2:1;149459:58:0;;;15882:21:1;15939:2;15919:18;;;15912:30;15978:32;15958:18;;;15951:60;16028:18;;149459:58:0;15698:354:1;149459:58:0;149530:31;149539:5;149546:7;149555:5;149530:8;:31::i;:::-;149119:450;;;148913:656;;;;;;;:::o;136715:151::-;-1:-1:-1;;;;;136831:18:0;;;136804:7;136831:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;136715:151::o;153185:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;153301:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;153294:33;;;;;;;;;153301:26;;153294:33;;;;;;;;;-1:-1:-1;;;;;153294:33:0;;;;;;;;;153185:150;-1:-1:-1;;;153185:150:0:o;127875:201::-;126862:13;:11;:13::i;:::-;-1:-1:-1;;;;;127964:22:0;::::1;127956:73;;;::::0;-1:-1:-1;;;127956:73:0;;16259:2:1;127956:73:0::1;::::0;::::1;16241:21:1::0;16298:2;16278:18;;;16271:30;16337:34;16317:18;;;16310:62;-1:-1:-1;;;16388:18:1;;;16381:36;16434:19;;127956:73:0::1;16057:402:1::0;127956:73:0::1;128040:28;128059:8;128040:18;:28::i;143371:346::-:0;-1:-1:-1;;;;;143473:19:0;;143465:68;;;;-1:-1:-1;;;143465:68:0;;16666:2:1;143465:68:0;;;16648:21:1;16705:2;16685:18;;;16678:30;16744:34;16724:18;;;16717:62;-1:-1:-1;;;16795:18:1;;;16788:34;16839:19;;143465:68:0;16464:400:1;143465:68:0;-1:-1:-1;;;;;143552:21:0;;143544:68;;;;-1:-1:-1;;;143544:68:0;;17071:2:1;143544:68:0;;;17053:21:1;17110:2;17090:18;;;17083:30;17149:34;17129:18;;;17122:62;-1:-1:-1;;;17200:18:1;;;17193:32;17242:19;;143544:68:0;16869:398:1;143544:68:0;-1:-1:-1;;;;;143625:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;143677:32;;1545:25:1;;;143677:32:0;;1518:18:1;143677:32:0;;;;;;;143371:346;;;:::o;144008:419::-;144109:24;144136:25;144146:5;144153:7;144136:9;:25::i;:::-;144109:52;;-1:-1:-1;;144176:16:0;:37;144172:248;;144258:6;144238:16;:26;;144230:68;;;;-1:-1:-1;;;144230:68:0;;17474:2:1;144230:68:0;;;17456:21:1;17513:2;17493:18;;;17486:30;17552:31;17532:18;;;17525:59;17601:18;;144230:68:0;17272:353:1;144230:68:0;144342:51;144351:5;144358:7;144386:6;144367:16;:25;144342:8;:51::i;:::-;144098:329;144008:419;;;:::o;140284:806::-;-1:-1:-1;;;;;140381:18:0;;140373:68;;;;-1:-1:-1;;;140373:68:0;;17832:2:1;140373:68:0;;;17814:21:1;17871:2;17851:18;;;17844:30;17910:34;17890:18;;;17883:62;-1:-1:-1;;;17961:18:1;;;17954:35;18006:19;;140373:68:0;17630:401:1;140373:68:0;-1:-1:-1;;;;;140460:16:0;;140452:64;;;;-1:-1:-1;;;140452:64:0;;18238:2:1;140452:64:0;;;18220:21:1;18277:2;18257:18;;;18250:30;18316:34;18296:18;;;18289:62;-1:-1:-1;;;18367:18:1;;;18360:33;18410:19;;140452:64:0;18036:399:1;140452:64:0;140529:38;140550:4;140556:2;140560:6;140529:20;:38::i;:::-;-1:-1:-1;;;;;140602:15:0;;140580:19;140602:15;;;:9;:15;;;;;;140636:21;;;;140628:72;;;;-1:-1:-1;;;140628:72:0;;18642:2:1;140628:72:0;;;18624:21:1;18681:2;18661:18;;;18654:30;18720:34;18700:18;;;18693:62;-1:-1:-1;;;18771:18:1;;;18764:36;18817:19;;140628:72:0;18440:402:1;140628:72:0;-1:-1:-1;;;;;140736:15:0;;;;;;;:9;:15;;;;;;140754:20;;;140736:38;;140954:13;;;;;;;;;;:23;;;;;;141006:26;;;;;;140768:6;1545:25:1;;1533:2;1518:18;;1399:177;141006:26:0;;;;;;;;141045:37;141065:4;141071:2;141075:6;141045:19;:37::i;116098:111::-;116151:7;116178:23;:21;:23::i;175333:116::-;126862:13;:11;:13::i;103813:958::-;101913:66;104233:59;;;104229:535;;;104309:37;104328:17;104309:18;:37::i;:::-;103813:958;;;:::o;104229:535::-;104412:17;-1:-1:-1;;;;;104383:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;104383:63:0;;;;;;;;-1:-1:-1;;104383:63:0;;;;;;;;;;;;:::i;:::-;;;104379:306;;104613:56;;-1:-1:-1;;;104613:56:0;;19238:2:1;104613:56:0;;;19220:21:1;19277:2;19257:18;;;19250:30;19316:34;19296:18;;;19289:62;-1:-1:-1;;;19367:18:1;;;19360:44;19421:19;;104613:56:0;19036:410:1;104379:306:0;-1:-1:-1;;;;;;;;;;;104497:28:0;;104489:82;;;;-1:-1:-1;;;104489:82:0;;19653:2:1;104489:82:0;;;19635:21:1;19692:2;19672:18;;;19665:30;19731:34;19711:18;;;19704:62;-1:-1:-1;;;19782:18:1;;;19775:39;19831:19;;104489:82:0;19451:405:1;104489:82:0;104447:140;104699:53;104717:17;104736:4;104742:9;104699:17;:53::i;155173:1956::-;156397:12;;155270:7;;;156397:12;156495:1;156486:10;;156482:260;;;156513:11;156536:28;156557:6;156536:20;:28::i;:::-;156527:37;;:6;:37;:::i;:::-;161734:25;161796:21;;;161863:4;161850:18;;156513:51;;-1:-1:-1;156621:9:0;;161846:28;;156583:35;;;:47;156579:152;;;156658:3;156651:10;;156579:152;;;156708:7;:3;156714:1;156708:7;:::i;:::-;156702:13;;156579:152;156498:244;156482:260;156767:4;156761:3;:10;156754:260;;;156788:11;156802:34;156826:3;156831:4;156802:23;:34::i;:::-;161734:25;161796:21;;;161863:4;161850:18;;156788:48;;-1:-1:-1;156893:9:0;;161846:28;;156855:35;;;:47;156851:152;;;156930:3;156923:10;;156851:152;;;156980:7;:3;156986:1;156980:7;:::i;:::-;156974:13;;156851:152;156773:241;156754:260;;;157058:9;;:52;;161734:25;161796:21;;;161863:4;161850:18;;161846:28;;-1:-1:-1;;161846:28:0;157074:36;;;;-1:-1:-1;;;;;157074:36:0;157058:52;;;157070:1;157058:52;-1:-1:-1;;;;;157051:59:0;;155173:1956;-1:-1:-1;;;;;;155173:1956:0:o;127141:132::-;127049:6;;-1:-1:-1;;;;;127049:6:0;121923:10;127205:23;127197:68;;;;-1:-1:-1;;;127197:68:0;;20196:2:1;127197:68:0;;;20178:21:1;;;20215:18;;;20208:30;20274:34;20254:18;;;20247:62;20326:18;;127197:68:0;19994:356:1;175750:191:0;175910:23;175922:2;175926:6;175910:11;:23::i;175949:177::-;176090:28;176102:7;176111:6;176090:11;:28::i;169229:1619::-;169318:4;169324:7;169365:1;169352:10;:14;169344:49;;;;-1:-1:-1;;;169344:49:0;;20557:2:1;169344:49:0;;;20539:21:1;20596:2;20576:18;;;20569:30;-1:-1:-1;;;20615:18:1;;;20608:52;20677:18;;169344:49:0;20355:346:1;169344:49:0;169426:23;:21;:23::i;:::-;169412:10;:37;;169404:79;;;;-1:-1:-1;;;169404:79:0;;20908:2:1;169404:79:0;;;20890:21:1;20947:2;20927:18;;;20920:30;20986:31;20966:18;;;20959:59;21035:18;;169404:79:0;20706:353:1;169404:79:0;170622:13;170638:40;:9;170667:10;170638:28;:40::i;:::-;170704:20;;170622:56;;-1:-1:-1;170695:29:0;;170691:150;;170749:5;170756:1;170741:17;;;;;;;170691:150;170799:4;170805:9;:16;;170822:5;170805:23;;;;;;;;:::i;:::-;;;;;;;;;170791:38;;;;;;;170691:150;169333:1515;169229:1619;;;;;;:::o;159450:388::-;-1:-1:-1;;;;;153771:19:0;;;159535:23;153771:19;;;:10;:19;;;;;;;;;;136227:9;:18;;;;;;159650:21;;;;:33;;;-1:-1:-1;;;;;;159650:33:0;;;;;;;159701:54;;153771:19;;;;;136227:18;;159650:33;;153771:19;;;159701:54;;159535:23;159701:54;159768:62;159785:15;159802:9;159813:16;159768;:62::i;20925:190::-;20981:6;21017:16;21008:25;;;21000:76;;;;-1:-1:-1;;;21000:76:0;;21266:2:1;21000:76:0;;;21248:21:1;21305:2;21285:18;;;21278:30;21344:34;21324:18;;;21317:62;-1:-1:-1;;;21395:18:1;;;21388:36;21441:19;;21000:76:0;21064:402:1;21000:76:0;-1:-1:-1;21101:5:0;20925:190::o;128236:191::-;128329:6;;;-1:-1:-1;;;;;128346:17:0;;;-1:-1:-1;;;;;;128346:17:0;;;;;;;128379:40;;128329:6;;;128346:17;128329:6;;128379:40;;128310:16;;128379:40;128299:128;128236:191;:::o;134437:149::-;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;134540:38:::1;134563:5;134570:7;134540:22;:38::i;172519:66::-:0;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;126519:97::-;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;126582:26:::1;:24;:26::i;123416:99::-:0;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;123480:27:::1;:25;:27::i;148631:127::-:0;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;148716:34:::1;148740:4;148716:34;;;;;;;;;;;;;-1:-1:-1::0;;;148716:34:0::1;;::::0;:23:::1;:34::i;146294:146::-:0;97688:19;97711:13;;;;;;97710:14;;97758:34;;;;-1:-1:-1;97776:12:0;;97791:1;97776:12;;;;:16;97758:34;97757:108;;;-1:-1:-1;97837:4:0;86460:19;:23;;;97798:66;;-1:-1:-1;97847:12:0;;;;;:17;97798:66;97735:204;;;;-1:-1:-1;;;97735:204:0;;;;;;;:::i;:::-;97950:12;:16;;-1:-1:-1;;97950:16:0;97965:1;97950:16;;;97977:67;;;;98012:13;:20;;-1:-1:-1;;98012:20:0;;;;;97977:67;146383:1:::1;146376:4;:8;146368:42;;;::::0;-1:-1:-1;;;146368:42:0;;22085:2:1;146368:42:0::1;::::0;::::1;22067:21:1::0;22124:2;22104:18;;;22097:30;-1:-1:-1;;;22143:18:1;;;22136:51;22204:18;;146368:42:0::1;21883:345:1::0;146368:42:0::1;146421:4;:11:::0;;;98066:102;;;;98117:5;98101:21;;-1:-1:-1;;98101:21:0;;;98142:14;;-1:-1:-1;2056:36:1;;98142:14:0;;2044:2:1;2029:18;98142:14:0;;;;;;;97677:498;146294:146;:::o;118447:100::-;118501:13;118534:5;118527:12;;;;;:::i;118782:106::-;118839:13;118872:8;118865:15;;;;;:::i;19867:190::-;19923:6;19959:16;19950:25;;;19942:76;;;;-1:-1:-1;;;19942:76:0;;22435:2:1;19942:76:0;;;22417:21:1;22474:2;22454:18;;;22447:30;22513:34;22493:18;;;22486:62;-1:-1:-1;;;22564:18:1;;;22557:36;22610:19;;19942:76:0;22233:402:1;167284:223:0;167331:7;167351:30;:18;50344:19;;50362:1;50344:19;;;50255:127;167351:30;167394:17;167414:23;:21;:23::i;:::-;167394:43;;167453:19;167462:9;167453:19;;;;1545:25:1;;1533:2;1518:18;;1399:177;167453:19:0;;;;;;;;167490:9;167284:223;-1:-1:-1;167284:223:0:o;117053:178::-;117130:7;117157:66;117190:20;:18;:20::i;:::-;117212:10;75598:4;75592:11;-1:-1:-1;;;75617:23:0;;75670:4;75661:14;;75654:39;;;;75723:4;75714:14;;75707:34;75778:4;75763:20;;;75395:406;73600:236;73685:7;73706:17;73725:18;73747:25;73758:4;73764:1;73767;73770;73747:10;:25::i;:::-;73705:67;;;;73783:18;73795:5;73783:11;:18::i;:::-;-1:-1:-1;73819:9:0;73600:236;-1:-1:-1;;;;;73600:236:0:o;150146:218::-;-1:-1:-1;;;;;150278:14:0;;150206:15;150278:14;;;:7;:14;;;;;50225;;50362:1;50344:19;;;;50225:14;150339:17;150223:141;150146:218;;;:::o;175105:220::-;175273:44;175300:4;175306:2;175310:6;175273:26;:44::i;175527:215::-;175691:43;175717:4;175723:2;175727:6;175691:25;:43::i;116217:194::-;116272:7;114669:95;116332:17;:15;:17::i;:::-;116351:20;:18;:20::i;:::-;116309:93;;;;;;22899:25:1;;;;22940:18;;22933:34;;;;22983:18;;;22976:34;116373:13:0;23026:18:1;;;23019:34;116396:4:0;23069:19:1;;;23062:61;22871:19;;116309:93:0;;;;;;;;;;;;116299:104;;;;;;116292:111;;116217:194;:::o;102660:284::-;-1:-1:-1;;;;;86460:19:0;;;102734:106;;;;-1:-1:-1;;;102734:106:0;;23336:2:1;102734:106:0;;;23318:21:1;23375:2;23355:18;;;23348:30;23414:34;23394:18;;;23387:62;-1:-1:-1;;;23465:18:1;;;23458:43;23518:19;;102734:106:0;23134:409:1;102734:106:0;-1:-1:-1;;;;;;;;;;;102851:85:0;;-1:-1:-1;;;;;;102851:85:0;-1:-1:-1;;;;;102851:85:0;;;;;;;;;;102660:284::o;103353:281::-;103462:29;103473:17;103462:10;:29::i;:::-;103520:1;103506:4;:11;:15;:28;;;;103525:9;103506:28;103502:125;;;103551:64;103591:17;103610:4;103551:39;:64::i;57466:1673::-;57514:7;57538:1;57543;57538:6;57534:47;;-1:-1:-1;57568:1:0;;57466:1673;-1:-1:-1;57466:1673:0:o;57534:47::-;58272:14;58306:1;58295:7;58300:1;58295:4;:7::i;:::-;:12;;58289:1;:19;;58272:36;;58774:1;58763:6;58759:1;:10;;;;;:::i;:::-;;58750:6;:19;58749:26;;58740:35;;58824:1;58813:6;58809:1;:10;;;;;:::i;:::-;;58800:6;:19;58799:26;;58790:35;;58874:1;58863:6;58859:1;:10;;;;;:::i;:::-;;58850:6;:19;58849:26;;58840:35;;58924:1;58913:6;58909:1;:10;;;;;:::i;:::-;;58900:6;:19;58899:26;;58890:35;;58974:1;58963:6;58959:1;:10;;;;;:::i;:::-;;58950:6;:19;58949:26;;58940:35;;59024:1;59013:6;59009:1;:10;;;;;:::i;:::-;;59000:6;:19;58999:26;;58990:35;;59074:1;59063:6;59059:1;:10;;;;;:::i;:::-;;59050:6;:19;59049:26;;59040:35;;59097:23;59101:6;59113;59109:1;:10;;;;;:::i;:::-;;59097:3;:23::i;51623:156::-;51685:7;51760:11;51770:1;51761:5;;;51760:11;:::i;:::-;51750:21;;51751:5;;;51750:21;:::i;146539:218::-;146519:4;;146665:6;146632:30;136043:12;;;135955:108;146632:30;:39;;;;:::i;:::-;:48;;146624:86;;;;-1:-1:-1;;;146624:86:0;;24104:2:1;146624:86:0;;;24086:21:1;24143:2;24123:18;;;24116:30;24182:27;24162:18;;;24155:55;24227:18;;146624:86:0;23902:349:1;146624:86:0;146721:28;146733:7;146742:6;146721:11;:28::i;158703:194::-;158788:28;158800:7;158809:6;158788:11;:28::i;:::-;158829:60;158846:23;158871:9;158882:6;158829:16;:60::i;167573:127::-;167637:7;167664:28;:18;50225:14;;50133:114;81269:969;81382:12;;81358:7;;81382:17;;81378:58;;-1:-1:-1;81423:1:0;81416:8;;81378:58;81489:12;;81448:11;;81514:455;81527:4;81521:3;:10;81514:455;;;81548:11;81562:34;81586:3;81591:4;81562:23;:34::i;:::-;84136:42;84524:19;;;84582:4;84569:18;;81548:48;;-1:-1:-1;81850:7:0;;84565:28;;81817:30;:40;81813:145;;;81885:3;81878:10;;81813:145;;;81935:7;:3;81941:1;81935:7;:::i;:::-;81929:13;;81813:145;81533:436;81514:455;;;82095:1;82089:3;:7;:56;;;;-1:-1:-1;82138:7:0;82100:28;82113:5;82120:7;82126:1;82120:3;:7;:::i;:::-;84136:42;84524:19;;;84582:4;84569:18;;;84565:28;;84055:595;82100:28;:34;:45;82089:56;82085:146;;;82169:7;82175:1;82169:3;:7;:::i;:::-;82162:14;;;;;;82085:146;-1:-1:-1;82216:3:0;-1:-1:-1;82209:10:0;;159846:609;159944:3;-1:-1:-1;;;;;159937:10:0;:3;-1:-1:-1;;;;;159937:10:0;;;:24;;;;;159960:1;159951:6;:10;159937:24;159933:515;;;-1:-1:-1;;;;;159982:17:0;;;159978:224;;-1:-1:-1;;;;;160078:17:0;;160021;160078;;;:12;:17;;;;;160021;;160061:54;;160097:9;160108:6;160061:16;:54::i;:::-;160020:95;;;;160160:3;-1:-1:-1;;;;;160139:47:0;;160165:9;160176;160139:47;;;;;;24430:25:1;;;24486:2;24471:18;;24464:34;24418:2;24403:18;;24256:248;160139:47:0;;;;;;;;160001:201;;159978:224;-1:-1:-1;;;;;160222:17:0;;;160218:219;;-1:-1:-1;;;;;160318:17:0;;160261;160318;;;:12;:17;;;;;160261;;160301:49;;160337:4;160343:6;160301:16;:49::i;:::-;160260:90;;;;160395:3;-1:-1:-1;;;;;160374:47:0;;160400:9;160411;160374:47;;;;;;24430:25:1;;;24486:2;24471:18;;24464:34;24418:2;24403:18;;24256:248;160374:47:0;;;;;;;;160241:196;;159846:609;;;:::o;134594:162::-;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;134707:5:::1;:13;134715:5:::0;134707;:13:::1;:::i;:::-;-1:-1:-1::0;134731:7:0::1;:17;134741:7:::0;134731;:17:::1;:::i;126624:113::-:0;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;126697:32:::1;121923:10:::0;126697:18:::1;:32::i;123523:97::-:0;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;123597:7:::1;:15:::0;;-1:-1:-1;;123597:15:0::1;::::0;;123523:97::o;115733:274::-;99831:13;;;;;;;99823:69;;;;-1:-1:-1;;;99823:69:0;;;;;;;:::i;:::-;115846:5:::1;:12;115854:4:::0;115846:5;:12:::1;:::i;:::-;-1:-1:-1::0;115869:8:0::1;:18;115880:7:::0;115869:8;:18:::1;:::i;:::-;-1:-1:-1::0;;115969:1:0::1;115955:11;:15:::0;;;115981:14:::1;:18:::0;-1:-1:-1;115733:274:0:o;71984:1477::-;72072:7;;73006:66;72993:79;;72989:163;;;-1:-1:-1;73105:1:0;;-1:-1:-1;73109:30:0;73089:51;;72989:163;73266:24;;;73249:14;73266:24;;;;;;;;;26940:25:1;;;27013:4;27001:17;;26981:18;;;26974:45;;;;27035:18;;;27028:34;;;27078:18;;;27071:34;;;73266:24:0;;26912:19:1;;73266:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73266:24:0;;-1:-1:-1;;73266:24:0;;;-1:-1:-1;;;;;;;73305:20:0;;73301:103;;73358:1;73362:29;73342:50;;;;;;;73301:103;73424:6;-1:-1:-1;73432:20:0;;-1:-1:-1;71984:1477:0;;;;;;;;:::o;67444:521::-;67522:20;67513:5;:29;;;;;;;;:::i;:::-;;67509:449;;67444:521;:::o;67509:449::-;67620:29;67611:5;:38;;;;;;;;:::i;:::-;;67607:351;;67666:34;;-1:-1:-1;;;67666:34:0;;27450:2:1;67666:34:0;;;27432:21:1;27489:2;27469:18;;;27462:30;27528:26;27508:18;;;27501:54;27572:18;;67666:34:0;27248:348:1;67607:351:0;67731:35;67722:5;:44;;;;;;;;:::i;:::-;;67718:240;;67783:41;;-1:-1:-1;;;67783:41:0;;27803:2:1;67783:41:0;;;27785:21:1;27842:2;27822:18;;;27815:30;27881:33;27861:18;;;27854:61;27932:18;;67783:41:0;27601:355:1;67718:240:0;67855:30;67846:5;:39;;;;;;;;:::i;:::-;;67842:116;;67902:44;;-1:-1:-1;;;67902:44:0;;28163:2:1;67902:44:0;;;28145:21:1;28202:2;28182:18;;;28175:30;28241:34;28221:18;;;28214:62;-1:-1:-1;;;28292:18:1;;;28285:32;28334:19;;67902:44:0;27961:398:1;168633:588:0;-1:-1:-1;;;;;168803:18:0;;168799:415;;168859:26;168882:2;168859:22;:26::i;:::-;168900:28;:26;:28::i;168799:415::-;-1:-1:-1;;;;;168950:16:0;;168946:268;;169004:28;169027:4;169004:22;:28::i;168946:268::-;169133:28;169156:4;169133:22;:28::i;:::-;169176:26;169199:2;169176:22;:26::i;159044:228::-;-1:-1:-1;;;;;153771:19:0;;;153744:7;153771:19;;;:10;:19;;;;;;;;;;;;;;;159208:56;;153771:19;;;;;159257:6;159208:16;:56::i;119110:644::-;119160:7;119180:18;119201:13;:11;:13::i;:::-;119229:18;;119180:34;;-1:-1:-1;119229:22:0;119225:522;;119275:22;;;;;;;;119110:644;-1:-1:-1;119110:644:0:o;119225:522::-;119576:11;;119606:15;;119602:134;;119649:10;119110:644;-1:-1:-1;;119110:644:0:o;119602:134::-;119707:13;119700:20;;;;119110:644;:::o;119982:680::-;120035:7;120055:21;120079:16;:14;:16::i;:::-;120110:21;;120055:40;;-1:-1:-1;120110:25:0;120106:549;;120159:25;;;;;;;;119982:680;-1:-1:-1;119982:680:0:o;120106:549::-;120475:14;;120508:18;;120504:140;;120554:13;119982:680;-1:-1:-1;;119982:680:0:o;103057:155::-;103124:37;103143:17;103124:18;:37::i;:::-;103177:27;;-1:-1:-1;;;;;103177:27:0;;;;;;;;103057:155;:::o;91557:200::-;91640:12;91672:77;91693:6;91701:4;91672:77;;;;;;;;;;;;;;;;;:20;:77::i;59616:1019::-;59668:7;;59755:3;59746:12;;;:16;59742:102;;59793:3;59783:13;;;;59815;59742:102;59871:2;59862:11;;;:15;59858:99;;59908:2;59898:12;;;;59929;59858:99;59984:2;59975:11;;;:15;59971:99;;60021:2;60011:12;;;;60042;59971:99;60097:2;60088:11;;;:15;60084:99;;60134:2;60124:12;;;;60155;60084:99;60210:1;60201:10;;;:14;60197:96;;60246:1;60236:11;;;;60266;60197:96;60320:1;60311:10;;;:14;60307:96;;60356:1;60346:11;;;;60376;60307:96;60430:1;60421:10;;;:14;60417:96;;60466:1;60456:11;;;;60486;60417:96;60540:1;60531:10;;;:14;60527:66;;60576:1;60566:11;60621:6;59616:1019;-1:-1:-1;;59616:1019:0:o;51398:106::-;51456:7;51487:1;51483;:5;:13;;51495:1;51483:13;;;-1:-1:-1;51491:1:0;;51398:106;-1:-1:-1;51398:106:0:o;158319:290::-;158404:28;158416:7;158425:6;158404:11;:28::i;:::-;136043:12;;-1:-1:-1;;;;;;158451:29:0;158443:90;;;;-1:-1:-1;;;158443:90:0;;28566:2:1;158443:90:0;;;28548:21:1;28605:2;28585:18;;;28578:30;28644:34;28624:18;;;28617:62;-1:-1:-1;;;28695:18:1;;;28688:46;28751:19;;158443:90:0;28364:412:1;158443:90:0;158546:55;158563:23;158588:4;158594:6;158546:16;:55::i;142258:675::-;-1:-1:-1;;;;;142342:21:0;;142334:67;;;;-1:-1:-1;;;142334:67:0;;28983:2:1;142334:67:0;;;28965:21:1;29022:2;29002:18;;;28995:30;29061:34;29041:18;;;29034:62;-1:-1:-1;;;29112:18:1;;;29105:31;29153:19;;142334:67:0;28781:397:1;142334:67:0;142414:49;142435:7;142452:1;142456:6;142414:20;:49::i;:::-;-1:-1:-1;;;;;142501:18:0;;142476:22;142501:18;;;:9;:18;;;;;;142538:24;;;;142530:71;;;;-1:-1:-1;;;142530:71:0;;29385:2:1;142530:71:0;;;29367:21:1;29424:2;29404:18;;;29397:30;29463:34;29443:18;;;29436:62;-1:-1:-1;;;29514:18:1;;;29507:32;29556:19;;142530:71:0;29183:398:1;142530:71:0;-1:-1:-1;;;;;142637:18:0;;;;;;:9;:18;;;;;;;;142658:23;;;142637:44;;142776:12;:22;;;;;;;142827:37;1545:25:1;;;142637:18:0;;;142827:37;;1518:18:1;142827:37:0;;;;;;;142877:48;142897:7;142914:1;142918:6;142877:19;:48::i;161397:103::-;161460:7;161487:5;161491:1;161487;:5;:::i;160463:820::-;160700:12;;160637:17;;;;;160778:8;;:59;;161734:25;161796:21;;;161863:4;161850:18;;161846:28;;-1:-1:-1;;161846:28:0;160778:59;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;160778:59:0;;;;;;;;160789:16;;;;;;;;;-1:-1:-1;160789:16:0;;;;;;;160778:59;160750:87;;160866:7;:13;;;-1:-1:-1;;;;;160854:25:0;;;160906:20;160909:9;160920:5;160906:2;:20;;:::i;:::-;160894:32;;160953:1;160947:3;:7;:39;;;;;160979:7;:5;:7::i;:::-;160958:28;;:7;:17;;;:28;;;160947:39;160943:322;;;161045:40;161075:9;161045:29;:40::i;:::-;161734:25;161796:21;;;161863:4;161850:18;;161846:28;;-1:-1:-1;;161846:28:0;161007:78;;-1:-1:-1;;;;;161007:78:0;;;;;;;;;;;;;;;;160943:322;;;161126:5;161137:111;;;;;;;;161160:37;161189:7;:5;:7::i;:::-;161160:37;;:28;:37::i;:::-;161137:111;;;;;;161206:40;161236:9;161206:29;:40::i;:::-;-1:-1:-1;;;;;161137:111:0;;;;;;161126:123;;;;;;;-1:-1:-1;161126:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;160943:322;160725:551;160675:608;160463:820;;;;;;:::o;161291:98::-;161349:7;161376:5;161380:1;161376;:5;:::i;170856:146::-;-1:-1:-1;;;;;170940:33:0;;;;;;:24;:33;;;;;;;;136227:9;:18;;;;;;;170924:70;;170940:33;170924:15;:70::i;170975:18::-;170924:15;:70::i;171010:118::-;171067:53;171083:21;171106:13;136043:12;;;135955:108;91951:332;92096:12;92122;92136:23;92163:6;-1:-1:-1;;;;;92163:19:0;92183:4;92163:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92121:67;;;;92206:69;92233:6;92241:7;92250:10;92262:12;92206:26;:69::i;:::-;92199:76;91951:332;-1:-1:-1;;;;;;91951:332:0:o;141377:548::-;-1:-1:-1;;;;;141461:21:0;;141453:65;;;;-1:-1:-1;;;141453:65:0;;30080:2:1;141453:65:0;;;30062:21:1;30119:2;30099:18;;;30092:30;30158:33;30138:18;;;30131:61;30209:18;;141453:65:0;29878:355:1;141453:65:0;141531:49;141560:1;141564:7;141573:6;141531:20;:49::i;:::-;141609:6;141593:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;141764:18:0;;;;;;:9;:18;;;;;;;;:28;;;;;;141819:37;1545:25:1;;;141819:37:0;;1518:18:1;141819:37:0;;;;;;;141869:48;141897:1;141901:7;141910:6;141869:19;:48::i;8089:195::-;8146:7;-1:-1:-1;;;;;8174:26:0;;;8166:78;;;;-1:-1:-1;;;8166:78:0;;30440:2:1;8166:78:0;;;30422:21:1;30479:2;30459:18;;;30452:30;30518:34;30498:18;;;30491:62;-1:-1:-1;;;30569:18:1;;;30562:37;30616:19;;8166:78:0;30238:403:1;171136:310:0;171231:17;171251:23;:21;:23::i;:::-;171231:43;-1:-1:-1;171231:43:0;171289:30;171305:9;171289:15;:30::i;:::-;:42;171285:154;;;171348:29;;;;;;;;-1:-1:-1;171348:29:0;;;;;;;;;;;;;;171392:16;;;:35;;;;;;;;;;;;;;;171136:310::o;92579:644::-;92764:12;92793:7;92789:427;;;92821:10;:17;92842:1;92821:22;92817:290;;-1:-1:-1;;;;;86460:19:0;;;93031:60;;;;-1:-1:-1;;;93031:60:0;;30848:2:1;93031:60:0;;;30830:21:1;30887:2;30867:18;;;30860:30;30926:31;30906:18;;;30899:59;30975:18;;93031:60:0;30646:353:1;93031:60:0;-1:-1:-1;93128:10:0;93121:17;;92789:427;93171:33;93179:10;93191:12;93171:7;:33::i;171454:212::-;171548:10;;171524:7;;171548:15;;171544:115;;-1:-1:-1;171587:1:0;;171454:212;-1:-1:-1;171454:212:0:o;171544:115::-;171632:10;;171628:3;;171632:14;;171645:1;;171632:14;:::i;:::-;171628:19;;;;;;;;:::i;:::-;;;;;;;;;171621:26;;171454:212;;;:::o;171544:115::-;171454:212;;;:::o;93765:552::-;93926:17;;:21;93922:388;;94158:10;94152:17;94215:15;94202:10;94198:2;94194:19;94187:44;93922:388;94285:12;94278:20;;-1:-1:-1;;;94278:20:0;;;;;;;;:::i;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:271::-;311:3;349:5;343:12;376:6;371:3;364:19;392:76;461:6;454:4;449:3;445:14;438:4;431:5;427:16;392:76;:::i;:::-;522:2;501:15;-1:-1:-1;;497:29:1;488:39;;;;529:4;484:50;;269:271;-1:-1:-1;;269:271:1:o;545:220::-;694:2;683:9;676:21;657:4;714:45;755:2;744:9;740:18;732:6;714:45;:::i;770:173::-;838:20;;-1:-1:-1;;;;;887:31:1;;877:42;;867:70;;933:1;930;923:12;948:254;1016:6;1024;1077:2;1065:9;1056:7;1052:23;1048:32;1045:52;;;1093:1;1090;1083:12;1045:52;1116:29;1135:9;1116:29;:::i;:::-;1106:39;1192:2;1177:18;;;;1164:32;;-1:-1:-1;;;948:254:1:o;1581:328::-;1658:6;1666;1674;1727:2;1715:9;1706:7;1702:23;1698:32;1695:52;;;1743:1;1740;1733:12;1695:52;1766:29;1785:9;1766:29;:::i;:::-;1756:39;;1814:38;1848:2;1837:9;1833:18;1814:38;:::i;:::-;1804:48;;1899:2;1888:9;1884:18;1871:32;1861:42;;1581:328;;;;;:::o;2285:186::-;2344:6;2397:2;2385:9;2376:7;2372:23;2368:32;2365:52;;;2413:1;2410;2403:12;2365:52;2436:29;2455:9;2436:29;:::i;2476:180::-;2535:6;2588:2;2576:9;2567:7;2563:23;2559:32;2556:52;;;2604:1;2601;2594:12;2556:52;-1:-1:-1;2627:23:1;;2476:180;-1:-1:-1;2476:180:1:o;2661:127::-;2722:10;2717:3;2713:20;2710:1;2703:31;2753:4;2750:1;2743:15;2777:4;2774:1;2767:15;2793:995;2870:6;2878;2931:2;2919:9;2910:7;2906:23;2902:32;2899:52;;;2947:1;2944;2937:12;2899:52;2970:29;2989:9;2970:29;:::i;:::-;2960:39;;3050:2;3039:9;3035:18;3022:32;3073:18;3114:2;3106:6;3103:14;3100:34;;;3130:1;3127;3120:12;3100:34;3168:6;3157:9;3153:22;3143:32;;3213:7;3206:4;3202:2;3198:13;3194:27;3184:55;;3235:1;3232;3225:12;3184:55;3271:2;3258:16;3293:2;3289;3286:10;3283:36;;;3299:18;;:::i;:::-;3374:2;3368:9;3342:2;3428:13;;-1:-1:-1;;3424:22:1;;;3448:2;3420:31;3416:40;3404:53;;;3472:18;;;3492:22;;;3469:46;3466:72;;;3518:18;;:::i;:::-;3558:10;3554:2;3547:22;3593:2;3585:6;3578:18;3633:7;3628:2;3623;3619;3615:11;3611:20;3608:33;3605:53;;;3654:1;3651;3644:12;3605:53;3710:2;3705;3701;3697:11;3692:2;3684:6;3680:15;3667:46;3755:1;3750:2;3745;3737:6;3733:15;3729:24;3722:35;3776:6;3766:16;;;;;;;2793:995;;;;;:::o;4198:1259::-;4604:3;4599;4595:13;4587:6;4583:26;4572:9;4565:45;4546:4;4629:2;4667:3;4662:2;4651:9;4647:18;4640:31;4694:46;4735:3;4724:9;4720:19;4712:6;4694:46;:::i;:::-;4788:9;4780:6;4776:22;4771:2;4760:9;4756:18;4749:50;4822:33;4848:6;4840;4822:33;:::i;:::-;4886:2;4871:18;;4864:34;;;-1:-1:-1;;;;;4935:32:1;;4929:3;4914:19;;4907:61;4955:3;4984:19;;4977:35;;;5049:22;;;5043:3;5028:19;;5021:51;5121:13;;5143:22;;;5219:15;;;;-1:-1:-1;5181:15:1;;;;-1:-1:-1;5262:169:1;5276:6;5273:1;5270:13;5262:169;;;5337:13;;5325:26;;5406:15;;;;5371:12;;;;5298:1;5291:9;5262:169;;;-1:-1:-1;5448:3:1;;4198:1259;-1:-1:-1;;;;;;;;;;;;4198:1259:1:o;5663:156::-;5729:20;;5789:4;5778:16;;5768:27;;5758:55;;5809:1;5806;5799:12;5824:531;5926:6;5934;5942;5950;5958;5966;6019:3;6007:9;5998:7;5994:23;5990:33;5987:53;;;6036:1;6033;6026:12;5987:53;6059:29;6078:9;6059:29;:::i;:::-;6049:39;;6135:2;6124:9;6120:18;6107:32;6097:42;;6186:2;6175:9;6171:18;6158:32;6148:42;;6209:36;6241:2;6230:9;6226:18;6209:36;:::i;:::-;6199:46;;6292:3;6281:9;6277:19;6264:33;6254:43;;6344:3;6333:9;6329:19;6316:33;6306:43;;5824:531;;;;;;;;:::o;6360:606::-;6471:6;6479;6487;6495;6503;6511;6519;6572:3;6560:9;6551:7;6547:23;6543:33;6540:53;;;6589:1;6586;6579:12;6540:53;6612:29;6631:9;6612:29;:::i;:::-;6602:39;;6660:38;6694:2;6683:9;6679:18;6660:38;:::i;:::-;6650:48;;6745:2;6734:9;6730:18;6717:32;6707:42;;6796:2;6785:9;6781:18;6768:32;6758:42;;6819:37;6851:3;6840:9;6836:19;6819:37;:::i;:::-;6809:47;;6903:3;6892:9;6888:19;6875:33;6865:43;;6955:3;6944:9;6940:19;6927:33;6917:43;;6360:606;;;;;;;;;;:::o;6971:260::-;7039:6;7047;7100:2;7088:9;7079:7;7075:23;7071:32;7068:52;;;7116:1;7113;7106:12;7068:52;7139:29;7158:9;7139:29;:::i;:::-;7129:39;;7187:38;7221:2;7210:9;7206:18;7187:38;:::i;:::-;7177:48;;6971:260;;;;;:::o;7236:350::-;7303:6;7311;7364:2;7352:9;7343:7;7339:23;7335:32;7332:52;;;7380:1;7377;7370:12;7332:52;7403:29;7422:9;7403:29;:::i;:::-;7393:39;;7482:2;7471:9;7467:18;7454:32;7526:10;7519:5;7515:22;7508:5;7505:33;7495:61;;7552:1;7549;7542:12;7495:61;7575:5;7565:15;;;7236:350;;;;;:::o;7942:380::-;8021:1;8017:12;;;;8064;;;8085:61;;8139:4;8131:6;8127:17;8117:27;;8085:61;8192:2;8184:6;8181:14;8161:18;8158:38;8155:161;;8238:10;8233:3;8229:20;8226:1;8219:31;8273:4;8270:1;8263:15;8301:4;8298:1;8291:15;8327:408;8529:2;8511:21;;;8568:2;8548:18;;;8541:30;8607:34;8602:2;8587:18;;8580:62;-1:-1:-1;;;8673:2:1;8658:18;;8651:42;8725:3;8710:19;;8327:408::o;8740:::-;8942:2;8924:21;;;8981:2;8961:18;;;8954:30;9020:34;9015:2;9000:18;;8993:62;-1:-1:-1;;;9086:2:1;9071:18;;9064:42;9138:3;9123:19;;8740:408::o;9153:127::-;9214:10;9209:3;9205:20;9202:1;9195:31;9245:4;9242:1;9235:15;9269:4;9266:1;9259:15;9285:125;9350:9;;;9371:10;;;9368:36;;;9384:18;;:::i;10552:410::-;10754:2;10736:21;;;10793:2;10773:18;;;10766:30;10832:34;10827:2;10812:18;;10805:62;-1:-1:-1;;;10898:2:1;10883:18;;10876:44;10952:3;10937:19;;10552:410::o;10967:422::-;11056:1;11099:5;11056:1;11113:270;11134:7;11124:8;11121:21;11113:270;;;11193:4;11189:1;11185:6;11181:17;11175:4;11172:27;11169:53;;;11202:18;;:::i;:::-;11252:7;11242:8;11238:22;11235:55;;;11272:16;;;;11235:55;11351:22;;;;11311:15;;;;11113:270;;11394:806;11443:5;11473:8;11463:80;;-1:-1:-1;11514:1:1;11528:5;;11463:80;11562:4;11552:76;;-1:-1:-1;11599:1:1;11613:5;;11552:76;11644:4;11662:1;11657:59;;;;11730:1;11725:130;;;;11637:218;;11657:59;11687:1;11678:10;;11701:5;;;11725:130;11762:3;11752:8;11749:17;11746:43;;;11769:18;;:::i;:::-;-1:-1:-1;;11825:1:1;11811:16;;11840:5;;11637:218;;11939:2;11929:8;11926:16;11920:3;11914:4;11911:13;11907:36;11901:2;11891:8;11888:16;11883:2;11877:4;11874:12;11870:35;11867:77;11864:159;;;-1:-1:-1;11976:19:1;;;12008:5;;11864:159;12055:34;12080:8;12074:4;12055:34;:::i;:::-;12125:6;12121:1;12117:6;12113:19;12104:7;12101:32;12098:58;;;12136:18;;:::i;:::-;12174:20;;11394:806;-1:-1:-1;;;11394:806:1:o;12205:140::-;12263:5;12292:47;12333:4;12323:8;12319:19;12313:4;12292:47;:::i;12350:168::-;12423:9;;;12454;;12471:15;;;12465:22;;12451:37;12441:71;;12492:18;;:::i;13072:127::-;13133:10;13128:3;13124:20;13121:1;13114:31;13164:4;13161:1;13154:15;13188:4;13185:1;13178:15;18847:184;18917:6;18970:2;18958:9;18949:7;18945:23;18941:32;18938:52;;;18986:1;18983;18976:12;18938:52;-1:-1:-1;19009:16:1;;18847:184;-1:-1:-1;18847:184:1:o;19861:128::-;19928:9;;;19949:11;;;19946:37;;;19963:18;;:::i;21471:407::-;21673:2;21655:21;;;21712:2;21692:18;;;21685:30;21751:34;21746:2;21731:18;;21724:62;-1:-1:-1;;;21817:2:1;21802:18;;21795:41;21868:3;21853:19;;21471:407::o;23548:127::-;23609:10;23604:3;23600:20;23597:1;23590:31;23640:4;23637:1;23630:15;23664:4;23661:1;23654:15;23680:217;23720:1;23746;23736:132;;23790:10;23785:3;23781:20;23778:1;23771:31;23825:4;23822:1;23815:15;23853:4;23850:1;23843:15;23736:132;-1:-1:-1;23882:9:1;;23680:217::o;24635:545::-;24737:2;24732:3;24729:11;24726:448;;;24773:1;24798:5;24794:2;24787:17;24843:4;24839:2;24829:19;24913:2;24901:10;24897:19;24894:1;24890:27;24884:4;24880:38;24949:4;24937:10;24934:20;24931:47;;;-1:-1:-1;24972:4:1;24931:47;25027:2;25022:3;25018:12;25015:1;25011:20;25005:4;25001:31;24991:41;;25082:82;25100:2;25093:5;25090:13;25082:82;;;25145:17;;;25126:1;25115:13;25082:82;;;25086:3;;;24635:545;;;:::o;25356:1352::-;25482:3;25476:10;25509:18;25501:6;25498:30;25495:56;;;25531:18;;:::i;:::-;25560:97;25650:6;25610:38;25642:4;25636:11;25610:38;:::i;:::-;25604:4;25560:97;:::i;:::-;25712:4;;25776:2;25765:14;;25793:1;25788:663;;;;26495:1;26512:6;26509:89;;;-1:-1:-1;26564:19:1;;;26558:26;26509:89;-1:-1:-1;;25313:1:1;25309:11;;;25305:24;25301:29;25291:40;25337:1;25333:11;;;25288:57;26611:81;;25758:944;;25788:663;24582:1;24575:14;;;24619:4;24606:18;;-1:-1:-1;;25824:20:1;;;25942:236;25956:7;25953:1;25950:14;25942:236;;;26045:19;;;26039:26;26024:42;;26137:27;;;;26105:1;26093:14;;;;25972:19;;25942:236;;;25946:3;26206:6;26197:7;26194:19;26191:201;;;26267:19;;;26261:26;-1:-1:-1;;26350:1:1;26346:14;;;26362:3;26342:24;26338:37;26334:42;26319:58;26304:74;;26191:201;-1:-1:-1;;;;;26438:1:1;26422:14;;;26418:22;26405:36;;-1:-1:-1;25356:1352:1:o;27116:127::-;27177:10;27172:3;27168:20;27165:1;27158:31;27208:4;27205:1;27198:15;27232:4;27229:1;27222:15;29586:287;29715:3;29753:6;29747:13;29769:66;29828:6;29823:3;29816:4;29808:6;29804:17;29769:66;:::i;:::-;29851:16;;;;;29586:287;-1:-1:-1;;29586:287:1:o
Swarm Source
ipfs://b858e2a72bb75dc042a2543dce7567335ba3ea1c114bfa78c8942acdca92b7ab
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.