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 Name:
PymeToken
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-06 */ // 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/PymeTokenv2.sol pragma solidity ^0.8.9; contract PymeToken is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, OwnableUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, UUPSUpgradeable, ERC20CappedUpgradeable { // Creating A Whitelist Mapping mapping (address => bool) public whitelist; // Creating A Blacklist Mapping mapping (address => bool) public 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 pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setWhitelist(address _address, bool _state) public onlyOwner { whitelist[_address] = _state; } function setBlacklist(address _address, bool _state) public onlyOwner { blacklist[_address] = _state; } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20Upgradeable, ERC20SnapshotUpgradeable) { require(!blacklist[from] && !blacklist[to], "ERC20Pausable: token transfer to/from blacklisted address"); if (!whitelist[from] && !whitelist[to]) { require(!paused(), "ERC20Pausable: token transfer while paused"); } 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":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e7565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e5576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051613de86200011f600039600081816109b0015281816109f901528181610c6301528181610ca30152610d320152613de86000f3fe60806040526004361061027d5760003560e01c806370a082311161014f5780639711715a116100c1578063c3cda5201161007a578063c3cda52014610798578063d505accf146107b8578063dd62ed3e146107d8578063f1127ed8146107f8578063f2fde38b14610842578063f9f92be41461086257600080fd5b80639711715a146106d2578063981b24d0146106e75780639ab24eb0146107075780639b19251a14610727578063a457c2d714610758578063a9059cbb1461077857600080fd5b80638456cb59116101135780638456cb591461061657806384b0196e1461062b5780638da5cb5b146106535780638e539e8c1461067157806391ddadf41461069157806395d89b41146106bd57600080fd5b806370a0823114610576578063715018a6146105ac57806379cc6790146105c15780637ecebe00146105e15780638129fc1c1461060157600080fd5b80633f4ba83a116101f357806352d1902d116101ac57806352d1902d1461048257806353d6fd5914610497578063587cde1e146104b75780635c19a95c146105095780635c975abb146105295780636fcfff451461054157600080fd5b80633f4ba83a146103e557806340c10f19146103fa57806342966c681461041a5780634bf5d7e91461043a5780634ee2cd7e1461044f5780634f1ef2861461046f57600080fd5b8063313ce56711610245578063313ce5671461033e578063355274ea1461035a5780633644e515146103705780633659cfe61461038557806339509351146103a55780633a46b1a8146103c557600080fd5b806306fdde0314610282578063095ea7b3146102ad578063153b0d1e146102dd57806318160ddd146102ff57806323b872dd1461031e575b600080fd5b34801561028e57600080fd5b50610297610893565b6040516102a49190613578565b60405180910390f35b3480156102b957600080fd5b506102cd6102c83660046135a2565b610925565b60405190151581526020016102a4565b3480156102e957600080fd5b506102fd6102f83660046135cc565b61093f565b005b34801561030b57600080fd5b506035545b6040519081526020016102a4565b34801561032a57600080fd5b506102cd610339366004613608565b610973565b34801561034a57600080fd5b50604051601281526020016102a4565b34801561036657600080fd5b5061022a54610310565b34801561037c57600080fd5b50610310610997565b34801561039157600080fd5b506102fd6103a0366004613644565b6109a6565b3480156103b157600080fd5b506102cd6103c03660046135a2565b610a8e565b3480156103d157600080fd5b506103106103e03660046135a2565b610ab0565b3480156103f157600080fd5b506102fd610b36565b34801561040657600080fd5b506102fd6104153660046135a2565b610b48565b34801561042657600080fd5b506102fd61043536600461365f565b610b5e565b34801561044657600080fd5b50610297610b68565b34801561045b57600080fd5b5061031061046a3660046135a2565b610c00565b6102fd61047d36600461368e565b610c59565b34801561048e57600080fd5b50610310610d25565b3480156104a357600080fd5b506102fd6104b23660046135cc565b610dd8565b3480156104c357600080fd5b506104f16104d2366004613644565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b0390911681526020016102a4565b34801561051557600080fd5b506102fd610524366004613644565b610e0c565b34801561053557600080fd5b5060fb5460ff166102cd565b34801561054d57600080fd5b5061056161055c366004613644565b610e16565b60405163ffffffff90911681526020016102a4565b34801561058257600080fd5b50610310610591366004613644565b6001600160a01b031660009081526033602052604090205490565b3480156105b857600080fd5b506102fd610e39565b3480156105cd57600080fd5b506102fd6105dc3660046135a2565b610e4b565b3480156105ed57600080fd5b506103106105fc366004613644565b610e60565b34801561060d57600080fd5b506102fd610e7f565b34801561062257600080fd5b506102fd611022565b34801561063757600080fd5b50610640611032565b6040516102a49796959493929190613750565b34801561065f57600080fd5b5060c9546001600160a01b03166104f1565b34801561067d57600080fd5b5061031061068c36600461365f565b6110d2565b34801561069d57600080fd5b506106a661113a565b60405165ffffffffffff90911681526020016102a4565b3480156106c957600080fd5b50610297611145565b3480156106de57600080fd5b506102fd611154565b3480156106f357600080fd5b5061031061070236600461365f565b611164565b34801561071357600080fd5b50610310610722366004613644565b61118f565b34801561073357600080fd5b506102cd610742366004613644565b61022b6020526000908152604090205460ff1681565b34801561076457600080fd5b506102cd6107733660046135a2565b611213565b34801561078457600080fd5b506102cd6107933660046135a2565b61128e565b3480156107a457600080fd5b506102fd6107b33660046137f7565b61129c565b3480156107c457600080fd5b506102fd6107d336600461384f565b6113d2565b3480156107e457600080fd5b506103106107f33660046138b9565b611536565b34801561080457600080fd5b506108186108133660046138ec565b611561565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102a4565b34801561084e57600080fd5b506102fd61085d366004613644565b6115e6565b34801561086e57600080fd5b506102cd61087d366004613644565b61022c6020526000908152604090205460ff1681565b6060603680546108a290613921565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90613921565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b60003361093381858561165c565b60019150505b92915050565b610947611780565b6001600160a01b0391909116600090815261022c60205260409020805460ff1916911515919091179055565b6000336109818582856117da565b61098c858585611854565b506001949350505050565b60006109a1611a10565b905090565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036109f75760405162461bcd60e51b81526004016109ee90613955565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a40600080516020613d6c833981519152546001600160a01b031690565b6001600160a01b031614610a665760405162461bcd60e51b81526004016109ee906139a1565b610a6f81611a1a565b60408051600080825260208201909252610a8b91839190611a22565b50565b600033610933818585610aa18383611536565b610aab9190613a03565b61165c565b6000610aba61113a565b65ffffffffffff168210610b0c5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016109ee565b6001600160a01b038316600090815261019560205260409020610b2f9083611b92565b9392505050565b610b3e611780565b610b46611c7b565b565b610b50611780565b610b5a8282611ccd565b5050565b610a8b3382611cd7565b606043610b7361113a565b65ffffffffffff1614610bc85760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016109ee565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6001600160a01b038216600090815260976020526040812081908190610c27908590611ce1565b9150915081610c4e576001600160a01b038516600090815260336020526040902054610c50565b805b95945050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ca15760405162461bcd60e51b81526004016109ee90613955565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610cea600080516020613d6c833981519152546001600160a01b031690565b6001600160a01b031614610d105760405162461bcd60e51b81526004016109ee906139a1565b610d1982611a1a565b610b5a82826001611a22565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610dc55760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016109ee565b50600080516020613d6c83398151915290565b610de0611780565b6001600160a01b0391909116600090815261022b60205260409020805460ff1916911515919091179055565b610a8b3382611ddd565b6001600160a01b0381166000908152610195602052604081205461093990611e58565b610e41611780565b610b466000611ec1565b610e568233836117da565b610b5a8282611cd7565b6001600160a01b03811660009081526101616020526040812054610939565b600054610100900460ff1615808015610e9f5750600054600160ff909116105b80610eb95750303b158015610eb9575060005460ff166001145b610ed55760405162461bcd60e51b81526004016109ee90613a16565b6000805460ff191660011790558015610ef8576000805461ff0019166101001790555b610f3d6040518060400160405280600781526020016650796d6544414f60c81b8152506040518060400160405280600481526020016350594d4560e01b815250611f13565b610f45611f44565b610f4d611f44565b610f55611f6b565b610f5d611f9a565b610f856040518060400160405280600781526020016650796d6544414f60c81b815250611fc9565b610f8d611f44565b610f95611f44565b610fb7610fa46012600a613b40565b610fb290633b9aca00613b4f565b612013565b610fda33610fc76012600a613b40565b610fd590631e65fb80613b4f565b611ccd565b8015610a8b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61102a611780565b610b46612123565b60006060806000806000606061012d546000801b148015611054575061012e54155b6110985760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016109ee565b6110a0612160565b6110a8612170565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60006110dc61113a565b65ffffffffffff16821061112e5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016109ee565b61093961019683611b92565b60006109a143612180565b6060603780546108a290613921565b61115c611780565b610a8b6121e7565b6000806000611174846098611ce1565b915091508161118557603554611187565b805b949350505050565b6001600160a01b038116600090815261019560205260408120548015611200576001600160a01b038316600090815261019560205260409020805460001983019081106111de576111de613b66565b60009182526020909120015464010000000090046001600160e01b0316611203565b60005b6001600160e01b03169392505050565b600033816112218286611536565b9050838110156112815760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109ee565b61098c828686840361165c565b600033610933818585611854565b834211156112ec5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016109ee565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906113669061135e9060a00160405160208183030381529060405280519060200120612241565b85858561226e565b905061137181612296565b86146113bf5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016109ee565b6113c98188611ddd565b50505050505050565b834211156114225760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016109ee565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886114518c612296565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006114ac82612241565b905060006114bc8287878761226e565b9050896001600160a01b0316816001600160a01b03161461151f5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016109ee565b61152a8a8a8a61165c565b50505050505050505050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff84169081106115a6576115a6613b66565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6115ee611780565b6001600160a01b0381166116535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ee565b610a8b81611ec1565b6001600160a01b0383166116be5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109ee565b6001600160a01b03821661171f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109ee565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60c9546001600160a01b03163314610b465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ee565b60006117e68484611536565b9050600019811461184e57818110156118415760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109ee565b61184e848484840361165c565b50505050565b6001600160a01b0383166118b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109ee565b6001600160a01b03821661191a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109ee565b6119258383836122bf565b6001600160a01b0383166000908152603360205260409020548181101561199d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109ee565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119fd9086815260200190565b60405180910390a361184e84848461242f565b60006109a161243a565b610a8b611780565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a5a57611a55836124ae565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ab4575060408051601f3d908101601f19168201909252611ab191810190613b7c565b60015b611b175760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016109ee565b600080516020613d6c8339815191528114611b865760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016109ee565b50611a5583838361254a565b815460009081816005811115611bec576000611bad8461256f565b611bb79085613b95565b600088815260209020909150869082015463ffffffff161115611bdc57809150611bea565b611be7816001613a03565b92505b505b80821015611c39576000611c008383612657565b600088815260209020909150869082015463ffffffff161115611c2557809150611c33565b611c30816001613a03565b92505b50611bec565b8015611c65576000868152602090208101600019015464010000000090046001600160e01b0316611c68565b60005b6001600160e01b03169695505050505050565b611c83612672565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b5a82826126bb565b610b5a828261272b565b60008060008411611d2d5760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016109ee565b611d35612744565b841115611d845760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016109ee565b6000611d90848661274f565b84549091508103611da8576000809250925050611dd6565b6001846001018281548110611dbf57611dbf613b66565b90600052602060002001549250925050611dd6565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461184e8284836127fc565b600063ffffffff821115611ebd5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016109ee565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611f3a5760405162461bcd60e51b81526004016109ee90613ba8565b610b5a828261293b565b600054610100900460ff16610b465760405162461bcd60e51b81526004016109ee90613ba8565b600054610100900460ff16611f925760405162461bcd60e51b81526004016109ee90613ba8565b610b4661297b565b600054610100900460ff16611fc15760405162461bcd60e51b81526004016109ee90613ba8565b610b466129ab565b600054610100900460ff16611ff05760405162461bcd60e51b81526004016109ee90613ba8565b610a8b81604051806040016040528060018152602001603160f81b8152506129de565b600054610100900460ff16158080156120335750600054600160ff909116105b8061204d5750303b15801561204d575060005460ff166001145b6120695760405162461bcd60e51b81526004016109ee90613a16565b6000805460ff19166001179055801561208c576000805461ff0019166101001790555b600082116120d45760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b60448201526064016109ee565b61022a8290558015610b5a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61212b612a31565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cb03390565b606061012f80546108a290613921565b606061013080546108a290613921565b600065ffffffffffff821115611ebd5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016109ee565b60006121f7609a80546001019055565b6000612201612744565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161223491815260200190565b60405180910390a1919050565b600061093961224e611a10565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061227f87878787612a77565b9150915061228c81612b3b565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b6001600160a01b038316600090815261022c602052604090205460ff1615801561230357506001600160a01b038216600090815261022c602052604090205460ff16155b6123755760405162461bcd60e51b815260206004820152603960248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220746f60448201527f2f66726f6d20626c61636b6c697374656420616464726573730000000000000060648201526084016109ee565b6001600160a01b038316600090815261022b602052604090205460ff161580156123b957506001600160a01b038216600090815261022b602052604090205460ff16155b156124245760fb5460ff16156124245760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016109ee565b611a55838383612c85565b611a55838383612ccd565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612465612d00565b61246d612d5a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b0381163b61251b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016109ee565b600080516020613d6c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61255383612d8c565b6000825111806125605750805b15611a555761184e8383612dcc565b60008160000361258157506000919050565b6000600161258e84612df1565b901c6001901b905060018184816125a7576125a7613bf3565b048201901c905060018184816125bf576125bf613bf3565b048201901c905060018184816125d7576125d7613bf3565b048201901c905060018184816125ef576125ef613bf3565b048201901c9050600181848161260757612607613bf3565b048201901c9050600181848161261f5761261f613bf3565b048201901c9050600181848161263757612637613bf3565b048201901c9050610b2f8182858161265157612651613bf3565b04612e85565b60006126666002848418613c09565b610b2f90848416613a03565b60fb5460ff16610b465760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109ee565b61022a54816126c960355490565b6126d39190613a03565b11156127215760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016109ee565b610b5a8282612e9b565b6127358282612f26565b61184e61019661306d83613079565b60006109a1609a5490565b8154600090810361276257506000610939565b82546000905b808210156127af57600061277c8383612657565b6000878152602090209091508590820154111561279b578091506127a9565b6127a6816001613a03565b92505b50612768565b6000821180156127db5750836127d8866127ca600186613b95565b600091825260209091200190565b54145b156127f4576127eb600183613b95565b92505050610939565b509050610939565b816001600160a01b0316836001600160a01b03161415801561281e5750600081115b15611a55576001600160a01b038316156128ad576001600160a01b038316600090815261019560205260408120819061285a9061306d85613079565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516128a2929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a55576001600160a01b03821660009081526101956020526040812081906128e4906131ee85613079565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161292c929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff166129625760405162461bcd60e51b81526004016109ee90613ba8565b603661296e8382613c79565b506037611a558282613c79565b600054610100900460ff166129a25760405162461bcd60e51b81526004016109ee90613ba8565b610b4633611ec1565b600054610100900460ff166129d25760405162461bcd60e51b81526004016109ee90613ba8565b60fb805460ff19169055565b600054610100900460ff16612a055760405162461bcd60e51b81526004016109ee90613ba8565b61012f612a128382613c79565b50610130612a208282613c79565b5050600061012d81905561012e5550565b60fb5460ff1615610b465760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109ee565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612aae5750600090506003612b32565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b02573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b2b57600060019250925050612b32565b9150600090505b94509492505050565b6000816004811115612b4f57612b4f613d39565b03612b575750565b6001816004811115612b6b57612b6b613d39565b03612bb85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109ee565b6002816004811115612bcc57612bcc613d39565b03612c195760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109ee565b6003816004811115612c2d57612c2d613d39565b03610a8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109ee565b6001600160a01b038316612ca457612c9c826131fa565b611a5561322d565b6001600160a01b038216612cbb57612c9c836131fa565b612cc4836131fa565b611a55826131fa565b6001600160a01b0383811660009081526101946020526040808220548584168352912054611a55929182169116836127fc565b600080612d0b612160565b805190915015612d22578051602090910120919050565b61012d548015612d325792915050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4709250505090565b600080612d65612170565b805190915015612d7c578051602090910120919050565b61012e548015612d325792915050565b612d95816124ae565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b2f8383604051806060016040528060278152602001613d8c6027913961323b565b600080608083901c15612e0657608092831c92015b604083901c15612e1857604092831c92015b602083901c15612e2a57602092831c92015b601083901c15612e3c57601092831c92015b600883901c15612e4e57600892831c92015b600483901c15612e6057600492831c92015b600283901c15612e7257600292831c92015b600183901c156109395760010192915050565b6000818310612e945781610b2f565b5090919050565b612ea582826132b3565b6035546001600160e01b031015612f175760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016109ee565b61184e6101966131ee83613079565b6001600160a01b038216612f865760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109ee565b612f92826000836122bf565b6001600160a01b038216600090815260336020526040902054818110156130065760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109ee565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a558360008461242f565b6000610b2f8284613b95565b825460009081908181156130c65760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b031660208201526130db565b60408051808201909152600080825260208201525b905080602001516001600160e01b031693506130fb84868863ffffffff16565b9250600082118015613125575061311061113a565b65ffffffffffff16816000015163ffffffff16145b1561316a5761313383613388565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff9092169190911790556131e4565b86604051806040016040528061318e61318161113a565b65ffffffffffff16611e58565b63ffffffff1681526020016131a286613388565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6000610b2f8284613a03565b6001600160a01b0381166000908152609760209081526040808320603390925290912054610a8b91906133f1565b6133f1565b610b46609861322860355490565b6060600080856001600160a01b0316856040516132589190613d4f565b600060405180830381855af49150503d8060008114613293576040519150601f19603f3d011682016040523d82523d6000602084013e613298565b606091505b50915091506132a98683838761343b565b9695505050505050565b6001600160a01b0382166133095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109ee565b613315600083836122bf565b80603560008282546133279190613a03565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610b5a6000838361242f565b60006001600160e01b03821115611ebd5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016109ee565b60006133fb612744565b905080613407846134b4565b1015611a55578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b606083156134aa5782516000036134a3576001600160a01b0385163b6134a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109ee565b5081611187565b61118783836134fe565b805460009081036134c757506000919050565b815482906134d790600190613b95565b815481106134e7576134e7613b66565b90600052602060002001549050919050565b919050565b81511561350e5781518083602001fd5b8060405162461bcd60e51b81526004016109ee9190613578565b60005b8381101561354357818101518382015260200161352b565b50506000910152565b60008151808452613564816020860160208601613528565b601f01601f19169290920160200192915050565b602081526000610b2f602083018461354c565b80356001600160a01b03811681146134f957600080fd5b600080604083850312156135b557600080fd5b6135be8361358b565b946020939093013593505050565b600080604083850312156135df57600080fd5b6135e88361358b565b9150602083013580151581146135fd57600080fd5b809150509250929050565b60008060006060848603121561361d57600080fd5b6136268461358b565b92506136346020850161358b565b9150604084013590509250925092565b60006020828403121561365657600080fd5b610b2f8261358b565b60006020828403121561367157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156136a157600080fd5b6136aa8361358b565b9150602083013567ffffffffffffffff808211156136c757600080fd5b818501915085601f8301126136db57600080fd5b8135818111156136ed576136ed613678565b604051601f8201601f19908116603f0116810190838211818310171561371557613715613678565b8160405282815288602084870101111561372e57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60ff60f81b881681526000602060e08184015261377060e084018a61354c565b8381036040850152613782818a61354c565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b818110156137d4578351835292840192918401916001016137b8565b50909c9b505050505050505050505050565b803560ff811681146134f957600080fd5b60008060008060008060c0878903121561381057600080fd5b6138198761358b565b95506020870135945060408701359350613835606088016137e6565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561386a57600080fd5b6138738861358b565b96506138816020890161358b565b9550604088013594506060880135935061389d608089016137e6565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156138cc57600080fd5b6138d58361358b565b91506138e36020840161358b565b90509250929050565b600080604083850312156138ff57600080fd5b6139088361358b565b9150602083013563ffffffff811681146135fd57600080fd5b600181811c9082168061393557607f821691505b6020821081036122b957634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610939576109396139ed565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181815b80851115611dd4578160001904821115613a8557613a856139ed565b80851615613a9257918102915b93841c9390800290613a69565b600082613aae57506001610939565b81613abb57506000610939565b8160018114613ad15760028114613adb57613af7565b6001915050610939565b60ff841115613aec57613aec6139ed565b50506001821b610939565b5060208310610133831016604e8410600b8410161715613b1a575081810a610939565b613b248383613a64565b8060001904821115613b3857613b386139ed565b029392505050565b6000610b2f60ff841683613a9f565b8082028115828204841417610939576109396139ed565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613b8e57600080fd5b5051919050565b81810381811115610939576109396139ed565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613c2657634e487b7160e01b600052601260045260246000fd5b500490565b601f821115611a5557600081815260208120601f850160051c81016020861015613c525750805b601f850160051c820191505b81811015613c7157828155600101613c5e565b505050505050565b815167ffffffffffffffff811115613c9357613c93613678565b613ca781613ca18454613921565b84613c2b565b602080601f831160018114613cdc5760008415613cc45750858301515b600019600386901b1c1916600185901b178555613c71565b600085815260208120601f198616915b82811015613d0b57888601518255948401946001909101908401613cec565b5085821015613d295787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b60008251613d61818460208701613528565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203f6d0f5893b39b41750320b68ee03667ed7274bbd8ed5ca067ff94f7bc84161264736f6c63430008120033
Deployed Bytecode
0x60806040526004361061027d5760003560e01c806370a082311161014f5780639711715a116100c1578063c3cda5201161007a578063c3cda52014610798578063d505accf146107b8578063dd62ed3e146107d8578063f1127ed8146107f8578063f2fde38b14610842578063f9f92be41461086257600080fd5b80639711715a146106d2578063981b24d0146106e75780639ab24eb0146107075780639b19251a14610727578063a457c2d714610758578063a9059cbb1461077857600080fd5b80638456cb59116101135780638456cb591461061657806384b0196e1461062b5780638da5cb5b146106535780638e539e8c1461067157806391ddadf41461069157806395d89b41146106bd57600080fd5b806370a0823114610576578063715018a6146105ac57806379cc6790146105c15780637ecebe00146105e15780638129fc1c1461060157600080fd5b80633f4ba83a116101f357806352d1902d116101ac57806352d1902d1461048257806353d6fd5914610497578063587cde1e146104b75780635c19a95c146105095780635c975abb146105295780636fcfff451461054157600080fd5b80633f4ba83a146103e557806340c10f19146103fa57806342966c681461041a5780634bf5d7e91461043a5780634ee2cd7e1461044f5780634f1ef2861461046f57600080fd5b8063313ce56711610245578063313ce5671461033e578063355274ea1461035a5780633644e515146103705780633659cfe61461038557806339509351146103a55780633a46b1a8146103c557600080fd5b806306fdde0314610282578063095ea7b3146102ad578063153b0d1e146102dd57806318160ddd146102ff57806323b872dd1461031e575b600080fd5b34801561028e57600080fd5b50610297610893565b6040516102a49190613578565b60405180910390f35b3480156102b957600080fd5b506102cd6102c83660046135a2565b610925565b60405190151581526020016102a4565b3480156102e957600080fd5b506102fd6102f83660046135cc565b61093f565b005b34801561030b57600080fd5b506035545b6040519081526020016102a4565b34801561032a57600080fd5b506102cd610339366004613608565b610973565b34801561034a57600080fd5b50604051601281526020016102a4565b34801561036657600080fd5b5061022a54610310565b34801561037c57600080fd5b50610310610997565b34801561039157600080fd5b506102fd6103a0366004613644565b6109a6565b3480156103b157600080fd5b506102cd6103c03660046135a2565b610a8e565b3480156103d157600080fd5b506103106103e03660046135a2565b610ab0565b3480156103f157600080fd5b506102fd610b36565b34801561040657600080fd5b506102fd6104153660046135a2565b610b48565b34801561042657600080fd5b506102fd61043536600461365f565b610b5e565b34801561044657600080fd5b50610297610b68565b34801561045b57600080fd5b5061031061046a3660046135a2565b610c00565b6102fd61047d36600461368e565b610c59565b34801561048e57600080fd5b50610310610d25565b3480156104a357600080fd5b506102fd6104b23660046135cc565b610dd8565b3480156104c357600080fd5b506104f16104d2366004613644565b6001600160a01b03908116600090815261019460205260409020541690565b6040516001600160a01b0390911681526020016102a4565b34801561051557600080fd5b506102fd610524366004613644565b610e0c565b34801561053557600080fd5b5060fb5460ff166102cd565b34801561054d57600080fd5b5061056161055c366004613644565b610e16565b60405163ffffffff90911681526020016102a4565b34801561058257600080fd5b50610310610591366004613644565b6001600160a01b031660009081526033602052604090205490565b3480156105b857600080fd5b506102fd610e39565b3480156105cd57600080fd5b506102fd6105dc3660046135a2565b610e4b565b3480156105ed57600080fd5b506103106105fc366004613644565b610e60565b34801561060d57600080fd5b506102fd610e7f565b34801561062257600080fd5b506102fd611022565b34801561063757600080fd5b50610640611032565b6040516102a49796959493929190613750565b34801561065f57600080fd5b5060c9546001600160a01b03166104f1565b34801561067d57600080fd5b5061031061068c36600461365f565b6110d2565b34801561069d57600080fd5b506106a661113a565b60405165ffffffffffff90911681526020016102a4565b3480156106c957600080fd5b50610297611145565b3480156106de57600080fd5b506102fd611154565b3480156106f357600080fd5b5061031061070236600461365f565b611164565b34801561071357600080fd5b50610310610722366004613644565b61118f565b34801561073357600080fd5b506102cd610742366004613644565b61022b6020526000908152604090205460ff1681565b34801561076457600080fd5b506102cd6107733660046135a2565b611213565b34801561078457600080fd5b506102cd6107933660046135a2565b61128e565b3480156107a457600080fd5b506102fd6107b33660046137f7565b61129c565b3480156107c457600080fd5b506102fd6107d336600461384f565b6113d2565b3480156107e457600080fd5b506103106107f33660046138b9565b611536565b34801561080457600080fd5b506108186108133660046138ec565b611561565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102a4565b34801561084e57600080fd5b506102fd61085d366004613644565b6115e6565b34801561086e57600080fd5b506102cd61087d366004613644565b61022c6020526000908152604090205460ff1681565b6060603680546108a290613921565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90613921565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b60003361093381858561165c565b60019150505b92915050565b610947611780565b6001600160a01b0391909116600090815261022c60205260409020805460ff1916911515919091179055565b6000336109818582856117da565b61098c858585611854565b506001949350505050565b60006109a1611a10565b905090565b6001600160a01b037f000000000000000000000000dd9eb6b26bed3be56198649b0c0fe8302e7fb9e81630036109f75760405162461bcd60e51b81526004016109ee90613955565b60405180910390fd5b7f000000000000000000000000dd9eb6b26bed3be56198649b0c0fe8302e7fb9e86001600160a01b0316610a40600080516020613d6c833981519152546001600160a01b031690565b6001600160a01b031614610a665760405162461bcd60e51b81526004016109ee906139a1565b610a6f81611a1a565b60408051600080825260208201909252610a8b91839190611a22565b50565b600033610933818585610aa18383611536565b610aab9190613a03565b61165c565b6000610aba61113a565b65ffffffffffff168210610b0c5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016109ee565b6001600160a01b038316600090815261019560205260409020610b2f9083611b92565b9392505050565b610b3e611780565b610b46611c7b565b565b610b50611780565b610b5a8282611ccd565b5050565b610a8b3382611cd7565b606043610b7361113a565b65ffffffffffff1614610bc85760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016109ee565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6001600160a01b038216600090815260976020526040812081908190610c27908590611ce1565b9150915081610c4e576001600160a01b038516600090815260336020526040902054610c50565b805b95945050505050565b6001600160a01b037f000000000000000000000000dd9eb6b26bed3be56198649b0c0fe8302e7fb9e8163003610ca15760405162461bcd60e51b81526004016109ee90613955565b7f000000000000000000000000dd9eb6b26bed3be56198649b0c0fe8302e7fb9e86001600160a01b0316610cea600080516020613d6c833981519152546001600160a01b031690565b6001600160a01b031614610d105760405162461bcd60e51b81526004016109ee906139a1565b610d1982611a1a565b610b5a82826001611a22565b6000306001600160a01b037f000000000000000000000000dd9eb6b26bed3be56198649b0c0fe8302e7fb9e81614610dc55760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016109ee565b50600080516020613d6c83398151915290565b610de0611780565b6001600160a01b0391909116600090815261022b60205260409020805460ff1916911515919091179055565b610a8b3382611ddd565b6001600160a01b0381166000908152610195602052604081205461093990611e58565b610e41611780565b610b466000611ec1565b610e568233836117da565b610b5a8282611cd7565b6001600160a01b03811660009081526101616020526040812054610939565b600054610100900460ff1615808015610e9f5750600054600160ff909116105b80610eb95750303b158015610eb9575060005460ff166001145b610ed55760405162461bcd60e51b81526004016109ee90613a16565b6000805460ff191660011790558015610ef8576000805461ff0019166101001790555b610f3d6040518060400160405280600781526020016650796d6544414f60c81b8152506040518060400160405280600481526020016350594d4560e01b815250611f13565b610f45611f44565b610f4d611f44565b610f55611f6b565b610f5d611f9a565b610f856040518060400160405280600781526020016650796d6544414f60c81b815250611fc9565b610f8d611f44565b610f95611f44565b610fb7610fa46012600a613b40565b610fb290633b9aca00613b4f565b612013565b610fda33610fc76012600a613b40565b610fd590631e65fb80613b4f565b611ccd565b8015610a8b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61102a611780565b610b46612123565b60006060806000806000606061012d546000801b148015611054575061012e54155b6110985760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016109ee565b6110a0612160565b6110a8612170565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60006110dc61113a565b65ffffffffffff16821061112e5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016109ee565b61093961019683611b92565b60006109a143612180565b6060603780546108a290613921565b61115c611780565b610a8b6121e7565b6000806000611174846098611ce1565b915091508161118557603554611187565b805b949350505050565b6001600160a01b038116600090815261019560205260408120548015611200576001600160a01b038316600090815261019560205260409020805460001983019081106111de576111de613b66565b60009182526020909120015464010000000090046001600160e01b0316611203565b60005b6001600160e01b03169392505050565b600033816112218286611536565b9050838110156112815760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109ee565b61098c828686840361165c565b600033610933818585611854565b834211156112ec5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016109ee565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906113669061135e9060a00160405160208183030381529060405280519060200120612241565b85858561226e565b905061137181612296565b86146113bf5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016109ee565b6113c98188611ddd565b50505050505050565b834211156114225760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016109ee565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886114518c612296565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006114ac82612241565b905060006114bc8287878761226e565b9050896001600160a01b0316816001600160a01b03161461151f5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016109ee565b61152a8a8a8a61165c565b50505050505050505050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b038316600090815261019560205260409020805463ffffffff84169081106115a6576115a6613b66565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6115ee611780565b6001600160a01b0381166116535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ee565b610a8b81611ec1565b6001600160a01b0383166116be5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109ee565b6001600160a01b03821661171f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109ee565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60c9546001600160a01b03163314610b465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ee565b60006117e68484611536565b9050600019811461184e57818110156118415760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109ee565b61184e848484840361165c565b50505050565b6001600160a01b0383166118b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109ee565b6001600160a01b03821661191a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109ee565b6119258383836122bf565b6001600160a01b0383166000908152603360205260409020548181101561199d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109ee565b6001600160a01b0380851660008181526033602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906119fd9086815260200190565b60405180910390a361184e84848461242f565b60006109a161243a565b610a8b611780565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a5a57611a55836124ae565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ab4575060408051601f3d908101601f19168201909252611ab191810190613b7c565b60015b611b175760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016109ee565b600080516020613d6c8339815191528114611b865760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016109ee565b50611a5583838361254a565b815460009081816005811115611bec576000611bad8461256f565b611bb79085613b95565b600088815260209020909150869082015463ffffffff161115611bdc57809150611bea565b611be7816001613a03565b92505b505b80821015611c39576000611c008383612657565b600088815260209020909150869082015463ffffffff161115611c2557809150611c33565b611c30816001613a03565b92505b50611bec565b8015611c65576000868152602090208101600019015464010000000090046001600160e01b0316611c68565b60005b6001600160e01b03169695505050505050565b611c83612672565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b5a82826126bb565b610b5a828261272b565b60008060008411611d2d5760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016109ee565b611d35612744565b841115611d845760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016109ee565b6000611d90848661274f565b84549091508103611da8576000809250925050611dd6565b6001846001018281548110611dbf57611dbf613b66565b90600052602060002001549250925050611dd6565b505b9250929050565b6001600160a01b0382811660008181526101946020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461184e8284836127fc565b600063ffffffff821115611ebd5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016109ee565b5090565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611f3a5760405162461bcd60e51b81526004016109ee90613ba8565b610b5a828261293b565b600054610100900460ff16610b465760405162461bcd60e51b81526004016109ee90613ba8565b600054610100900460ff16611f925760405162461bcd60e51b81526004016109ee90613ba8565b610b4661297b565b600054610100900460ff16611fc15760405162461bcd60e51b81526004016109ee90613ba8565b610b466129ab565b600054610100900460ff16611ff05760405162461bcd60e51b81526004016109ee90613ba8565b610a8b81604051806040016040528060018152602001603160f81b8152506129de565b600054610100900460ff16158080156120335750600054600160ff909116105b8061204d5750303b15801561204d575060005460ff166001145b6120695760405162461bcd60e51b81526004016109ee90613a16565b6000805460ff19166001179055801561208c576000805461ff0019166101001790555b600082116120d45760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b60448201526064016109ee565b61022a8290558015610b5a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61212b612a31565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cb03390565b606061012f80546108a290613921565b606061013080546108a290613921565b600065ffffffffffff821115611ebd5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016109ee565b60006121f7609a80546001019055565b6000612201612744565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161223491815260200190565b60405180910390a1919050565b600061093961224e611a10565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061227f87878787612a77565b9150915061228c81612b3b565b5095945050505050565b6001600160a01b0381166000908152610161602052604090208054600181018255905b50919050565b6001600160a01b038316600090815261022c602052604090205460ff1615801561230357506001600160a01b038216600090815261022c602052604090205460ff16155b6123755760405162461bcd60e51b815260206004820152603960248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220746f60448201527f2f66726f6d20626c61636b6c697374656420616464726573730000000000000060648201526084016109ee565b6001600160a01b038316600090815261022b602052604090205460ff161580156123b957506001600160a01b038216600090815261022b602052604090205460ff16155b156124245760fb5460ff16156124245760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016109ee565b611a55838383612c85565b611a55838383612ccd565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612465612d00565b61246d612d5a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b0381163b61251b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016109ee565b600080516020613d6c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61255383612d8c565b6000825111806125605750805b15611a555761184e8383612dcc565b60008160000361258157506000919050565b6000600161258e84612df1565b901c6001901b905060018184816125a7576125a7613bf3565b048201901c905060018184816125bf576125bf613bf3565b048201901c905060018184816125d7576125d7613bf3565b048201901c905060018184816125ef576125ef613bf3565b048201901c9050600181848161260757612607613bf3565b048201901c9050600181848161261f5761261f613bf3565b048201901c9050600181848161263757612637613bf3565b048201901c9050610b2f8182858161265157612651613bf3565b04612e85565b60006126666002848418613c09565b610b2f90848416613a03565b60fb5460ff16610b465760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109ee565b61022a54816126c960355490565b6126d39190613a03565b11156127215760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016109ee565b610b5a8282612e9b565b6127358282612f26565b61184e61019661306d83613079565b60006109a1609a5490565b8154600090810361276257506000610939565b82546000905b808210156127af57600061277c8383612657565b6000878152602090209091508590820154111561279b578091506127a9565b6127a6816001613a03565b92505b50612768565b6000821180156127db5750836127d8866127ca600186613b95565b600091825260209091200190565b54145b156127f4576127eb600183613b95565b92505050610939565b509050610939565b816001600160a01b0316836001600160a01b03161415801561281e5750600081115b15611a55576001600160a01b038316156128ad576001600160a01b038316600090815261019560205260408120819061285a9061306d85613079565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516128a2929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a55576001600160a01b03821660009081526101956020526040812081906128e4906131ee85613079565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161292c929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff166129625760405162461bcd60e51b81526004016109ee90613ba8565b603661296e8382613c79565b506037611a558282613c79565b600054610100900460ff166129a25760405162461bcd60e51b81526004016109ee90613ba8565b610b4633611ec1565b600054610100900460ff166129d25760405162461bcd60e51b81526004016109ee90613ba8565b60fb805460ff19169055565b600054610100900460ff16612a055760405162461bcd60e51b81526004016109ee90613ba8565b61012f612a128382613c79565b50610130612a208282613c79565b5050600061012d81905561012e5550565b60fb5460ff1615610b465760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109ee565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612aae5750600090506003612b32565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b02573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b2b57600060019250925050612b32565b9150600090505b94509492505050565b6000816004811115612b4f57612b4f613d39565b03612b575750565b6001816004811115612b6b57612b6b613d39565b03612bb85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109ee565b6002816004811115612bcc57612bcc613d39565b03612c195760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109ee565b6003816004811115612c2d57612c2d613d39565b03610a8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109ee565b6001600160a01b038316612ca457612c9c826131fa565b611a5561322d565b6001600160a01b038216612cbb57612c9c836131fa565b612cc4836131fa565b611a55826131fa565b6001600160a01b0383811660009081526101946020526040808220548584168352912054611a55929182169116836127fc565b600080612d0b612160565b805190915015612d22578051602090910120919050565b61012d548015612d325792915050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4709250505090565b600080612d65612170565b805190915015612d7c578051602090910120919050565b61012e548015612d325792915050565b612d95816124ae565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b2f8383604051806060016040528060278152602001613d8c6027913961323b565b600080608083901c15612e0657608092831c92015b604083901c15612e1857604092831c92015b602083901c15612e2a57602092831c92015b601083901c15612e3c57601092831c92015b600883901c15612e4e57600892831c92015b600483901c15612e6057600492831c92015b600283901c15612e7257600292831c92015b600183901c156109395760010192915050565b6000818310612e945781610b2f565b5090919050565b612ea582826132b3565b6035546001600160e01b031015612f175760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016109ee565b61184e6101966131ee83613079565b6001600160a01b038216612f865760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109ee565b612f92826000836122bf565b6001600160a01b038216600090815260336020526040902054818110156130065760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109ee565b6001600160a01b03831660008181526033602090815260408083208686039055603580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a558360008461242f565b6000610b2f8284613b95565b825460009081908181156130c65760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b031660208201526130db565b60408051808201909152600080825260208201525b905080602001516001600160e01b031693506130fb84868863ffffffff16565b9250600082118015613125575061311061113a565b65ffffffffffff16816000015163ffffffff16145b1561316a5761313383613388565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff9092169190911790556131e4565b86604051806040016040528061318e61318161113a565b65ffffffffffff16611e58565b63ffffffff1681526020016131a286613388565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6000610b2f8284613a03565b6001600160a01b0381166000908152609760209081526040808320603390925290912054610a8b91906133f1565b6133f1565b610b46609861322860355490565b6060600080856001600160a01b0316856040516132589190613d4f565b600060405180830381855af49150503d8060008114613293576040519150601f19603f3d011682016040523d82523d6000602084013e613298565b606091505b50915091506132a98683838761343b565b9695505050505050565b6001600160a01b0382166133095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109ee565b613315600083836122bf565b80603560008282546133279190613a03565b90915550506001600160a01b0382166000818152603360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610b5a6000838361242f565b60006001600160e01b03821115611ebd5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016109ee565b60006133fb612744565b905080613407846134b4565b1015611a55578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b606083156134aa5782516000036134a3576001600160a01b0385163b6134a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109ee565b5081611187565b61118783836134fe565b805460009081036134c757506000919050565b815482906134d790600190613b95565b815481106134e7576134e7613b66565b90600052602060002001549050919050565b919050565b81511561350e5781518083602001fd5b8060405162461bcd60e51b81526004016109ee9190613578565b60005b8381101561354357818101518382015260200161352b565b50506000910152565b60008151808452613564816020860160208601613528565b601f01601f19169290920160200192915050565b602081526000610b2f602083018461354c565b80356001600160a01b03811681146134f957600080fd5b600080604083850312156135b557600080fd5b6135be8361358b565b946020939093013593505050565b600080604083850312156135df57600080fd5b6135e88361358b565b9150602083013580151581146135fd57600080fd5b809150509250929050565b60008060006060848603121561361d57600080fd5b6136268461358b565b92506136346020850161358b565b9150604084013590509250925092565b60006020828403121561365657600080fd5b610b2f8261358b565b60006020828403121561367157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156136a157600080fd5b6136aa8361358b565b9150602083013567ffffffffffffffff808211156136c757600080fd5b818501915085601f8301126136db57600080fd5b8135818111156136ed576136ed613678565b604051601f8201601f19908116603f0116810190838211818310171561371557613715613678565b8160405282815288602084870101111561372e57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60ff60f81b881681526000602060e08184015261377060e084018a61354c565b8381036040850152613782818a61354c565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b818110156137d4578351835292840192918401916001016137b8565b50909c9b505050505050505050505050565b803560ff811681146134f957600080fd5b60008060008060008060c0878903121561381057600080fd5b6138198761358b565b95506020870135945060408701359350613835606088016137e6565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561386a57600080fd5b6138738861358b565b96506138816020890161358b565b9550604088013594506060880135935061389d608089016137e6565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156138cc57600080fd5b6138d58361358b565b91506138e36020840161358b565b90509250929050565b600080604083850312156138ff57600080fd5b6139088361358b565b9150602083013563ffffffff811681146135fd57600080fd5b600181811c9082168061393557607f821691505b6020821081036122b957634e487b7160e01b600052602260045260246000fd5b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610939576109396139ed565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181815b80851115611dd4578160001904821115613a8557613a856139ed565b80851615613a9257918102915b93841c9390800290613a69565b600082613aae57506001610939565b81613abb57506000610939565b8160018114613ad15760028114613adb57613af7565b6001915050610939565b60ff841115613aec57613aec6139ed565b50506001821b610939565b5060208310610133831016604e8410600b8410161715613b1a575081810a610939565b613b248383613a64565b8060001904821115613b3857613b386139ed565b029392505050565b6000610b2f60ff841683613a9f565b8082028115828204841417610939576109396139ed565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613b8e57600080fd5b5051919050565b81810381811115610939576109396139ed565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613c2657634e487b7160e01b600052601260045260246000fd5b500490565b601f821115611a5557600081815260208120601f850160051c81016020861015613c525750805b601f850160051c820191505b81811015613c7157828155600101613c5e565b505050505050565b815167ffffffffffffffff811115613c9357613c93613678565b613ca781613ca18454613921565b84613c2b565b602080601f831160018114613cdc5760008415613cc45750858301515b600019600386901b1c1916600185901b178555613c71565b600085815260208120601f198616915b82811015613d0b57888601518255948401946001909101908401613cec565b5085821015613d295787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b60008251613d61818460208701613528565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203f6d0f5893b39b41750320b68ee03667ed7274bbd8ed5ca067ff94f7bc84161264736f6c63430008120033
Deployed Bytecode Sourcemap
173753:2782: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;175027:117:0;;;;;;;;;;-1:-1:-1;175027:117:0;;;;;:::i;:::-;;:::i;:::-;;135955:108;;;;;;;;;;-1:-1:-1;136043:12:0;;135955:108;;;1897:25:1;;;1885:2;1870:18;135955:108:0;1751:177:1;137967:261:0;;;;;;;;;;-1:-1:-1;137967:261:0;;;;;:::i;:::-;;:::i;135797:93::-;;;;;;;;;;-1:-1:-1;135797:93:0;;135880:2;2408:36:1;;2396:2;2381:18;135797:93:0;2266: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;174829:65::-;;;;;;;;;;;;;:::i;175152:95::-;;;;;;;;;;-1:-1:-1;175152: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;174902:117::-;;;;;;;;;;-1:-1:-1;174902:117:0;;;;;:::i;:::-;;:::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;;;;;4309:32:1;;;4291:51;;4279:2;4264:18;153670:128:0;4145: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;:::-;;;4527:10:1;4515:23;;;4497:42;;4485:2;4470:18;153415:162:0;4353: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;174242:435::-;;;;;;;;;;;;;:::i;174760:61::-;;;;;;;;;;;;;:::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;:::-;;;5988:14:1;5976:27;;;5958:46;;5946:2;5931:18;152596:131:0;5814:196:1;135045:104:0;;;;;;;;;;;;;:::i;174685:67::-;;;;;;;;;;;;;:::i;168182:234::-;;;;;;;;;;-1:-1:-1;168182:234:0;;;;;:::i;:::-;;:::i;153882:248::-;;;;;;;;;;-1:-1:-1;153882:248:0;;;;;:::i;:::-;;:::i;174034:42::-;;;;;;;;;;-1:-1:-1;174034:42:0;;;;;:::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;:::-;;;;8167:13:1;;8182:10;8163:30;8145:49;;8254:4;8242:17;;;8236:24;-1:-1:-1;;;;;8232:50:1;8210:20;;;8203:80;;;;8118:18;153185:150:0;7943:346:1;127875:201:0;;;;;;;;;;-1:-1:-1;127875:201:0;;;;;:::i;:::-;;:::i;174122:42::-;;;;;;;;;;-1:-1:-1;174122:42:0;;;;;:::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;175027:117::-;126862:13;:11;:13::i;:::-;-1:-1:-1;;;;;175108:19:0;;;::::1;;::::0;;;:9:::1;:19;::::0;;;;:28;;-1:-1:-1;;175108:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;175027:117::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;;9969:2:1;154435:57:0;;;9951:21:1;10008:2;9988:18;;;9981:30;-1:-1:-1;;;10027:18:1;;;10020:55;10092:18;;154435:57:0;9767: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;174829:65::-;126862:13;:11;:13::i;:::-;174876:10:::1;:8;:10::i;:::-;174829:65::o:0;175152:95::-;126862:13;:11;:13::i;:::-;175222:17:::1;175228:2;175232:6;175222:5;:17::i;:::-;175152: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;;10323:2:1;152981:65:0;;;10305:21:1;10362:2;10342:18;;;10335:30;10401:31;10381:18;;;10374:59;10450:18;;152981:65:0;10121: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;;10681:2:1;110139:92:0;;;10663:21:1;10720:2;10700:18;;;10693:30;10759:34;10739:18;;;10732:62;10830:26;10810:18;;;10803:54;10874:19;;110139:92:0;10479:420:1;110139:92:0;-1:-1:-1;;;;;;;;;;;;110849:133:0;:::o;174902:117::-;126862:13;:11;:13::i;:::-;-1:-1:-1;;;;;174983:19:0;;;::::1;;::::0;;;:9:::1;:19;::::0;;;;:28;;-1:-1:-1;;174983:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;174902:117::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;173193:164::-:0;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;174242: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;174294:31:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;174294:31:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;174294:31:0::1;;::::0;:12:::1;:31::i;:::-;174336:22;:20;:22::i;:::-;174369;:20;:22::i;:::-;174402:16;:14;:16::i;:::-;174429:17;:15;:17::i;:::-;174457:29;;;;;;;;;;;;;;-1:-1:-1::0;;;174457:29:0::1;;::::0;:18:::1;:29::i;:::-;174497:19;:17;:19::i;:::-;174527:24;:22;:24::i;:::-;174562:49;174594:16;135880:2:::0;174594::::1;:16;:::i;:::-;174581:29;::::0;:10:::1;:29;:::i;:::-;174562:18;:49::i;:::-;174622:47;174628:10;174652:16;135880:2:::0;174652::::1;:16;:::i;:::-;174640:28;::::0;:9:::1;:28;:::i;:::-;174622:5;:47::i;:::-;98070:14:::0;98066:102;;;98117:5;98101:21;;-1:-1:-1;;98101:21:0;;;98142:14;;-1:-1:-1;2408:36:1;;98142:14:0;;2396:2:1;2381:18;98142:14:0;;;;;;;97677:498;174242:435::o;174760:61::-;126862:13;:11;:13::i;:::-;174805:8:::1;:6;:8::i;117326:889::-:0;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;;13276:2:1;117901:73:0;;;13258:21:1;13315:2;13295:18;;;13288:30;-1:-1:-1;;;13334:18:1;;;13327:51;13395:18;;117901:73:0;13074: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;;9969:2:1;154947:57:0;;;9951:21:1;10008:2;9988:18;;;9981:30;-1:-1:-1;;;10027:18:1;;;10020:55;10092:18;;154947:57:0;9767: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;174685:67::-;126862:13;:11;:13::i;:::-;174733: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;;13758:2:1;139590:85:0;;;13740:21:1;13797:2;13777:18;;;13770:30;13836:34;13816:18;;;13809:62;-1:-1:-1;;;13887:18:1;;;13880:35;13932:19;;139590:85:0;13556: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;;14164:2:1;157611:67:0;;;14146:21:1;14203:2;14183:18;;;14176:30;14242:31;14222:18;;;14215:59;14291:18;;157611:67:0;13962:353:1;157611:67:0;157772:58;;;152209:71;157772:58;;;14551:25:1;-1:-1:-1;;;;;14612:32:1;;14592:18;;;14585:60;;;;14661:18;;;14654:34;;;14704:18;;;14697:34;;;157689:14:0;;157706:185;;157745:87;;14523: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;;14944:2:1;157902:64:0;;;14926:21:1;14983:2;14963:18;;;14956:30;15022:27;15002:18;;;14995:55;15067:18;;157902:64:0;14742: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;;15298:2:1;149130:69:0;;;15280:21:1;15337:2;15317:18;;;15310:30;15376:31;15356:18;;;15349:59;15425:18;;149130:69:0;15096: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;;;;;;15741:25:1;;;;-1:-1:-1;;;;;15840:15:1;;;15820:18;;;15813:43;15892:15;;;;15872:18;;;15865:43;15924:18;;;15917:34;15967:19;;;15960:35;16011:19;;;16004:35;;;15713: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;;16252:2:1;149459:58:0;;;16234:21:1;16291:2;16271:18;;;16264:30;16330:32;16310:18;;;16303:60;16380:18;;149459:58:0;16050: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;;16611:2:1;127956:73:0::1;::::0;::::1;16593:21:1::0;16650:2;16630:18;;;16623:30;16689:34;16669:18;;;16662:62;-1:-1:-1;;;16740:18:1;;;16733:36;16786:19;;127956:73:0::1;16409: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;;17018:2:1;143465:68:0;;;17000:21:1;17057:2;17037:18;;;17030:30;17096:34;17076:18;;;17069:62;-1:-1:-1;;;17147:18:1;;;17140:34;17191:19;;143465:68:0;16816:400:1;143465:68:0;-1:-1:-1;;;;;143552:21:0;;143544:68;;;;-1:-1:-1;;;143544:68:0;;17423:2:1;143544:68:0;;;17405:21:1;17462:2;17442:18;;;17435:30;17501:34;17481:18;;;17474:62;-1:-1:-1;;;17552:18:1;;;17545:32;17594:19;;143544:68:0;17221:398:1;143544:68:0;-1:-1:-1;;;;;143625:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;143677:32;;1897:25:1;;;143677:32:0;;1870:18:1;143677:32:0;;;;;;;143371:346;;;:::o;127141:132::-;127049:6;;-1:-1:-1;;;;;127049:6:0;121923:10;127205:23;127197:68;;;;-1:-1:-1;;;127197:68:0;;17826:2:1;127197:68:0;;;17808:21:1;;;17845:18;;;17838:30;17904:34;17884:18;;;17877:62;17956:18;;127197:68:0;17624:356:1;144008:419:0;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;;18187:2:1;144230:68:0;;;18169:21:1;18226:2;18206:18;;;18199:30;18265:31;18245:18;;;18238:59;18314:18;;144230:68:0;17985: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;;18545:2:1;140373:68:0;;;18527:21:1;18584:2;18564:18;;;18557:30;18623:34;18603:18;;;18596:62;-1:-1:-1;;;18674:18:1;;;18667:35;18719:19;;140373:68:0;18343:401:1;140373:68:0;-1:-1:-1;;;;;140460:16:0;;140452:64;;;;-1:-1:-1;;;140452:64:0;;18951:2:1;140452:64:0;;;18933:21:1;18990:2;18970:18;;;18963:30;19029:34;19009:18;;;19002:62;-1:-1:-1;;;19080:18:1;;;19073:33;19123:19;;140452:64:0;18749: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;;19355:2:1;140628:72:0;;;19337:21:1;19394:2;19374:18;;;19367:30;19433:34;19413:18;;;19406:62;-1:-1:-1;;;19484:18:1;;;19477:36;19530:19;;140628:72:0;19153:402:1;140628:72:0;-1:-1:-1;;;;;140736:15:0;;;;;;;:9;:15;;;;;;140754:20;;;140736:38;;140954:13;;;;;;;;;;:23;;;;;;141006:26;;;;;;140768:6;1897:25:1;;1885:2;1870:18;;1751: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;175739: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;;19951:2:1;104613:56:0;;;19933:21:1;19990:2;19970:18;;;19963:30;20029:34;20009:18;;;20002:62;-1:-1:-1;;;20080:18:1;;;20073:44;20134:19;;104613:56:0;19749:410:1;104379:306:0;-1:-1:-1;;;;;;;;;;;104497:28:0;;104489:82;;;;-1:-1:-1;;;104489:82:0;;20366:2:1;104489:82:0;;;20348:21:1;20405:2;20385:18;;;20378:30;20444:34;20424:18;;;20417:62;-1:-1:-1;;;20495:18:1;;;20488:39;20544:19;;104489:82:0;20164: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;125101:120::-;124110:16;:14;:16::i;:::-;125160:7:::1;:15:::0;;-1:-1:-1;;125160:15:0::1;::::0;;125191:22:::1;121923:10:::0;125200:12:::1;125191:22;::::0;-1:-1:-1;;;;;4309:32:1;;;4291:51;;4279:2;4264:18;125191:22:0::1;;;;;;;125101:120::o:0;176156:191::-;176316:23;176328:2;176332:6;176316:11;:23::i;176355:177::-;176496:28;176508:7;176517:6;176496:11;:28::i;169229:1619::-;169318:4;169324:7;169365:1;169352:10;:14;169344:49;;;;-1:-1:-1;;;169344:49:0;;20909:2:1;169344:49:0;;;20891:21:1;20948:2;20928:18;;;20921:30;-1:-1:-1;;;20967:18:1;;;20960:52;21029:18;;169344:49:0;20707:346:1;169344:49:0;169426:23;:21;:23::i;:::-;169412:10;:37;;169404:79;;;;-1:-1:-1;;;169404:79:0;;21260:2:1;169404:79:0;;;21242:21:1;21299:2;21279:18;;;21272:30;21338:31;21318:18;;;21311:59;21387:18;;169404:79:0;21058: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;;21618:2:1;21000:76:0;;;21600:21:1;21657:2;21637:18;;;21630:30;21696:34;21676:18;;;21669:62;-1:-1:-1;;;21747:18:1;;;21740:36;21793:19;;21000:76:0;21416: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;;22437:2:1;146368:42:0::1;::::0;::::1;22419:21:1::0;22476:2;22456:18;;;22449:30;-1:-1:-1;;;22495:18:1;;;22488:51;22556:18;;146368:42:0::1;22235: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;2408:36:1;;98142:14:0;;2396:2:1;2381:18;98142:14:0;;;;;;;97677:498;146294:146;:::o;124842:118::-;123851:19;:17;:19::i;:::-;124902:7:::1;:14:::0;;-1:-1:-1;;124902:14:0::1;124912:4;124902:14;::::0;;124932:20:::1;124939:12;121923:10:::0;;121843:98;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;;22787:2:1;19942:76:0;;;22769:21:1;22826:2;22806:18;;;22799:30;22865:34;22845:18;;;22838:62;-1:-1:-1;;;22916:18:1;;;22909:36;22962:19;;19942:76:0;22585: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;;;;1897:25:1;;1885:2;1870:18;;1751: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;175255:476::-;-1:-1:-1;;;;;175432:15:0;;;;;;:9;:15;;;;;;;;175431:16;:34;;;;-1:-1:-1;;;;;;175452:13:0;;;;;;:9;:13;;;;;;;;175451:14;175431:34;175423:104;;;;-1:-1:-1;;;175423:104:0;;23194:2:1;175423:104:0;;;23176:21:1;23233:2;23213:18;;;23206:30;23272:34;23252:18;;;23245:62;23343:27;23323:18;;;23316:55;23388:19;;175423:104:0;22992:421:1;175423:104:0;-1:-1:-1;;;;;175543:15:0;;;;;;:9;:15;;;;;;;;175542:16;:34;;;;-1:-1:-1;;;;;;175563:13:0;;;;;;:9;:13;;;;;;;;175562:14;175542:34;175538:131;;;124317:7;;;;175601:9;175593:64;;;;-1:-1:-1;;;175593:64:0;;23620:2:1;175593:64:0;;;23602:21:1;23659:2;23639:18;;;23632:30;23698:34;23678:18;;;23671:62;-1:-1:-1;;;23749:18:1;;;23742:40;23799:19;;175593:64:0;23418:406:1;175593:64:0;175679:44;175706:4;175712:2;175716:6;175679:26;:44::i;175933:215::-;176097:43;176123:4;176129:2;176133:6;176097:25;:43::i;116217:194::-;116272:7;114669:95;116332:17;:15;:17::i;:::-;116351:20;:18;:20::i;:::-;116309:93;;;;;;24088:25:1;;;;24129:18;;24122:34;;;;24172:18;;;24165:34;116373:13:0;24215:18:1;;;24208:34;116396:4:0;24258:19:1;;;24251:61;24060: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;;24525:2:1;102734:106:0;;;24507:21:1;24564:2;24544:18;;;24537:30;24603:34;24583:18;;;24576:62;-1:-1:-1;;;24654:18:1;;;24647:43;24707:19;;102734:106:0;24323: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;124590:108::-;124317:7;;;;124649:41;;;;-1:-1:-1;;;124649:41:0;;25293:2:1;124649:41:0;;;25275:21:1;25332:2;25312:18;;;25305:30;-1:-1:-1;;;25351:18:1;;;25344:50;25411:18;;124649:41:0;25091:344:1;146539:218:0;146519:4;;146665:6;146632:30;136043:12;;;135955:108;146632:30;:39;;;;:::i;:::-;:48;;146624:86;;;;-1:-1:-1;;;146624:86:0;;25642:2:1;146624:86:0;;;25624:21:1;25681:2;25661:18;;;25654:30;25720:27;25700:18;;;25693:55;25765:18;;146624:86:0;25440: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;;;;;;25968:25:1;;;26024:2;26009:18;;26002:34;25956:2;25941:18;;25794: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;;;;;;25968:25:1;;;26024:2;26009:18;;26002:34;25956:2;25941:18;;25794: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;124405:108::-;124317:7;;;;124475:9;124467:38;;;;-1:-1:-1;;;124467:38:0;;28453:2:1;124467:38:0;;;28435:21:1;28492:2;28472:18;;;28465:30;-1:-1:-1;;;28511:18:1;;;28504:46;28567:18;;124467:38:0;28251:340:1;71984:1477:0;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;;;;;;;;;28823:25:1;;;28896:4;28884:17;;28864:18;;;28857:45;;;;28918:18;;;28911:34;;;28961:18;;;28954:34;;;73266:24:0;;28795: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;;29333:2:1;67666:34:0;;;29315:21:1;29372:2;29352:18;;;29345:30;29411:26;29391:18;;;29384:54;29455:18;;67666:34:0;29131:348:1;67607:351:0;67731:35;67722:5;:44;;;;;;;;:::i;:::-;;67718:240;;67783:41;;-1:-1:-1;;;67783:41:0;;29686:2:1;67783:41:0;;;29668:21:1;29725:2;29705:18;;;29698:30;29764:33;29744:18;;;29737:61;29815:18;;67783:41:0;29484:355:1;67718:240:0;67855:30;67846:5;:39;;;;;;;;:::i;:::-;;67842:116;;67902:44;;-1:-1:-1;;;67902:44:0;;30046:2:1;67902:44:0;;;30028:21:1;30085:2;30065:18;;;30058:30;30124:34;30104:18;;;30097:62;-1:-1:-1;;;30175:18:1;;;30168:32;30217:19;;67902:44:0;29844: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;;30449:2:1;158443:90:0;;;30431:21:1;30488:2;30468:18;;;30461:30;30527:34;30507:18;;;30500:62;-1:-1:-1;;;30578:18:1;;;30571:46;30634:19;;158443:90:0;30247: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;;30866:2:1;142334:67:0;;;30848:21:1;30905:2;30885:18;;;30878:30;30944:34;30924:18;;;30917:62;-1:-1:-1;;;30995:18:1;;;30988:31;31036:19;;142334:67:0;30664: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;;31268:2:1;142530:71:0;;;31250:21:1;31307:2;31287:18;;;31280:30;31346:34;31326:18;;;31319:62;-1:-1:-1;;;31397:18:1;;;31390:32;31439:19;;142530:71:0;31066:398:1;142530:71:0;-1:-1:-1;;;;;142637:18:0;;;;;;:9;:18;;;;;;;;142658:23;;;142637:44;;142776:12;:22;;;;;;;142827:37;1897:25:1;;;142637:18:0;;;142827:37;;1870: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;;31963:2:1;141453:65:0;;;31945:21:1;32002:2;31982:18;;;31975:30;32041:33;32021:18;;;32014:61;32092:18;;141453:65:0;31761: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;1897:25:1;;;141819:37:0;;1870: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;;32323:2:1;8166:78:0;;;32305:21:1;32362:2;32342:18;;;32335:30;32401:34;32381:18;;;32374:62;-1:-1:-1;;;32452:18:1;;;32445:37;32499:19;;8166:78:0;32121: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;;32731:2:1;93031:60:0;;;32713:21:1;32770:2;32750:18;;;32743:30;32809:31;32789:18;;;32782:59;32858:18;;93031:60:0;32529: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;1399:347::-;1464:6;1472;1525:2;1513:9;1504:7;1500:23;1496:32;1493:52;;;1541:1;1538;1531:12;1493:52;1564:29;1583:9;1564:29;:::i;:::-;1554:39;;1643:2;1632:9;1628:18;1615:32;1690:5;1683:13;1676:21;1669:5;1666:32;1656:60;;1712:1;1709;1702:12;1656:60;1735:5;1725:15;;;1399:347;;;;;:::o;1933:328::-;2010:6;2018;2026;2079:2;2067:9;2058:7;2054:23;2050:32;2047:52;;;2095:1;2092;2085:12;2047:52;2118:29;2137:9;2118:29;:::i;:::-;2108:39;;2166:38;2200:2;2189:9;2185:18;2166:38;:::i;:::-;2156:48;;2251:2;2240:9;2236:18;2223:32;2213:42;;1933:328;;;;;:::o;2637:186::-;2696:6;2749:2;2737:9;2728:7;2724:23;2720:32;2717:52;;;2765:1;2762;2755:12;2717:52;2788:29;2807:9;2788:29;:::i;2828:180::-;2887:6;2940:2;2928:9;2919:7;2915:23;2911:32;2908:52;;;2956:1;2953;2946:12;2908:52;-1:-1:-1;2979:23:1;;2828:180;-1:-1:-1;2828:180:1:o;3013:127::-;3074:10;3069:3;3065:20;3062:1;3055:31;3105:4;3102:1;3095:15;3129:4;3126:1;3119:15;3145:995;3222:6;3230;3283:2;3271:9;3262:7;3258:23;3254:32;3251:52;;;3299:1;3296;3289:12;3251:52;3322:29;3341:9;3322:29;:::i;:::-;3312:39;;3402:2;3391:9;3387:18;3374:32;3425:18;3466:2;3458:6;3455:14;3452:34;;;3482:1;3479;3472:12;3452:34;3520:6;3509:9;3505:22;3495:32;;3565:7;3558:4;3554:2;3550:13;3546:27;3536:55;;3587:1;3584;3577:12;3536:55;3623:2;3610:16;3645:2;3641;3638:10;3635:36;;;3651:18;;:::i;:::-;3726:2;3720:9;3694:2;3780:13;;-1:-1:-1;;3776:22:1;;;3800:2;3772:31;3768:40;3756:53;;;3824:18;;;3844:22;;;3821:46;3818:72;;;3870:18;;:::i;:::-;3910:10;3906:2;3899:22;3945:2;3937:6;3930:18;3985:7;3980:2;3975;3971;3967:11;3963:20;3960:33;3957:53;;;4006:1;4003;3996:12;3957:53;4062:2;4057;4053;4049:11;4044:2;4036:6;4032:15;4019:46;4107:1;4102:2;4097;4089:6;4085:15;4081:24;4074:35;4128:6;4118:16;;;;;;;3145:995;;;;;:::o;4550:1259::-;4956:3;4951;4947:13;4939:6;4935:26;4924:9;4917:45;4898:4;4981:2;5019:3;5014:2;5003:9;4999:18;4992:31;5046:46;5087:3;5076:9;5072:19;5064:6;5046:46;:::i;:::-;5140:9;5132:6;5128:22;5123:2;5112:9;5108:18;5101:50;5174:33;5200:6;5192;5174:33;:::i;:::-;5238:2;5223:18;;5216:34;;;-1:-1:-1;;;;;5287:32:1;;5281:3;5266:19;;5259:61;5307:3;5336:19;;5329:35;;;5401:22;;;5395:3;5380:19;;5373:51;5473:13;;5495:22;;;5571:15;;;;-1:-1:-1;5533:15:1;;;;-1:-1:-1;5614:169:1;5628:6;5625:1;5622:13;5614:169;;;5689:13;;5677:26;;5758:15;;;;5723:12;;;;5650:1;5643:9;5614:169;;;-1:-1:-1;5800:3:1;;4550:1259;-1:-1:-1;;;;;;;;;;;;4550:1259:1:o;6015:156::-;6081:20;;6141:4;6130:16;;6120:27;;6110:55;;6161:1;6158;6151:12;6176:531;6278:6;6286;6294;6302;6310;6318;6371:3;6359:9;6350:7;6346:23;6342:33;6339:53;;;6388:1;6385;6378:12;6339:53;6411:29;6430:9;6411:29;:::i;:::-;6401:39;;6487:2;6476:9;6472:18;6459:32;6449:42;;6538:2;6527:9;6523:18;6510:32;6500:42;;6561:36;6593:2;6582:9;6578:18;6561:36;:::i;:::-;6551:46;;6644:3;6633:9;6629:19;6616:33;6606:43;;6696:3;6685:9;6681:19;6668:33;6658:43;;6176:531;;;;;;;;:::o;6712:606::-;6823:6;6831;6839;6847;6855;6863;6871;6924:3;6912:9;6903:7;6899:23;6895:33;6892:53;;;6941:1;6938;6931:12;6892:53;6964:29;6983:9;6964:29;:::i;:::-;6954:39;;7012:38;7046:2;7035:9;7031:18;7012:38;:::i;:::-;7002:48;;7097:2;7086:9;7082:18;7069:32;7059:42;;7148:2;7137:9;7133:18;7120:32;7110:42;;7171:37;7203:3;7192:9;7188:19;7171:37;:::i;:::-;7161:47;;7255:3;7244:9;7240:19;7227:33;7217:43;;7307:3;7296:9;7292:19;7279:33;7269:43;;6712:606;;;;;;;;;;:::o;7323:260::-;7391:6;7399;7452:2;7440:9;7431:7;7427:23;7423:32;7420:52;;;7468:1;7465;7458:12;7420:52;7491:29;7510:9;7491:29;:::i;:::-;7481:39;;7539:38;7573:2;7562:9;7558:18;7539:38;:::i;:::-;7529:48;;7323:260;;;;;:::o;7588:350::-;7655:6;7663;7716:2;7704:9;7695:7;7691:23;7687:32;7684:52;;;7732:1;7729;7722:12;7684:52;7755:29;7774:9;7755:29;:::i;:::-;7745:39;;7834:2;7823:9;7819:18;7806:32;7878:10;7871:5;7867:22;7860:5;7857:33;7847:61;;7904:1;7901;7894:12;8294:380;8373:1;8369:12;;;;8416;;;8437:61;;8491:4;8483:6;8479:17;8469:27;;8437:61;8544:2;8536:6;8533:14;8513:18;8510:38;8507:161;;8590:10;8585:3;8581:20;8578:1;8571:31;8625:4;8622:1;8615:15;8653:4;8650:1;8643:15;8679:408;8881:2;8863:21;;;8920:2;8900:18;;;8893:30;8959:34;8954:2;8939:18;;8932:62;-1:-1:-1;;;9025:2:1;9010:18;;9003:42;9077:3;9062:19;;8679:408::o;9092:::-;9294:2;9276:21;;;9333:2;9313:18;;;9306:30;9372:34;9367:2;9352:18;;9345:62;-1:-1:-1;;;9438:2:1;9423:18;;9416:42;9490:3;9475:19;;9092:408::o;9505:127::-;9566:10;9561:3;9557:20;9554:1;9547:31;9597:4;9594:1;9587:15;9621:4;9618:1;9611:15;9637:125;9702:9;;;9723:10;;;9720:36;;;9736:18;;:::i;10904:410::-;11106:2;11088:21;;;11145:2;11125:18;;;11118:30;11184:34;11179:2;11164:18;;11157:62;-1:-1:-1;;;11250:2:1;11235:18;;11228:44;11304:3;11289:19;;10904:410::o;11319:422::-;11408:1;11451:5;11408:1;11465:270;11486:7;11476:8;11473:21;11465:270;;;11545:4;11541:1;11537:6;11533:17;11527:4;11524:27;11521:53;;;11554:18;;:::i;:::-;11604:7;11594:8;11590:22;11587:55;;;11624:16;;;;11587:55;11703:22;;;;11663:15;;;;11465:270;;11746:806;11795:5;11825:8;11815:80;;-1:-1:-1;11866:1:1;11880:5;;11815:80;11914:4;11904:76;;-1:-1:-1;11951:1:1;11965:5;;11904:76;11996:4;12014:1;12009:59;;;;12082:1;12077:130;;;;11989:218;;12009:59;12039:1;12030:10;;12053:5;;;12077:130;12114:3;12104:8;12101:17;12098:43;;;12121:18;;:::i;:::-;-1:-1:-1;;12177:1:1;12163:16;;12192:5;;11989:218;;12291:2;12281:8;12278:16;12272:3;12266:4;12263:13;12259:36;12253:2;12243:8;12240:16;12235:2;12229:4;12226:12;12222:35;12219:77;12216:159;;;-1:-1:-1;12328:19:1;;;12360:5;;12216:159;12407:34;12432:8;12426:4;12407:34;:::i;:::-;12477:6;12473:1;12469:6;12465:19;12456:7;12453:32;12450:58;;;12488:18;;:::i;:::-;12526:20;;11746:806;-1:-1:-1;;;11746:806:1:o;12557:140::-;12615:5;12644:47;12685:4;12675:8;12671:19;12665:4;12644:47;:::i;12702:168::-;12775:9;;;12806;;12823:15;;;12817:22;;12803:37;12793:71;;12844:18;;:::i;13424:127::-;13485:10;13480:3;13476:20;13473:1;13466:31;13516:4;13513:1;13506:15;13540:4;13537:1;13530:15;19560:184;19630:6;19683:2;19671:9;19662:7;19658:23;19654:32;19651:52;;;19699:1;19696;19689:12;19651:52;-1:-1:-1;19722:16:1;;19560:184;-1:-1:-1;19560:184:1:o;20574:128::-;20641:9;;;20662:11;;;20659:37;;;20676:18;;:::i;21823:407::-;22025:2;22007:21;;;22064:2;22044:18;;;22037:30;22103:34;22098:2;22083:18;;22076:62;-1:-1:-1;;;22169:2:1;22154:18;;22147:41;22220:3;22205:19;;21823:407::o;24737:127::-;24798:10;24793:3;24789:20;24786:1;24779:31;24829:4;24826:1;24819:15;24853:4;24850:1;24843:15;24869:217;24909:1;24935;24925:132;;24979:10;24974:3;24970:20;24967:1;24960:31;25014:4;25011:1;25004:15;25042:4;25039:1;25032:15;24925:132;-1:-1:-1;25071:9:1;;24869:217::o;26173:545::-;26275:2;26270:3;26267:11;26264:448;;;26311:1;26336:5;26332:2;26325:17;26381:4;26377:2;26367:19;26451:2;26439:10;26435:19;26432:1;26428:27;26422:4;26418:38;26487:4;26475:10;26472:20;26469:47;;;-1:-1:-1;26510:4:1;26469:47;26565:2;26560:3;26556:12;26553:1;26549:20;26543:4;26539:31;26529:41;;26620:82;26638:2;26631:5;26628:13;26620:82;;;26683:17;;;26664:1;26653:13;26620:82;;;26624:3;;;26173:545;;;:::o;26894:1352::-;27020:3;27014:10;27047:18;27039:6;27036:30;27033:56;;;27069:18;;:::i;:::-;27098:97;27188:6;27148:38;27180:4;27174:11;27148:38;:::i;:::-;27142:4;27098:97;:::i;:::-;27250:4;;27314:2;27303:14;;27331:1;27326:663;;;;28033:1;28050:6;28047:89;;;-1:-1:-1;28102:19:1;;;28096:26;28047:89;-1:-1:-1;;26851:1:1;26847:11;;;26843:24;26839:29;26829:40;26875:1;26871:11;;;26826:57;28149:81;;27296:944;;27326:663;26120:1;26113:14;;;26157:4;26144:18;;-1:-1:-1;;27362:20:1;;;27480:236;27494:7;27491:1;27488:14;27480:236;;;27583:19;;;27577:26;27562:42;;27675:27;;;;27643:1;27631:14;;;;27510:19;;27480:236;;;27484:3;27744:6;27735:7;27732:19;27729:201;;;27805:19;;;27799:26;-1:-1:-1;;27888:1:1;27884:14;;;27900:3;27880:24;27876:37;27872:42;27857:58;27842:74;;27729:201;-1:-1:-1;;;;;27976:1:1;27960:14;;;27956:22;27943:36;;-1:-1:-1;26894:1352:1:o;28999:127::-;29060:10;29055:3;29051:20;29048:1;29041:31;29091:4;29088:1;29081:15;29115:4;29112:1;29105:15;31469:287;31598:3;31636:6;31630:13;31652:66;31711:6;31706:3;31699:4;31691:6;31687:17;31652:66;:::i;:::-;31734:16;;;;;31469:287;-1:-1:-1;;31469:287:1:o
Swarm Source
ipfs://3f6d0f5893b39b41750320b68ee03667ed7274bbd8ed5ca067ff94f7bc841612
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.