ERC-20
Overview
Max Total Supply
6,000,000 卐
Holders
7
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
19,108.79309013269875612 卐Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BasedProtocol
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-07 */ // File: @openzeppelin/[email protected]/interfaces/IERC3156FlashBorrower.sol // OpenZeppelin Contracts (last updated v4.7.0) (interfaces/IERC3156FlashBorrower.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC3156 FlashBorrower, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * _Available since v4.1._ */ interface IERC3156FlashBorrower { /** * @dev Receive a flash loan. * @param initiator The initiator of the loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @param fee The additional amount of tokens to repay. * @param data Arbitrary data structure, intended to contain user-defined parameters. * @return The keccak256 hash of "IERC3156FlashBorrower.onFlashLoan" */ function onFlashLoan( address initiator, address token, uint256 amount, uint256 fee, bytes calldata data ) external returns (bytes32); } // File: @openzeppelin/[email protected]/interfaces/IERC3156FlashLender.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashLender.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC3156 FlashLender, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * _Available since v4.1._ */ interface IERC3156FlashLender { /** * @dev The amount of currency available to be lended. * @param token The loan currency. * @return The amount of `token` that can be borrowed. */ function maxFlashLoan(address token) external view returns (uint256); /** * @dev The fee to be charged for a given loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @return The amount of `token` to be charged for the loan, on top of the returned principal. */ function flashFee(address token, uint256 amount) external view returns (uint256); /** * @dev Initiate a flash loan. * @param receiver The receiver of the tokens in the loan, and the receiver of the callback. * @param token The loan currency. * @param amount The amount of tokens lent. * @param data Arbitrary data structure, intended to contain user-defined parameters. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) external returns (bool); } // File: @openzeppelin/[email protected]/utils/math/SafeCast.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toUint248(uint256 value) internal pure returns (uint248) { require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits"); return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits * * _Available since v4.7._ */ function toUint240(uint256 value) internal pure returns (uint240) { require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits"); return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits * * _Available since v4.7._ */ function toUint232(uint256 value) internal pure returns (uint232) { require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits"); return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits * * _Available since v4.2._ */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits * * _Available since v4.7._ */ function toUint216(uint256 value) internal pure returns (uint216) { require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits"); return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits * * _Available since v4.7._ */ function toUint208(uint256 value) internal pure returns (uint208) { require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits"); return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits * * _Available since v4.7._ */ function toUint200(uint256 value) internal pure returns (uint200) { require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits"); return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits * * _Available since v4.7._ */ function toUint192(uint256 value) internal pure returns (uint192) { require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits"); return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits * * _Available since v4.7._ */ function toUint184(uint256 value) internal pure returns (uint184) { require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits"); return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits * * _Available since v4.7._ */ function toUint176(uint256 value) internal pure returns (uint176) { require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits"); return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits * * _Available since v4.7._ */ function toUint168(uint256 value) internal pure returns (uint168) { require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits"); return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits * * _Available since v4.7._ */ function toUint160(uint256 value) internal pure returns (uint160) { require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits"); return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits * * _Available since v4.7._ */ function toUint152(uint256 value) internal pure returns (uint152) { require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits"); return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits * * _Available since v4.7._ */ function toUint144(uint256 value) internal pure returns (uint144) { require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits"); return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits * * _Available since v4.7._ */ function toUint136(uint256 value) internal pure returns (uint136) { require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits"); return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v2.5._ */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits * * _Available since v4.7._ */ function toUint120(uint256 value) internal pure returns (uint120) { require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits"); return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits * * _Available since v4.7._ */ function toUint112(uint256 value) internal pure returns (uint112) { require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits"); return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits * * _Available since v4.7._ */ function toUint104(uint256 value) internal pure returns (uint104) { require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits"); return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits * * _Available since v4.2._ */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits * * _Available since v4.7._ */ function toUint88(uint256 value) internal pure returns (uint88) { require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits"); return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits * * _Available since v4.7._ */ function toUint80(uint256 value) internal pure returns (uint80) { require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits"); return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits * * _Available since v4.7._ */ function toUint72(uint256 value) internal pure returns (uint72) { require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits"); return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v2.5._ */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits * * _Available since v4.7._ */ function toUint56(uint256 value) internal pure returns (uint56) { require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits"); return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits * * _Available since v4.7._ */ function toUint48(uint256 value) internal pure returns (uint48) { require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits"); return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits * * _Available since v4.7._ */ function toUint40(uint256 value) internal pure returns (uint40) { require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits"); return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v2.5._ */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits * * _Available since v4.7._ */ function toUint24(uint256 value) internal pure returns (uint24) { require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits"); return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v2.5._ */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits * * _Available since v2.5._ */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. * * _Available since v3.0._ */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toInt248(int256 value) internal pure returns (int248) { require(value >= type(int248).min && value <= type(int248).max, "SafeCast: value doesn't fit in 248 bits"); return int248(value); } /** * @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) { require(value >= type(int240).min && value <= type(int240).max, "SafeCast: value doesn't fit in 240 bits"); return int240(value); } /** * @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) { require(value >= type(int232).min && value <= type(int232).max, "SafeCast: value doesn't fit in 232 bits"); return int232(value); } /** * @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) { require(value >= type(int224).min && value <= type(int224).max, "SafeCast: value doesn't fit in 224 bits"); return int224(value); } /** * @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) { require(value >= type(int216).min && value <= type(int216).max, "SafeCast: value doesn't fit in 216 bits"); return int216(value); } /** * @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) { require(value >= type(int208).min && value <= type(int208).max, "SafeCast: value doesn't fit in 208 bits"); return int208(value); } /** * @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) { require(value >= type(int200).min && value <= type(int200).max, "SafeCast: value doesn't fit in 200 bits"); return int200(value); } /** * @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) { require(value >= type(int192).min && value <= type(int192).max, "SafeCast: value doesn't fit in 192 bits"); return int192(value); } /** * @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) { require(value >= type(int184).min && value <= type(int184).max, "SafeCast: value doesn't fit in 184 bits"); return int184(value); } /** * @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) { require(value >= type(int176).min && value <= type(int176).max, "SafeCast: value doesn't fit in 176 bits"); return int176(value); } /** * @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) { require(value >= type(int168).min && value <= type(int168).max, "SafeCast: value doesn't fit in 168 bits"); return int168(value); } /** * @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) { require(value >= type(int160).min && value <= type(int160).max, "SafeCast: value doesn't fit in 160 bits"); return int160(value); } /** * @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) { require(value >= type(int152).min && value <= type(int152).max, "SafeCast: value doesn't fit in 152 bits"); return int152(value); } /** * @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) { require(value >= type(int144).min && value <= type(int144).max, "SafeCast: value doesn't fit in 144 bits"); return int144(value); } /** * @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) { require(value >= type(int136).min && value <= type(int136).max, "SafeCast: value doesn't fit in 136 bits"); return int136(value); } /** * @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) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @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) { require(value >= type(int120).min && value <= type(int120).max, "SafeCast: value doesn't fit in 120 bits"); return int120(value); } /** * @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) { require(value >= type(int112).min && value <= type(int112).max, "SafeCast: value doesn't fit in 112 bits"); return int112(value); } /** * @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) { require(value >= type(int104).min && value <= type(int104).max, "SafeCast: value doesn't fit in 104 bits"); return int104(value); } /** * @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) { require(value >= type(int96).min && value <= type(int96).max, "SafeCast: value doesn't fit in 96 bits"); return int96(value); } /** * @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) { require(value >= type(int88).min && value <= type(int88).max, "SafeCast: value doesn't fit in 88 bits"); return int88(value); } /** * @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) { require(value >= type(int80).min && value <= type(int80).max, "SafeCast: value doesn't fit in 80 bits"); return int80(value); } /** * @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) { require(value >= type(int72).min && value <= type(int72).max, "SafeCast: value doesn't fit in 72 bits"); return int72(value); } /** * @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) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @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) { require(value >= type(int56).min && value <= type(int56).max, "SafeCast: value doesn't fit in 56 bits"); return int56(value); } /** * @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) { require(value >= type(int48).min && value <= type(int48).max, "SafeCast: value doesn't fit in 48 bits"); return int48(value); } /** * @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) { require(value >= type(int40).min && value <= type(int40).max, "SafeCast: value doesn't fit in 40 bits"); return int40(value); } /** * @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) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @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) { require(value >= type(int24).min && value <= type(int24).max, "SafeCast: value doesn't fit in 24 bits"); return int24(value); } /** * @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) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @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) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. * * _Available since v3.0._ */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } } // File: @openzeppelin/[email protected]/governance/utils/IVotes.sol // OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol) pragma solidity ^0.8.0; /** * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts. * * _Available since v4.5._ */ interface IVotes { /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Returns the current amount of votes that `account` has. */ function getVotes(address account) external view returns (uint256); /** * @dev Returns the amount of votes that `account` had at the end of a past block (`blockNumber`). */ function getPastVotes(address account, uint256 blockNumber) external view returns (uint256); /** * @dev Returns the total supply of votes available at the end of a past block (`blockNumber`). * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. */ function getPastTotalSupply(uint256 blockNumber) external view returns (uint256); /** * @dev Returns the delegate that `account` has chosen. */ function delegates(address account) external view returns (address); /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(address delegatee) external; /** * @dev Delegates votes from signer to `delegatee`. */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external; } // File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/[email protected]/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/[email protected]/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/[email protected]/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/[email protected]/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } 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"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' 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 (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: @openzeppelin/[email protected]/utils/cryptography/draft-EIP712.sol // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File: @openzeppelin/[email protected]/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin/[email protected]/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/[email protected]/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. It 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)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 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) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } } // File: @openzeppelin/[email protected]/utils/Arrays.sol // OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > 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 && array[low - 1] == element) { return low - 1; } else { return low; } } } // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/[email protected]/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _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; _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; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20FlashMint.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/extensions/ERC20FlashMint.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC3156 Flash loans extension, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * Adds the {flashLoan} method, which provides flash loan support at the token * level. By default there is no fee, but this can be changed by overriding {flashFee}. * * _Available since v4.1._ */ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan"); /** * @dev Returns the maximum amount of tokens available for loan. * @param token The address of the token that is requested. * @return The amount of token that can be loaned. */ function maxFlashLoan(address token) public view virtual override returns (uint256) { return token == address(this) ? type(uint256).max - ERC20.totalSupply() : 0; } /** * @dev Returns the fee applied when doing flash loans. By default this * implementation has 0 fees. This function can be overloaded to make * the flash loan mechanism deflationary. * @param token The token to be flash loaned. * @param amount The amount of tokens to be loaned. * @return The fees applied to the corresponding flash loan. */ function flashFee(address token, uint256 amount) public view virtual override returns (uint256) { require(token == address(this), "ERC20FlashMint: wrong token"); // silence warning about unused variable without the addition of bytecode. amount; return 0; } /** * @dev Returns the receiver address of the flash fee. By default this * implementation returns the address(0) which means the fee amount will be burnt. * This function can be overloaded to change the fee receiver. * @return The address for which the flash fee will be sent to. */ function _flashFeeReceiver() internal view virtual returns (address) { return address(0); } /** * @dev Performs a flash loan. New tokens are minted and sent to the * `receiver`, who is required to implement the {IERC3156FlashBorrower} * interface. By the end of the flash loan, the receiver is expected to own * amount + fee tokens and have them approved back to the token contract itself so * they can be burned. * @param receiver The receiver of the flash loan. Should implement the * {IERC3156FlashBorrower.onFlashLoan} interface. * @param token The token to be flash loaned. Only `address(this)` is * supported. * @param amount The amount of tokens to be loaned. * @param data An arbitrary datafield that is passed to the receiver. * @return `true` if the flash loan was successful. */ // This function can reenter, but it doesn't pose a risk because it always preserves the property that the amount // minted at the beginning is always recovered and burned at the end, or else the entire function will revert. // slither-disable-next-line reentrancy-no-eth function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) public virtual override returns (bool) { require(amount <= maxFlashLoan(token), "ERC20FlashMint: amount exceeds maxFlashLoan"); uint256 fee = flashFee(token, amount); _mint(address(receiver), amount); require( receiver.onFlashLoan(msg.sender, token, amount, fee, data) == _RETURN_VALUE, "ERC20FlashMint: invalid return value" ); address flashFeeReceiver = _flashFeeReceiver(); _spendAllowance(address(receiver), address(this), amount + fee); if (fee == 0 || flashFeeReceiver == address(0)) { _burn(address(receiver), amount + fee); } else { _burn(address(receiver), amount); _transfer(address(receiver), flashFeeReceiver, fee); } return true; } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20Permit.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Votes.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.0; /** * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting * power can be queried through the public accessors {getVotes} and {getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. * * _Available since v4.2._ */ abstract contract ERC20Votes is IVotes, ERC20Permit { struct Checkpoint { uint32 fromBlock; uint224 votes; } bytes32 private constant _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address => address) private _delegates; mapping(address => Checkpoint[]) private _checkpoints; Checkpoint[] private _totalSupplyCheckpoints; /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) { return _checkpoints[account][pos]; } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return SafeCast.toUint32(_checkpoints[account].length); } /** * @dev Get the address `account` is currently delegating to. */ function delegates(address account) public view virtual override returns (address) { return _delegates[account]; } /** * @dev Gets the current votes balance for `account` */ function getVotes(address account) public view virtual override returns (uint256) { uint256 pos = _checkpoints[account].length; return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } /** * @dev Retrieve the number of votes for `account` at the end of `blockNumber`. * * Requirements: * * - `blockNumber` must have been already mined */ function getPastVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); } /** * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. * It is but NOT the sum of all the delegated votes! * * Requirements: * * - `blockNumber` must have been already mined */ function getPastTotalSupply(uint256 blockNumber) public view virtual override returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) { // We run a binary search to look for the earliest checkpoint taken after `blockNumber`. // // During the loop, the index of the wanted checkpoint remains in the range [low-1, high). // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant. // - If the middle checkpoint is after `blockNumber`, we look in [low, mid) // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high) // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not // out of bounds (in which case we're looking too far in the past and the result is 0). // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out // the same. uint256 high = ckpts.length; uint256 low = 0; while (low < high) { uint256 mid = Math.average(low, high); if (ckpts[mid].fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } return high == 0 ? 0 : ckpts[high - 1].votes; } /** * @dev Delegate votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual override { _delegate(_msgSender(), delegatee); } /** * @dev Delegates votes from signer to `delegatee` */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= expiry, "ERC20Votes: signature expired"); address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce"); _delegate(signer, delegatee); } /** * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1). */ function _maxSupply() internal view virtual returns (uint224) { return type(uint224).max; } /** * @dev Snapshots the totalSupply after it has been increased. */ function _mint(address account, uint256 amount) internal virtual override { super._mint(account, amount); require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes"); _writeCheckpoint(_totalSupplyCheckpoints, _add, amount); } /** * @dev Snapshots the totalSupply after it has been decreased. */ function _burn(address account, uint256 amount) internal virtual override { super._burn(account, amount); _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount); } /** * @dev Move voting power when tokens are transferred. * * Emits a {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 {DelegateChanged} and {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; oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes; newWeight = op(oldWeight, delta); if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) { ckpts[pos - 1].votes = SafeCast.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)})); } } function _add(uint256 a, uint256 b) private pure returns (uint256) { return a + b; } function _subtract(uint256 a, uint256 b) private pure returns (uint256) { return a - b; } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Snapshot.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/extensions/ERC20Snapshot.sol) pragma solidity ^0.8.0; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the beginning of each new block. When overriding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _updateAccountSnapshot(from); _updateAccountSnapshot(to); } } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = _getCurrentSnapshotId(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File: 卐.sol // Based Protocol pragma solidity ^0.8.4; contract BasedProtocol is ERC20, ERC20Burnable, ERC20Snapshot, AccessControl, ERC20Permit, ERC20Votes, ERC20FlashMint { bytes32 public constant SNAPSHOT_ROLE = keccak256("SNAPSHOT_ROLE"); constructor() ERC20(unicode"Based Protocol", unicode"卐") ERC20Permit("Based Protocol") { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(SNAPSHOT_ROLE, msg.sender); _mint(msg.sender, 6000000 * 10 ** decimals()); } function snapshot() public onlyRole(SNAPSHOT_ROLE) { _snapshot(); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Snapshot) { super._beforeTokenTransfer(from, to, amount); } function _afterTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._afterTokenTransfer(from, to, amount); } function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._mint(to, amount); } function _burn(address account, uint256 amount) internal override(ERC20, ERC20Votes) { super._burn(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}]
Contract Creation Code
6101406040523480156200001257600080fd5b506040518060400160405280600e81526020016d10985cd95908141c9bdd1bd8dbdb60921b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600e81526020016d10985cd95908141c9bdd1bd8dbdb60921b815250604051806040016040528060038152602001620e58d960ec1b8152508160039081620000a9919062000ab9565b506004620000b8828262000ab9565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250620001599050600033620001b3565b620001857f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33620001b3565b620001ad33620001986012600a62000c98565b620001a790625b8d8062000ca9565b6200023e565b62000d05565b620001bf828262000255565b6200023a5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001f93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6200023a82826200028260201b620011f31760201c565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6200029982826200033960201b620012901760201c565b6001600160e01b03620002ad620004368216565b11156200031a5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084015b60405180910390fd5b62000333600e620013836200043c60201b178362000451565b50505050565b6001600160a01b038216620003915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000311565b6200039f6000838362000603565b8060026000828254620003b3919062000cc3565b90915550506001600160a01b03821660009081526020819052604081208054839290620003e290849062000cc3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36200023a6000838362000620565b60025490565b60006200044a828462000cc3565b9392505050565b825460009081908015620004a357856200046d60018362000cd9565b8154811062000480576200048062000cef565b60009182526020909120015464010000000090046001600160e01b0316620004a6565b60005b6001600160e01b03169250620004bd83858760201c565b91506000811180156200050157504386620004da60018462000cd9565b81548110620004ed57620004ed62000cef565b60009182526020909120015463ffffffff16145b1562000575576200051d826200063860201b6200138f1760201c565b866200052b60018462000cd9565b815481106200053e576200053e62000cef565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550620005fa565b8560405180604001604052806200059743620006a760201b620014121760201c565b63ffffffff168152602001620005b8856200063860201b6200138f1760201c565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6200061b8383836200070e60201b6200148e1760201c565b505050565b6200061b8383836200077a60201b620014d61760201c565b60006001600160e01b03821115620006a35760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840162000311565b5090565b600063ffffffff821115620006a35760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840162000311565b620007268383836200061b60201b620007d31760201c565b6001600160a01b0383166200074a576200074082620007c6565b6200061b620007fe565b6001600160a01b03821662000764576200074083620007c6565b6200076f83620007c6565b6200061b82620007c6565b620007928383836200061b60201b620007d31760201c565b6001600160a01b038381166000908152600c60205260408082205485841683529120546200061b9291821691168362000810565b6001600160a01b03811660009081526005602090815260408083209183905290912054620007fb91906200094b565b6200094b565b50565b6200080e6006620007f560025490565b565b816001600160a01b0316836001600160a01b031614158015620008335750600081115b156200061b576001600160a01b03831615620008c0576001600160a01b0383166000908152600d60209081526040822082916200087d91906200099a901b62001508178562000451565b91509150846001600160a01b031660008051602062003d558339815191528383604051620008b5929190918252602082015260400190565b60405180910390a250505b6001600160a01b038216156200061b576001600160a01b0382166000908152600d60209081526040822082916200090491906200043c901b62001383178562000451565b91509150836001600160a01b031660008051602062003d5583398151915283836040516200093c929190918252602082015260400190565b60405180910390a25050505050565b600062000957620009a8565b9050806200096584620009c6565b10156200061b578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006200044a828462000cd9565b6000620009c1600862000a1160201b620015141760201c565b905090565b80546000908103620009da57506000919050565b81548290620009ec9060019062000cd9565b81548110620009ff57620009ff62000cef565b90600052602060002001549050919050565b5490565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a4057607f821691505b60208210810362000a6157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200061b57600081815260208120601f850160051c8101602086101562000a905750805b601f850160051c820191505b8181101562000ab15782815560010162000a9c565b505050505050565b81516001600160401b0381111562000ad55762000ad562000a15565b62000aed8162000ae6845462000a2b565b8462000a67565b602080601f83116001811462000b25576000841562000b0c5750858301515b600019600386901b1c1916600185901b17855562000ab1565b600085815260208120601f198616915b8281101562000b565788860151825594840194600190910190840162000b35565b508582101562000b755787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000bdc57816000190482111562000bc05762000bc062000b85565b8085161562000bce57918102915b93841c939080029062000ba0565b509250929050565b60008262000bf5575060016200027c565b8162000c04575060006200027c565b816001811462000c1d576002811462000c285762000c48565b60019150506200027c565b60ff84111562000c3c5762000c3c62000b85565b50506001821b6200027c565b5060208310610133831016604e8410600b841016171562000c6d575081810a6200027c565b62000c79838362000b9b565b806000190482111562000c905762000c9062000b85565b029392505050565b60006200044a60ff84168362000be4565b80820281158282048414176200027c576200027c62000b85565b808201808211156200027c576200027c62000b85565b818103818111156200027c576200027c62000b85565b634e487b7160e01b600052603260045260246000fd5b60805160a05160c05160e051610100516101205161300062000d556000396000611a5a01526000611aa901526000611a84015260006119dd01526000611a0701526000611a3101526130006000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80637028e2cd116101605780639ab24eb0116100d8578063d505accf1161008c578063d9d98ce411610071578063d9d98ce4146105be578063dd62ed3e146105d1578063f1127ed81461060a57600080fd5b8063d505accf14610598578063d547741f146105ab57600080fd5b8063a457c2d7116100bd578063a457c2d71461055f578063a9059cbb14610572578063c3cda5201461058557600080fd5b80639ab24eb014610544578063a217fddf1461055757600080fd5b80638e539e8c1161012f57806395d89b411161011457806395d89b41146105215780639711715a14610529578063981b24d01461053157600080fd5b80638e539e8c146104d557806391d14854146104e857600080fd5b80637028e2cd1461045f57806370a082311461048657806379cc6790146104af5780637ecebe00146104c257600080fd5b806336568abe1161020e578063587cde1e116101c25780635cffe9de116101a75780635cffe9de14610411578063613255ab146104245780636fcfff451461043757600080fd5b8063587cde1e146103ba5780635c19a95c146103fe57600080fd5b80633a46b1a8116101f35780633a46b1a81461038157806342966c68146103945780634ee2cd7e146103a757600080fd5b806336568abe1461035b578063395093511461036e57600080fd5b806323b872dd116102655780632f2ff15d1161024a5780632f2ff15d1461032f578063313ce567146103445780633644e5151461035357600080fd5b806323b872dd146102f9578063248a9ca31461030c57600080fd5b806301ffc9a71461029757806306fdde03146102bf578063095ea7b3146102d457806318160ddd146102e7575b600080fd5b6102aa6102a5366004612a75565b610647565b60405190151581526020015b60405180910390f35b6102c76106e0565b6040516102b69190612adb565b6102aa6102e2366004612b23565b610772565b6002545b6040519081526020016102b6565b6102aa610307366004612b4f565b61078a565b6102eb61031a366004612b90565b60009081526009602052604090206001015490565b61034261033d366004612ba9565b6107ae565b005b604051601281526020016102b6565b6102eb6107d8565b610342610369366004612ba9565b6107e7565b6102aa61037c366004612b23565b610878565b6102eb61038f366004612b23565b6108b7565b6103426103a2366004612b90565b610931565b6102eb6103b5366004612b23565b61093e565b6103e66103c8366004612bd9565b6001600160a01b039081166000908152600c60205260409020541690565b6040516001600160a01b0390911681526020016102b6565b61034261040c366004612bd9565b610997565b6102aa61041f366004612bf6565b6109a1565b6102eb610432366004612bd9565b610bc9565b61044a610445366004612bd9565b610bf1565b60405163ffffffff90911681526020016102b6565b6102eb7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b6102eb610494366004612bd9565b6001600160a01b031660009081526020819052604090205490565b6103426104bd366004612b23565b610c13565b6102eb6104d0366004612bd9565b610c28565b6102eb6104e3366004612b90565b610c46565b6102aa6104f6366004612ba9565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102c7610ca2565b610342610cb1565b6102eb61053f366004612b90565b610ce3565b6102eb610552366004612bd9565b610d0e565b6102eb600081565b6102aa61056d366004612b23565b610d95565b6102aa610580366004612b23565b610e3f565b610342610593366004612ca6565b610e4d565b6103426105a6366004612d00565b610f83565b6103426105b9366004612ba9565b6110e7565b6102eb6105cc366004612b23565b61110c565b6102eb6105df366004612d6e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61061d610618366004612d9c565b61116f565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102b6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106da57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546106ef90612dd3565b80601f016020809104026020016040519081016040528092919081815260200182805461071b90612dd3565b80156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b5050505050905090565b600033610780818585611518565b5060019392505050565b600033610798858285611670565b6107a38585856116fc565b506001949350505050565b6000828152600960205260409020600101546107c981611924565b6107d3838361192e565b505050565b60006107e26119d0565b905090565b6001600160a01b038116331461086a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6108748282611af7565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061078090829086906108b2908790612e1d565b611518565b60004382106109085760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610861565b6001600160a01b0383166000908152600d6020526040902061092a9083611b7a565b9392505050565b61093b3382611c37565b50565b6001600160a01b038216600090815260056020526040812081908190610965908590611c41565b915091508161098c576001600160a01b03851660009081526020819052604090205461098e565b805b95945050505050565b61093b3382611d3e565b60006109ac85610bc9565b841115610a215760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201527f6178466c6173684c6f616e0000000000000000000000000000000000000000006064820152608401610861565b6000610a2d868661110c565b9050610a398786611dcf565b6040517f23e30c8b0000000000000000000000000000000000000000000000000000000081527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610aaa9033908b908b9088908c908c90600401612e30565b6020604051808303816000875af1158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190612e8b565b14610b5f5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e207660448201527f616c7565000000000000000000000000000000000000000000000000000000006064820152608401610861565b6000610b758830610b70858a612e1d565b611670565b811580610b8957506001600160a01b038116155b15610ba657610ba188610b9c8489612e1d565b611c37565b610bbb565b610bb08887611c37565b610bbb8882846116fc565b506001979650505050505050565b60006001600160a01b0382163014610be25760006106da565b6002546106da90600019612ea4565b6001600160a01b0381166000908152600d60205260408120546106da90611412565b610c1e823383611670565b6108748282611c37565b6001600160a01b0381166000908152600a60205260408120546106da565b6000438210610c975760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610861565b6106da600e83611b7a565b6060600480546106ef90612dd3565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f610cdb81611924565b610874611dd9565b6000806000610cf3846006611c41565b9150915081610d0457600254610d06565b805b949350505050565b6001600160a01b0381166000908152600d60205260408120548015610d82576001600160a01b0383166000908152600d60205260409020610d50600183612ea4565b81548110610d6057610d60612eb7565b60009182526020909120015464010000000090046001600160e01b0316610d85565b60005b6001600160e01b03169392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610861565b6107a38286868403611518565b6000336107808185856116fc565b83421115610e9d5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610861565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610f1790610f0f9060a00160405160208183030381529060405280519060200120611e33565b858585611e9c565b9050610f2281611ec4565b8614610f705760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610861565b610f7a8188611d3e565b50505050505050565b83421115610fd35760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610861565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886110028c611ec4565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061105d82611e33565b9050600061106d82878787611e9c565b9050896001600160a01b0316816001600160a01b0316146110d05760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610861565b6110db8a8a8a611518565b50505050505050505050565b60008281526009602052604090206001015461110281611924565b6107d38383611af7565b60006001600160a01b03831630146111665760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610861565b50600092915050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600d60205260409020805463ffffffff84169081106111b3576111b3612eb7565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6111fd8282611290565b6002546001600160e01b03101561127c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f746573000000000000000000000000000000006064820152608401610861565b61128a600e61138383611eec565b50505050565b6001600160a01b0382166112e65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610861565b6112f260008383612065565b80600260008282546113049190612e1d565b90915550506001600160a01b03821660009081526020819052604081208054839290611331908490612e1d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361087460008383612070565b600061092a8284612e1d565b60006001600160e01b0382111561140e5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f32342062697473000000000000000000000000000000000000000000000000006064820152608401610861565b5090565b600063ffffffff82111561140e5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0383166114ad576114a58261207b565b6107d36120ad565b6001600160a01b0382166114c4576114a58361207b565b6114cd8361207b565b6107d38261207b565b6001600160a01b038381166000908152600c60205260408082205485841683529120546107d3929182169116836120bd565b600061092a8284612ea4565b5490565b6001600160a01b0383166115935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b03821661160f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461128a57818110156116ef5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610861565b61128a8484848403611518565b6001600160a01b0383166117785760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0382166117f45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610861565b6117ff838383612065565b6001600160a01b0383166000908152602081905260409020548181101561188e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906118c5908490612e1d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161191191815260200190565b60405180910390a361128a848484612070565b61093b81336121fa565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166108745760008281526009602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561198c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611a2957507f000000000000000000000000000000000000000000000000000000000000000046145b15611a5357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156108745760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8154600090815b81811015611bde576000611b95828461227a565b905084868281548110611baa57611baa612eb7565b60009182526020909120015463ffffffff161115611bca57809250611bd8565b611bd5816001612e1d565b91505b50611b81565b8115611c225784611bf0600184612ea4565b81548110611c0057611c00612eb7565b60009182526020909120015464010000000090046001600160e01b0316611c25565b60005b6001600160e01b031695945050505050565b6108748282612295565b60008060008411611c945760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610861565b611c9c6122ad565b841115611ceb5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610861565b6000611cf784866122b8565b84549091508103611d0f576000809250925050611d37565b6001846001018281548110611d2657611d26612eb7565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600c60208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461128a8284836120bd565b61087482826111f3565b6000611de9600880546001019055565b6000611df36122ad565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051611e2691815260200190565b60405180910390a1919050565b60006106da611e406119d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611ead8787878761237d565b91509150611eba8161246a565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b825460009081908015611f375785611f05600183612ea4565b81548110611f1557611f15612eb7565b60009182526020909120015464010000000090046001600160e01b0316611f3a565b60005b6001600160e01b03169250611f5383858763ffffffff16565b9150600081118015611f9157504386611f6d600184612ea4565b81548110611f7d57611f7d612eb7565b60009182526020909120015463ffffffff16145b15611ff157611f9f8261138f565b86611fab600184612ea4565b81548110611fbb57611fbb612eb7565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b0316021790555061205c565b85604051806040016040528061200643611412565b63ffffffff16815260200161201a8561138f565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6107d383838361148e565b6107d38383836114d6565b6001600160a01b0381166000908152600560209081526040808320918390529091205461093b9190612620565b612620565b6120bb60066120a860025490565b565b816001600160a01b0316836001600160a01b0316141580156120df5750600081115b156107d3576001600160a01b0383161561216d576001600160a01b0383166000908152600d60205260408120819061211a9061150885611eec565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612162929190918252602082015260400190565b60405180910390a250505b6001600160a01b038216156107d3576001600160a01b0382166000908152600d6020526040812081906121a39061138385611eec565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516121eb929190918252602082015260400190565b60405180910390a25050505050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661087457612238816001600160a01b0316601461266a565b61224383602061266a565b604051602001612254929190612ecd565b60408051601f198184030181529082905262461bcd60e51b825261086191600401612adb565b60006122896002848418612f4e565b61092a90848416612e1d565b61229f8282612893565b61128a600e61150883611eec565b60006107e260085490565b815460009081036122cb575060006106da565b82546000905b808210156123275760006122e5838361227a565b9050848682815481106122fa576122fa612eb7565b9060005260206000200154111561231357809150612321565b61231e816001612e1d565b92505b506122d1565b60008211801561235c5750838561233f600185612ea4565b8154811061234f5761234f612eb7565b9060005260206000200154145b156123755761236c600183612ea4565b925050506106da565b5090506106da565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123b45750600090506003612461565b8460ff16601b141580156123cc57508460ff16601c14155b156123dd5750600090506004612461565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612431573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245a57600060019250925050612461565b9150600090505b94509492505050565b600081600481111561247e5761247e612f70565b036124865750565b600181600481111561249a5761249a612f70565b036124e75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610861565b60028160048111156124fb576124fb612f70565b036125485760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610861565b600381600481111561255c5761255c612f70565b036125b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610861565b60048160048111156125c8576125c8612f70565b0361093b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610861565b600061262a6122ad565b90508061263684612a2b565b10156107d3578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60606000612679836002612f86565b612684906002612e1d565b67ffffffffffffffff81111561269c5761269c612f9d565b6040519080825280601f01601f1916602001820160405280156126c6576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106126fd576126fd612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061276057612760612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061279c846002612f86565b6127a7906001612e1d565b90505b6001811115612844577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106127e8576127e8612eb7565b1a60f81b8282815181106127fe576127fe612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361283d81612fb3565b90506127aa565b50831561092a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610861565b6001600160a01b03821661290f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610861565b61291b82600083612065565b6001600160a01b038216600090815260208190526040902054818110156129aa5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b03831660009081526020819052604081208383039055600280548492906129d9908490612ea4565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107d383600084612070565b80546000908103612a3e57506000919050565b81548290612a4e90600190612ea4565b81548110612a5e57612a5e612eb7565b90600052602060002001549050919050565b919050565b600060208284031215612a8757600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461092a57600080fd5b60005b83811015612ad2578181015183820152602001612aba565b50506000910152565b6020815260008251806020840152612afa816040850160208701612ab7565b601f01601f19169190910160400192915050565b6001600160a01b038116811461093b57600080fd5b60008060408385031215612b3657600080fd5b8235612b4181612b0e565b946020939093013593505050565b600080600060608486031215612b6457600080fd5b8335612b6f81612b0e565b92506020840135612b7f81612b0e565b929592945050506040919091013590565b600060208284031215612ba257600080fd5b5035919050565b60008060408385031215612bbc57600080fd5b823591506020830135612bce81612b0e565b809150509250929050565b600060208284031215612beb57600080fd5b813561092a81612b0e565b600080600080600060808688031215612c0e57600080fd5b8535612c1981612b0e565b94506020860135612c2981612b0e565b935060408601359250606086013567ffffffffffffffff80821115612c4d57600080fd5b818801915088601f830112612c6157600080fd5b813581811115612c7057600080fd5b896020828501011115612c8257600080fd5b9699959850939650602001949392505050565b803560ff81168114612a7057600080fd5b60008060008060008060c08789031215612cbf57600080fd5b8635612cca81612b0e565b95506020870135945060408701359350612ce660608801612c95565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215612d1b57600080fd5b8735612d2681612b0e565b96506020880135612d3681612b0e565b95506040880135945060608801359350612d5260808901612c95565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612d8157600080fd5b8235612d8c81612b0e565b91506020830135612bce81612b0e565b60008060408385031215612daf57600080fd5b8235612dba81612b0e565b9150602083013563ffffffff81168114612bce57600080fd5b600181811c90821680612de757607f821691505b602082108103611ee657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106da576106da612e07565b60006001600160a01b03808916835280881660208401525085604083015284606083015260a060808301528260a0830152828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215612e9d57600080fd5b5051919050565b818103818111156106da576106da612e07565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612f05816017850160208801612ab7565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612f42816028840160208801612ab7565b01602801949350505050565b600082612f6b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fd5b80820281158282048414176106da576106da612e07565b634e487b7160e01b600052604160045260246000fd5b600081612fc257612fc2612e07565b50600019019056fea264697066735822122048b83ac6421407b209b5aa241951f9f6c3552e4ff07b707fca6853f2cd8bec3364736f6c63430008110033dec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80637028e2cd116101605780639ab24eb0116100d8578063d505accf1161008c578063d9d98ce411610071578063d9d98ce4146105be578063dd62ed3e146105d1578063f1127ed81461060a57600080fd5b8063d505accf14610598578063d547741f146105ab57600080fd5b8063a457c2d7116100bd578063a457c2d71461055f578063a9059cbb14610572578063c3cda5201461058557600080fd5b80639ab24eb014610544578063a217fddf1461055757600080fd5b80638e539e8c1161012f57806395d89b411161011457806395d89b41146105215780639711715a14610529578063981b24d01461053157600080fd5b80638e539e8c146104d557806391d14854146104e857600080fd5b80637028e2cd1461045f57806370a082311461048657806379cc6790146104af5780637ecebe00146104c257600080fd5b806336568abe1161020e578063587cde1e116101c25780635cffe9de116101a75780635cffe9de14610411578063613255ab146104245780636fcfff451461043757600080fd5b8063587cde1e146103ba5780635c19a95c146103fe57600080fd5b80633a46b1a8116101f35780633a46b1a81461038157806342966c68146103945780634ee2cd7e146103a757600080fd5b806336568abe1461035b578063395093511461036e57600080fd5b806323b872dd116102655780632f2ff15d1161024a5780632f2ff15d1461032f578063313ce567146103445780633644e5151461035357600080fd5b806323b872dd146102f9578063248a9ca31461030c57600080fd5b806301ffc9a71461029757806306fdde03146102bf578063095ea7b3146102d457806318160ddd146102e7575b600080fd5b6102aa6102a5366004612a75565b610647565b60405190151581526020015b60405180910390f35b6102c76106e0565b6040516102b69190612adb565b6102aa6102e2366004612b23565b610772565b6002545b6040519081526020016102b6565b6102aa610307366004612b4f565b61078a565b6102eb61031a366004612b90565b60009081526009602052604090206001015490565b61034261033d366004612ba9565b6107ae565b005b604051601281526020016102b6565b6102eb6107d8565b610342610369366004612ba9565b6107e7565b6102aa61037c366004612b23565b610878565b6102eb61038f366004612b23565b6108b7565b6103426103a2366004612b90565b610931565b6102eb6103b5366004612b23565b61093e565b6103e66103c8366004612bd9565b6001600160a01b039081166000908152600c60205260409020541690565b6040516001600160a01b0390911681526020016102b6565b61034261040c366004612bd9565b610997565b6102aa61041f366004612bf6565b6109a1565b6102eb610432366004612bd9565b610bc9565b61044a610445366004612bd9565b610bf1565b60405163ffffffff90911681526020016102b6565b6102eb7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b6102eb610494366004612bd9565b6001600160a01b031660009081526020819052604090205490565b6103426104bd366004612b23565b610c13565b6102eb6104d0366004612bd9565b610c28565b6102eb6104e3366004612b90565b610c46565b6102aa6104f6366004612ba9565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102c7610ca2565b610342610cb1565b6102eb61053f366004612b90565b610ce3565b6102eb610552366004612bd9565b610d0e565b6102eb600081565b6102aa61056d366004612b23565b610d95565b6102aa610580366004612b23565b610e3f565b610342610593366004612ca6565b610e4d565b6103426105a6366004612d00565b610f83565b6103426105b9366004612ba9565b6110e7565b6102eb6105cc366004612b23565b61110c565b6102eb6105df366004612d6e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61061d610618366004612d9c565b61116f565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102b6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106da57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546106ef90612dd3565b80601f016020809104026020016040519081016040528092919081815260200182805461071b90612dd3565b80156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b5050505050905090565b600033610780818585611518565b5060019392505050565b600033610798858285611670565b6107a38585856116fc565b506001949350505050565b6000828152600960205260409020600101546107c981611924565b6107d3838361192e565b505050565b60006107e26119d0565b905090565b6001600160a01b038116331461086a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6108748282611af7565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061078090829086906108b2908790612e1d565b611518565b60004382106109085760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610861565b6001600160a01b0383166000908152600d6020526040902061092a9083611b7a565b9392505050565b61093b3382611c37565b50565b6001600160a01b038216600090815260056020526040812081908190610965908590611c41565b915091508161098c576001600160a01b03851660009081526020819052604090205461098e565b805b95945050505050565b61093b3382611d3e565b60006109ac85610bc9565b841115610a215760405162461bcd60e51b815260206004820152602b60248201527f4552433230466c6173684d696e743a20616d6f756e742065786365656473206d60448201527f6178466c6173684c6f616e0000000000000000000000000000000000000000006064820152608401610861565b6000610a2d868661110c565b9050610a398786611dcf565b6040517f23e30c8b0000000000000000000000000000000000000000000000000000000081527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610aaa9033908b908b9088908c908c90600401612e30565b6020604051808303816000875af1158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190612e8b565b14610b5f5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e207660448201527f616c7565000000000000000000000000000000000000000000000000000000006064820152608401610861565b6000610b758830610b70858a612e1d565b611670565b811580610b8957506001600160a01b038116155b15610ba657610ba188610b9c8489612e1d565b611c37565b610bbb565b610bb08887611c37565b610bbb8882846116fc565b506001979650505050505050565b60006001600160a01b0382163014610be25760006106da565b6002546106da90600019612ea4565b6001600160a01b0381166000908152600d60205260408120546106da90611412565b610c1e823383611670565b6108748282611c37565b6001600160a01b0381166000908152600a60205260408120546106da565b6000438210610c975760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610861565b6106da600e83611b7a565b6060600480546106ef90612dd3565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f610cdb81611924565b610874611dd9565b6000806000610cf3846006611c41565b9150915081610d0457600254610d06565b805b949350505050565b6001600160a01b0381166000908152600d60205260408120548015610d82576001600160a01b0383166000908152600d60205260409020610d50600183612ea4565b81548110610d6057610d60612eb7565b60009182526020909120015464010000000090046001600160e01b0316610d85565b60005b6001600160e01b03169392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610861565b6107a38286868403611518565b6000336107808185856116fc565b83421115610e9d5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610861565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610f1790610f0f9060a00160405160208183030381529060405280519060200120611e33565b858585611e9c565b9050610f2281611ec4565b8614610f705760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610861565b610f7a8188611d3e565b50505050505050565b83421115610fd35760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610861565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886110028c611ec4565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061105d82611e33565b9050600061106d82878787611e9c565b9050896001600160a01b0316816001600160a01b0316146110d05760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610861565b6110db8a8a8a611518565b50505050505050505050565b60008281526009602052604090206001015461110281611924565b6107d38383611af7565b60006001600160a01b03831630146111665760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610861565b50600092915050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600d60205260409020805463ffffffff84169081106111b3576111b3612eb7565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6111fd8282611290565b6002546001600160e01b03101561127c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f746573000000000000000000000000000000006064820152608401610861565b61128a600e61138383611eec565b50505050565b6001600160a01b0382166112e65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610861565b6112f260008383612065565b80600260008282546113049190612e1d565b90915550506001600160a01b03821660009081526020819052604081208054839290611331908490612e1d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361087460008383612070565b600061092a8284612e1d565b60006001600160e01b0382111561140e5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f32342062697473000000000000000000000000000000000000000000000000006064820152608401610861565b5090565b600063ffffffff82111561140e5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0383166114ad576114a58261207b565b6107d36120ad565b6001600160a01b0382166114c4576114a58361207b565b6114cd8361207b565b6107d38261207b565b6001600160a01b038381166000908152600c60205260408082205485841683529120546107d3929182169116836120bd565b600061092a8284612ea4565b5490565b6001600160a01b0383166115935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b03821661160f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461128a57818110156116ef5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610861565b61128a8484848403611518565b6001600160a01b0383166117785760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b0382166117f45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610861565b6117ff838383612065565b6001600160a01b0383166000908152602081905260409020548181101561188e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906118c5908490612e1d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161191191815260200190565b60405180910390a361128a848484612070565b61093b81336121fa565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166108745760008281526009602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561198c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f000000000000000000000000b06110da6077a492641f0eb960e74b3d4e9a842816148015611a2957507f000000000000000000000000000000000000000000000000000000000000000146145b15611a5357507f263905297bf6b6f5c0c9eec993bea7b1a631b460967ddeebec9b7d3e542c936290565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f396dc1ca9f010f0478d33d2dca6d36643ed49d579ffb63062aa89962b3a80a91828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156108745760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8154600090815b81811015611bde576000611b95828461227a565b905084868281548110611baa57611baa612eb7565b60009182526020909120015463ffffffff161115611bca57809250611bd8565b611bd5816001612e1d565b91505b50611b81565b8115611c225784611bf0600184612ea4565b81548110611c0057611c00612eb7565b60009182526020909120015464010000000090046001600160e01b0316611c25565b60005b6001600160e01b031695945050505050565b6108748282612295565b60008060008411611c945760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610861565b611c9c6122ad565b841115611ceb5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610861565b6000611cf784866122b8565b84549091508103611d0f576000809250925050611d37565b6001846001018281548110611d2657611d26612eb7565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600c60208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461128a8284836120bd565b61087482826111f3565b6000611de9600880546001019055565b6000611df36122ad565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051611e2691815260200190565b60405180910390a1919050565b60006106da611e406119d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611ead8787878761237d565b91509150611eba8161246a565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b825460009081908015611f375785611f05600183612ea4565b81548110611f1557611f15612eb7565b60009182526020909120015464010000000090046001600160e01b0316611f3a565b60005b6001600160e01b03169250611f5383858763ffffffff16565b9150600081118015611f9157504386611f6d600184612ea4565b81548110611f7d57611f7d612eb7565b60009182526020909120015463ffffffff16145b15611ff157611f9f8261138f565b86611fab600184612ea4565b81548110611fbb57611fbb612eb7565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b0316021790555061205c565b85604051806040016040528061200643611412565b63ffffffff16815260200161201a8561138f565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6107d383838361148e565b6107d38383836114d6565b6001600160a01b0381166000908152600560209081526040808320918390529091205461093b9190612620565b612620565b6120bb60066120a860025490565b565b816001600160a01b0316836001600160a01b0316141580156120df5750600081115b156107d3576001600160a01b0383161561216d576001600160a01b0383166000908152600d60205260408120819061211a9061150885611eec565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612162929190918252602082015260400190565b60405180910390a250505b6001600160a01b038216156107d3576001600160a01b0382166000908152600d6020526040812081906121a39061138385611eec565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516121eb929190918252602082015260400190565b60405180910390a25050505050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661087457612238816001600160a01b0316601461266a565b61224383602061266a565b604051602001612254929190612ecd565b60408051601f198184030181529082905262461bcd60e51b825261086191600401612adb565b60006122896002848418612f4e565b61092a90848416612e1d565b61229f8282612893565b61128a600e61150883611eec565b60006107e260085490565b815460009081036122cb575060006106da565b82546000905b808210156123275760006122e5838361227a565b9050848682815481106122fa576122fa612eb7565b9060005260206000200154111561231357809150612321565b61231e816001612e1d565b92505b506122d1565b60008211801561235c5750838561233f600185612ea4565b8154811061234f5761234f612eb7565b9060005260206000200154145b156123755761236c600183612ea4565b925050506106da565b5090506106da565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123b45750600090506003612461565b8460ff16601b141580156123cc57508460ff16601c14155b156123dd5750600090506004612461565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612431573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245a57600060019250925050612461565b9150600090505b94509492505050565b600081600481111561247e5761247e612f70565b036124865750565b600181600481111561249a5761249a612f70565b036124e75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610861565b60028160048111156124fb576124fb612f70565b036125485760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610861565b600381600481111561255c5761255c612f70565b036125b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610861565b60048160048111156125c8576125c8612f70565b0361093b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610861565b600061262a6122ad565b90508061263684612a2b565b10156107d3578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60606000612679836002612f86565b612684906002612e1d565b67ffffffffffffffff81111561269c5761269c612f9d565b6040519080825280601f01601f1916602001820160405280156126c6576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106126fd576126fd612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061276057612760612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061279c846002612f86565b6127a7906001612e1d565b90505b6001811115612844577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106127e8576127e8612eb7565b1a60f81b8282815181106127fe576127fe612eb7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361283d81612fb3565b90506127aa565b50831561092a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610861565b6001600160a01b03821661290f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610861565b61291b82600083612065565b6001600160a01b038216600090815260208190526040902054818110156129aa5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610861565b6001600160a01b03831660009081526020819052604081208383039055600280548492906129d9908490612ea4565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107d383600084612070565b80546000908103612a3e57506000919050565b81548290612a4e90600190612ea4565b81548110612a5e57612a5e612eb7565b90600052602060002001549050919050565b919050565b600060208284031215612a8757600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461092a57600080fd5b60005b83811015612ad2578181015183820152602001612aba565b50506000910152565b6020815260008251806020840152612afa816040850160208701612ab7565b601f01601f19169190910160400192915050565b6001600160a01b038116811461093b57600080fd5b60008060408385031215612b3657600080fd5b8235612b4181612b0e565b946020939093013593505050565b600080600060608486031215612b6457600080fd5b8335612b6f81612b0e565b92506020840135612b7f81612b0e565b929592945050506040919091013590565b600060208284031215612ba257600080fd5b5035919050565b60008060408385031215612bbc57600080fd5b823591506020830135612bce81612b0e565b809150509250929050565b600060208284031215612beb57600080fd5b813561092a81612b0e565b600080600080600060808688031215612c0e57600080fd5b8535612c1981612b0e565b94506020860135612c2981612b0e565b935060408601359250606086013567ffffffffffffffff80821115612c4d57600080fd5b818801915088601f830112612c6157600080fd5b813581811115612c7057600080fd5b896020828501011115612c8257600080fd5b9699959850939650602001949392505050565b803560ff81168114612a7057600080fd5b60008060008060008060c08789031215612cbf57600080fd5b8635612cca81612b0e565b95506020870135945060408701359350612ce660608801612c95565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215612d1b57600080fd5b8735612d2681612b0e565b96506020880135612d3681612b0e565b95506040880135945060608801359350612d5260808901612c95565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612d8157600080fd5b8235612d8c81612b0e565b91506020830135612bce81612b0e565b60008060408385031215612daf57600080fd5b8235612dba81612b0e565b9150602083013563ffffffff81168114612bce57600080fd5b600181811c90821680612de757607f821691505b602082108103611ee657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106da576106da612e07565b60006001600160a01b03808916835280881660208401525085604083015284606083015260a060808301528260a0830152828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215612e9d57600080fd5b5051919050565b818103818111156106da576106da612e07565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612f05816017850160208801612ab7565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612f42816028840160208801612ab7565b01602801949350505050565b600082612f6b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fd5b80820281158282048414176106da576106da612e07565b634e487b7160e01b600052604160045260246000fd5b600081612fc257612fc2612e07565b50600019019056fea264697066735822122048b83ac6421407b209b5aa241951f9f6c3552e4ff07b707fca6853f2cd8bec3364736f6c63430008110033
Deployed Bytecode Sourcemap
129870:1339:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80477:204;;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;80477:204:0;;;;;;;;91937:100;;;:::i;:::-;;;;;;;:::i;94288:201::-;;;;;;:::i;:::-;;:::i;93057:108::-;93145:12;;93057:108;;;1824:25:1;;;1812:2;1797:18;93057:108:0;1678:177:1;95069:295:0;;;;;;:::i;:::-;;:::i;82313:131::-;;;;;;:::i;:::-;82387:7;82414:12;;;:6;:12;;;;;:22;;;;82313:131;82754:147;;;;;;:::i;:::-;;:::i;:::-;;92899:93;;;92982:2;3150:36:1;;3138:2;3123:18;92899:93:0;3008:184:1;109830:115:0;;;:::i;83898:218::-;;;;;;:::i;:::-;;:::i;95773:238::-;;;;;;:::i;:::-;;:::i;113038:268::-;;;;;;:::i;:::-;;:::i;129207:91::-;;;;;;:::i;:::-;;:::i;124723:266::-;;;;;;:::i;:::-;;:::i;112412:128::-;;;;;;:::i;:::-;-1:-1:-1;;;;;112513:19:0;;;112486:7;112513:19;;;:10;:19;;;;;;;;112412:128;;;;-1:-1:-1;;;;;3798:55:1;;;3780:74;;3768:2;3753:18;112412:128:0;3634:226:1;115511:114:0;;;;;;:::i;:::-;;:::i;106039:959::-;;;;;;:::i;:::-;;:::i;103657:178::-;;;;;;:::i;:::-;;:::i;112168:151::-;;;;;;:::i;:::-;;:::i;:::-;;;5008:10:1;4996:23;;;4978:42;;4966:2;4951:18;112168:151:0;4834:192:1;129995:66:0;;130035:26;129995:66;;93228:127;;;;;;:::i;:::-;-1:-1:-1;;;;;93329:18:0;93302:7;93329:18;;;;;;;;;;;;93228:127;129617:164;;;;;;:::i;:::-;;:::i;109572:128::-;;;;;;:::i;:::-;;:::i;113595:259::-;;;;;;:::i;:::-;;:::i;80773:147::-;;;;;;:::i;:::-;80859:4;80883:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;80883:29:0;;;;;;;;;;;;;;;80773:147;92156:104;;;:::i;130332:81::-;;;:::i;125093:234::-;;;;;;:::i;:::-;;:::i;112624:212::-;;;;;;:::i;:::-;;:::i;79878:49::-;;79923:4;79878:49;;96514:436;;;;;;:::i;:::-;;:::i;93561:193::-;;;;;;:::i;:::-;;:::i;115707:591::-;;;;;;:::i;:::-;;:::i;108861:645::-;;;;;;:::i;:::-;;:::i;83194:149::-;;;;;;:::i;:::-;;:::i;104234:297::-;;;;;;:::i;:::-;;:::i;93817:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;93933:18:0;;;93906:7;93933:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;93817:151;111938:150;;;;;;:::i;:::-;;:::i;:::-;;;;7569:13:1;;7584:10;7565:30;7547:49;;7656:4;7644:17;;;7638:24;-1:-1:-1;;;;;7634:89:1;7612:20;;;7605:119;;;;7520:18;111938:150:0;7345:385:1;80477:204:0;80562:4;80586:47;;;80601:32;80586:47;;:87;;-1:-1:-1;45652:25:0;45637:40;;;;80637:36;80579:94;80477:204;-1:-1:-1;;80477:204:0:o;91937:100::-;91991:13;92024:5;92017:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91937:100;:::o;94288:201::-;94371:4;77760:10;94427:32;77760:10;94443:7;94452:6;94427:8;:32::i;:::-;-1:-1:-1;94477:4:0;;94288:201;-1:-1:-1;;;94288:201:0:o;95069:295::-;95200:4;77760:10;95258:38;95274:4;77760:10;95289:6;95258:15;:38::i;:::-;95307:27;95317:4;95323:2;95327:6;95307:9;:27::i;:::-;-1:-1:-1;95352:4:0;;95069:295;-1:-1:-1;;;;95069:295:0:o;82754:147::-;82387:7;82414:12;;;:6;:12;;;;;:22;;;80369:16;80380:4;80369:10;:16::i;:::-;82868:25:::1;82879:4;82885:7;82868:10;:25::i;:::-;82754:147:::0;;;:::o;109830:115::-;109890:7;109917:20;:18;:20::i;:::-;109910:27;;109830:115;:::o;83898:218::-;-1:-1:-1;;;;;83994:23:0;;77760:10;83994:23;83986:83;;;;-1:-1:-1;;;83986:83:0;;8379:2:1;83986:83:0;;;8361:21:1;8418:2;8398:18;;;8391:30;8457:34;8437:18;;;8430:62;8528:17;8508:18;;;8501:45;8563:19;;83986:83:0;;;;;;;;;84082:26;84094:4;84100:7;84082:11;:26::i;:::-;83898:218;;:::o;95773:238::-;77760:10;95861:4;93933:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;93933:27:0;;;;;;;;;;95861:4;;77760:10;95917:64;;77760:10;;93933:27;;95942:38;;95970:10;;95942:38;:::i;:::-;95917:8;:64::i;113038:268::-;113136:7;113178:12;113164:11;:26;113156:70;;;;-1:-1:-1;;;113156:70:0;;9114:2:1;113156:70:0;;;9096:21:1;9153:2;9133:18;;;9126:30;9192:33;9172:18;;;9165:61;9243:18;;113156:70:0;8912:355:1;113156:70:0;-1:-1:-1;;;;;113263:21:0;;;;;;:12;:21;;;;;113244:54;;113286:11;113244:18;:54::i;:::-;113237:61;113038:268;-1:-1:-1;;;113038:268:0:o;129207:91::-;129263:27;77760:10;129283:6;129263:5;:27::i;:::-;129207:91;:::o;124723:266::-;-1:-1:-1;;;;;124887:33:0;;124810:7;124887:33;;;:24;:33;;;;;124810:7;;;;124866:55;;124875:10;;124866:8;:55::i;:::-;124830:91;;;;124941:11;:40;;-1:-1:-1;;;;;93329:18:0;;93302:7;93329:18;;;;;;;;;;;124941:40;;;124955:5;124941:40;124934:47;124723:266;-1:-1:-1;;;;;124723:266:0:o;115511:114::-;115583:34;77760:10;115607:9;115583;:34::i;106039:959::-;106218:4;106253:19;106266:5;106253:12;:19::i;:::-;106243:6;:29;;106235:85;;;;-1:-1:-1;;;106235:85:0;;9474:2:1;106235:85:0;;;9456:21:1;9513:2;9493:18;;;9486:30;9552:34;9532:18;;;9525:62;9623:13;9603:18;;;9596:41;9654:19;;106235:85:0;9272:407:1;106235:85:0;106331:11;106345:23;106354:5;106361:6;106345:8;:23::i;:::-;106331:37;;106379:32;106393:8;106404:6;106379:5;:32::i;:::-;106444:58;;;;;103394:45;;-1:-1:-1;;;;;106444:20:0;;;;;:58;;106465:10;;106477:5;;106484:6;;106492:3;;106497:4;;;;106444:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:75;106422:161;;;;-1:-1:-1;;;106422:161:0;;10837:2:1;106422:161:0;;;10819:21:1;10876:2;10856:18;;;10849:30;10915:34;10895:18;;;10888:62;10986:6;10966:18;;;10959:34;11010:19;;106422:161:0;10635:400:1;106422:161:0;106594:24;106651:63;106675:8;106694:4;106701:12;106710:3;106701:6;:12;:::i;:::-;106651:15;:63::i;:::-;106729:8;;;:42;;-1:-1:-1;;;;;;106741:30:0;;;106729:42;106725:244;;;106788:38;106802:8;106813:12;106822:3;106813:6;:12;:::i;:::-;106788:5;:38::i;:::-;106725:244;;;106859:32;106873:8;106884:6;106859:5;:32::i;:::-;106906:51;106924:8;106935:16;106953:3;106906:9;:51::i;:::-;-1:-1:-1;106986:4:0;;106039:959;-1:-1:-1;;;;;;;106039:959:0:o;103657:178::-;103732:7;-1:-1:-1;;;;;103759:22:0;;103776:4;103759:22;:68;;103826:1;103759:68;;;93145:12;;103784:39;;-1:-1:-1;;103784:39:0;:::i;112168:151::-;-1:-1:-1;;;;;112282:21:0;;112238:6;112282:21;;;:12;:21;;;;;:28;112264:47;;:17;:47::i;129617:164::-;129694:46;129710:7;77760:10;129733:6;129694:15;:46::i;:::-;129751:22;129757:7;129766:6;129751:5;:22::i;109572:128::-;-1:-1:-1;;;;;109668:14:0;;109641:7;109668:14;;;:7;:14;;;;;65828;109668:24;65736:114;113595:259;113682:7;113724:12;113710:11;:26;113702:70;;;;-1:-1:-1;;;113702:70:0;;9114:2:1;113702:70:0;;;9096:21:1;9153:2;9133:18;;;9126:30;9192:33;9172:18;;;9165:61;9243:18;;113702:70:0;8912:355:1;113702:70:0;113790:56;113809:23;113834:11;113790:18;:56::i;92156:104::-;92212:13;92245:7;92238:14;;;;;:::i;130332:81::-;130035:26;80369:16;80380:4;80369:10;:16::i;:::-;130394:11:::1;:9;:11::i;125093:234::-:0;125165:7;125186:16;125204:13;125221:43;125230:10;125242:21;125221:8;:43::i;:::-;125185:79;;;;125284:11;:35;;93145:12;;125284:35;;;125298:5;125284:35;125277:42;125093:234;-1:-1:-1;;;;125093:234:0:o;112624:212::-;-1:-1:-1;;;;;112731:21:0;;112697:7;112731:21;;;:12;:21;;;;;:28;112777:8;;:51;;-1:-1:-1;;;;;112792:21:0;;;;;;:12;:21;;;;;112814:7;112820:1;112814:3;:7;:::i;:::-;112792:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;112792:36:0;112777:51;;;112788:1;112777:51;-1:-1:-1;;;;;112770:58:0;;112624:212;-1:-1:-1;;;112624:212:0:o;96514:436::-;77760:10;96607:4;93933:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;93933:27:0;;;;;;;;;;96607:4;;77760:10;96754:15;96734:16;:35;;96726:85;;;;-1:-1:-1;;;96726:85:0;;11564:2:1;96726:85:0;;;11546:21:1;11603:2;11583:18;;;11576:30;11642:34;11622:18;;;11615:62;11713:7;11693:18;;;11686:35;11738:19;;96726:85:0;11362:401:1;96726:85:0;96847:60;96856:5;96863:7;96891:15;96872:16;:34;96847:8;:60::i;93561:193::-;93640:4;77760:10;93696:28;77760:10;93713:2;93717:6;93696:9;:28::i;115707:591::-;115934:6;115915:15;:25;;115907:67;;;;-1:-1:-1;;;115907:67:0;;11970:2:1;115907:67:0;;;11952:21:1;12009:2;11989:18;;;11982:30;12048:31;12028:18;;;12021:59;12097:18;;115907:67:0;11768:353:1;115907:67:0;116057:58;;;111618:71;116057:58;;;12357:25:1;-1:-1:-1;;;;;12418:55:1;;12398:18;;;12391:83;;;;12490:18;;;12483:34;;;12533:18;;;12526:34;;;115985:14:0;;116002:174;;116030:87;;12329:19:1;;116057:58:0;;;;;;;;;;;;116047:69;;;;;;116030:16;:87::i;:::-;116132:1;116148;116164;116002:13;:174::i;:::-;115985:191;;116204:17;116214:6;116204:9;:17::i;:::-;116195:5;:26;116187:64;;;;-1:-1:-1;;;116187:64:0;;12773:2:1;116187:64:0;;;12755:21:1;12812:2;12792:18;;;12785:30;12851:27;12831:18;;;12824:55;12896:18;;116187:64:0;12571:349:1;116187:64:0;116262:28;116272:6;116280:9;116262;:28::i;:::-;115896:402;115707:591;;;;;;:::o;108861:645::-;109105:8;109086:15;:27;;109078:69;;;;-1:-1:-1;;;109078:69:0;;13127:2:1;109078:69:0;;;13109:21:1;13166:2;13146:18;;;13139:30;13205:31;13185:18;;;13178:59;13254:18;;109078:69:0;12925:353:1;109078:69:0;109160:18;108036:95;109220:5;109227:7;109236:5;109243:16;109253:5;109243:9;:16::i;:::-;109191:79;;;;;;13570:25:1;;;;-1:-1:-1;;;;;13692:15:1;;;13672:18;;;13665:43;13744:15;;;;13724:18;;;13717:43;13776:18;;;13769:34;13819:19;;;13812:35;13863:19;;;13856:35;;;13542:19;;109191:79:0;;;;;;;;;;;;109181:90;;;;;;109160:111;;109284:12;109299:28;109316:10;109299:16;:28::i;:::-;109284:43;;109340:14;109357:28;109371:4;109377:1;109380;109383;109357:13;:28::i;:::-;109340:45;;109414:5;-1:-1:-1;;;;;109404:15:0;:6;-1:-1:-1;;;;;109404:15:0;;109396:58;;;;-1:-1:-1;;;109396:58:0;;14104:2:1;109396:58:0;;;14086:21:1;14143:2;14123:18;;;14116:30;14182:32;14162:18;;;14155:60;14232:18;;109396:58:0;13902:354:1;109396:58:0;109467:31;109476:5;109483:7;109492:5;109467:8;:31::i;:::-;109067:439;;;108861:645;;;;;;;:::o;83194:149::-;82387:7;82414:12;;;:6;:12;;;;;:22;;;80369:16;80380:4;80369:10;:16::i;:::-;83309:26:::1;83321:4;83327:7;83309:11;:26::i;104234:297::-:0;104321:7;-1:-1:-1;;;;;104349:22:0;;104366:4;104349:22;104341:62;;;;-1:-1:-1;;;104341:62:0;;14463:2:1;104341:62:0;;;14445:21:1;14502:2;14482:18;;;14475:30;14541:29;14521:18;;;14514:57;14588:18;;104341:62:0;14261:351:1;104341:62:0;-1:-1:-1;104522:1:0;104234:297;;;;:::o;111938:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;112054:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;112047:33;;;;;;;;;112054:26;;112047:33;;;;;;;;;-1:-1:-1;;;;;112047:33:0;;;;;;;;;111938:150;-1:-1:-1;;;111938:150:0:o;116604:290::-;116689:28;116701:7;116710:6;116689:11;:28::i;:::-;93145:12;;-1:-1:-1;;;;;;116736:29:0;116728:90;;;;-1:-1:-1;;;116728:90:0;;14819:2:1;116728:90:0;;;14801:21:1;14858:2;14838:18;;;14831:30;14897:34;14877:18;;;14870:62;14968:18;14948;;;14941:46;15004:19;;116728:90:0;14617:412:1;116728:90:0;116831:55;116848:23;116873:4;116879:6;116831:16;:55::i;:::-;;;116604:290;;:::o;98378:399::-;-1:-1:-1;;;;;98462:21:0;;98454:65;;;;-1:-1:-1;;;98454:65:0;;15236:2:1;98454:65:0;;;15218:21:1;15275:2;15255:18;;;15248:30;15314:33;15294:18;;;15287:61;15365:18;;98454:65:0;15034:355:1;98454:65:0;98532:49;98561:1;98565:7;98574:6;98532:20;:49::i;:::-;98610:6;98594:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;98627:18:0;;:9;:18;;;;;;;;;;:28;;98649:6;;98627:9;:28;;98649:6;;98627:28;:::i;:::-;;;;-1:-1:-1;;98671:37:0;;1824:25:1;;;-1:-1:-1;;;;;98671:37:0;;;98688:1;;98671:37;;1812:2:1;1797:18;98671:37:0;;;;;;;98721:48;98749:1;98753:7;98762:6;98721:19;:48::i;119448:98::-;119506:7;119533:5;119537:1;119533;:5;:::i;5367:195::-;5424:7;-1:-1:-1;;;;;5452:26:0;;;5444:78;;;;-1:-1:-1;;;5444:78:0;;15596:2:1;5444:78:0;;;15578:21:1;15635:2;15615:18;;;15608:30;15674:34;15654:18;;;15647:62;15745:9;15725:18;;;15718:37;15772:19;;5444:78:0;15394:403:1;5444:78:0;-1:-1:-1;5548:5:0;5367:195::o;18203:190::-;18259:6;18295:16;18286:25;;;18278:76;;;;-1:-1:-1;;;18278:76:0;;16004:2:1;18278:76:0;;;15986:21:1;16043:2;16023:18;;;16016:30;16082:34;16062:18;;;16055:62;16153:8;16133:18;;;16126:36;16179:19;;18278:76:0;15802:402:1;125544:622:0;-1:-1:-1;;;;;125748:18:0;;125744:415;;125804:26;125827:2;125804:22;:26::i;:::-;125845:28;:26;:28::i;125744:415::-;-1:-1:-1;;;;;125895:16:0;;125891:268;;125949:28;125972:4;125949:22;:28::i;125891:268::-;126078:28;126101:4;126078:22;:28::i;:::-;126121:26;126144:2;126121:22;:26::i;117322:262::-;-1:-1:-1;;;;;112513:19:0;;;112486:7;112513:19;;;:10;:19;;;;;;;;;;;;;;;117520:56;;112513:19;;;;;117569:6;117520:16;:56::i;119554:103::-;119617:7;119644:5;119648:1;119644;:5;:::i;65736:114::-;65828:14;;65736:114::o;100139:380::-;-1:-1:-1;;;;;100275:19:0;;100267:68;;;;-1:-1:-1;;;100267:68:0;;16411:2:1;100267:68:0;;;16393:21:1;16450:2;16430:18;;;16423:30;16489:34;16469:18;;;16462:62;16560:6;16540:18;;;16533:34;16584:19;;100267:68:0;16209:400:1;100267:68:0;-1:-1:-1;;;;;100354:21:0;;100346:68;;;;-1:-1:-1;;;100346:68:0;;16816:2:1;100346:68:0;;;16798:21:1;16855:2;16835:18;;;16828:30;16894:34;16874:18;;;16867:62;16965:4;16945:18;;;16938:32;16987:19;;100346:68:0;16614:398:1;100346:68:0;-1:-1:-1;;;;;100427:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;100479:32;;1824:25:1;;;100479:32:0;;1797:18:1;100479:32:0;;;;;;;100139:380;;;:::o;100810:453::-;-1:-1:-1;;;;;93933:18:0;;;100945:24;93933:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;101012:37:0;;101008:248;;101094:6;101074:16;:26;;101066:68;;;;-1:-1:-1;;;101066:68:0;;17219:2:1;101066:68:0;;;17201:21:1;17258:2;17238:18;;;17231:30;17297:31;17277:18;;;17270:59;17346:18;;101066:68:0;17017:353:1;101066:68:0;101178:51;101187:5;101194:7;101222:6;101203:16;:25;101178:8;:51::i;97420:671::-;-1:-1:-1;;;;;97551:18:0;;97543:68;;;;-1:-1:-1;;;97543:68:0;;17577:2:1;97543:68:0;;;17559:21:1;17616:2;17596:18;;;17589:30;17655:34;17635:18;;;17628:62;17726:7;17706:18;;;17699:35;17751:19;;97543:68:0;17375:401:1;97543:68:0;-1:-1:-1;;;;;97630:16:0;;97622:64;;;;-1:-1:-1;;;97622:64:0;;17983:2:1;97622:64:0;;;17965:21:1;18022:2;18002:18;;;17995:30;18061:34;18041:18;;;18034:62;18132:5;18112:18;;;18105:33;18155:19;;97622:64:0;17781:399:1;97622:64:0;97699:38;97720:4;97726:2;97730:6;97699:20;:38::i;:::-;-1:-1:-1;;;;;97772:15:0;;97750:19;97772:15;;;;;;;;;;;97806:21;;;;97798:72;;;;-1:-1:-1;;;97798:72:0;;18387:2:1;97798:72:0;;;18369:21:1;18426:2;18406:18;;;18399:30;18465:34;18445:18;;;18438:62;18536:8;18516:18;;;18509:36;18562:19;;97798:72:0;18185:402:1;97798:72:0;-1:-1:-1;;;;;97906:15:0;;;:9;:15;;;;;;;;;;;97924:20;;;97906:38;;97966:13;;;;;;;;:23;;97938:6;;97906:9;97966:23;;97938:6;;97966:23;:::i;:::-;;;;;;;;98022:2;-1:-1:-1;;;;;98007:26:0;98016:4;-1:-1:-1;;;;;98007:26:0;;98026:6;98007:26;;;;1824:25:1;;1812:2;1797:18;;1678:177;98007:26:0;;;;;;;;98046:37;98066:4;98072:2;98076:6;98046:19;:37::i;81224:105::-;81291:30;81302:4;77760:10;81291;:30::i;85495:238::-;80859:4;80883:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;80883:29:0;;;;;;;;;;;;85574:152;;85618:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;85618:29:0;;;;;;;;;:36;;-1:-1:-1;;85618:36:0;85650:4;85618:36;;;85701:12;77760:10;;77680:98;85701:12;-1:-1:-1;;;;;85674:40:0;85692:7;-1:-1:-1;;;;;85674:40:0;85686:4;85674:40;;;;;;;;;;85495:238;;:::o;60410:314::-;60463:7;60495:4;-1:-1:-1;;;;;60504:12:0;60487:29;;:66;;;;;60537:16;60520:13;:33;60487:66;60483:234;;;-1:-1:-1;60577:24:0;;60410:314::o;60483:234::-;-1:-1:-1;60913:73:0;;;60663:10;60913:73;;;;20630:25:1;;;;60675:12:0;20671:18:1;;;20664:34;60689:15:0;20714:18:1;;;20707:34;60957:13:0;20757:18:1;;;20750:34;60980:4:0;20800:19:1;;;;20793:84;;;;60913:73:0;;;;;;;;;;20602:19:1;;;;60913:73:0;;;60903:84;;;;;;109830:115::o;85913:239::-;80859:4;80883:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;80883:29:0;;;;;;;;;;;;85993:152;;;86068:5;86036:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;86036:29:0;;;;;;;;;;:37;;-1:-1:-1;;86036:37:0;;;86093:40;77760:10;;86036:12;;86093:40;;86068:5;86093:40;85913:239;;:::o;113943:1482::-;115076:12;;114042:7;;;115125:236;115138:4;115132:3;:10;115125:236;;;115159:11;115173:23;115186:3;115191:4;115173:12;:23::i;:::-;115159:37;;115238:11;115215:5;115221:3;115215:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;:34;115211:139;;;115277:3;115270:10;;115211:139;;;115327:7;:3;115333:1;115327:7;:::i;:::-;115321:13;;115211:139;115144:217;115125:236;;;115380:9;;:37;;115396:5;115402:8;115409:1;115402:4;:8;:::i;:::-;115396:15;;;;;;;;:::i;:::-;;;;;;;;;;:21;;;;-1:-1:-1;;;;;115396:21:0;115380:37;;;115392:1;115380:37;-1:-1:-1;;;;;115373:44:0;;113943:1482;-1:-1:-1;;;;;113943:1482:0:o;131051:155::-;131170:28;131182:7;131191:6;131170:11;:28::i;126174:1619::-;126263:4;126269:7;126310:1;126297:10;:14;126289:49;;;;-1:-1:-1;;;126289:49:0;;18794:2:1;126289:49:0;;;18776:21:1;18833:2;18813:18;;;18806:30;18872:24;18852:18;;;18845:52;18914:18;;126289:49:0;18592:346:1;126289:49:0;126371:23;:21;:23::i;:::-;126357:10;:37;;126349:79;;;;-1:-1:-1;;;126349:79:0;;19145:2:1;126349:79:0;;;19127:21:1;19184:2;19164:18;;;19157:30;19223:31;19203:18;;;19196:59;19272:18;;126349:79:0;18943:353:1;126349:79:0;127567:13;127583:40;:9;127612:10;127583:28;:40::i;:::-;127649:20;;127567:56;;-1:-1:-1;127640:29:0;;127636:150;;127694:5;127701:1;127686:17;;;;;;;127636:150;127744:4;127750:9;:16;;127767:5;127750:23;;;;;;;;:::i;:::-;;;;;;;;;127736:38;;;;;126174:1619;;;;;;:::o;117748:388::-;-1:-1:-1;;;;;112513:19:0;;;117833:23;112513:19;;;:10;:19;;;;;;;;;;93329:18;;;;;;;117948:21;;;;:33;;;;;;;;;;;117999:54;;112513:19;;;;;93329:18;;117948:33;;112513:19;;;117999:54;;117833:23;117999:54;118066:62;118083:15;118100:9;118111:16;118066;:62::i;130898:145::-;131012:23;131024:2;131028:6;131012:11;:23::i;124195:223::-;124242:7;124262:30;:18;65947:19;;65965:1;65947:19;;;65858:127;124262:30;124305:17;124325:23;:21;:23::i;:::-;124305:43;;124364:19;124373:9;124364:19;;;;1824:25:1;;1812:2;1797:18;;1678:177;124364:19:0;;;;;;;;124401:9;124195:223;-1:-1:-1;124195:223:0:o;61637:167::-;61714:7;61741:55;61763:20;:18;:20::i;:::-;61785:10;57101:57;;21437:66:1;57101:57:0;;;21425:79:1;21520:11;;;21513:27;;;21556:12;;;21549:28;;;57064:7:0;;21593:12:1;;57101:57:0;;;;;;;;;;;;57091:68;;;;;;57084:75;;56971:196;;;;;55280:279;55408:7;55429:17;55448:18;55470:25;55481:4;55487:1;55490;55493;55470:10;:25::i;:::-;55428:67;;;;55506:18;55518:5;55506:11;:18::i;:::-;-1:-1:-1;55542:9:0;55280:279;-1:-1:-1;;;;;55280:279:0:o;110083:207::-;-1:-1:-1;;;;;110204:14:0;;110143:15;110204:14;;;:7;:14;;;;;65828;;65965:1;65947:19;;;;65828:14;110265:17;110160:130;110083:207;;;:::o;118795:645::-;119032:12;;118969:17;;;;119067:8;;:35;;119082:5;119088:7;119094:1;119088:3;:7;:::i;:::-;119082:14;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;;-1:-1:-1;;;;;119082:20:0;119067:35;;;119078:1;119067:35;-1:-1:-1;;;;;119055:47:0;;;119125:20;119128:9;119139:5;119125:2;:20;;:::i;:::-;119113:32;;119168:1;119162:3;:7;:51;;;;-1:-1:-1;119201:12:0;119173:5;119179:7;119185:1;119179:3;:7;:::i;:::-;119173:14;;;;;;;;:::i;:::-;;;;;;;;;;:24;;;:40;119162:51;119158:275;;;119253:29;119272:9;119253:18;:29::i;:::-;119230:5;119236:7;119242:1;119236:3;:7;:::i;:::-;119230:14;;;;;;;;:::i;:::-;;;;;;;;:20;;;:52;;;;;-1:-1:-1;;;;;119230:52:0;;;;;-1:-1:-1;;;;;119230:52:0;;;;;;119158:275;;;119315:5;119326:94;;;;;;;;119349:31;119367:12;119349:17;:31::i;:::-;119326:94;;;;;;119389:29;119408:9;119389:18;:29::i;:::-;-1:-1:-1;;;;;119326:94:0;;;;;;119315:106;;;;;;;-1:-1:-1;119315:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119158:275;119007:433;118795:645;;;;;;:::o;130491:198::-;130637:44;130664:4;130670:2;130674:6;130637:26;:44::i;130697:193::-;130839:43;130865:4;130871:2;130875:6;130839:25;:43::i;127801:146::-;-1:-1:-1;;;;;127885:33:0;;;;;;:24;:33;;;;;;;;93329:18;;;;;;;;127869:70;;127885:33;127869:15;:70::i;127920:18::-;127869:15;:70::i;127955:118::-;128012:53;128028:21;128051:13;93145:12;;;93057:108;128012:53;127955:118::o;118144:643::-;118276:3;-1:-1:-1;;;;;118269:10:0;:3;-1:-1:-1;;;;;118269:10:0;;;:24;;;;;118292:1;118283:6;:10;118269:24;118265:515;;;-1:-1:-1;;;;;118314:17:0;;;118310:224;;-1:-1:-1;;;;;118410:17:0;;118353;118410;;;:12;:17;;;;;118353;;118393:54;;118429:9;118440:6;118393:16;:54::i;:::-;118352:95;;;;118492:3;-1:-1:-1;;;;;118471:47:0;;118497:9;118508;118471:47;;;;;;19475:25:1;;;19531:2;19516:18;;19509:34;19463:2;19448:18;;19301:248;118471:47:0;;;;;;;;118333:201;;118310:224;-1:-1:-1;;;;;118554:17:0;;;118550:219;;-1:-1:-1;;;;;118650:17:0;;118593;118650;;;:12;:17;;;;;118593;;118633:49;;118669:4;118675:6;118633:16;:49::i;:::-;118592:90;;;;118727:3;-1:-1:-1;;;;;118706:47:0;;118732:9;118743;118706:47;;;;;;19475:25:1;;;19531:2;19516:18;;19509:34;19463:2;19448:18;;19301:248;118706:47:0;;;;;;;;118573:196;;118144:643;;;:::o;81619:505::-;80859:4;80883:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;80883:29:0;;;;;;;;;;;;81703:414;;81896:41;81924:7;-1:-1:-1;;;;;81896:41:0;81934:2;81896:19;:41::i;:::-;82010:38;82038:4;82045:2;82010:19;:38::i;:::-;81801:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;81801:270:0;;;;;;;;;;-1:-1:-1;;;81747:358:0;;;;;;;:::i;67199:156::-;67261:7;67336:11;67346:1;67337:5;;;67336:11;:::i;:::-;67326:21;;67327:5;;;67326:21;:::i;116988:194::-;117073:28;117085:7;117094:6;117073:11;:28::i;:::-;117114:60;117131:23;117156:9;117167:6;117114:16;:60::i;124484:127::-;124548:7;124575:28;:18;65828:14;;65736:114;76070:918;76183:12;;76159:7;;76183:17;;76179:58;;-1:-1:-1;76224:1:0;76217:8;;76179:58;76290:12;;76249:11;;76315:424;76328:4;76322:3;:10;76315:424;;;76349:11;76363:23;76376:3;76381:4;76363:12;:23::i;:::-;76349:37;;76620:7;76607:5;76613:3;76607:10;;;;;;;;:::i;:::-;;;;;;;;;:20;76603:125;;;76655:3;76648:10;;76603:125;;;76705:7;:3;76711:1;76705:7;:::i;:::-;76699:13;;76603:125;76334:405;76315:424;;;76865:1;76859:3;:7;:36;;;;-1:-1:-1;76888:7:0;76870:5;76876:7;76882:1;76876:3;:7;:::i;:::-;76870:14;;;;;;;;:::i;:::-;;;;;;;;;:25;76859:36;76855:126;;;76919:7;76925:1;76919:3;:7;:::i;:::-;76912:14;;;;;;76855:126;-1:-1:-1;76966:3:0;-1:-1:-1;76959:10:0;;53509:1632;53640:7;;54574:66;54561:79;;54557:163;;;-1:-1:-1;54673:1:0;;-1:-1:-1;54677:30:0;54657:51;;54557:163;54734:1;:7;;54739:2;54734:7;;:18;;;;;54745:1;:7;;54750:2;54745:7;;54734:18;54730:102;;;-1:-1:-1;54785:1:0;;-1:-1:-1;54789:30:0;54769:51;;54730:102;54946:24;;;54929:14;54946:24;;;;;;;;;21843:25:1;;;21916:4;21904:17;;21884:18;;;21877:45;;;;21938:18;;;21931:34;;;21981:18;;;21974:34;;;54946:24:0;;21815:19:1;;54946:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54946:24:0;;-1:-1:-1;;54946:24:0;;;-1:-1:-1;;;;;;;54985:20:0;;54981:103;;55038:1;55042:29;55022:50;;;;;;;54981:103;55104:6;-1:-1:-1;55112:20:0;;-1:-1:-1;53509:1632:0;;;;;;;;:::o;48779:643::-;48857:20;48848:5;:29;;;;;;;;:::i;:::-;;48844:571;;48779:643;:::o;48844:571::-;48955:29;48946:5;:38;;;;;;;;:::i;:::-;;48942:473;;49001:34;;-1:-1:-1;;;49001:34:0;;22410:2:1;49001:34:0;;;22392:21:1;22449:2;22429:18;;;22422:30;22488:26;22468:18;;;22461:54;22532:18;;49001:34:0;22208:348:1;48942:473:0;49066:35;49057:5;:44;;;;;;;;:::i;:::-;;49053:362;;49118:41;;-1:-1:-1;;;49118:41:0;;22763:2:1;49118:41:0;;;22745:21:1;22802:2;22782:18;;;22775:30;22841:33;22821:18;;;22814:61;22892:18;;49118:41:0;22561:355:1;49053:362:0;49190:30;49181:5;:39;;;;;;;;:::i;:::-;;49177:238;;49237:44;;-1:-1:-1;;;49237:44:0;;23123:2:1;49237:44:0;;;23105:21:1;23162:2;23142:18;;;23135:30;23201:34;23181:18;;;23174:62;-1:-1:-1;;;23252:18:1;;;23245:32;23294:19;;49237:44:0;22921:398:1;49177:238:0;49312:30;49303:5;:39;;;;;;;;:::i;:::-;;49299:116;;49359:44;;-1:-1:-1;;;49359:44:0;;23526:2:1;49359:44:0;;;23508:21:1;23565:2;23545:18;;;23538:30;23604:34;23584:18;;;23577:62;-1:-1:-1;;;23655:18:1;;;23648:32;23697:19;;49359:44:0;23324:398:1;128081:310:0;128176:17;128196:23;:21;:23::i;:::-;128176:43;-1:-1:-1;128176:43:0;128234:30;128250:9;128234:15;:30::i;:::-;:42;128230:154;;;128293:29;;;;;;;;-1:-1:-1;128293:29:0;;;;;;;;;;;;;;128337:16;;;:35;;;;;;;;;;;;;;;128081:310::o;47429:451::-;47504:13;47530:19;47562:10;47566:6;47562:1;:10;:::i;:::-;:14;;47575:1;47562:14;:::i;:::-;47552:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47552:25:0;;47530:47;;47588:15;:6;47595:1;47588:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;;47614;:6;47621:1;47614:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;-1:-1:-1;47645:9:0;47657:10;47661:6;47657:1;:10;:::i;:::-;:14;;47670:1;47657:14;:::i;:::-;47645:26;;47640:135;47677:1;47673;:5;47640:135;;;47712:12;47725:5;47733:3;47725:11;47712:25;;;;;;;:::i;:::-;;;;47700:6;47707:1;47700:9;;;;;;;;:::i;:::-;;;;:37;;;;;;;;;;-1:-1:-1;47762:1:0;47752:11;;;;;47680:3;;;:::i;:::-;;;47640:135;;;-1:-1:-1;47793:10:0;;47785:55;;;;-1:-1:-1;;;47785:55:0;;24432:2:1;47785:55:0;;;24414:21:1;;;24451:18;;;24444:30;24510:34;24490:18;;;24483:62;24562:18;;47785:55:0;24230:356:1;99110:591:0;-1:-1:-1;;;;;99194:21:0;;99186:67;;;;-1:-1:-1;;;99186:67:0;;24793:2:1;99186:67:0;;;24775:21:1;24832:2;24812:18;;;24805:30;24871:34;24851:18;;;24844:62;24942:3;24922:18;;;24915:31;24963:19;;99186:67:0;24591:397:1;99186:67:0;99266:49;99287:7;99304:1;99308:6;99266:20;:49::i;:::-;-1:-1:-1;;;;;99353:18:0;;99328:22;99353:18;;;;;;;;;;;99390:24;;;;99382:71;;;;-1:-1:-1;;;99382:71:0;;25195:2:1;99382:71:0;;;25177:21:1;25234:2;25214:18;;;25207:30;25273:34;25253:18;;;25246:62;25344:4;25324:18;;;25317:32;25366:19;;99382:71:0;24993:398:1;99382:71:0;-1:-1:-1;;;;;99489:18:0;;:9;:18;;;;;;;;;;99510:23;;;99489:44;;99555:12;:22;;99527:6;;99489:9;99555:22;;99527:6;;99555:22;:::i;:::-;;;;-1:-1:-1;;99595:37:0;;1824:25:1;;;99621:1:0;;-1:-1:-1;;;;;99595:37:0;;;;;1812:2:1;1797:18;99595:37:0;;;;;;;99645:48;99665:7;99682:1;99686:6;99645:19;:48::i;128399:212::-;128493:10;;128469:7;;128493:15;;128489:115;;-1:-1:-1;128532:1:0;;128399:212;-1:-1:-1;128399:212:0:o;128489:115::-;128577:10;;128573:3;;128577:14;;128590:1;;128577:14;:::i;:::-;128573:19;;;;;;;;:::i;:::-;;;;;;;;;128566:26;;128399:212;;;:::o;128489:115::-;128399:212;;;:::o;14:332:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;543:250;628:1;638:113;652:6;649:1;646:13;638:113;;;728:11;;;722:18;709:11;;;702:39;674:2;667:10;638:113;;;-1:-1:-1;;785:1:1;767:16;;760:27;543:250::o;798:396::-;947:2;936:9;929:21;910:4;979:6;973:13;1022:6;1017:2;1006:9;1002:18;995:34;1038:79;1110:6;1105:2;1094:9;1090:18;1085:2;1077:6;1073:15;1038:79;:::i;:::-;1178:2;1157:15;-1:-1:-1;;1153:29:1;1138:45;;;;1185:2;1134:54;;798:396;-1:-1:-1;;798:396:1:o;1199:154::-;-1:-1:-1;;;;;1278:5:1;1274:54;1267:5;1264:65;1254:93;;1343:1;1340;1333:12;1358:315;1426:6;1434;1487:2;1475:9;1466:7;1462:23;1458:32;1455:52;;;1503:1;1500;1493:12;1455:52;1542:9;1529:23;1561:31;1586:5;1561:31;:::i;:::-;1611:5;1663:2;1648:18;;;;1635:32;;-1:-1:-1;;;1358:315:1:o;1860:456::-;1937:6;1945;1953;2006:2;1994:9;1985:7;1981:23;1977:32;1974:52;;;2022:1;2019;2012:12;1974:52;2061:9;2048:23;2080:31;2105:5;2080:31;:::i;:::-;2130:5;-1:-1:-1;2187:2:1;2172:18;;2159:32;2200:33;2159:32;2200:33;:::i;:::-;1860:456;;2252:7;;-1:-1:-1;;;2306:2:1;2291:18;;;;2278:32;;1860:456::o;2321:180::-;2380:6;2433:2;2421:9;2412:7;2408:23;2404:32;2401:52;;;2449:1;2446;2439:12;2401:52;-1:-1:-1;2472:23:1;;2321:180;-1:-1:-1;2321:180:1:o;2688:315::-;2756:6;2764;2817:2;2805:9;2796:7;2792:23;2788:32;2785:52;;;2833:1;2830;2823:12;2785:52;2869:9;2856:23;2846:33;;2929:2;2918:9;2914:18;2901:32;2942:31;2967:5;2942:31;:::i;:::-;2992:5;2982:15;;;2688:315;;;;;:::o;3382:247::-;3441:6;3494:2;3482:9;3473:7;3469:23;3465:32;3462:52;;;3510:1;3507;3500:12;3462:52;3549:9;3536:23;3568:31;3593:5;3568:31;:::i;3865:964::-;3990:6;3998;4006;4014;4022;4075:3;4063:9;4054:7;4050:23;4046:33;4043:53;;;4092:1;4089;4082:12;4043:53;4131:9;4118:23;4150:31;4175:5;4150:31;:::i;:::-;4200:5;-1:-1:-1;4257:2:1;4242:18;;4229:32;4270:33;4229:32;4270:33;:::i;:::-;4322:7;-1:-1:-1;4376:2:1;4361:18;;4348:32;;-1:-1:-1;4431:2:1;4416:18;;4403:32;4454:18;4484:14;;;4481:34;;;4511:1;4508;4501:12;4481:34;4549:6;4538:9;4534:22;4524:32;;4594:7;4587:4;4583:2;4579:13;4575:27;4565:55;;4616:1;4613;4606:12;4565:55;4656:2;4643:16;4682:2;4674:6;4671:14;4668:34;;;4698:1;4695;4688:12;4668:34;4743:7;4738:2;4729:6;4725:2;4721:15;4717:24;4714:37;4711:57;;;4764:1;4761;4754:12;4711:57;3865:964;;;;-1:-1:-1;3865:964:1;;-1:-1:-1;4795:2:1;4787:11;;4817:6;3865:964;-1:-1:-1;;;3865:964:1:o;5031:156::-;5097:20;;5157:4;5146:16;;5136:27;;5126:55;;5177:1;5174;5167:12;5192:592;5294:6;5302;5310;5318;5326;5334;5387:3;5375:9;5366:7;5362:23;5358:33;5355:53;;;5404:1;5401;5394:12;5355:53;5443:9;5430:23;5462:31;5487:5;5462:31;:::i;:::-;5512:5;-1:-1:-1;5564:2:1;5549:18;;5536:32;;-1:-1:-1;5615:2:1;5600:18;;5587:32;;-1:-1:-1;5638:36:1;5670:2;5655:18;;5638:36;:::i;:::-;5628:46;;5721:3;5710:9;5706:19;5693:33;5683:43;;5773:3;5762:9;5758:19;5745:33;5735:43;;5192:592;;;;;;;;:::o;5789:734::-;5900:6;5908;5916;5924;5932;5940;5948;6001:3;5989:9;5980:7;5976:23;5972:33;5969:53;;;6018:1;6015;6008:12;5969:53;6057:9;6044:23;6076:31;6101:5;6076:31;:::i;:::-;6126:5;-1:-1:-1;6183:2:1;6168:18;;6155:32;6196:33;6155:32;6196:33;:::i;:::-;6248:7;-1:-1:-1;6302:2:1;6287:18;;6274:32;;-1:-1:-1;6353:2:1;6338:18;;6325:32;;-1:-1:-1;6376:37:1;6408:3;6393:19;;6376:37;:::i;:::-;6366:47;;6460:3;6449:9;6445:19;6432:33;6422:43;;6512:3;6501:9;6497:19;6484:33;6474:43;;5789:734;;;;;;;;;;:::o;6528:388::-;6596:6;6604;6657:2;6645:9;6636:7;6632:23;6628:32;6625:52;;;6673:1;6670;6663:12;6625:52;6712:9;6699:23;6731:31;6756:5;6731:31;:::i;:::-;6781:5;-1:-1:-1;6838:2:1;6823:18;;6810:32;6851:33;6810:32;6851:33;:::i;6921:419::-;6988:6;6996;7049:2;7037:9;7028:7;7024:23;7020:32;7017:52;;;7065:1;7062;7055:12;7017:52;7104:9;7091:23;7123:31;7148:5;7123:31;:::i;:::-;7173:5;-1:-1:-1;7230:2:1;7215:18;;7202:32;7278:10;7265:24;;7253:37;;7243:65;;7304:1;7301;7294:12;7735:437;7814:1;7810:12;;;;7857;;;7878:61;;7932:4;7924:6;7920:17;7910:27;;7878:61;7985:2;7977:6;7974:14;7954:18;7951:38;7948:218;;-1:-1:-1;;;8019:1:1;8012:88;8123:4;8120:1;8113:15;8151:4;8148:1;8141:15;8593:184;-1:-1:-1;;;8642:1:1;8635:88;8742:4;8739:1;8732:15;8766:4;8763:1;8756:15;8782:125;8847:9;;;8868:10;;;8865:36;;;8881:18;;:::i;9684:757::-;9916:4;-1:-1:-1;;;;;10026:2:1;10018:6;10014:15;10003:9;9996:34;10078:2;10070:6;10066:15;10061:2;10050:9;10046:18;10039:43;;10118:6;10113:2;10102:9;10098:18;10091:34;10161:6;10156:2;10145:9;10141:18;10134:34;10205:3;10199;10188:9;10184:19;10177:32;10246:6;10240:3;10229:9;10225:19;10218:35;10304:6;10296;10290:3;10279:9;10275:19;10262:49;10361:1;10355:3;10346:6;10335:9;10331:22;10327:32;10320:43;10431:3;10424:2;10420:7;10415:2;10407:6;10403:15;10399:29;10388:9;10384:45;10380:55;10372:63;;9684:757;;;;;;;;;:::o;10446:184::-;10516:6;10569:2;10557:9;10548:7;10544:23;10540:32;10537:52;;;10585:1;10582;10575:12;10537:52;-1:-1:-1;10608:16:1;;10446:184;-1:-1:-1;10446:184:1:o;11040:128::-;11107:9;;;11128:11;;;11125:37;;;11142:18;;:::i;11173:184::-;-1:-1:-1;;;11222:1:1;11215:88;11322:4;11319:1;11312:15;11346:4;11343:1;11336:15;19554:812;19965:25;19960:3;19953:38;19935:3;20020:6;20014:13;20036:75;20104:6;20099:2;20094:3;20090:12;20083:4;20075:6;20071:17;20036:75;:::i;:::-;20175:19;20170:2;20130:16;;;20162:11;;;20155:40;20220:13;;20242:76;20220:13;20304:2;20296:11;;20289:4;20277:17;;20242:76;:::i;:::-;20338:17;20357:2;20334:26;;19554:812;-1:-1:-1;;;;19554:812:1:o;20888:274::-;20928:1;20954;20944:189;;-1:-1:-1;;;20986:1:1;20979:88;21090:4;21087:1;21080:15;21118:4;21115:1;21108:15;20944:189;-1:-1:-1;21147:9:1;;20888:274::o;22019:184::-;-1:-1:-1;;;22068:1:1;22061:88;22168:4;22165:1;22158:15;22192:4;22189:1;22182:15;23727:168;23800:9;;;23831;;23848:15;;;23842:22;;23828:37;23818:71;;23869:18;;:::i;23900:184::-;-1:-1:-1;;;23949:1:1;23942:88;24049:4;24046:1;24039:15;24073:4;24070:1;24063:15;24089:136;24128:3;24156:5;24146:39;;24165:18;;:::i;:::-;-1:-1:-1;;;24201:18:1;;24089:136::o
Swarm Source
ipfs://48b83ac6421407b209b5aa241951f9f6c3552e4ff07b707fca6853f2cd8bec33
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.