@venusprotocol/oracle 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +1 -1
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +1 -1
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/build-info/1d7bedd9b14544f287811332b9a539d7.json +1 -0
- package/artifacts/build-info/{96c10bfc915caedc90a237abc802c96d.json → 57da5d39a9f98618d0dcf1f6d4ff6b0d.json} +1 -1
- package/artifacts/build-info/f6af69795174616b8b4a6373f9f1c538.json +1 -0
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +2 -2
- package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +2 -2
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +2 -2
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +2 -2
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +3 -3
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +2 -2
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.json +2 -2
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +2 -2
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +2 -2
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
- package/contracts/PriceOracle.sol +2 -2
- package/contracts/ResilientOracle.sol +127 -114
- package/contracts/libraries/PancakeLibrary.sol +8 -8
- package/contracts/oracles/BinanceOracle.sol +4 -4
- package/contracts/oracles/BoundValidator.sol +31 -29
- package/contracts/oracles/ChainlinkOracle.sol +85 -83
- package/contracts/oracles/PythOracle.sol +41 -41
- package/contracts/oracles/TwapOracle.sol +67 -67
- package/contracts/oracles/mocks/MockBinanceOracle.sol +4 -4
- package/contracts/oracles/mocks/MockChainlinkOracle.sol +4 -4
- package/contracts/oracles/mocks/MockPythOracle.sol +4 -4
- package/contracts/oracles/mocks/MockTwapOracle.sol +4 -4
- package/contracts/test/MockPyth.sol +13 -13
- package/contracts/test/MockSimpleOracle.sol +8 -8
- package/contracts/test/MockV3Aggregator.sol +18 -18
- package/contracts/test/PancakePairHarness.sol +10 -10
- package/deploy/1-deploy-oracles.d.ts +1 -3
- package/deploy/1-deploy-oracles.d.ts.map +1 -1
- package/deploy/1-deploy-oracles.js +13 -3
- package/deploy/1-deploy-oracles.js.map +1 -1
- package/deploy/2-configure-feeds.d.ts +1 -3
- package/deploy/2-configure-feeds.d.ts.map +1 -1
- package/deploy/2-configure-feeds.js +101 -87
- package/deploy/2-configure-feeds.js.map +1 -1
- package/deployments/bsctestnet/BinanceOracle.json +42 -29
- package/deployments/bsctestnet/BinanceOracle_Implementation.json +96 -23
- package/deployments/bsctestnet/BinanceOracle_Proxy.json +28 -28
- package/deployments/bsctestnet/BoundValidator.json +65 -39
- package/deployments/bsctestnet/BoundValidator_Implementation.json +113 -35
- package/deployments/bsctestnet/BoundValidator_Proxy.json +37 -37
- package/deployments/bsctestnet/ChainlinkOracle.json +64 -38
- package/deployments/bsctestnet/ChainlinkOracle_Implementation.json +122 -41
- package/deployments/bsctestnet/ChainlinkOracle_Proxy.json +37 -37
- package/deployments/bsctestnet/DefaultProxyAdmin.json +15 -15
- package/deployments/bsctestnet/PythOracle.json +71 -45
- package/deployments/bsctestnet/PythOracle_Implementation.json +128 -44
- package/deployments/bsctestnet/PythOracle_Proxy.json +44 -44
- package/deployments/bsctestnet/ResilientOracle.json +67 -54
- package/deployments/bsctestnet/ResilientOracle_Implementation.json +161 -63
- package/deployments/bsctestnet/ResilientOracle_Proxy.json +39 -39
- package/deployments/bsctestnet/TwapOracle.json +74 -71
- package/deployments/bsctestnet/TwapOracle_Implementation.json +163 -93
- package/deployments/bsctestnet/TwapOracle_Proxy.json +37 -41
- package/deployments/bsctestnet/solcInputs/6153c675ce838eebb6442d63350712be.json +144 -0
- package/package.json +4 -2
- package/deployments/bsctestnet/solcInputs/09bc2981019c6dcce653b90bac585fe0.json +0 -81
- package/deployments/bsctestnet/solcInputs/5dedb37ab8105f1f71e53a3f865859c5.json +0 -57
- package/deployments/bsctestnet/solcInputs/bb71c6049f6b7b21a6581f40daf802bc.json +0 -138
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"f6af69795174616b8b4a6373f9f1c538","_format":"hh-sol-build-info-1","solcVersion":"0.8.13","solcLongVersion":"0.8.13+commit.abaa5c0e","input":{"language":"Solidity","sources":{"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n function __Ownable_init() internal onlyInitializing {\n __Ownable_init_unchained();\n }\n\n function __Ownable_init_unchained() internal onlyInitializing {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized < type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n"},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n"},"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n"},"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n"},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n}\n"},"contracts/interfaces/OracleInterface.sol":{"content":"// SPDX-License-Identifier: BSD-3-Clause\npragma solidity 0.8.13;\n\ninterface OracleInterface {\n function getUnderlyingPrice(address vToken) external view returns (uint256);\n}\n\ninterface ResilientOracleInterface is OracleInterface {\n function updatePrice(address vToken) external;\n}\n\ninterface TwapInterface is OracleInterface {\n function updateTwap(address vToken) external returns (uint256);\n}\n\ninterface BoundValidatorInterface {\n function validatePriceWithAnchorPrice(\n address vToken,\n uint256 reporterPrice,\n uint256 anchorPrice\n ) external view returns (bool);\n}\n"},"contracts/interfaces/VBep20Interface.sol":{"content":"// SPDX-License-Identifier: BSD-3-Clause\npragma solidity 0.8.13;\n\nimport \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\ninterface VBep20Interface is IERC20Metadata {\n /**\n * @notice Underlying asset for this VToken\n */\n function underlying() external view returns (address);\n}\n"},"contracts/libraries/PancakeLibrary.sol":{"content":"// SPDX-License-Identifier: BSD-3-Clause\npragma solidity 0.8.13;\n\ninterface IPancakePair {\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n\n function price0CumulativeLast() external view returns (uint256);\n\n function price1CumulativeLast() external view returns (uint256);\n}\n\nlibrary FixedPoint {\n // range: [0, 2**112 - 1]\n // resolution: 1 / 2**112\n struct uq112x112 {\n uint224 _x;\n }\n\n // returns a uq112x112 which represents the ratio of the numerator to the denominator\n // equivalent to encode(numerator).div(denominator)\n function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {\n require(denominator > 0, \"FixedPoint: DIV_BY_ZERO\");\n return uq112x112((uint224(numerator) << 112) / denominator);\n }\n\n // decode a uq112x112 into a uint with 18 decimals of precision\n function decode112with18(uq112x112 memory self) internal pure returns (uint256) {\n // we only have 256 - 224 = 32 bits to spare, so scaling up by ~60 bits is dangerous\n // instead, get close to:\n // (x * 1e18) >> 112\n // without risk of overflowing, e.g.:\n // (x) / 2 ** (112 - lg(1e18))\n return uint256(self._x) / 5192296858534827;\n }\n}\n\n// library with helper methods for oracles that are concerned with computing average prices\nlibrary PancakeOracleLibrary {\n using FixedPoint for *;\n\n // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]\n function currentBlockTimestamp() internal view returns (uint32) {\n return uint32(block.timestamp % 2 ** 32);\n }\n\n // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.\n function currentCumulativePrices(\n address pair\n ) internal view returns (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) {\n blockTimestamp = currentBlockTimestamp();\n price0Cumulative = IPancakePair(pair).price0CumulativeLast();\n price1Cumulative = IPancakePair(pair).price1CumulativeLast();\n\n // if time has elapsed since the last update on the pair, mock the accumulated price values\n (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(pair).getReserves();\n if (blockTimestampLast != blockTimestamp) {\n unchecked {\n // subtraction overflow is desired\n uint32 timeElapsed = blockTimestamp - blockTimestampLast;\n // addition overflow is desired\n // counterfactual\n price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;\n // counterfactual\n price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;\n }\n }\n }\n}\n"},"contracts/oracles/TwapOracle.sol":{"content":"// SPDX-License-Identifier: BSD-3-Clause\npragma solidity 0.8.13;\n\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\nimport \"../libraries/PancakeLibrary.sol\";\nimport \"../interfaces/OracleInterface.sol\";\nimport \"../interfaces/VBep20Interface.sol\";\n\nstruct Observation {\n uint256 timestamp;\n uint256 acc;\n}\n\nstruct TokenConfig {\n /// @notice Asset address, which can't be zero address and can be used for existance check\n address asset;\n /// @notice Decimals of underlying asset\n uint256 baseUnit;\n /// @notice The address of Pancake pair\n address pancakePool;\n /// @notice Whether the token is paired with WBNB\n bool isBnbBased;\n /// @notice A flag identifies whether the Pancake pair is reversed\n /// e.g. XVS-WBNB is not reversed, while WBNB-XVS is.\n bool isReversedPool;\n /// @notice The minimum window in seconds required between TWAP updates\n uint256 anchorPeriod;\n}\n\ncontract TwapOracle is OwnableUpgradeable, TwapInterface {\n using FixedPoint for *;\n\n /// @notice WBNB address\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address public immutable WBNB;\n\n /// @notice vBNB address\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address public immutable vBnb;\n\n /// @notice the base unit of WBNB and BUSD, which are the paired tokens for all assets\n uint256 public constant bnbBaseUnit = 1e18;\n uint256 public constant busdBaseUnit = 1e18;\n\n uint256 public constant expScale = 1e18;\n\n /// @notice Configs by token\n mapping(address => TokenConfig) public tokenConfigs;\n\n /// @notice Stored price by token\n mapping(address => uint256) public prices;\n\n /// @notice Keeps a record of token observations mapped by address, updated on every updateTwap invocation.\n mapping(address => Observation[]) public observations;\n\n /// @notice Observation array index which probably falls in current anchor period mapped by asset address\n mapping(address => uint256) public windowStart;\n\n /// @notice Emit this event when TWAP window is updated\n event TwapWindowUpdated(\n address indexed asset,\n uint256 oldTimestamp,\n uint256 oldAcc,\n uint256 newTimestamp,\n uint256 newAcc\n );\n\n /// @notice Emit this event when TWAP price is updated\n event AnchorPriceUpdated(address indexed asset, uint256 price, uint256 oldTimestamp, uint256 newTimestamp);\n\n /// @notice Emit this event when new token configs are added\n event TokenConfigAdded(address indexed asset, address indexed pancakePool, uint256 indexed anchorPeriod);\n\n modifier notNullAddress(address someone) {\n require(someone != address(0), \"can't be zero address\");\n _;\n }\n\n /// @notice Constructor for the implementation contract. Sets immutable variables.\n /// @param vBnbAddress The address of the VBNB\n /// @param wBnbAddress The address of the WBNB\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor(address vBnbAddress, address wBnbAddress) notNullAddress(vBnbAddress) notNullAddress(wBnbAddress) {\n vBnb = vBnbAddress;\n WBNB = wBnbAddress;\n _disableInitializers();\n }\n\n /**\n * @notice Adds multiple token configs at the same time\n * @param configs Config array\n * @custom:error Zero length error thrown, if length of the config array is 0\n */\n function setTokenConfigs(TokenConfig[] memory configs) external onlyOwner {\n require(configs.length > 0, \"length can't be 0\");\n uint256 numTokenConfigs = configs.length;\n for (uint256 i; i < numTokenConfigs; ++i) {\n setTokenConfig(configs[i]);\n }\n }\n\n /**\n * @notice Get the underlying TWAP price for the given vToken\n * @param vToken vToken address\n * @return price Underlying price in USD\n * @custom:error Missing error is thrown if the token config does not exist\n * @custom:error Range error is thrown if TWAP price is not greater than zero\n */\n function getUnderlyingPrice(address vToken) external view override returns (uint256) {\n // VBNB token doesn't have `underlying` method, vBNB's underlying token is wBNB\n address asset = address(vToken) == vBnb ? WBNB : VBep20Interface(vToken).underlying();\n require(tokenConfigs[asset].asset != address(0), \"asset not exist\");\n uint256 price = prices[asset];\n\n // if price is 0, it means the price hasn't been updated yet and it's meaningless, revert\n require(price > 0, \"TWAP price must be positive\");\n return (price * (10 ** (18 - IERC20Metadata(asset).decimals())));\n }\n\n /**\n * @notice Initializes the owner of the contract and sets the contracts required\n */\n function initialize() public initializer {\n __Ownable_init();\n }\n\n /**\n * @notice Adds a single token config\n * @param config token config struct\n * @custom:access Only Governance\n * @custom:error Range error is thrown if anchor period is not greater than zero\n * @custom:error Range error is thrown if base unit is not greater than zero\n * @custom:error Value error is thrown if base unit decimals is not the same as asset decimals\n * @custom:error NotNullAddress error is thrown if address of asset is null\n * @custom:error NotNullAddress error is thrown if PancakeSwap pool address is null\n * @custom:event Emits TokenConfigAdded event if new token config are added with\n * asset address, PancakePool address, anchor period address\n */\n function setTokenConfig(\n TokenConfig memory config\n ) public onlyOwner notNullAddress(config.asset) notNullAddress(config.pancakePool) {\n require(config.anchorPeriod > 0, \"anchor period must be positive\");\n require(config.baseUnit > 0, \"base unit must be positive\");\n require(\n config.baseUnit == 10 ** IERC20Metadata(config.asset).decimals(),\n \"base unit decimals must be same as asset decimals\"\n );\n\n uint256 cumulativePrice = currentCumulativePrice(config);\n\n // Initialize observation data\n observations[config.asset].push(Observation(block.timestamp, cumulativePrice));\n tokenConfigs[config.asset] = config;\n emit TokenConfigAdded(config.asset, config.pancakePool, config.anchorPeriod);\n }\n\n /**\n * @notice Updates the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\n * @return anchorPrice anchor price of the underlying asset of the vToken\n * @custom:error Missing error is thrown if token config does not exist\n */\n function updateTwap(address vToken) public returns (uint256) {\n // VBNB token doesn't have `underlying` method, vBNB's underlying token is wBNB\n address asset = address(vToken) == vBnb ? WBNB : VBep20Interface(vToken).underlying();\n require(tokenConfigs[asset].asset != address(0), \"asset not exist\");\n // Update & fetch WBNB price first, so we can calculate the price of WBNB paired token\n if (asset != WBNB && tokenConfigs[asset].isBnbBased) {\n require(tokenConfigs[WBNB].asset != address(0), \"WBNB not exist\");\n _updateTwapInternal(tokenConfigs[WBNB]);\n }\n return _updateTwapInternal(tokenConfigs[asset]);\n }\n\n /**\n * @notice Fetches the current token/WBNB and token/BUSD price accumulator from PancakeSwap.\n * @return cumulative price of target token regardless of pair order\n */\n function currentCumulativePrice(TokenConfig memory config) public view returns (uint256) {\n (uint256 price0, uint256 price1, ) = PancakeOracleLibrary.currentCumulativePrices(config.pancakePool);\n if (config.isReversedPool) {\n return price1;\n } else {\n return price0;\n }\n }\n\n /**\n * @notice Fetches the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\n * @return price Underlying price in USD, with 18 decimals\n * @custom:error Timing error is thrown if current time is not greater than old observation timestamp\n * @custom:error Zero price error is thrown if token is BNB based and price is zero\n * @custom:error Zero price error is thrown if fetched anchorPriceMantissa is zero\n * @custom:event Emits AnchorPriceUpdated event on successful update of observation with assset address,\n * AnchorPrice, old observation timestamp and current timestamp\n */\n function _updateTwapInternal(TokenConfig memory config) internal virtual returns (uint256) {\n // pokeWindowValues already handled reversed pool cases,\n // priceAverage will always be Token/BNB or Token/BUSD *twap** price.\n (uint256 nowCumulativePrice, uint256 oldCumulativePrice, uint256 oldTimestamp) = pokeWindowValues(config);\n\n // This should be impossible, but better safe than sorry\n require(block.timestamp > oldTimestamp, \"now must come after before\");\n uint256 timeElapsed = block.timestamp - oldTimestamp;\n\n // Calculate Pancakge *twap**\n FixedPoint.uq112x112 memory priceAverage = FixedPoint.uq112x112(\n uint224((nowCumulativePrice - oldCumulativePrice) / timeElapsed)\n );\n // *twap** price with 1e18 decimal mantissa\n uint256 priceAverageMantissa = priceAverage.decode112with18();\n\n // To cancel the decimals in cumulative price, we need to mulitply the average price with\n // tokenBaseUnit / (wbnbBaseUnit or busdBaseUnit, which is 1e18)\n uint256 pairedTokenBaseUnit = config.isBnbBased ? bnbBaseUnit : busdBaseUnit;\n uint256 anchorPriceMantissa = (priceAverageMantissa * config.baseUnit) / pairedTokenBaseUnit;\n\n // if this token is paired with BNB, convert its price to USD\n if (config.isBnbBased) {\n uint256 bnbPrice = prices[WBNB];\n require(bnbPrice != 0, \"bnb price is invalid\");\n anchorPriceMantissa = (anchorPriceMantissa * bnbPrice) / bnbBaseUnit;\n }\n\n require(anchorPriceMantissa != 0, \"twap price cannot be 0\");\n\n emit AnchorPriceUpdated(config.asset, anchorPriceMantissa, oldTimestamp, block.timestamp);\n\n // save anchor price, which is 1e18 decimals\n prices[config.asset] = anchorPriceMantissa;\n\n return anchorPriceMantissa;\n }\n\n /**\n * @notice Appends current observation and pick an observation with a timestamp equal\n * or just greater than the window start timestamp. If one is not available,\n * then pick the last availableobservation. The window start index is updated in both the cases.\n * Only the current observation is saved, prior observations are deleted during this operation.\n * @return Tuple of cumulative price, old observation and timestamp\n * @custom:event Emits TwapWindowUpdated on successful calculation of cumulative price with asset address,\n * new observation timestamp, current timestamp, new observation price and cumulative price\n */\n function pokeWindowValues(\n TokenConfig memory config\n ) internal returns (uint256, uint256 startCumulativePrice, uint256 startCumulativeTimestamp) {\n uint256 cumulativePrice = currentCumulativePrice(config);\n uint256 currentTimestamp = block.timestamp;\n uint256 windowStartTimestamp = currentTimestamp - config.anchorPeriod;\n Observation[] memory storedObservations = observations[config.asset];\n\n uint256 storedObservationsLength = storedObservations.length;\n for (\n uint256 windowStartIndex = windowStart[config.asset];\n windowStartIndex < storedObservationsLength;\n ++windowStartIndex\n ) {\n if (\n (storedObservations[windowStartIndex].timestamp >= windowStartTimestamp) ||\n (windowStartIndex == storedObservationsLength - 1)\n ) {\n startCumulativePrice = storedObservations[windowStartIndex].acc;\n startCumulativeTimestamp = storedObservations[windowStartIndex].timestamp;\n windowStart[config.asset] = windowStartIndex;\n break;\n } else {\n delete observations[config.asset][windowStartIndex];\n }\n }\n\n observations[config.asset].push(Observation(currentTimestamp, cumulativePrice));\n emit TwapWindowUpdated(\n config.asset,\n startCumulativeTimestamp,\n startCumulativePrice,\n block.timestamp,\n cumulativePrice\n );\n return (cumulativePrice, startCumulativePrice, startCumulativeTimestamp);\n }\n}\n"}},"settings":{"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"*":["storageLayout","abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","devdoc","userdoc","evm.gasEstimates"],"":["ast"]}},"metadata":{"useLiteralContent":true}}},"output":{"sources":{"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","exportedSymbols":{"AddressUpgradeable":[584],"ContextUpgradeable":[626],"Initializable":[300],"OwnableUpgradeable":[131]},"id":132,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity","^","0.8",".0"],"nodeType":"PragmaDirective","src":"102:23:0"},{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","file":"../utils/ContextUpgradeable.sol","id":2,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":132,"sourceUnit":627,"src":"127:41:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","file":"../proxy/utils/Initializable.sol","id":3,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":132,"sourceUnit":301,"src":"169:42:0","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":5,"name":"Initializable","nodeType":"IdentifierPath","referencedDeclaration":300,"src":"748:13:0"},"id":6,"nodeType":"InheritanceSpecifier","src":"748:13:0"},{"baseName":{"id":7,"name":"ContextUpgradeable","nodeType":"IdentifierPath","referencedDeclaration":626,"src":"763:18:0"},"id":8,"nodeType":"InheritanceSpecifier","src":"763:18:0"}],"canonicalName":"OwnableUpgradeable","contractDependencies":[],"contractKind":"contract","documentation":{"id":4,"nodeType":"StructuredDocumentation","src":"213:494:0","text":" @dev Contract module which provides a basic access control mechanism, where\n there is an account (an owner) that can be granted exclusive access to\n specific functions.\n By default, the owner account will be the one that deploys the contract. This\n can later be changed with {transferOwnership}.\n This module is used through inheritance. It will make available the modifier\n `onlyOwner`, which can be applied to your functions to restrict their use to\n the owner."},"fullyImplemented":true,"id":131,"linearizedBaseContracts":[131,626,300],"name":"OwnableUpgradeable","nameLocation":"726:18:0","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":10,"mutability":"mutable","name":"_owner","nameLocation":"804:6:0","nodeType":"VariableDeclaration","scope":131,"src":"788:22:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":9,"name":"address","nodeType":"ElementaryTypeName","src":"788:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"private"},{"anonymous":false,"eventSelector":"8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","id":16,"name":"OwnershipTransferred","nameLocation":"823:20:0","nodeType":"EventDefinition","parameters":{"id":15,"nodeType":"ParameterList","parameters":[{"constant":false,"id":12,"indexed":true,"mutability":"mutable","name":"previousOwner","nameLocation":"860:13:0","nodeType":"VariableDeclaration","scope":16,"src":"844:29:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":11,"name":"address","nodeType":"ElementaryTypeName","src":"844:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":14,"indexed":true,"mutability":"mutable","name":"newOwner","nameLocation":"891:8:0","nodeType":"VariableDeclaration","scope":16,"src":"875:24:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":13,"name":"address","nodeType":"ElementaryTypeName","src":"875:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"843:57:0"},"src":"817:84:0"},{"body":{"id":25,"nodeType":"Block","src":"1055:43:0","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":22,"name":"__Ownable_init_unchained","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":37,"src":"1065:24:0","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$__$returns$__$","typeString":"function ()"}},"id":23,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1065:26:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":24,"nodeType":"ExpressionStatement","src":"1065:26:0"}]},"documentation":{"id":17,"nodeType":"StructuredDocumentation","src":"907:91:0","text":" @dev Initializes the contract setting the deployer as the initial owner."},"id":26,"implemented":true,"kind":"function","modifiers":[{"id":20,"kind":"modifierInvocation","modifierName":{"id":19,"name":"onlyInitializing","nodeType":"IdentifierPath","referencedDeclaration":245,"src":"1038:16:0"},"nodeType":"ModifierInvocation","src":"1038:16:0"}],"name":"__Ownable_init","nameLocation":"1012:14:0","nodeType":"FunctionDefinition","parameters":{"id":18,"nodeType":"ParameterList","parameters":[],"src":"1026:2:0"},"returnParameters":{"id":21,"nodeType":"ParameterList","parameters":[],"src":"1055:0:0"},"scope":131,"src":"1003:95:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":36,"nodeType":"Block","src":"1166:49:0","statements":[{"expression":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":32,"name":"_msgSender","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":611,"src":"1195:10:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":33,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1195:12:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":31,"name":"_transferOwnership","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":125,"src":"1176:18:0","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":34,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1176:32:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":35,"nodeType":"ExpressionStatement","src":"1176:32:0"}]},"id":37,"implemented":true,"kind":"function","modifiers":[{"id":29,"kind":"modifierInvocation","modifierName":{"id":28,"name":"onlyInitializing","nodeType":"IdentifierPath","referencedDeclaration":245,"src":"1149:16:0"},"nodeType":"ModifierInvocation","src":"1149:16:0"}],"name":"__Ownable_init_unchained","nameLocation":"1113:24:0","nodeType":"FunctionDefinition","parameters":{"id":27,"nodeType":"ParameterList","parameters":[],"src":"1137:2:0"},"returnParameters":{"id":30,"nodeType":"ParameterList","parameters":[],"src":"1166:0:0"},"scope":131,"src":"1104:111:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":44,"nodeType":"Block","src":"1324:41:0","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":40,"name":"_checkOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":68,"src":"1334:11:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":41,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1334:13:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":42,"nodeType":"ExpressionStatement","src":"1334:13:0"},{"id":43,"nodeType":"PlaceholderStatement","src":"1357:1:0"}]},"documentation":{"id":38,"nodeType":"StructuredDocumentation","src":"1221:77:0","text":" @dev Throws if called by any account other than the owner."},"id":45,"name":"onlyOwner","nameLocation":"1312:9:0","nodeType":"ModifierDefinition","parameters":{"id":39,"nodeType":"ParameterList","parameters":[],"src":"1321:2:0"},"src":"1303:62:0","virtual":false,"visibility":"internal"},{"body":{"id":53,"nodeType":"Block","src":"1496:30:0","statements":[{"expression":{"id":51,"name":"_owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":10,"src":"1513:6:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":50,"id":52,"nodeType":"Return","src":"1506:13:0"}]},"documentation":{"id":46,"nodeType":"StructuredDocumentation","src":"1371:65:0","text":" @dev Returns the address of the current owner."},"functionSelector":"8da5cb5b","id":54,"implemented":true,"kind":"function","modifiers":[],"name":"owner","nameLocation":"1450:5:0","nodeType":"FunctionDefinition","parameters":{"id":47,"nodeType":"ParameterList","parameters":[],"src":"1455:2:0"},"returnParameters":{"id":50,"nodeType":"ParameterList","parameters":[{"constant":false,"id":49,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":54,"src":"1487:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":48,"name":"address","nodeType":"ElementaryTypeName","src":"1487:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1486:9:0"},"scope":131,"src":"1441:85:0","stateMutability":"view","virtual":true,"visibility":"public"},{"body":{"id":67,"nodeType":"Block","src":"1644:85:0","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":63,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[],"expression":{"argumentTypes":[],"id":59,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":54,"src":"1662:5:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":60,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1662:7:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"arguments":[],"expression":{"argumentTypes":[],"id":61,"name":"_msgSender","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":611,"src":"1673:10:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":62,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1673:12:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1662:23:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572","id":64,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1687:34:0","typeDescriptions":{"typeIdentifier":"t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe","typeString":"literal_string \"Ownable: caller is not the owner\""},"value":"Ownable: caller is not the owner"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe","typeString":"literal_string \"Ownable: caller is not the owner\""}],"id":58,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1654:7:0","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":65,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1654:68:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":66,"nodeType":"ExpressionStatement","src":"1654:68:0"}]},"documentation":{"id":55,"nodeType":"StructuredDocumentation","src":"1532:62:0","text":" @dev Throws if the sender is not the owner."},"id":68,"implemented":true,"kind":"function","modifiers":[],"name":"_checkOwner","nameLocation":"1608:11:0","nodeType":"FunctionDefinition","parameters":{"id":56,"nodeType":"ParameterList","parameters":[],"src":"1619:2:0"},"returnParameters":{"id":57,"nodeType":"ParameterList","parameters":[],"src":"1644:0:0"},"scope":131,"src":"1599:130:0","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":81,"nodeType":"Block","src":"2125:47:0","statements":[{"expression":{"arguments":[{"arguments":[{"hexValue":"30","id":77,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2162:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":76,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2154:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":75,"name":"address","nodeType":"ElementaryTypeName","src":"2154:7:0","typeDescriptions":{}}},"id":78,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2154:10:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":74,"name":"_transferOwnership","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":125,"src":"2135:18:0","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":79,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2135:30:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":80,"nodeType":"ExpressionStatement","src":"2135:30:0"}]},"documentation":{"id":69,"nodeType":"StructuredDocumentation","src":"1735:331:0","text":" @dev Leaves the contract without owner. It will not be possible to call\n `onlyOwner` functions anymore. Can only be called by the current owner.\n NOTE: Renouncing ownership will leave the contract without an owner,\n thereby removing any functionality that is only available to the owner."},"functionSelector":"715018a6","id":82,"implemented":true,"kind":"function","modifiers":[{"id":72,"kind":"modifierInvocation","modifierName":{"id":71,"name":"onlyOwner","nodeType":"IdentifierPath","referencedDeclaration":45,"src":"2115:9:0"},"nodeType":"ModifierInvocation","src":"2115:9:0"}],"name":"renounceOwnership","nameLocation":"2080:17:0","nodeType":"FunctionDefinition","parameters":{"id":70,"nodeType":"ParameterList","parameters":[],"src":"2097:2:0"},"returnParameters":{"id":73,"nodeType":"ParameterList","parameters":[],"src":"2125:0:0"},"scope":131,"src":"2071:101:0","stateMutability":"nonpayable","virtual":true,"visibility":"public"},{"body":{"id":104,"nodeType":"Block","src":"2391:128:0","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":96,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":91,"name":"newOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":85,"src":"2409:8:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":94,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2429:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":93,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2421:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":92,"name":"address","nodeType":"ElementaryTypeName","src":"2421:7:0","typeDescriptions":{}}},"id":95,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2421:10:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"2409:22:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373","id":97,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2433:40:0","typeDescriptions":{"typeIdentifier":"t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe","typeString":"literal_string \"Ownable: new owner is the zero address\""},"value":"Ownable: new owner is the zero address"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe","typeString":"literal_string \"Ownable: new owner is the zero address\""}],"id":90,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2401:7:0","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":98,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2401:73:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":99,"nodeType":"ExpressionStatement","src":"2401:73:0"},{"expression":{"arguments":[{"id":101,"name":"newOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":85,"src":"2503:8:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":100,"name":"_transferOwnership","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":125,"src":"2484:18:0","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":102,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2484:28:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":103,"nodeType":"ExpressionStatement","src":"2484:28:0"}]},"documentation":{"id":83,"nodeType":"StructuredDocumentation","src":"2178:138:0","text":" @dev Transfers ownership of the contract to a new account (`newOwner`).\n Can only be called by the current owner."},"functionSelector":"f2fde38b","id":105,"implemented":true,"kind":"function","modifiers":[{"id":88,"kind":"modifierInvocation","modifierName":{"id":87,"name":"onlyOwner","nodeType":"IdentifierPath","referencedDeclaration":45,"src":"2381:9:0"},"nodeType":"ModifierInvocation","src":"2381:9:0"}],"name":"transferOwnership","nameLocation":"2330:17:0","nodeType":"FunctionDefinition","parameters":{"id":86,"nodeType":"ParameterList","parameters":[{"constant":false,"id":85,"mutability":"mutable","name":"newOwner","nameLocation":"2356:8:0","nodeType":"VariableDeclaration","scope":105,"src":"2348:16:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":84,"name":"address","nodeType":"ElementaryTypeName","src":"2348:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2347:18:0"},"returnParameters":{"id":89,"nodeType":"ParameterList","parameters":[],"src":"2391:0:0"},"scope":131,"src":"2321:198:0","stateMutability":"nonpayable","virtual":true,"visibility":"public"},{"body":{"id":124,"nodeType":"Block","src":"2736:124:0","statements":[{"assignments":[112],"declarations":[{"constant":false,"id":112,"mutability":"mutable","name":"oldOwner","nameLocation":"2754:8:0","nodeType":"VariableDeclaration","scope":124,"src":"2746:16:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":111,"name":"address","nodeType":"ElementaryTypeName","src":"2746:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"id":114,"initialValue":{"id":113,"name":"_owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":10,"src":"2765:6:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"VariableDeclarationStatement","src":"2746:25:0"},{"expression":{"id":117,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":115,"name":"_owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":10,"src":"2781:6:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":116,"name":"newOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":108,"src":"2790:8:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"2781:17:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":118,"nodeType":"ExpressionStatement","src":"2781:17:0"},{"eventCall":{"arguments":[{"id":120,"name":"oldOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":112,"src":"2834:8:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":121,"name":"newOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":108,"src":"2844:8:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"id":119,"name":"OwnershipTransferred","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":16,"src":"2813:20:0","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$_t_address_$returns$__$","typeString":"function (address,address)"}},"id":122,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2813:40:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":123,"nodeType":"EmitStatement","src":"2808:45:0"}]},"documentation":{"id":106,"nodeType":"StructuredDocumentation","src":"2525:143:0","text":" @dev Transfers ownership of the contract to a new account (`newOwner`).\n Internal function without access restriction."},"id":125,"implemented":true,"kind":"function","modifiers":[],"name":"_transferOwnership","nameLocation":"2682:18:0","nodeType":"FunctionDefinition","parameters":{"id":109,"nodeType":"ParameterList","parameters":[{"constant":false,"id":108,"mutability":"mutable","name":"newOwner","nameLocation":"2709:8:0","nodeType":"VariableDeclaration","scope":125,"src":"2701:16:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":107,"name":"address","nodeType":"ElementaryTypeName","src":"2701:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2700:18:0"},"returnParameters":{"id":110,"nodeType":"ParameterList","parameters":[],"src":"2736:0:0"},"scope":131,"src":"2673:187:0","stateMutability":"nonpayable","virtual":true,"visibility":"internal"},{"constant":false,"documentation":{"id":126,"nodeType":"StructuredDocumentation","src":"2866:254:0","text":" @dev This empty reserved space is put in place to allow future versions to add new\n variables without shifting down storage in the inheritance chain.\n See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps"},"id":130,"mutability":"mutable","name":"__gap","nameLocation":"3145:5:0","nodeType":"VariableDeclaration","scope":131,"src":"3125:25:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_array$_t_uint256_$49_storage","typeString":"uint256[49]"},"typeName":{"baseType":{"id":127,"name":"uint256","nodeType":"ElementaryTypeName","src":"3125:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":129,"length":{"hexValue":"3439","id":128,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3133:2:0","typeDescriptions":{"typeIdentifier":"t_rational_49_by_1","typeString":"int_const 49"},"value":"49"},"nodeType":"ArrayTypeName","src":"3125:11:0","typeDescriptions":{"typeIdentifier":"t_array$_t_uint256_$49_storage_ptr","typeString":"uint256[49]"}},"visibility":"private"}],"scope":132,"src":"708:2445:0","usedErrors":[]}],"src":"102:3052:0"},"id":0},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","exportedSymbols":{"AddressUpgradeable":[584],"Initializable":[300]},"id":301,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":133,"literals":["solidity","^","0.8",".2"],"nodeType":"PragmaDirective","src":"113:23:1"},{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","file":"../../utils/AddressUpgradeable.sol","id":134,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":301,"sourceUnit":585,"src":"138:44:1","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[],"canonicalName":"Initializable","contractDependencies":[],"contractKind":"contract","documentation":{"id":135,"nodeType":"StructuredDocumentation","src":"184:2198:1","text":" @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n case an upgrade adds a module that needs to be initialized.\n For example:\n [.hljs-theme-light.nopadding]\n ```\n contract MyToken is ERC20Upgradeable {\n function initialize() initializer public {\n __ERC20_init(\"MyToken\", \"MTK\");\n }\n }\n contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n function initializeV2() reinitializer(2) public {\n __ERC20Permit_init(\"MyToken\");\n }\n }\n ```\n TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n [CAUTION]\n ====\n Avoid leaving a contract uninitialized.\n An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n [.hljs-theme-light.nopadding]\n ```\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n ```\n ===="},"fullyImplemented":true,"id":300,"linearizedBaseContracts":[300],"name":"Initializable","nameLocation":"2401:13:1","nodeType":"ContractDefinition","nodes":[{"constant":false,"documentation":{"id":136,"nodeType":"StructuredDocumentation","src":"2421:109:1","text":" @dev Indicates that the contract has been initialized.\n @custom:oz-retyped-from bool"},"id":138,"mutability":"mutable","name":"_initialized","nameLocation":"2549:12:1","nodeType":"VariableDeclaration","scope":300,"src":"2535:26:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":137,"name":"uint8","nodeType":"ElementaryTypeName","src":"2535:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"private"},{"constant":false,"documentation":{"id":139,"nodeType":"StructuredDocumentation","src":"2568:91:1","text":" @dev Indicates that the contract is in the process of being initialized."},"id":141,"mutability":"mutable","name":"_initializing","nameLocation":"2677:13:1","nodeType":"VariableDeclaration","scope":300,"src":"2664:26:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":140,"name":"bool","nodeType":"ElementaryTypeName","src":"2664:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"private"},{"anonymous":false,"documentation":{"id":142,"nodeType":"StructuredDocumentation","src":"2697:90:1","text":" @dev Triggered when the contract has been initialized or reinitialized."},"eventSelector":"7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498","id":146,"name":"Initialized","nameLocation":"2798:11:1","nodeType":"EventDefinition","parameters":{"id":145,"nodeType":"ParameterList","parameters":[{"constant":false,"id":144,"indexed":false,"mutability":"mutable","name":"version","nameLocation":"2816:7:1","nodeType":"VariableDeclaration","scope":146,"src":"2810:13:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":143,"name":"uint8","nodeType":"ElementaryTypeName","src":"2810:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"2809:15:1"},"src":"2792:33:1"},{"body":{"id":201,"nodeType":"Block","src":"3258:483:1","statements":[{"assignments":[150],"declarations":[{"constant":false,"id":150,"mutability":"mutable","name":"isTopLevelCall","nameLocation":"3273:14:1","nodeType":"VariableDeclaration","scope":201,"src":"3268:19:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":149,"name":"bool","nodeType":"ElementaryTypeName","src":"3268:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":153,"initialValue":{"id":152,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3290:14:1","subExpression":{"id":151,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"3291:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"VariableDeclarationStatement","src":"3268:36:1"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":174,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":159,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":155,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":150,"src":"3336:14:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":158,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":156,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"3354:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"hexValue":"31","id":157,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3369:1:1","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3354:16:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3336:34:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":160,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3335:36:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":172,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":168,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3376:45:1","subExpression":{"arguments":[{"arguments":[{"id":165,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"3415:4:1","typeDescriptions":{"typeIdentifier":"t_contract$_Initializable_$300","typeString":"contract Initializable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_Initializable_$300","typeString":"contract Initializable"}],"id":164,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3407:7:1","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":163,"name":"address","nodeType":"ElementaryTypeName","src":"3407:7:1","typeDescriptions":{}}},"id":166,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3407:13:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"id":161,"name":"AddressUpgradeable","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":584,"src":"3377:18:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_AddressUpgradeable_$584_$","typeString":"type(library AddressUpgradeable)"}},"id":162,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"isContract","nodeType":"MemberAccess","referencedDeclaration":318,"src":"3377:29:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$returns$_t_bool_$","typeString":"function (address) view returns (bool)"}},"id":167,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3377:44:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":171,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":169,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"3425:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"31","id":170,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3441:1:1","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3425:17:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3376:66:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":173,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3375:68:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3335:108:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564","id":175,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3457:48:1","typeDescriptions":{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""},"value":"Initializable: contract is already initialized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""}],"id":154,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"3314:7:1","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":176,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3314:201:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":177,"nodeType":"ExpressionStatement","src":"3314:201:1"},{"expression":{"id":180,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":178,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"3525:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"31","id":179,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3540:1:1","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3525:16:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":181,"nodeType":"ExpressionStatement","src":"3525:16:1"},{"condition":{"id":182,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":150,"src":"3555:14:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":188,"nodeType":"IfStatement","src":"3551:65:1","trueBody":{"id":187,"nodeType":"Block","src":"3571:45:1","statements":[{"expression":{"id":185,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":183,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"3585:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":184,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3601:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"3585:20:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":186,"nodeType":"ExpressionStatement","src":"3585:20:1"}]}},{"id":189,"nodeType":"PlaceholderStatement","src":"3625:1:1"},{"condition":{"id":190,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":150,"src":"3640:14:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":200,"nodeType":"IfStatement","src":"3636:99:1","trueBody":{"id":199,"nodeType":"Block","src":"3656:79:1","statements":[{"expression":{"id":193,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":191,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"3670:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":192,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3686:5:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"3670:21:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":194,"nodeType":"ExpressionStatement","src":"3670:21:1"},{"eventCall":{"arguments":[{"hexValue":"31","id":196,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3722:1:1","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"}],"id":195,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":146,"src":"3710:11:1","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":197,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3710:14:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":198,"nodeType":"EmitStatement","src":"3705:19:1"}]}}]},"documentation":{"id":147,"nodeType":"StructuredDocumentation","src":"2831:399:1","text":" @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n `onlyInitializing` functions can be used to initialize parent contracts.\n Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n constructor.\n Emits an {Initialized} event."},"id":202,"name":"initializer","nameLocation":"3244:11:1","nodeType":"ModifierDefinition","parameters":{"id":148,"nodeType":"ParameterList","parameters":[],"src":"3255:2:1"},"src":"3235:506:1","virtual":false,"visibility":"internal"},{"body":{"id":234,"nodeType":"Block","src":"4852:255:1","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":213,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":209,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"4870:14:1","subExpression":{"id":208,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"4871:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":212,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":210,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"4888:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":211,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":205,"src":"4903:7:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4888:22:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4870:40:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564","id":214,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4912:48:1","typeDescriptions":{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""},"value":"Initializable: contract is already initialized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""}],"id":207,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4862:7:1","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":215,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4862:99:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":216,"nodeType":"ExpressionStatement","src":"4862:99:1"},{"expression":{"id":219,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":217,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"4971:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":218,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":205,"src":"4986:7:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4971:22:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":220,"nodeType":"ExpressionStatement","src":"4971:22:1"},{"expression":{"id":223,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":221,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"5003:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":222,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"5019:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"5003:20:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":224,"nodeType":"ExpressionStatement","src":"5003:20:1"},{"id":225,"nodeType":"PlaceholderStatement","src":"5033:1:1"},{"expression":{"id":228,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":226,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"5044:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":227,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"5060:5:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"5044:21:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":229,"nodeType":"ExpressionStatement","src":"5044:21:1"},{"eventCall":{"arguments":[{"id":231,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":205,"src":"5092:7:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":230,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":146,"src":"5080:11:1","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":232,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5080:20:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":233,"nodeType":"EmitStatement","src":"5075:25:1"}]},"documentation":{"id":203,"nodeType":"StructuredDocumentation","src":"3747:1062:1","text":" @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n used to initialize parent contracts.\n A reinitializer may be used after the original initialization step. This is essential to configure modules that\n are added through upgrades and that require initialization.\n When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n cannot be nested. If one is invoked in the context of another, execution will revert.\n Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n a contract, executing them in the right order is up to the developer or operator.\n WARNING: setting the version to 255 will prevent any future reinitialization.\n Emits an {Initialized} event."},"id":235,"name":"reinitializer","nameLocation":"4823:13:1","nodeType":"ModifierDefinition","parameters":{"id":206,"nodeType":"ParameterList","parameters":[{"constant":false,"id":205,"mutability":"mutable","name":"version","nameLocation":"4843:7:1","nodeType":"VariableDeclaration","scope":235,"src":"4837:13:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":204,"name":"uint8","nodeType":"ElementaryTypeName","src":"4837:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"4836:15:1"},"src":"4814:293:1","virtual":false,"visibility":"internal"},{"body":{"id":244,"nodeType":"Block","src":"5345:97:1","statements":[{"expression":{"arguments":[{"id":239,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"5363:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e7472616374206973206e6f7420696e697469616c697a696e67","id":240,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5378:45:1","typeDescriptions":{"typeIdentifier":"t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b","typeString":"literal_string \"Initializable: contract is not initializing\""},"value":"Initializable: contract is not initializing"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b","typeString":"literal_string \"Initializable: contract is not initializing\""}],"id":238,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5355:7:1","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":241,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5355:69:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":242,"nodeType":"ExpressionStatement","src":"5355:69:1"},{"id":243,"nodeType":"PlaceholderStatement","src":"5434:1:1"}]},"documentation":{"id":236,"nodeType":"StructuredDocumentation","src":"5113:199:1","text":" @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n {initializer} and {reinitializer} modifiers, directly or indirectly."},"id":245,"name":"onlyInitializing","nameLocation":"5326:16:1","nodeType":"ModifierDefinition","parameters":{"id":237,"nodeType":"ParameterList","parameters":[],"src":"5342:2:1"},"src":"5317:125:1","virtual":false,"visibility":"internal"},{"body":{"id":280,"nodeType":"Block","src":"5977:230:1","statements":[{"expression":{"arguments":[{"id":251,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"5995:14:1","subExpression":{"id":250,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"5996:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320696e697469616c697a696e67","id":252,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6011:41:1","typeDescriptions":{"typeIdentifier":"t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a","typeString":"literal_string \"Initializable: contract is initializing\""},"value":"Initializable: contract is initializing"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a","typeString":"literal_string \"Initializable: contract is initializing\""}],"id":249,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5987:7:1","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":253,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5987:66:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":254,"nodeType":"ExpressionStatement","src":"5987:66:1"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":261,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":255,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"6067:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"expression":{"arguments":[{"id":258,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6087:5:1","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":257,"name":"uint8","nodeType":"ElementaryTypeName","src":"6087:5:1","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":256,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6082:4:1","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":259,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6082:11:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":260,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberName":"max","nodeType":"MemberAccess","src":"6082:15:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"6067:30:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":279,"nodeType":"IfStatement","src":"6063:138:1","trueBody":{"id":278,"nodeType":"Block","src":"6099:102:1","statements":[{"expression":{"id":268,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":262,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"6113:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"arguments":[{"id":265,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6133:5:1","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":264,"name":"uint8","nodeType":"ElementaryTypeName","src":"6133:5:1","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":263,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6128:4:1","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":266,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6128:11:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":267,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberName":"max","nodeType":"MemberAccess","src":"6128:15:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"6113:30:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":269,"nodeType":"ExpressionStatement","src":"6113:30:1"},{"eventCall":{"arguments":[{"expression":{"arguments":[{"id":273,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6179:5:1","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":272,"name":"uint8","nodeType":"ElementaryTypeName","src":"6179:5:1","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":271,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6174:4:1","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":274,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6174:11:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":275,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberName":"max","nodeType":"MemberAccess","src":"6174:15:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":270,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":146,"src":"6162:11:1","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":276,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6162:28:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":277,"nodeType":"EmitStatement","src":"6157:33:1"}]}}]},"documentation":{"id":246,"nodeType":"StructuredDocumentation","src":"5448:475:1","text":" @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n through proxies.\n Emits an {Initialized} event the first time it is successfully executed."},"id":281,"implemented":true,"kind":"function","modifiers":[],"name":"_disableInitializers","nameLocation":"5937:20:1","nodeType":"FunctionDefinition","parameters":{"id":247,"nodeType":"ParameterList","parameters":[],"src":"5957:2:1"},"returnParameters":{"id":248,"nodeType":"ParameterList","parameters":[],"src":"5977:0:1"},"scope":300,"src":"5928:279:1","stateMutability":"nonpayable","virtual":true,"visibility":"internal"},{"body":{"id":289,"nodeType":"Block","src":"6381:36:1","statements":[{"expression":{"id":287,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":138,"src":"6398:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"functionReturnParameters":286,"id":288,"nodeType":"Return","src":"6391:19:1"}]},"documentation":{"id":282,"nodeType":"StructuredDocumentation","src":"6213:99:1","text":" @dev Returns the highest version that has been initialized. See {reinitializer}."},"id":290,"implemented":true,"kind":"function","modifiers":[],"name":"_getInitializedVersion","nameLocation":"6326:22:1","nodeType":"FunctionDefinition","parameters":{"id":283,"nodeType":"ParameterList","parameters":[],"src":"6348:2:1"},"returnParameters":{"id":286,"nodeType":"ParameterList","parameters":[{"constant":false,"id":285,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":290,"src":"6374:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":284,"name":"uint8","nodeType":"ElementaryTypeName","src":"6374:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"6373:7:1"},"scope":300,"src":"6317:100:1","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":298,"nodeType":"Block","src":"6589:37:1","statements":[{"expression":{"id":296,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":141,"src":"6606:13:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":295,"id":297,"nodeType":"Return","src":"6599:20:1"}]},"documentation":{"id":291,"nodeType":"StructuredDocumentation","src":"6423:105:1","text":" @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}."},"id":299,"implemented":true,"kind":"function","modifiers":[],"name":"_isInitializing","nameLocation":"6542:15:1","nodeType":"FunctionDefinition","parameters":{"id":292,"nodeType":"ParameterList","parameters":[],"src":"6557:2:1"},"returnParameters":{"id":295,"nodeType":"ParameterList","parameters":[{"constant":false,"id":294,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":299,"src":"6583:4:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":293,"name":"bool","nodeType":"ElementaryTypeName","src":"6583:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"6582:6:1"},"scope":300,"src":"6533:93:1","stateMutability":"view","virtual":false,"visibility":"internal"}],"scope":301,"src":"2383:4245:1","usedErrors":[]}],"src":"113:6516:1"},"id":1},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","exportedSymbols":{"AddressUpgradeable":[584]},"id":585,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":302,"literals":["solidity","^","0.8",".1"],"nodeType":"PragmaDirective","src":"101:23:2"},{"abstract":false,"baseContracts":[],"canonicalName":"AddressUpgradeable","contractDependencies":[],"contractKind":"library","documentation":{"id":303,"nodeType":"StructuredDocumentation","src":"126:67:2","text":" @dev Collection of functions related to the address type"},"fullyImplemented":true,"id":584,"linearizedBaseContracts":[584],"name":"AddressUpgradeable","nameLocation":"202:18:2","nodeType":"ContractDefinition","nodes":[{"body":{"id":317,"nodeType":"Block","src":"1252:254:2","statements":[{"expression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":315,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"expression":{"id":311,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":306,"src":"1476:7:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":312,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"code","nodeType":"MemberAccess","src":"1476:12:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":313,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"1476:19:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":314,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1498:1:2","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1476:23:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":310,"id":316,"nodeType":"Return","src":"1469:30:2"}]},"documentation":{"id":304,"nodeType":"StructuredDocumentation","src":"227:954:2","text":" @dev Returns true if `account` is a contract.\n [IMPORTANT]\n ====\n It is unsafe to assume that an address for which this function returns\n false is an externally-owned account (EOA) and not a contract.\n Among others, `isContract` will return false for the following\n types of addresses:\n - an externally-owned account\n - a contract in construction\n - an address where a contract will be created\n - an address where a contract lived, but was destroyed\n ====\n [IMPORTANT]\n ====\n You shouldn't rely on `isContract` to protect against flash loan attacks!\n Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n constructor.\n ===="},"id":318,"implemented":true,"kind":"function","modifiers":[],"name":"isContract","nameLocation":"1195:10:2","nodeType":"FunctionDefinition","parameters":{"id":307,"nodeType":"ParameterList","parameters":[{"constant":false,"id":306,"mutability":"mutable","name":"account","nameLocation":"1214:7:2","nodeType":"VariableDeclaration","scope":318,"src":"1206:15:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":305,"name":"address","nodeType":"ElementaryTypeName","src":"1206:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1205:17:2"},"returnParameters":{"id":310,"nodeType":"ParameterList","parameters":[{"constant":false,"id":309,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":318,"src":"1246:4:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":308,"name":"bool","nodeType":"ElementaryTypeName","src":"1246:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"1245:6:2"},"scope":584,"src":"1186:320:2","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":351,"nodeType":"Block","src":"2494:241:2","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":333,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"arguments":[{"id":329,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"2520:4:2","typeDescriptions":{"typeIdentifier":"t_contract$_AddressUpgradeable_$584","typeString":"library AddressUpgradeable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_AddressUpgradeable_$584","typeString":"library AddressUpgradeable"}],"id":328,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2512:7:2","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":327,"name":"address","nodeType":"ElementaryTypeName","src":"2512:7:2","typeDescriptions":{}}},"id":330,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2512:13:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":331,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"balance","nodeType":"MemberAccess","src":"2512:21:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":332,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":323,"src":"2537:6:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2512:31:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20696e73756666696369656e742062616c616e6365","id":334,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2545:31:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_5597a22abd0ef5332f8053862eb236db7590f17e2b93a53f63a103becfb561f9","typeString":"literal_string \"Address: insufficient balance\""},"value":"Address: insufficient balance"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_5597a22abd0ef5332f8053862eb236db7590f17e2b93a53f63a103becfb561f9","typeString":"literal_string \"Address: insufficient balance\""}],"id":326,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2504:7:2","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":335,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2504:73:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":336,"nodeType":"ExpressionStatement","src":"2504:73:2"},{"assignments":[338,null],"declarations":[{"constant":false,"id":338,"mutability":"mutable","name":"success","nameLocation":"2594:7:2","nodeType":"VariableDeclaration","scope":351,"src":"2589:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":337,"name":"bool","nodeType":"ElementaryTypeName","src":"2589:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},null],"id":345,"initialValue":{"arguments":[{"hexValue":"","id":343,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2637:2:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""},"value":""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"id":339,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":321,"src":"2607:9:2","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"id":340,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"call","nodeType":"MemberAccess","src":"2607:14:2","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":342,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"names":["value"],"nodeType":"FunctionCallOptions","options":[{"id":341,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":323,"src":"2629:6:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"src":"2607:29:2","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":344,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2607:33:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"2588:52:2"},{"expression":{"arguments":[{"id":347,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":338,"src":"2658:7:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564","id":348,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2667:60:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_51ddaa38748c0a1144620fb5bfe8edab31ea437571ad591a7734bbfd0429aeae","typeString":"literal_string \"Address: unable to send value, recipient may have reverted\""},"value":"Address: unable to send value, recipient may have reverted"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_51ddaa38748c0a1144620fb5bfe8edab31ea437571ad591a7734bbfd0429aeae","typeString":"literal_string \"Address: unable to send value, recipient may have reverted\""}],"id":346,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2650:7:2","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":349,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2650:78:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":350,"nodeType":"ExpressionStatement","src":"2650:78:2"}]},"documentation":{"id":319,"nodeType":"StructuredDocumentation","src":"1512:906:2","text":" @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n `recipient`, forwarding all available gas and reverting on errors.\n https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n of certain opcodes, possibly making contracts go over the 2300 gas limit\n imposed by `transfer`, making them unable to receive funds via\n `transfer`. {sendValue} removes this limitation.\n https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n IMPORTANT: because control is transferred to `recipient`, care must be\n taken to not create reentrancy vulnerabilities. Consider using\n {ReentrancyGuard} or the\n https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]."},"id":352,"implemented":true,"kind":"function","modifiers":[],"name":"sendValue","nameLocation":"2432:9:2","nodeType":"FunctionDefinition","parameters":{"id":324,"nodeType":"ParameterList","parameters":[{"constant":false,"id":321,"mutability":"mutable","name":"recipient","nameLocation":"2458:9:2","nodeType":"VariableDeclaration","scope":352,"src":"2442:25:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"typeName":{"id":320,"name":"address","nodeType":"ElementaryTypeName","src":"2442:15:2","stateMutability":"payable","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"visibility":"internal"},{"constant":false,"id":323,"mutability":"mutable","name":"amount","nameLocation":"2477:6:2","nodeType":"VariableDeclaration","scope":352,"src":"2469:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":322,"name":"uint256","nodeType":"ElementaryTypeName","src":"2469:7:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2441:43:2"},"returnParameters":{"id":325,"nodeType":"ParameterList","parameters":[],"src":"2494:0:2"},"scope":584,"src":"2423:312:2","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":369,"nodeType":"Block","src":"3566:96:2","statements":[{"expression":{"arguments":[{"id":363,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":355,"src":"3605:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":364,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":357,"src":"3613:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"30","id":365,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3619:1:2","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564","id":366,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3622:32:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_24d7ab5d382116e64324f19950ca9340b8af1ddeb09a8d026e0a3c6a01dcc9df","typeString":"literal_string \"Address: low-level call failed\""},"value":"Address: low-level call failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_stringliteral_24d7ab5d382116e64324f19950ca9340b8af1ddeb09a8d026e0a3c6a01dcc9df","typeString":"literal_string \"Address: low-level call failed\""}],"id":362,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[410,454],"referencedDeclaration":454,"src":"3583:21:2","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":367,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3583:72:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":361,"id":368,"nodeType":"Return","src":"3576:79:2"}]},"documentation":{"id":353,"nodeType":"StructuredDocumentation","src":"2741:731:2","text":" @dev Performs a Solidity function call using a low level `call`. A\n plain `call` is an unsafe replacement for a function call: use this\n function instead.\n If `target` reverts with a revert reason, it is bubbled up by this\n function (like regular Solidity function calls).\n Returns the raw returned data. To convert to the expected return value,\n use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n Requirements:\n - `target` must be a contract.\n - calling `target` with `data` must not revert.\n _Available since v3.1._"},"id":370,"implemented":true,"kind":"function","modifiers":[],"name":"functionCall","nameLocation":"3486:12:2","nodeType":"FunctionDefinition","parameters":{"id":358,"nodeType":"ParameterList","parameters":[{"constant":false,"id":355,"mutability":"mutable","name":"target","nameLocation":"3507:6:2","nodeType":"VariableDeclaration","scope":370,"src":"3499:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":354,"name":"address","nodeType":"ElementaryTypeName","src":"3499:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":357,"mutability":"mutable","name":"data","nameLocation":"3528:4:2","nodeType":"VariableDeclaration","scope":370,"src":"3515:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":356,"name":"bytes","nodeType":"ElementaryTypeName","src":"3515:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3498:35:2"},"returnParameters":{"id":361,"nodeType":"ParameterList","parameters":[{"constant":false,"id":360,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"3552:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":359,"name":"bytes","nodeType":"ElementaryTypeName","src":"3552:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3551:14:2"},"scope":584,"src":"3477:185:2","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":389,"nodeType":"Block","src":"4031:76:2","statements":[{"expression":{"arguments":[{"id":383,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":373,"src":"4070:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":384,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":375,"src":"4078:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"30","id":385,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4084:1:2","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"id":386,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":377,"src":"4087:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":382,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[410,454],"referencedDeclaration":454,"src":"4048:21:2","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":387,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4048:52:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":381,"id":388,"nodeType":"Return","src":"4041:59:2"}]},"documentation":{"id":371,"nodeType":"StructuredDocumentation","src":"3668:211:2","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n `errorMessage` as a fallback revert reason when `target` reverts.\n _Available since v3.1._"},"id":390,"implemented":true,"kind":"function","modifiers":[],"name":"functionCall","nameLocation":"3893:12:2","nodeType":"FunctionDefinition","parameters":{"id":378,"nodeType":"ParameterList","parameters":[{"constant":false,"id":373,"mutability":"mutable","name":"target","nameLocation":"3923:6:2","nodeType":"VariableDeclaration","scope":390,"src":"3915:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":372,"name":"address","nodeType":"ElementaryTypeName","src":"3915:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":375,"mutability":"mutable","name":"data","nameLocation":"3952:4:2","nodeType":"VariableDeclaration","scope":390,"src":"3939:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":374,"name":"bytes","nodeType":"ElementaryTypeName","src":"3939:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":377,"mutability":"mutable","name":"errorMessage","nameLocation":"3980:12:2","nodeType":"VariableDeclaration","scope":390,"src":"3966:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":376,"name":"string","nodeType":"ElementaryTypeName","src":"3966:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"3905:93:2"},"returnParameters":{"id":381,"nodeType":"ParameterList","parameters":[{"constant":false,"id":380,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":390,"src":"4017:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":379,"name":"bytes","nodeType":"ElementaryTypeName","src":"4017:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4016:14:2"},"scope":584,"src":"3884:223:2","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":409,"nodeType":"Block","src":"4612:111:2","statements":[{"expression":{"arguments":[{"id":403,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":393,"src":"4651:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":404,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":395,"src":"4659:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":405,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":397,"src":"4665:5:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"hexValue":"416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564","id":406,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4672:43:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_88a4a0b5e975840320a0475d4027005235904fdb5ece94df156f3d717cb2dbfc","typeString":"literal_string \"Address: low-level call with value failed\""},"value":"Address: low-level call with value failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_stringliteral_88a4a0b5e975840320a0475d4027005235904fdb5ece94df156f3d717cb2dbfc","typeString":"literal_string \"Address: low-level call with value failed\""}],"id":402,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[410,454],"referencedDeclaration":454,"src":"4629:21:2","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":407,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4629:87:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":401,"id":408,"nodeType":"Return","src":"4622:94:2"}]},"documentation":{"id":391,"nodeType":"StructuredDocumentation","src":"4113:351:2","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n but also transferring `value` wei to `target`.\n Requirements:\n - the calling contract must have an ETH balance of at least `value`.\n - the called Solidity function must be `payable`.\n _Available since v3.1._"},"id":410,"implemented":true,"kind":"function","modifiers":[],"name":"functionCallWithValue","nameLocation":"4478:21:2","nodeType":"FunctionDefinition","parameters":{"id":398,"nodeType":"ParameterList","parameters":[{"constant":false,"id":393,"mutability":"mutable","name":"target","nameLocation":"4517:6:2","nodeType":"VariableDeclaration","scope":410,"src":"4509:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":392,"name":"address","nodeType":"ElementaryTypeName","src":"4509:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":395,"mutability":"mutable","name":"data","nameLocation":"4546:4:2","nodeType":"VariableDeclaration","scope":410,"src":"4533:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":394,"name":"bytes","nodeType":"ElementaryTypeName","src":"4533:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":397,"mutability":"mutable","name":"value","nameLocation":"4568:5:2","nodeType":"VariableDeclaration","scope":410,"src":"4560:13:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":396,"name":"uint256","nodeType":"ElementaryTypeName","src":"4560:7:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4499:80:2"},"returnParameters":{"id":401,"nodeType":"ParameterList","parameters":[{"constant":false,"id":400,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":410,"src":"4598:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":399,"name":"bytes","nodeType":"ElementaryTypeName","src":"4598:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4597:14:2"},"scope":584,"src":"4469:254:2","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":453,"nodeType":"Block","src":"5150:267:2","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":431,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"arguments":[{"id":427,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"5176:4:2","typeDescriptions":{"typeIdentifier":"t_contract$_AddressUpgradeable_$584","typeString":"library AddressUpgradeable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_AddressUpgradeable_$584","typeString":"library AddressUpgradeable"}],"id":426,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"5168:7:2","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":425,"name":"address","nodeType":"ElementaryTypeName","src":"5168:7:2","typeDescriptions":{}}},"id":428,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5168:13:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":429,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"balance","nodeType":"MemberAccess","src":"5168:21:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":430,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":417,"src":"5193:5:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5168:30:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c","id":432,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5200:40:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_565f1a77334fc4792800921178c71e4521acffab18ff9e7885b49377ee80ab4c","typeString":"literal_string \"Address: insufficient balance for call\""},"value":"Address: insufficient balance for call"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_565f1a77334fc4792800921178c71e4521acffab18ff9e7885b49377ee80ab4c","typeString":"literal_string \"Address: insufficient balance for call\""}],"id":424,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5160:7:2","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":433,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5160:81:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":434,"nodeType":"ExpressionStatement","src":"5160:81:2"},{"assignments":[436,438],"declarations":[{"constant":false,"id":436,"mutability":"mutable","name":"success","nameLocation":"5257:7:2","nodeType":"VariableDeclaration","scope":453,"src":"5252:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":435,"name":"bool","nodeType":"ElementaryTypeName","src":"5252:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":438,"mutability":"mutable","name":"returndata","nameLocation":"5279:10:2","nodeType":"VariableDeclaration","scope":453,"src":"5266:23:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":437,"name":"bytes","nodeType":"ElementaryTypeName","src":"5266:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":445,"initialValue":{"arguments":[{"id":443,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":415,"src":"5319:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":439,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":413,"src":"5293:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":440,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"call","nodeType":"MemberAccess","src":"5293:11:2","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":442,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"names":["value"],"nodeType":"FunctionCallOptions","options":[{"id":441,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":417,"src":"5312:5:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"src":"5293:25:2","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":444,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5293:31:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"5251:73:2"},{"expression":{"arguments":[{"id":447,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":413,"src":"5368:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":448,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":436,"src":"5376:7:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":449,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":438,"src":"5385:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":450,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":419,"src":"5397:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":446,"name":"verifyCallResultFromTarget","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":539,"src":"5341:26:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bool_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bool,bytes memory,string memory) view returns (bytes memory)"}},"id":451,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5341:69:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":423,"id":452,"nodeType":"Return","src":"5334:76:2"}]},"documentation":{"id":411,"nodeType":"StructuredDocumentation","src":"4729:237:2","text":" @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n with `errorMessage` as a fallback revert reason when `target` reverts.\n _Available since v3.1._"},"id":454,"implemented":true,"kind":"function","modifiers":[],"name":"functionCallWithValue","nameLocation":"4980:21:2","nodeType":"FunctionDefinition","parameters":{"id":420,"nodeType":"ParameterList","parameters":[{"constant":false,"id":413,"mutability":"mutable","name":"target","nameLocation":"5019:6:2","nodeType":"VariableDeclaration","scope":454,"src":"5011:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":412,"name":"address","nodeType":"ElementaryTypeName","src":"5011:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":415,"mutability":"mutable","name":"data","nameLocation":"5048:4:2","nodeType":"VariableDeclaration","scope":454,"src":"5035:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":414,"name":"bytes","nodeType":"ElementaryTypeName","src":"5035:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":417,"mutability":"mutable","name":"value","nameLocation":"5070:5:2","nodeType":"VariableDeclaration","scope":454,"src":"5062:13:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":416,"name":"uint256","nodeType":"ElementaryTypeName","src":"5062:7:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":419,"mutability":"mutable","name":"errorMessage","nameLocation":"5099:12:2","nodeType":"VariableDeclaration","scope":454,"src":"5085:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":418,"name":"string","nodeType":"ElementaryTypeName","src":"5085:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"5001:116:2"},"returnParameters":{"id":423,"nodeType":"ParameterList","parameters":[{"constant":false,"id":422,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":454,"src":"5136:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":421,"name":"bytes","nodeType":"ElementaryTypeName","src":"5136:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5135:14:2"},"scope":584,"src":"4971:446:2","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":470,"nodeType":"Block","src":"5694:97:2","statements":[{"expression":{"arguments":[{"id":465,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":457,"src":"5730:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":466,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":459,"src":"5738:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"416464726573733a206c6f772d6c6576656c207374617469632063616c6c206661696c6564","id":467,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5744:39:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_90ec82aa826a536a4cbfae44ecfa384680faa9a4b77344bce96aa761ad904df0","typeString":"literal_string \"Address: low-level static call failed\""},"value":"Address: low-level static call failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_stringliteral_90ec82aa826a536a4cbfae44ecfa384680faa9a4b77344bce96aa761ad904df0","typeString":"literal_string \"Address: low-level static call failed\""}],"id":464,"name":"functionStaticCall","nodeType":"Identifier","overloadedDeclarations":[471,500],"referencedDeclaration":500,"src":"5711:18:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,string memory) view returns (bytes memory)"}},"id":468,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5711:73:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":463,"id":469,"nodeType":"Return","src":"5704:80:2"}]},"documentation":{"id":455,"nodeType":"StructuredDocumentation","src":"5423:166:2","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n but performing a static call.\n _Available since v3.3._"},"id":471,"implemented":true,"kind":"function","modifiers":[],"name":"functionStaticCall","nameLocation":"5603:18:2","nodeType":"FunctionDefinition","parameters":{"id":460,"nodeType":"ParameterList","parameters":[{"constant":false,"id":457,"mutability":"mutable","name":"target","nameLocation":"5630:6:2","nodeType":"VariableDeclaration","scope":471,"src":"5622:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":456,"name":"address","nodeType":"ElementaryTypeName","src":"5622:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":459,"mutability":"mutable","name":"data","nameLocation":"5651:4:2","nodeType":"VariableDeclaration","scope":471,"src":"5638:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":458,"name":"bytes","nodeType":"ElementaryTypeName","src":"5638:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5621:35:2"},"returnParameters":{"id":463,"nodeType":"ParameterList","parameters":[{"constant":false,"id":462,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":471,"src":"5680:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":461,"name":"bytes","nodeType":"ElementaryTypeName","src":"5680:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5679:14:2"},"scope":584,"src":"5594:197:2","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":499,"nodeType":"Block","src":"6133:168:2","statements":[{"assignments":[484,486],"declarations":[{"constant":false,"id":484,"mutability":"mutable","name":"success","nameLocation":"6149:7:2","nodeType":"VariableDeclaration","scope":499,"src":"6144:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":483,"name":"bool","nodeType":"ElementaryTypeName","src":"6144:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":486,"mutability":"mutable","name":"returndata","nameLocation":"6171:10:2","nodeType":"VariableDeclaration","scope":499,"src":"6158:23:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":485,"name":"bytes","nodeType":"ElementaryTypeName","src":"6158:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":491,"initialValue":{"arguments":[{"id":489,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":476,"src":"6203:4:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":487,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":474,"src":"6185:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":488,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"staticcall","nodeType":"MemberAccess","src":"6185:17:2","typeDescriptions":{"typeIdentifier":"t_function_barestaticcall_view$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) view returns (bool,bytes memory)"}},"id":490,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6185:23:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"6143:65:2"},{"expression":{"arguments":[{"id":493,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":474,"src":"6252:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":494,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":484,"src":"6260:7:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":495,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":486,"src":"6269:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":496,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":478,"src":"6281:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":492,"name":"verifyCallResultFromTarget","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":539,"src":"6225:26:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bool_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bool,bytes memory,string memory) view returns (bytes memory)"}},"id":497,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6225:69:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":482,"id":498,"nodeType":"Return","src":"6218:76:2"}]},"documentation":{"id":472,"nodeType":"StructuredDocumentation","src":"5797:173:2","text":" @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n but performing a static call.\n _Available since v3.3._"},"id":500,"implemented":true,"kind":"function","modifiers":[],"name":"functionStaticCall","nameLocation":"5984:18:2","nodeType":"FunctionDefinition","parameters":{"id":479,"nodeType":"ParameterList","parameters":[{"constant":false,"id":474,"mutability":"mutable","name":"target","nameLocation":"6020:6:2","nodeType":"VariableDeclaration","scope":500,"src":"6012:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":473,"name":"address","nodeType":"ElementaryTypeName","src":"6012:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":476,"mutability":"mutable","name":"data","nameLocation":"6049:4:2","nodeType":"VariableDeclaration","scope":500,"src":"6036:17:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":475,"name":"bytes","nodeType":"ElementaryTypeName","src":"6036:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":478,"mutability":"mutable","name":"errorMessage","nameLocation":"6077:12:2","nodeType":"VariableDeclaration","scope":500,"src":"6063:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":477,"name":"string","nodeType":"ElementaryTypeName","src":"6063:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"6002:93:2"},"returnParameters":{"id":482,"nodeType":"ParameterList","parameters":[{"constant":false,"id":481,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":500,"src":"6119:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":480,"name":"bytes","nodeType":"ElementaryTypeName","src":"6119:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6118:14:2"},"scope":584,"src":"5975:326:2","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":538,"nodeType":"Block","src":"6783:434:2","statements":[{"condition":{"id":514,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":505,"src":"6797:7:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":536,"nodeType":"Block","src":"7153:58:2","statements":[{"expression":{"arguments":[{"id":532,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":507,"src":"7175:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":533,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":509,"src":"7187:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":531,"name":"_revert","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":583,"src":"7167:7:2","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$__$","typeString":"function (bytes memory,string memory) pure"}},"id":534,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7167:33:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":535,"nodeType":"ExpressionStatement","src":"7167:33:2"}]},"id":537,"nodeType":"IfStatement","src":"6793:418:2","trueBody":{"id":530,"nodeType":"Block","src":"6806:341:2","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":518,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":515,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":507,"src":"6824:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":516,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"6824:17:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":517,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6845:1:2","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"6824:22:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":527,"nodeType":"IfStatement","src":"6820:286:2","trueBody":{"id":526,"nodeType":"Block","src":"6848:258:2","statements":[{"expression":{"arguments":[{"arguments":[{"id":521,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":503,"src":"7050:6:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":520,"name":"isContract","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":318,"src":"7039:10:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$returns$_t_bool_$","typeString":"function (address) view returns (bool)"}},"id":522,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7039:18:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374","id":523,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"7059:31:2","typeDescriptions":{"typeIdentifier":"t_stringliteral_cc2e4e38850b7c0a3e942cfed89b71c77302df25bcb2ec297a0c4ff9ff6b90ad","typeString":"literal_string \"Address: call to non-contract\""},"value":"Address: call to non-contract"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_cc2e4e38850b7c0a3e942cfed89b71c77302df25bcb2ec297a0c4ff9ff6b90ad","typeString":"literal_string \"Address: call to non-contract\""}],"id":519,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"7031:7:2","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":524,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7031:60:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":525,"nodeType":"ExpressionStatement","src":"7031:60:2"}]}},{"expression":{"id":528,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":507,"src":"7126:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":513,"id":529,"nodeType":"Return","src":"7119:17:2"}]}}]},"documentation":{"id":501,"nodeType":"StructuredDocumentation","src":"6307:277:2","text":" @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n _Available since v4.8._"},"id":539,"implemented":true,"kind":"function","modifiers":[],"name":"verifyCallResultFromTarget","nameLocation":"6598:26:2","nodeType":"FunctionDefinition","parameters":{"id":510,"nodeType":"ParameterList","parameters":[{"constant":false,"id":503,"mutability":"mutable","name":"target","nameLocation":"6642:6:2","nodeType":"VariableDeclaration","scope":539,"src":"6634:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":502,"name":"address","nodeType":"ElementaryTypeName","src":"6634:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":505,"mutability":"mutable","name":"success","nameLocation":"6663:7:2","nodeType":"VariableDeclaration","scope":539,"src":"6658:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":504,"name":"bool","nodeType":"ElementaryTypeName","src":"6658:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":507,"mutability":"mutable","name":"returndata","nameLocation":"6693:10:2","nodeType":"VariableDeclaration","scope":539,"src":"6680:23:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":506,"name":"bytes","nodeType":"ElementaryTypeName","src":"6680:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":509,"mutability":"mutable","name":"errorMessage","nameLocation":"6727:12:2","nodeType":"VariableDeclaration","scope":539,"src":"6713:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":508,"name":"string","nodeType":"ElementaryTypeName","src":"6713:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"6624:121:2"},"returnParameters":{"id":513,"nodeType":"ParameterList","parameters":[{"constant":false,"id":512,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":539,"src":"6769:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":511,"name":"bytes","nodeType":"ElementaryTypeName","src":"6769:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6768:14:2"},"scope":584,"src":"6589:628:2","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":562,"nodeType":"Block","src":"7598:135:2","statements":[{"condition":{"id":551,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":542,"src":"7612:7:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":560,"nodeType":"Block","src":"7669:58:2","statements":[{"expression":{"arguments":[{"id":556,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":544,"src":"7691:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":557,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":546,"src":"7703:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":555,"name":"_revert","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":583,"src":"7683:7:2","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$__$","typeString":"function (bytes memory,string memory) pure"}},"id":558,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7683:33:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":559,"nodeType":"ExpressionStatement","src":"7683:33:2"}]},"id":561,"nodeType":"IfStatement","src":"7608:119:2","trueBody":{"id":554,"nodeType":"Block","src":"7621:42:2","statements":[{"expression":{"id":552,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":544,"src":"7642:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":550,"id":553,"nodeType":"Return","src":"7635:17:2"}]}}]},"documentation":{"id":540,"nodeType":"StructuredDocumentation","src":"7223:210:2","text":" @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n revert reason or using the provided one.\n _Available since v4.3._"},"id":563,"implemented":true,"kind":"function","modifiers":[],"name":"verifyCallResult","nameLocation":"7447:16:2","nodeType":"FunctionDefinition","parameters":{"id":547,"nodeType":"ParameterList","parameters":[{"constant":false,"id":542,"mutability":"mutable","name":"success","nameLocation":"7478:7:2","nodeType":"VariableDeclaration","scope":563,"src":"7473:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":541,"name":"bool","nodeType":"ElementaryTypeName","src":"7473:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":544,"mutability":"mutable","name":"returndata","nameLocation":"7508:10:2","nodeType":"VariableDeclaration","scope":563,"src":"7495:23:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":543,"name":"bytes","nodeType":"ElementaryTypeName","src":"7495:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":546,"mutability":"mutable","name":"errorMessage","nameLocation":"7542:12:2","nodeType":"VariableDeclaration","scope":563,"src":"7528:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":545,"name":"string","nodeType":"ElementaryTypeName","src":"7528:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"7463:97:2"},"returnParameters":{"id":550,"nodeType":"ParameterList","parameters":[{"constant":false,"id":549,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":563,"src":"7584:12:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":548,"name":"bytes","nodeType":"ElementaryTypeName","src":"7584:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7583:14:2"},"scope":584,"src":"7438:295:2","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":582,"nodeType":"Block","src":"7822:457:2","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":573,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":570,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":565,"src":"7898:10:2","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":571,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"7898:17:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":572,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7918:1:2","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"7898:21:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":580,"nodeType":"Block","src":"8228:45:2","statements":[{"expression":{"arguments":[{"id":577,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":567,"src":"8249:12:2","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":576,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"8242:6:2","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":578,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"8242:20:2","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":579,"nodeType":"ExpressionStatement","src":"8242:20:2"}]},"id":581,"nodeType":"IfStatement","src":"7894:379:2","trueBody":{"id":575,"nodeType":"Block","src":"7921:301:2","statements":[{"AST":{"nodeType":"YulBlock","src":"8079:133:2","statements":[{"nodeType":"YulVariableDeclaration","src":"8097:40:2","value":{"arguments":[{"name":"returndata","nodeType":"YulIdentifier","src":"8126:10:2"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"8120:5:2"},"nodeType":"YulFunctionCall","src":"8120:17:2"},"variables":[{"name":"returndata_size","nodeType":"YulTypedName","src":"8101:15:2","type":""}]},{"expression":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8165:2:2","type":"","value":"32"},{"name":"returndata","nodeType":"YulIdentifier","src":"8169:10:2"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8161:3:2"},"nodeType":"YulFunctionCall","src":"8161:19:2"},{"name":"returndata_size","nodeType":"YulIdentifier","src":"8182:15:2"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8154:6:2"},"nodeType":"YulFunctionCall","src":"8154:44:2"},"nodeType":"YulExpressionStatement","src":"8154:44:2"}]},"documentation":"@solidity memory-safe-assembly","evmVersion":"london","externalReferences":[{"declaration":565,"isOffset":false,"isSlot":false,"src":"8126:10:2","valueSize":1},{"declaration":565,"isOffset":false,"isSlot":false,"src":"8169:10:2","valueSize":1}],"id":574,"nodeType":"InlineAssembly","src":"8070:142:2"}]}}]},"id":583,"implemented":true,"kind":"function","modifiers":[],"name":"_revert","nameLocation":"7748:7:2","nodeType":"FunctionDefinition","parameters":{"id":568,"nodeType":"ParameterList","parameters":[{"constant":false,"id":565,"mutability":"mutable","name":"returndata","nameLocation":"7769:10:2","nodeType":"VariableDeclaration","scope":583,"src":"7756:23:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":564,"name":"bytes","nodeType":"ElementaryTypeName","src":"7756:5:2","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":567,"mutability":"mutable","name":"errorMessage","nameLocation":"7795:12:2","nodeType":"VariableDeclaration","scope":583,"src":"7781:26:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":566,"name":"string","nodeType":"ElementaryTypeName","src":"7781:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"7755:53:2"},"returnParameters":{"id":569,"nodeType":"ParameterList","parameters":[],"src":"7822:0:2"},"scope":584,"src":"7739:540:2","stateMutability":"pure","virtual":false,"visibility":"private"}],"scope":585,"src":"194:8087:2","usedErrors":[]}],"src":"101:8181:2"},"id":2},"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","exportedSymbols":{"AddressUpgradeable":[584],"ContextUpgradeable":[626],"Initializable":[300]},"id":627,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":586,"literals":["solidity","^","0.8",".0"],"nodeType":"PragmaDirective","src":"86:23:3"},{"absolutePath":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","file":"../proxy/utils/Initializable.sol","id":587,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":627,"sourceUnit":301,"src":"110:42:3","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":589,"name":"Initializable","nodeType":"IdentifierPath","referencedDeclaration":300,"src":"691:13:3"},"id":590,"nodeType":"InheritanceSpecifier","src":"691:13:3"}],"canonicalName":"ContextUpgradeable","contractDependencies":[],"contractKind":"contract","documentation":{"id":588,"nodeType":"StructuredDocumentation","src":"154:496:3","text":" @dev Provides information about the current execution context, including the\n sender of the transaction and its data. While these are generally available\n via msg.sender and msg.data, they should not be accessed in such a direct\n manner, since when dealing with meta-transactions the account sending and\n paying for execution may not be the actual sender (as far as an application\n is concerned).\n This contract is only required for intermediate, library-like contracts."},"fullyImplemented":true,"id":626,"linearizedBaseContracts":[626,300],"name":"ContextUpgradeable","nameLocation":"669:18:3","nodeType":"ContractDefinition","nodes":[{"body":{"id":595,"nodeType":"Block","src":"763:7:3","statements":[]},"id":596,"implemented":true,"kind":"function","modifiers":[{"id":593,"kind":"modifierInvocation","modifierName":{"id":592,"name":"onlyInitializing","nodeType":"IdentifierPath","referencedDeclaration":245,"src":"746:16:3"},"nodeType":"ModifierInvocation","src":"746:16:3"}],"name":"__Context_init","nameLocation":"720:14:3","nodeType":"FunctionDefinition","parameters":{"id":591,"nodeType":"ParameterList","parameters":[],"src":"734:2:3"},"returnParameters":{"id":594,"nodeType":"ParameterList","parameters":[],"src":"763:0:3"},"scope":626,"src":"711:59:3","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":601,"nodeType":"Block","src":"838:7:3","statements":[]},"id":602,"implemented":true,"kind":"function","modifiers":[{"id":599,"kind":"modifierInvocation","modifierName":{"id":598,"name":"onlyInitializing","nodeType":"IdentifierPath","referencedDeclaration":245,"src":"821:16:3"},"nodeType":"ModifierInvocation","src":"821:16:3"}],"name":"__Context_init_unchained","nameLocation":"785:24:3","nodeType":"FunctionDefinition","parameters":{"id":597,"nodeType":"ParameterList","parameters":[],"src":"809:2:3"},"returnParameters":{"id":600,"nodeType":"ParameterList","parameters":[],"src":"838:0:3"},"scope":626,"src":"776:69:3","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":610,"nodeType":"Block","src":"912:34:3","statements":[{"expression":{"expression":{"id":607,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"929:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":608,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","src":"929:10:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":606,"id":609,"nodeType":"Return","src":"922:17:3"}]},"id":611,"implemented":true,"kind":"function","modifiers":[],"name":"_msgSender","nameLocation":"859:10:3","nodeType":"FunctionDefinition","parameters":{"id":603,"nodeType":"ParameterList","parameters":[],"src":"869:2:3"},"returnParameters":{"id":606,"nodeType":"ParameterList","parameters":[{"constant":false,"id":605,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":611,"src":"903:7:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":604,"name":"address","nodeType":"ElementaryTypeName","src":"903:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"902:9:3"},"scope":626,"src":"850:96:3","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":619,"nodeType":"Block","src":"1019:32:3","statements":[{"expression":{"expression":{"id":616,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"1036:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":617,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"data","nodeType":"MemberAccess","src":"1036:8:3","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},"functionReturnParameters":615,"id":618,"nodeType":"Return","src":"1029:15:3"}]},"id":620,"implemented":true,"kind":"function","modifiers":[],"name":"_msgData","nameLocation":"961:8:3","nodeType":"FunctionDefinition","parameters":{"id":612,"nodeType":"ParameterList","parameters":[],"src":"969:2:3"},"returnParameters":{"id":615,"nodeType":"ParameterList","parameters":[{"constant":false,"id":614,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":620,"src":"1003:14:3","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":613,"name":"bytes","nodeType":"ElementaryTypeName","src":"1003:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"1002:16:3"},"scope":626,"src":"952:99:3","stateMutability":"view","virtual":true,"visibility":"internal"},{"constant":false,"documentation":{"id":621,"nodeType":"StructuredDocumentation","src":"1057:254:3","text":" @dev This empty reserved space is put in place to allow future versions to add new\n variables without shifting down storage in the inheritance chain.\n See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps"},"id":625,"mutability":"mutable","name":"__gap","nameLocation":"1336:5:3","nodeType":"VariableDeclaration","scope":626,"src":"1316:25:3","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_array$_t_uint256_$50_storage","typeString":"uint256[50]"},"typeName":{"baseType":{"id":622,"name":"uint256","nodeType":"ElementaryTypeName","src":"1316:7:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":624,"length":{"hexValue":"3530","id":623,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1324:2:3","typeDescriptions":{"typeIdentifier":"t_rational_50_by_1","typeString":"int_const 50"},"value":"50"},"nodeType":"ArrayTypeName","src":"1316:11:3","typeDescriptions":{"typeIdentifier":"t_array$_t_uint256_$50_storage_ptr","typeString":"uint256[50]"}},"visibility":"private"}],"scope":627,"src":"651:693:3","usedErrors":[]}],"src":"86:1259:3"},"id":3},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"ast":{"absolutePath":"@openzeppelin/contracts/token/ERC20/IERC20.sol","exportedSymbols":{"IERC20":[704]},"id":705,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":628,"literals":["solidity","^","0.8",".0"],"nodeType":"PragmaDirective","src":"106:23:4"},{"abstract":false,"baseContracts":[],"canonicalName":"IERC20","contractDependencies":[],"contractKind":"interface","documentation":{"id":629,"nodeType":"StructuredDocumentation","src":"131:70:4","text":" @dev Interface of the ERC20 standard as defined in the EIP."},"fullyImplemented":false,"id":704,"linearizedBaseContracts":[704],"name":"IERC20","nameLocation":"212:6:4","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":630,"nodeType":"StructuredDocumentation","src":"225:158:4","text":" @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero."},"eventSelector":"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","id":638,"name":"Transfer","nameLocation":"394:8:4","nodeType":"EventDefinition","parameters":{"id":637,"nodeType":"ParameterList","parameters":[{"constant":false,"id":632,"indexed":true,"mutability":"mutable","name":"from","nameLocation":"419:4:4","nodeType":"VariableDeclaration","scope":638,"src":"403:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":631,"name":"address","nodeType":"ElementaryTypeName","src":"403:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":634,"indexed":true,"mutability":"mutable","name":"to","nameLocation":"441:2:4","nodeType":"VariableDeclaration","scope":638,"src":"425:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":633,"name":"address","nodeType":"ElementaryTypeName","src":"425:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":636,"indexed":false,"mutability":"mutable","name":"value","nameLocation":"453:5:4","nodeType":"VariableDeclaration","scope":638,"src":"445:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":635,"name":"uint256","nodeType":"ElementaryTypeName","src":"445:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"402:57:4"},"src":"388:72:4"},{"anonymous":false,"documentation":{"id":639,"nodeType":"StructuredDocumentation","src":"466:148:4","text":" @dev Emitted when the allowance of a `spender` for an `owner` is set by\n a call to {approve}. `value` is the new allowance."},"eventSelector":"8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","id":647,"name":"Approval","nameLocation":"625:8:4","nodeType":"EventDefinition","parameters":{"id":646,"nodeType":"ParameterList","parameters":[{"constant":false,"id":641,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"650:5:4","nodeType":"VariableDeclaration","scope":647,"src":"634:21:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":640,"name":"address","nodeType":"ElementaryTypeName","src":"634:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":643,"indexed":true,"mutability":"mutable","name":"spender","nameLocation":"673:7:4","nodeType":"VariableDeclaration","scope":647,"src":"657:23:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":642,"name":"address","nodeType":"ElementaryTypeName","src":"657:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":645,"indexed":false,"mutability":"mutable","name":"value","nameLocation":"690:5:4","nodeType":"VariableDeclaration","scope":647,"src":"682:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":644,"name":"uint256","nodeType":"ElementaryTypeName","src":"682:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"633:63:4"},"src":"619:78:4"},{"documentation":{"id":648,"nodeType":"StructuredDocumentation","src":"703:66:4","text":" @dev Returns the amount of tokens in existence."},"functionSelector":"18160ddd","id":653,"implemented":false,"kind":"function","modifiers":[],"name":"totalSupply","nameLocation":"783:11:4","nodeType":"FunctionDefinition","parameters":{"id":649,"nodeType":"ParameterList","parameters":[],"src":"794:2:4"},"returnParameters":{"id":652,"nodeType":"ParameterList","parameters":[{"constant":false,"id":651,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":653,"src":"820:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":650,"name":"uint256","nodeType":"ElementaryTypeName","src":"820:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"819:9:4"},"scope":704,"src":"774:55:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":654,"nodeType":"StructuredDocumentation","src":"835:72:4","text":" @dev Returns the amount of tokens owned by `account`."},"functionSelector":"70a08231","id":661,"implemented":false,"kind":"function","modifiers":[],"name":"balanceOf","nameLocation":"921:9:4","nodeType":"FunctionDefinition","parameters":{"id":657,"nodeType":"ParameterList","parameters":[{"constant":false,"id":656,"mutability":"mutable","name":"account","nameLocation":"939:7:4","nodeType":"VariableDeclaration","scope":661,"src":"931:15:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":655,"name":"address","nodeType":"ElementaryTypeName","src":"931:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"930:17:4"},"returnParameters":{"id":660,"nodeType":"ParameterList","parameters":[{"constant":false,"id":659,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":661,"src":"971:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":658,"name":"uint256","nodeType":"ElementaryTypeName","src":"971:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"970:9:4"},"scope":704,"src":"912:68:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":662,"nodeType":"StructuredDocumentation","src":"986:202:4","text":" @dev Moves `amount` tokens from the caller's account to `to`.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."},"functionSelector":"a9059cbb","id":671,"implemented":false,"kind":"function","modifiers":[],"name":"transfer","nameLocation":"1202:8:4","nodeType":"FunctionDefinition","parameters":{"id":667,"nodeType":"ParameterList","parameters":[{"constant":false,"id":664,"mutability":"mutable","name":"to","nameLocation":"1219:2:4","nodeType":"VariableDeclaration","scope":671,"src":"1211:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":663,"name":"address","nodeType":"ElementaryTypeName","src":"1211:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":666,"mutability":"mutable","name":"amount","nameLocation":"1231:6:4","nodeType":"VariableDeclaration","scope":671,"src":"1223:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":665,"name":"uint256","nodeType":"ElementaryTypeName","src":"1223:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1210:28:4"},"returnParameters":{"id":670,"nodeType":"ParameterList","parameters":[{"constant":false,"id":669,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":671,"src":"1257:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":668,"name":"bool","nodeType":"ElementaryTypeName","src":"1257:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"1256:6:4"},"scope":704,"src":"1193:70:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":672,"nodeType":"StructuredDocumentation","src":"1269:264:4","text":" @dev Returns the remaining number of tokens that `spender` will be\n allowed to spend on behalf of `owner` through {transferFrom}. This is\n zero by default.\n This value changes when {approve} or {transferFrom} are called."},"functionSelector":"dd62ed3e","id":681,"implemented":false,"kind":"function","modifiers":[],"name":"allowance","nameLocation":"1547:9:4","nodeType":"FunctionDefinition","parameters":{"id":677,"nodeType":"ParameterList","parameters":[{"constant":false,"id":674,"mutability":"mutable","name":"owner","nameLocation":"1565:5:4","nodeType":"VariableDeclaration","scope":681,"src":"1557:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":673,"name":"address","nodeType":"ElementaryTypeName","src":"1557:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":676,"mutability":"mutable","name":"spender","nameLocation":"1580:7:4","nodeType":"VariableDeclaration","scope":681,"src":"1572:15:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":675,"name":"address","nodeType":"ElementaryTypeName","src":"1572:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1556:32:4"},"returnParameters":{"id":680,"nodeType":"ParameterList","parameters":[{"constant":false,"id":679,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":681,"src":"1612:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":678,"name":"uint256","nodeType":"ElementaryTypeName","src":"1612:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1611:9:4"},"scope":704,"src":"1538:83:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":682,"nodeType":"StructuredDocumentation","src":"1627:642:4","text":" @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n Returns a boolean value indicating whether the operation succeeded.\n IMPORTANT: Beware that changing an allowance with this method brings the risk\n that someone may use both the old and the new allowance by unfortunate\n transaction ordering. One possible solution to mitigate this race\n condition is to first reduce the spender's allowance to 0 and set the\n desired value afterwards:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n Emits an {Approval} event."},"functionSelector":"095ea7b3","id":691,"implemented":false,"kind":"function","modifiers":[],"name":"approve","nameLocation":"2283:7:4","nodeType":"FunctionDefinition","parameters":{"id":687,"nodeType":"ParameterList","parameters":[{"constant":false,"id":684,"mutability":"mutable","name":"spender","nameLocation":"2299:7:4","nodeType":"VariableDeclaration","scope":691,"src":"2291:15:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":683,"name":"address","nodeType":"ElementaryTypeName","src":"2291:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":686,"mutability":"mutable","name":"amount","nameLocation":"2316:6:4","nodeType":"VariableDeclaration","scope":691,"src":"2308:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":685,"name":"uint256","nodeType":"ElementaryTypeName","src":"2308:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2290:33:4"},"returnParameters":{"id":690,"nodeType":"ParameterList","parameters":[{"constant":false,"id":689,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":691,"src":"2342:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":688,"name":"bool","nodeType":"ElementaryTypeName","src":"2342:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"2341:6:4"},"scope":704,"src":"2274:74:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":692,"nodeType":"StructuredDocumentation","src":"2354:287:4","text":" @dev Moves `amount` tokens from `from` to `to` using the\n allowance mechanism. `amount` is then deducted from the caller's\n allowance.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."},"functionSelector":"23b872dd","id":703,"implemented":false,"kind":"function","modifiers":[],"name":"transferFrom","nameLocation":"2655:12:4","nodeType":"FunctionDefinition","parameters":{"id":699,"nodeType":"ParameterList","parameters":[{"constant":false,"id":694,"mutability":"mutable","name":"from","nameLocation":"2685:4:4","nodeType":"VariableDeclaration","scope":703,"src":"2677:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":693,"name":"address","nodeType":"ElementaryTypeName","src":"2677:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":696,"mutability":"mutable","name":"to","nameLocation":"2707:2:4","nodeType":"VariableDeclaration","scope":703,"src":"2699:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":695,"name":"address","nodeType":"ElementaryTypeName","src":"2699:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":698,"mutability":"mutable","name":"amount","nameLocation":"2727:6:4","nodeType":"VariableDeclaration","scope":703,"src":"2719:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":697,"name":"uint256","nodeType":"ElementaryTypeName","src":"2719:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2667:72:4"},"returnParameters":{"id":702,"nodeType":"ParameterList","parameters":[{"constant":false,"id":701,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":703,"src":"2758:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":700,"name":"bool","nodeType":"ElementaryTypeName","src":"2758:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"2757:6:4"},"scope":704,"src":"2646:118:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":705,"src":"202:2564:4","usedErrors":[]}],"src":"106:2661:4"},"id":4},"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"ast":{"absolutePath":"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol","exportedSymbols":{"IERC20":[704],"IERC20Metadata":[729]},"id":730,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":706,"literals":["solidity","^","0.8",".0"],"nodeType":"PragmaDirective","src":"110:23:5"},{"absolutePath":"@openzeppelin/contracts/token/ERC20/IERC20.sol","file":"../IERC20.sol","id":707,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":730,"sourceUnit":705,"src":"135:23:5","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":709,"name":"IERC20","nodeType":"IdentifierPath","referencedDeclaration":704,"src":"305:6:5"},"id":710,"nodeType":"InheritanceSpecifier","src":"305:6:5"}],"canonicalName":"IERC20Metadata","contractDependencies":[],"contractKind":"interface","documentation":{"id":708,"nodeType":"StructuredDocumentation","src":"160:116:5","text":" @dev Interface for the optional metadata functions from the ERC20 standard.\n _Available since v4.1._"},"fullyImplemented":false,"id":729,"linearizedBaseContracts":[729,704],"name":"IERC20Metadata","nameLocation":"287:14:5","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":711,"nodeType":"StructuredDocumentation","src":"318:54:5","text":" @dev Returns the name of the token."},"functionSelector":"06fdde03","id":716,"implemented":false,"kind":"function","modifiers":[],"name":"name","nameLocation":"386:4:5","nodeType":"FunctionDefinition","parameters":{"id":712,"nodeType":"ParameterList","parameters":[],"src":"390:2:5"},"returnParameters":{"id":715,"nodeType":"ParameterList","parameters":[{"constant":false,"id":714,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":716,"src":"416:13:5","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":713,"name":"string","nodeType":"ElementaryTypeName","src":"416:6:5","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"415:15:5"},"scope":729,"src":"377:54:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":717,"nodeType":"StructuredDocumentation","src":"437:56:5","text":" @dev Returns the symbol of the token."},"functionSelector":"95d89b41","id":722,"implemented":false,"kind":"function","modifiers":[],"name":"symbol","nameLocation":"507:6:5","nodeType":"FunctionDefinition","parameters":{"id":718,"nodeType":"ParameterList","parameters":[],"src":"513:2:5"},"returnParameters":{"id":721,"nodeType":"ParameterList","parameters":[{"constant":false,"id":720,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":722,"src":"539:13:5","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":719,"name":"string","nodeType":"ElementaryTypeName","src":"539:6:5","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"538:15:5"},"scope":729,"src":"498:56:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":723,"nodeType":"StructuredDocumentation","src":"560:65:5","text":" @dev Returns the decimals places of the token."},"functionSelector":"313ce567","id":728,"implemented":false,"kind":"function","modifiers":[],"name":"decimals","nameLocation":"639:8:5","nodeType":"FunctionDefinition","parameters":{"id":724,"nodeType":"ParameterList","parameters":[],"src":"647:2:5"},"returnParameters":{"id":727,"nodeType":"ParameterList","parameters":[{"constant":false,"id":726,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":728,"src":"673:5:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":725,"name":"uint8","nodeType":"ElementaryTypeName","src":"673:5:5","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"672:7:5"},"scope":729,"src":"630:50:5","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":730,"src":"277:405:5","usedErrors":[]}],"src":"110:573:5"},"id":5},"contracts/interfaces/OracleInterface.sol":{"ast":{"absolutePath":"contracts/interfaces/OracleInterface.sol","exportedSymbols":{"BoundValidatorInterface":[769],"OracleInterface":[739],"ResilientOracleInterface":[747],"TwapInterface":[757]},"id":770,"license":"BSD-3-Clause","nodeType":"SourceUnit","nodes":[{"id":731,"literals":["solidity","0.8",".13"],"nodeType":"PragmaDirective","src":"41:23:6"},{"abstract":false,"baseContracts":[],"canonicalName":"OracleInterface","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":739,"linearizedBaseContracts":[739],"name":"OracleInterface","nameLocation":"76:15:6","nodeType":"ContractDefinition","nodes":[{"functionSelector":"fc57d4df","id":738,"implemented":false,"kind":"function","modifiers":[],"name":"getUnderlyingPrice","nameLocation":"107:18:6","nodeType":"FunctionDefinition","parameters":{"id":734,"nodeType":"ParameterList","parameters":[{"constant":false,"id":733,"mutability":"mutable","name":"vToken","nameLocation":"134:6:6","nodeType":"VariableDeclaration","scope":738,"src":"126:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":732,"name":"address","nodeType":"ElementaryTypeName","src":"126:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"125:16:6"},"returnParameters":{"id":737,"nodeType":"ParameterList","parameters":[{"constant":false,"id":736,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":738,"src":"165:7:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":735,"name":"uint256","nodeType":"ElementaryTypeName","src":"165:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"164:9:6"},"scope":739,"src":"98:76:6","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":770,"src":"66:110:6","usedErrors":[]},{"abstract":false,"baseContracts":[{"baseName":{"id":740,"name":"OracleInterface","nodeType":"IdentifierPath","referencedDeclaration":739,"src":"216:15:6"},"id":741,"nodeType":"InheritanceSpecifier","src":"216:15:6"}],"canonicalName":"ResilientOracleInterface","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":747,"linearizedBaseContracts":[747,739],"name":"ResilientOracleInterface","nameLocation":"188:24:6","nodeType":"ContractDefinition","nodes":[{"functionSelector":"96e85ced","id":746,"implemented":false,"kind":"function","modifiers":[],"name":"updatePrice","nameLocation":"247:11:6","nodeType":"FunctionDefinition","parameters":{"id":744,"nodeType":"ParameterList","parameters":[{"constant":false,"id":743,"mutability":"mutable","name":"vToken","nameLocation":"267:6:6","nodeType":"VariableDeclaration","scope":746,"src":"259:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":742,"name":"address","nodeType":"ElementaryTypeName","src":"259:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"258:16:6"},"returnParameters":{"id":745,"nodeType":"ParameterList","parameters":[],"src":"283:0:6"},"scope":747,"src":"238:46:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":770,"src":"178:108:6","usedErrors":[]},{"abstract":false,"baseContracts":[{"baseName":{"id":748,"name":"OracleInterface","nodeType":"IdentifierPath","referencedDeclaration":739,"src":"315:15:6"},"id":749,"nodeType":"InheritanceSpecifier","src":"315:15:6"}],"canonicalName":"TwapInterface","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":757,"linearizedBaseContracts":[757,739],"name":"TwapInterface","nameLocation":"298:13:6","nodeType":"ContractDefinition","nodes":[{"functionSelector":"725068a5","id":756,"implemented":false,"kind":"function","modifiers":[],"name":"updateTwap","nameLocation":"346:10:6","nodeType":"FunctionDefinition","parameters":{"id":752,"nodeType":"ParameterList","parameters":[{"constant":false,"id":751,"mutability":"mutable","name":"vToken","nameLocation":"365:6:6","nodeType":"VariableDeclaration","scope":756,"src":"357:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":750,"name":"address","nodeType":"ElementaryTypeName","src":"357:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"356:16:6"},"returnParameters":{"id":755,"nodeType":"ParameterList","parameters":[{"constant":false,"id":754,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":756,"src":"391:7:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":753,"name":"uint256","nodeType":"ElementaryTypeName","src":"391:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"390:9:6"},"scope":757,"src":"337:63:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":770,"src":"288:114:6","usedErrors":[]},{"abstract":false,"baseContracts":[],"canonicalName":"BoundValidatorInterface","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":769,"linearizedBaseContracts":[769],"name":"BoundValidatorInterface","nameLocation":"414:23:6","nodeType":"ContractDefinition","nodes":[{"functionSelector":"97c7033e","id":768,"implemented":false,"kind":"function","modifiers":[],"name":"validatePriceWithAnchorPrice","nameLocation":"453:28:6","nodeType":"FunctionDefinition","parameters":{"id":764,"nodeType":"ParameterList","parameters":[{"constant":false,"id":759,"mutability":"mutable","name":"vToken","nameLocation":"499:6:6","nodeType":"VariableDeclaration","scope":768,"src":"491:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":758,"name":"address","nodeType":"ElementaryTypeName","src":"491:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":761,"mutability":"mutable","name":"reporterPrice","nameLocation":"523:13:6","nodeType":"VariableDeclaration","scope":768,"src":"515:21:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":760,"name":"uint256","nodeType":"ElementaryTypeName","src":"515:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":763,"mutability":"mutable","name":"anchorPrice","nameLocation":"554:11:6","nodeType":"VariableDeclaration","scope":768,"src":"546:19:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":762,"name":"uint256","nodeType":"ElementaryTypeName","src":"546:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"481:90:6"},"returnParameters":{"id":767,"nodeType":"ParameterList","parameters":[{"constant":false,"id":766,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":768,"src":"595:4:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":765,"name":"bool","nodeType":"ElementaryTypeName","src":"595:4:6","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"594:6:6"},"scope":769,"src":"444:157:6","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":770,"src":"404:199:6","usedErrors":[]}],"src":"41:563:6"},"id":6},"contracts/interfaces/VBep20Interface.sol":{"ast":{"absolutePath":"contracts/interfaces/VBep20Interface.sol","exportedSymbols":{"IERC20":[704],"IERC20Metadata":[729],"VBep20Interface":[781]},"id":782,"license":"BSD-3-Clause","nodeType":"SourceUnit","nodes":[{"id":771,"literals":["solidity","0.8",".13"],"nodeType":"PragmaDirective","src":"41:23:7"},{"absolutePath":"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol","file":"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol","id":772,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":782,"sourceUnit":730,"src":"66:75:7","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":773,"name":"IERC20Metadata","nodeType":"IdentifierPath","referencedDeclaration":729,"src":"172:14:7"},"id":774,"nodeType":"InheritanceSpecifier","src":"172:14:7"}],"canonicalName":"VBep20Interface","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":781,"linearizedBaseContracts":[781,729,704],"name":"VBep20Interface","nameLocation":"153:15:7","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":775,"nodeType":"StructuredDocumentation","src":"193:59:7","text":" @notice Underlying asset for this VToken"},"functionSelector":"6f307dc3","id":780,"implemented":false,"kind":"function","modifiers":[],"name":"underlying","nameLocation":"266:10:7","nodeType":"FunctionDefinition","parameters":{"id":776,"nodeType":"ParameterList","parameters":[],"src":"276:2:7"},"returnParameters":{"id":779,"nodeType":"ParameterList","parameters":[{"constant":false,"id":778,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":780,"src":"302:7:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":777,"name":"address","nodeType":"ElementaryTypeName","src":"302:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"301:9:7"},"scope":781,"src":"257:54:7","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":782,"src":"143:170:7","usedErrors":[]}],"src":"41:273:7"},"id":7},"contracts/libraries/PancakeLibrary.sol":{"ast":{"absolutePath":"contracts/libraries/PancakeLibrary.sol","exportedSymbols":{"FixedPoint":[854],"IPancakePair":[803],"PancakeOracleLibrary":[958]},"id":959,"license":"BSD-3-Clause","nodeType":"SourceUnit","nodes":[{"id":783,"literals":["solidity","0.8",".13"],"nodeType":"PragmaDirective","src":"41:23:8"},{"abstract":false,"baseContracts":[],"canonicalName":"IPancakePair","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":803,"linearizedBaseContracts":[803],"name":"IPancakePair","nameLocation":"76:12:8","nodeType":"ContractDefinition","nodes":[{"functionSelector":"0902f1ac","id":792,"implemented":false,"kind":"function","modifiers":[],"name":"getReserves","nameLocation":"104:11:8","nodeType":"FunctionDefinition","parameters":{"id":784,"nodeType":"ParameterList","parameters":[],"src":"115:2:8"},"returnParameters":{"id":791,"nodeType":"ParameterList","parameters":[{"constant":false,"id":786,"mutability":"mutable","name":"reserve0","nameLocation":"149:8:8","nodeType":"VariableDeclaration","scope":792,"src":"141:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":785,"name":"uint112","nodeType":"ElementaryTypeName","src":"141:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"},{"constant":false,"id":788,"mutability":"mutable","name":"reserve1","nameLocation":"167:8:8","nodeType":"VariableDeclaration","scope":792,"src":"159:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":787,"name":"uint112","nodeType":"ElementaryTypeName","src":"159:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"},{"constant":false,"id":790,"mutability":"mutable","name":"blockTimestampLast","nameLocation":"184:18:8","nodeType":"VariableDeclaration","scope":792,"src":"177:25:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":789,"name":"uint32","nodeType":"ElementaryTypeName","src":"177:6:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"140:63:8"},"scope":803,"src":"95:109:8","stateMutability":"view","virtual":false,"visibility":"external"},{"functionSelector":"5909c0d5","id":797,"implemented":false,"kind":"function","modifiers":[],"name":"price0CumulativeLast","nameLocation":"219:20:8","nodeType":"FunctionDefinition","parameters":{"id":793,"nodeType":"ParameterList","parameters":[],"src":"239:2:8"},"returnParameters":{"id":796,"nodeType":"ParameterList","parameters":[{"constant":false,"id":795,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":797,"src":"265:7:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":794,"name":"uint256","nodeType":"ElementaryTypeName","src":"265:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"264:9:8"},"scope":803,"src":"210:64:8","stateMutability":"view","virtual":false,"visibility":"external"},{"functionSelector":"5a3d5493","id":802,"implemented":false,"kind":"function","modifiers":[],"name":"price1CumulativeLast","nameLocation":"289:20:8","nodeType":"FunctionDefinition","parameters":{"id":798,"nodeType":"ParameterList","parameters":[],"src":"309:2:8"},"returnParameters":{"id":801,"nodeType":"ParameterList","parameters":[{"constant":false,"id":800,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":802,"src":"335:7:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":799,"name":"uint256","nodeType":"ElementaryTypeName","src":"335:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"334:9:8"},"scope":803,"src":"280:64:8","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":959,"src":"66:280:8","usedErrors":[]},{"abstract":false,"baseContracts":[],"canonicalName":"FixedPoint","contractDependencies":[],"contractKind":"library","fullyImplemented":true,"id":854,"linearizedBaseContracts":[854],"name":"FixedPoint","nameLocation":"356:10:8","nodeType":"ContractDefinition","nodes":[{"canonicalName":"FixedPoint.uq112x112","id":806,"members":[{"constant":false,"id":805,"mutability":"mutable","name":"_x","nameLocation":"468:2:8","nodeType":"VariableDeclaration","scope":806,"src":"460:10:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"},"typeName":{"id":804,"name":"uint224","nodeType":"ElementaryTypeName","src":"460:7:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}},"visibility":"internal"}],"name":"uq112x112","nameLocation":"440:9:8","nodeType":"StructDefinition","scope":854,"src":"433:44:8","visibility":"public"},{"body":{"id":835,"nodeType":"Block","src":"728:137:8","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint112","typeString":"uint112"},"id":819,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":817,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":810,"src":"746:11:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":818,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"760:1:8","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"746:15:8","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4669786564506f696e743a204449565f42595f5a45524f","id":820,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"763:25:8","typeDescriptions":{"typeIdentifier":"t_stringliteral_fb797fc20bb06d860bbe348d99030bb226d980421b724f94accde8487e338e12","typeString":"literal_string \"FixedPoint: DIV_BY_ZERO\""},"value":"FixedPoint: DIV_BY_ZERO"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_fb797fc20bb06d860bbe348d99030bb226d980421b724f94accde8487e338e12","typeString":"literal_string \"FixedPoint: DIV_BY_ZERO\""}],"id":816,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"738:7:8","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":821,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"738:51:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":822,"nodeType":"ExpressionStatement","src":"738:51:8"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint224","typeString":"uint224"},"id":832,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint224","typeString":"uint224"},"id":829,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":826,"name":"numerator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":808,"src":"825:9:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint112","typeString":"uint112"}],"id":825,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"817:7:8","typeDescriptions":{"typeIdentifier":"t_type$_t_uint224_$","typeString":"type(uint224)"},"typeName":{"id":824,"name":"uint224","nodeType":"ElementaryTypeName","src":"817:7:8","typeDescriptions":{}}},"id":827,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"817:18:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"313132","id":828,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"839:3:8","typeDescriptions":{"typeIdentifier":"t_rational_112_by_1","typeString":"int_const 112"},"value":"112"},"src":"817:25:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"id":830,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"816:27:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":831,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":810,"src":"846:11:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"src":"816:41:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint224","typeString":"uint224"}],"id":823,"name":"uq112x112","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":806,"src":"806:9:8","typeDescriptions":{"typeIdentifier":"t_type$_t_struct$_uq112x112_$806_storage_ptr_$","typeString":"type(struct FixedPoint.uq112x112 storage pointer)"}},"id":833,"isConstant":false,"isLValue":false,"isPure":false,"kind":"structConstructorCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"806:52:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"functionReturnParameters":815,"id":834,"nodeType":"Return","src":"799:59:8"}]},"id":836,"implemented":true,"kind":"function","modifiers":[],"name":"fraction","nameLocation":"638:8:8","nodeType":"FunctionDefinition","parameters":{"id":811,"nodeType":"ParameterList","parameters":[{"constant":false,"id":808,"mutability":"mutable","name":"numerator","nameLocation":"655:9:8","nodeType":"VariableDeclaration","scope":836,"src":"647:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":807,"name":"uint112","nodeType":"ElementaryTypeName","src":"647:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"},{"constant":false,"id":810,"mutability":"mutable","name":"denominator","nameLocation":"674:11:8","nodeType":"VariableDeclaration","scope":836,"src":"666:19:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":809,"name":"uint112","nodeType":"ElementaryTypeName","src":"666:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"}],"src":"646:40:8"},"returnParameters":{"id":815,"nodeType":"ParameterList","parameters":[{"constant":false,"id":814,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":836,"src":"710:16:8","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112"},"typeName":{"id":813,"nodeType":"UserDefinedTypeName","pathNode":{"id":812,"name":"uq112x112","nodeType":"IdentifierPath","referencedDeclaration":806,"src":"710:9:8"},"referencedDeclaration":806,"src":"710:9:8","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_storage_ptr","typeString":"struct FixedPoint.uq112x112"}},"visibility":"internal"}],"src":"709:18:8"},"scope":854,"src":"629:236:8","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":852,"nodeType":"Block","src":"1019:302:8","statements":[{"expression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":850,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"expression":{"id":846,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":839,"src":"1287:4:8","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"id":847,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"_x","nodeType":"MemberAccess","referencedDeclaration":805,"src":"1287:7:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint224","typeString":"uint224"}],"id":845,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1279:7:8","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":844,"name":"uint256","nodeType":"ElementaryTypeName","src":"1279:7:8","typeDescriptions":{}}},"id":848,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1279:16:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"hexValue":"35313932323936383538353334383237","id":849,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1298:16:8","typeDescriptions":{"typeIdentifier":"t_rational_5192296858534827_by_1","typeString":"int_const 5192296858534827"},"value":"5192296858534827"},"src":"1279:35:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":843,"id":851,"nodeType":"Return","src":"1272:42:8"}]},"id":853,"implemented":true,"kind":"function","modifiers":[],"name":"decode112with18","nameLocation":"948:15:8","nodeType":"FunctionDefinition","parameters":{"id":840,"nodeType":"ParameterList","parameters":[{"constant":false,"id":839,"mutability":"mutable","name":"self","nameLocation":"981:4:8","nodeType":"VariableDeclaration","scope":853,"src":"964:21:8","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112"},"typeName":{"id":838,"nodeType":"UserDefinedTypeName","pathNode":{"id":837,"name":"uq112x112","nodeType":"IdentifierPath","referencedDeclaration":806,"src":"964:9:8"},"referencedDeclaration":806,"src":"964:9:8","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_storage_ptr","typeString":"struct FixedPoint.uq112x112"}},"visibility":"internal"}],"src":"963:23:8"},"returnParameters":{"id":843,"nodeType":"ParameterList","parameters":[{"constant":false,"id":842,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":853,"src":"1010:7:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":841,"name":"uint256","nodeType":"ElementaryTypeName","src":"1010:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1009:9:8"},"scope":854,"src":"939:382:8","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":959,"src":"348:975:8","usedErrors":[]},{"abstract":false,"baseContracts":[],"canonicalName":"PancakeOracleLibrary","contractDependencies":[],"contractKind":"library","fullyImplemented":true,"id":958,"linearizedBaseContracts":[958],"name":"PancakeOracleLibrary","nameLocation":"1425:20:8","nodeType":"ContractDefinition","nodes":[{"global":false,"id":856,"libraryName":{"id":855,"name":"FixedPoint","nodeType":"IdentifierPath","referencedDeclaration":854,"src":"1458:10:8"},"nodeType":"UsingForDirective","src":"1452:23:8"},{"body":{"id":871,"nodeType":"Block","src":"1657:57:8","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":868,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":863,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"1681:5:8","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":864,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"1681:15:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"%","rightExpression":{"commonType":{"typeIdentifier":"t_rational_4294967296_by_1","typeString":"int_const 4294967296"},"id":867,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":865,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1699:1:8","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"**","rightExpression":{"hexValue":"3332","id":866,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1704:2:8","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"value":"32"},"src":"1699:7:8","typeDescriptions":{"typeIdentifier":"t_rational_4294967296_by_1","typeString":"int_const 4294967296"}},"src":"1681:25:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":862,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1674:6:8","typeDescriptions":{"typeIdentifier":"t_type$_t_uint32_$","typeString":"type(uint32)"},"typeName":{"id":861,"name":"uint32","nodeType":"ElementaryTypeName","src":"1674:6:8","typeDescriptions":{}}},"id":869,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1674:33:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"functionReturnParameters":860,"id":870,"nodeType":"Return","src":"1667:40:8"}]},"id":872,"implemented":true,"kind":"function","modifiers":[],"name":"currentBlockTimestamp","nameLocation":"1602:21:8","nodeType":"FunctionDefinition","parameters":{"id":857,"nodeType":"ParameterList","parameters":[],"src":"1623:2:8"},"returnParameters":{"id":860,"nodeType":"ParameterList","parameters":[{"constant":false,"id":859,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":872,"src":"1649:6:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":858,"name":"uint32","nodeType":"ElementaryTypeName","src":"1649:6:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"1648:8:8"},"scope":958,"src":"1593:121:8","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":956,"nodeType":"Block","src":"1976:953:8","statements":[{"expression":{"id":886,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":883,"name":"blockTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":881,"src":"1986:14:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[],"expression":{"argumentTypes":[],"id":884,"name":"currentBlockTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":872,"src":"2003:21:8","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint32_$","typeString":"function () view returns (uint32)"}},"id":885,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2003:23:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"src":"1986:40:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"id":887,"nodeType":"ExpressionStatement","src":"1986:40:8"},{"expression":{"id":894,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":888,"name":"price0Cumulative","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":877,"src":"2036:16:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":890,"name":"pair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":874,"src":"2068:4:8","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":889,"name":"IPancakePair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":803,"src":"2055:12:8","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IPancakePair_$803_$","typeString":"type(contract IPancakePair)"}},"id":891,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2055:18:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IPancakePair_$803","typeString":"contract IPancakePair"}},"id":892,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"price0CumulativeLast","nodeType":"MemberAccess","referencedDeclaration":797,"src":"2055:39:8","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint256_$","typeString":"function () view external returns (uint256)"}},"id":893,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2055:41:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2036:60:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":895,"nodeType":"ExpressionStatement","src":"2036:60:8"},{"expression":{"id":902,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":896,"name":"price1Cumulative","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":879,"src":"2106:16:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":898,"name":"pair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":874,"src":"2138:4:8","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":897,"name":"IPancakePair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":803,"src":"2125:12:8","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IPancakePair_$803_$","typeString":"type(contract IPancakePair)"}},"id":899,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2125:18:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IPancakePair_$803","typeString":"contract IPancakePair"}},"id":900,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"price1CumulativeLast","nodeType":"MemberAccess","referencedDeclaration":802,"src":"2125:39:8","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint256_$","typeString":"function () view external returns (uint256)"}},"id":901,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2125:41:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2106:60:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":903,"nodeType":"ExpressionStatement","src":"2106:60:8"},{"assignments":[905,907,909],"declarations":[{"constant":false,"id":905,"mutability":"mutable","name":"reserve0","nameLocation":"2286:8:8","nodeType":"VariableDeclaration","scope":956,"src":"2278:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":904,"name":"uint112","nodeType":"ElementaryTypeName","src":"2278:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"},{"constant":false,"id":907,"mutability":"mutable","name":"reserve1","nameLocation":"2304:8:8","nodeType":"VariableDeclaration","scope":956,"src":"2296:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"},"typeName":{"id":906,"name":"uint112","nodeType":"ElementaryTypeName","src":"2296:7:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},"visibility":"internal"},{"constant":false,"id":909,"mutability":"mutable","name":"blockTimestampLast","nameLocation":"2321:18:8","nodeType":"VariableDeclaration","scope":956,"src":"2314:25:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":908,"name":"uint32","nodeType":"ElementaryTypeName","src":"2314:6:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"id":915,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":911,"name":"pair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":874,"src":"2356:4:8","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":910,"name":"IPancakePair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":803,"src":"2343:12:8","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IPancakePair_$803_$","typeString":"type(contract IPancakePair)"}},"id":912,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2343:18:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IPancakePair_$803","typeString":"contract IPancakePair"}},"id":913,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"getReserves","nodeType":"MemberAccess","referencedDeclaration":792,"src":"2343:30:8","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint112_$_t_uint112_$_t_uint32_$","typeString":"function () view external returns (uint112,uint112,uint32)"}},"id":914,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2343:32:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint112_$_t_uint112_$_t_uint32_$","typeString":"tuple(uint112,uint112,uint32)"}},"nodeType":"VariableDeclarationStatement","src":"2277:98:8"},{"condition":{"commonType":{"typeIdentifier":"t_uint32","typeString":"uint32"},"id":918,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":916,"name":"blockTimestampLast","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":909,"src":"2389:18:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":917,"name":"blockTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":881,"src":"2411:14:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"src":"2389:36:8","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":955,"nodeType":"IfStatement","src":"2385:538:8","trueBody":{"id":954,"nodeType":"Block","src":"2427:496:8","statements":[{"id":953,"nodeType":"UncheckedBlock","src":"2441:472:8","statements":[{"assignments":[920],"declarations":[{"constant":false,"id":920,"mutability":"mutable","name":"timeElapsed","nameLocation":"2527:11:8","nodeType":"VariableDeclaration","scope":953,"src":"2520:18:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":919,"name":"uint32","nodeType":"ElementaryTypeName","src":"2520:6:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"id":924,"initialValue":{"commonType":{"typeIdentifier":"t_uint32","typeString":"uint32"},"id":923,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":921,"name":"blockTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":881,"src":"2541:14:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":922,"name":"blockTimestampLast","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":909,"src":"2558:18:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"src":"2541:35:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"nodeType":"VariableDeclarationStatement","src":"2520:56:8"},{"expression":{"id":937,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":925,"name":"price0Cumulative","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":877,"src":"2676:16:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"+=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":936,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"expression":{"arguments":[{"id":930,"name":"reserve1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":907,"src":"2724:8:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},{"id":931,"name":"reserve0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":905,"src":"2734:8:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint112","typeString":"uint112"},{"typeIdentifier":"t_uint112","typeString":"uint112"}],"expression":{"id":928,"name":"FixedPoint","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":854,"src":"2704:10:8","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FixedPoint_$854_$","typeString":"type(library FixedPoint)"}},"id":929,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"fraction","nodeType":"MemberAccess","referencedDeclaration":836,"src":"2704:19:8","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint112_$_t_uint112_$returns$_t_struct$_uq112x112_$806_memory_ptr_$","typeString":"function (uint112,uint112) pure returns (struct FixedPoint.uq112x112 memory)"}},"id":932,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2704:39:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"id":933,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"_x","nodeType":"MemberAccess","referencedDeclaration":805,"src":"2704:42:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint224","typeString":"uint224"}],"id":927,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2696:7:8","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":926,"name":"uint256","nodeType":"ElementaryTypeName","src":"2696:7:8","typeDescriptions":{}}},"id":934,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2696:51:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":935,"name":"timeElapsed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":920,"src":"2750:11:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"src":"2696:65:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2676:85:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":938,"nodeType":"ExpressionStatement","src":"2676:85:8"},{"expression":{"id":951,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":939,"name":"price1Cumulative","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":879,"src":"2813:16:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"+=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":950,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"expression":{"arguments":[{"id":944,"name":"reserve0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":905,"src":"2861:8:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}},{"id":945,"name":"reserve1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":907,"src":"2871:8:8","typeDescriptions":{"typeIdentifier":"t_uint112","typeString":"uint112"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint112","typeString":"uint112"},{"typeIdentifier":"t_uint112","typeString":"uint112"}],"expression":{"id":942,"name":"FixedPoint","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":854,"src":"2841:10:8","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FixedPoint_$854_$","typeString":"type(library FixedPoint)"}},"id":943,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"fraction","nodeType":"MemberAccess","referencedDeclaration":836,"src":"2841:19:8","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint112_$_t_uint112_$returns$_t_struct$_uq112x112_$806_memory_ptr_$","typeString":"function (uint112,uint112) pure returns (struct FixedPoint.uq112x112 memory)"}},"id":946,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2841:39:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"id":947,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"_x","nodeType":"MemberAccess","referencedDeclaration":805,"src":"2841:42:8","typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint224","typeString":"uint224"}],"id":941,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2833:7:8","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":940,"name":"uint256","nodeType":"ElementaryTypeName","src":"2833:7:8","typeDescriptions":{}}},"id":948,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2833:51:8","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":949,"name":"timeElapsed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":920,"src":"2887:11:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"src":"2833:65:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2813:85:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":952,"nodeType":"ExpressionStatement","src":"2813:85:8"}]}]}}]},"id":957,"implemented":true,"kind":"function","modifiers":[],"name":"currentCumulativePrices","nameLocation":"1826:23:8","nodeType":"FunctionDefinition","parameters":{"id":875,"nodeType":"ParameterList","parameters":[{"constant":false,"id":874,"mutability":"mutable","name":"pair","nameLocation":"1867:4:8","nodeType":"VariableDeclaration","scope":957,"src":"1859:12:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":873,"name":"address","nodeType":"ElementaryTypeName","src":"1859:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1849:28:8"},"returnParameters":{"id":882,"nodeType":"ParameterList","parameters":[{"constant":false,"id":877,"mutability":"mutable","name":"price0Cumulative","nameLocation":"1909:16:8","nodeType":"VariableDeclaration","scope":957,"src":"1901:24:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":876,"name":"uint256","nodeType":"ElementaryTypeName","src":"1901:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":879,"mutability":"mutable","name":"price1Cumulative","nameLocation":"1935:16:8","nodeType":"VariableDeclaration","scope":957,"src":"1927:24:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":878,"name":"uint256","nodeType":"ElementaryTypeName","src":"1927:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":881,"mutability":"mutable","name":"blockTimestamp","nameLocation":"1960:14:8","nodeType":"VariableDeclaration","scope":957,"src":"1953:21:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":880,"name":"uint32","nodeType":"ElementaryTypeName","src":"1953:6:8","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"1900:75:8"},"scope":958,"src":"1817:1112:8","stateMutability":"view","virtual":false,"visibility":"internal"}],"scope":959,"src":"1417:1514:8","usedErrors":[]}],"src":"41:2891:8"},"id":8},"contracts/oracles/TwapOracle.sol":{"ast":{"absolutePath":"contracts/oracles/TwapOracle.sol","exportedSymbols":{"AddressUpgradeable":[584],"BoundValidatorInterface":[769],"ContextUpgradeable":[626],"FixedPoint":[854],"IERC20":[704],"IERC20Metadata":[729],"IPancakePair":[803],"Initializable":[300],"Observation":[970],"OracleInterface":[739],"OwnableUpgradeable":[131],"PancakeOracleLibrary":[958],"ResilientOracleInterface":[747],"TokenConfig":[989],"TwapInterface":[757],"TwapOracle":[1676],"VBep20Interface":[781]},"id":1677,"license":"BSD-3-Clause","nodeType":"SourceUnit","nodes":[{"id":960,"literals":["solidity","0.8",".13"],"nodeType":"PragmaDirective","src":"41:23:9"},{"absolutePath":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","file":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","id":961,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1677,"sourceUnit":132,"src":"66:75:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol","file":"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol","id":962,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1677,"sourceUnit":730,"src":"142:75:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/libraries/PancakeLibrary.sol","file":"../libraries/PancakeLibrary.sol","id":963,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1677,"sourceUnit":959,"src":"218:41:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/OracleInterface.sol","file":"../interfaces/OracleInterface.sol","id":964,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1677,"sourceUnit":770,"src":"260:43:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/VBep20Interface.sol","file":"../interfaces/VBep20Interface.sol","id":965,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1677,"sourceUnit":782,"src":"304:43:9","symbolAliases":[],"unitAlias":""},{"canonicalName":"Observation","id":970,"members":[{"constant":false,"id":967,"mutability":"mutable","name":"timestamp","nameLocation":"382:9:9","nodeType":"VariableDeclaration","scope":970,"src":"374:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":966,"name":"uint256","nodeType":"ElementaryTypeName","src":"374:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":969,"mutability":"mutable","name":"acc","nameLocation":"405:3:9","nodeType":"VariableDeclaration","scope":970,"src":"397:11:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":968,"name":"uint256","nodeType":"ElementaryTypeName","src":"397:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"name":"Observation","nameLocation":"356:11:9","nodeType":"StructDefinition","scope":1677,"src":"349:62:9","visibility":"public"},{"canonicalName":"TokenConfig","id":989,"members":[{"constant":false,"id":973,"mutability":"mutable","name":"asset","nameLocation":"541:5:9","nodeType":"VariableDeclaration","scope":989,"src":"533:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":972,"name":"address","nodeType":"ElementaryTypeName","src":"533:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":976,"mutability":"mutable","name":"baseUnit","nameLocation":"605:8:9","nodeType":"VariableDeclaration","scope":989,"src":"597:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":975,"name":"uint256","nodeType":"ElementaryTypeName","src":"597:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":979,"mutability":"mutable","name":"pancakePool","nameLocation":"671:11:9","nodeType":"VariableDeclaration","scope":989,"src":"663:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":978,"name":"address","nodeType":"ElementaryTypeName","src":"663:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":982,"mutability":"mutable","name":"isBnbBased","nameLocation":"747:10:9","nodeType":"VariableDeclaration","scope":989,"src":"742:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":981,"name":"bool","nodeType":"ElementaryTypeName","src":"742:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":985,"mutability":"mutable","name":"isReversedPool","nameLocation":"897:14:9","nodeType":"VariableDeclaration","scope":989,"src":"892:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":984,"name":"bool","nodeType":"ElementaryTypeName","src":"892:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":988,"mutability":"mutable","name":"anchorPeriod","nameLocation":"1001:12:9","nodeType":"VariableDeclaration","scope":989,"src":"993:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":987,"name":"uint256","nodeType":"ElementaryTypeName","src":"993:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"name":"TokenConfig","nameLocation":"420:11:9","nodeType":"StructDefinition","scope":1677,"src":"413:603:9","visibility":"public"},{"abstract":false,"baseContracts":[{"baseName":{"id":990,"name":"OwnableUpgradeable","nodeType":"IdentifierPath","referencedDeclaration":131,"src":"1041:18:9"},"id":991,"nodeType":"InheritanceSpecifier","src":"1041:18:9"},{"baseName":{"id":992,"name":"TwapInterface","nodeType":"IdentifierPath","referencedDeclaration":757,"src":"1061:13:9"},"id":993,"nodeType":"InheritanceSpecifier","src":"1061:13:9"}],"canonicalName":"TwapOracle","contractDependencies":[],"contractKind":"contract","fullyImplemented":true,"id":1676,"linearizedBaseContracts":[1676,757,739,131,626,300],"name":"TwapOracle","nameLocation":"1027:10:9","nodeType":"ContractDefinition","nodes":[{"global":false,"id":995,"libraryName":{"id":994,"name":"FixedPoint","nodeType":"IdentifierPath","referencedDeclaration":854,"src":"1087:10:9"},"nodeType":"UsingForDirective","src":"1081:23:9"},{"constant":false,"documentation":{"id":996,"nodeType":"StructuredDocumentation","src":"1110:90:9","text":"@notice WBNB address\n @custom:oz-upgrades-unsafe-allow state-variable-immutable"},"functionSelector":"8dd95002","id":998,"mutability":"immutable","name":"WBNB","nameLocation":"1230:4:9","nodeType":"VariableDeclaration","scope":1676,"src":"1205:29:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":997,"name":"address","nodeType":"ElementaryTypeName","src":"1205:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"constant":false,"documentation":{"id":999,"nodeType":"StructuredDocumentation","src":"1241:90:9","text":"@notice vBNB address\n @custom:oz-upgrades-unsafe-allow state-variable-immutable"},"functionSelector":"5ba3792d","id":1001,"mutability":"immutable","name":"vBnb","nameLocation":"1361:4:9","nodeType":"VariableDeclaration","scope":1676,"src":"1336:29:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1000,"name":"address","nodeType":"ElementaryTypeName","src":"1336:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"constant":true,"documentation":{"id":1002,"nodeType":"StructuredDocumentation","src":"1372:86:9","text":"@notice the base unit of WBNB and BUSD, which are the paired tokens for all assets"},"functionSelector":"b8a8a626","id":1005,"mutability":"constant","name":"bnbBaseUnit","nameLocation":"1487:11:9","nodeType":"VariableDeclaration","scope":1676,"src":"1463:42:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1003,"name":"uint256","nodeType":"ElementaryTypeName","src":"1463:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"31653138","id":1004,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1501:4:9","typeDescriptions":{"typeIdentifier":"t_rational_1000000000000000000_by_1","typeString":"int_const 1000000000000000000"},"value":"1e18"},"visibility":"public"},{"constant":true,"functionSelector":"609f0f36","id":1008,"mutability":"constant","name":"busdBaseUnit","nameLocation":"1535:12:9","nodeType":"VariableDeclaration","scope":1676,"src":"1511:43:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1006,"name":"uint256","nodeType":"ElementaryTypeName","src":"1511:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"31653138","id":1007,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1550:4:9","typeDescriptions":{"typeIdentifier":"t_rational_1000000000000000000_by_1","typeString":"int_const 1000000000000000000"},"value":"1e18"},"visibility":"public"},{"constant":true,"functionSelector":"69aa3ac6","id":1011,"mutability":"constant","name":"expScale","nameLocation":"1585:8:9","nodeType":"VariableDeclaration","scope":1676,"src":"1561:39:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1009,"name":"uint256","nodeType":"ElementaryTypeName","src":"1561:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"31653138","id":1010,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1596:4:9","typeDescriptions":{"typeIdentifier":"t_rational_1000000000000000000_by_1","typeString":"int_const 1000000000000000000"},"value":"1e18"},"visibility":"public"},{"constant":false,"documentation":{"id":1012,"nodeType":"StructuredDocumentation","src":"1607:28:9","text":"@notice Configs by token"},"functionSelector":"1b69dc5f","id":1017,"mutability":"mutable","name":"tokenConfigs","nameLocation":"1679:12:9","nodeType":"VariableDeclaration","scope":1676,"src":"1640:51:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig)"},"typeName":{"id":1016,"keyType":{"id":1013,"name":"address","nodeType":"ElementaryTypeName","src":"1648:7:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"1640:31:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig)"},"valueType":{"id":1015,"nodeType":"UserDefinedTypeName","pathNode":{"id":1014,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"1659:11:9"},"referencedDeclaration":989,"src":"1659:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}}},"visibility":"public"},{"constant":false,"documentation":{"id":1018,"nodeType":"StructuredDocumentation","src":"1698:33:9","text":"@notice Stored price by token"},"functionSelector":"cfed246b","id":1022,"mutability":"mutable","name":"prices","nameLocation":"1771:6:9","nodeType":"VariableDeclaration","scope":1676,"src":"1736:41:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"},"typeName":{"id":1021,"keyType":{"id":1019,"name":"address","nodeType":"ElementaryTypeName","src":"1744:7:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"1736:27:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"},"valueType":{"id":1020,"name":"uint256","nodeType":"ElementaryTypeName","src":"1755:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"visibility":"public"},{"constant":false,"documentation":{"id":1023,"nodeType":"StructuredDocumentation","src":"1784:107:9","text":"@notice Keeps a record of token observations mapped by address, updated on every updateTwap invocation."},"functionSelector":"02459966","id":1029,"mutability":"mutable","name":"observations","nameLocation":"1937:12:9","nodeType":"VariableDeclaration","scope":1676,"src":"1896:53:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation[])"},"typeName":{"id":1028,"keyType":{"id":1024,"name":"address","nodeType":"ElementaryTypeName","src":"1904:7:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"1896:33:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation[])"},"valueType":{"baseType":{"id":1026,"nodeType":"UserDefinedTypeName","pathNode":{"id":1025,"name":"Observation","nodeType":"IdentifierPath","referencedDeclaration":970,"src":"1915:11:9"},"referencedDeclaration":970,"src":"1915:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_storage_ptr","typeString":"struct Observation"}},"id":1027,"nodeType":"ArrayTypeName","src":"1915:13:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr","typeString":"struct Observation[]"}}},"visibility":"public"},{"constant":false,"documentation":{"id":1030,"nodeType":"StructuredDocumentation","src":"1956:105:9","text":"@notice Observation array index which probably falls in current anchor period mapped by asset address"},"functionSelector":"3334ecc5","id":1034,"mutability":"mutable","name":"windowStart","nameLocation":"2101:11:9","nodeType":"VariableDeclaration","scope":1676,"src":"2066:46:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"},"typeName":{"id":1033,"keyType":{"id":1031,"name":"address","nodeType":"ElementaryTypeName","src":"2074:7:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"2066:27:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"},"valueType":{"id":1032,"name":"uint256","nodeType":"ElementaryTypeName","src":"2085:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"visibility":"public"},{"anonymous":false,"documentation":{"id":1035,"nodeType":"StructuredDocumentation","src":"2119:55:9","text":"@notice Emit this event when TWAP window is updated"},"eventSelector":"87208a84ec7402c933c70c261e53b733a9f1c893d73e941a152435d58177a264","id":1047,"name":"TwapWindowUpdated","nameLocation":"2185:17:9","nodeType":"EventDefinition","parameters":{"id":1046,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1037,"indexed":true,"mutability":"mutable","name":"asset","nameLocation":"2228:5:9","nodeType":"VariableDeclaration","scope":1047,"src":"2212:21:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1036,"name":"address","nodeType":"ElementaryTypeName","src":"2212:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1039,"indexed":false,"mutability":"mutable","name":"oldTimestamp","nameLocation":"2251:12:9","nodeType":"VariableDeclaration","scope":1047,"src":"2243:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1038,"name":"uint256","nodeType":"ElementaryTypeName","src":"2243:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1041,"indexed":false,"mutability":"mutable","name":"oldAcc","nameLocation":"2281:6:9","nodeType":"VariableDeclaration","scope":1047,"src":"2273:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1040,"name":"uint256","nodeType":"ElementaryTypeName","src":"2273:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1043,"indexed":false,"mutability":"mutable","name":"newTimestamp","nameLocation":"2305:12:9","nodeType":"VariableDeclaration","scope":1047,"src":"2297:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1042,"name":"uint256","nodeType":"ElementaryTypeName","src":"2297:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1045,"indexed":false,"mutability":"mutable","name":"newAcc","nameLocation":"2335:6:9","nodeType":"VariableDeclaration","scope":1047,"src":"2327:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1044,"name":"uint256","nodeType":"ElementaryTypeName","src":"2327:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2202:145:9"},"src":"2179:169:9"},{"anonymous":false,"documentation":{"id":1048,"nodeType":"StructuredDocumentation","src":"2354:54:9","text":"@notice Emit this event when TWAP price is updated"},"eventSelector":"7d881580fb2bb7844e8ecf8df26510247c4bbea2735d40bf0d9ac33c0d9acd81","id":1058,"name":"AnchorPriceUpdated","nameLocation":"2419:18:9","nodeType":"EventDefinition","parameters":{"id":1057,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1050,"indexed":true,"mutability":"mutable","name":"asset","nameLocation":"2454:5:9","nodeType":"VariableDeclaration","scope":1058,"src":"2438:21:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1049,"name":"address","nodeType":"ElementaryTypeName","src":"2438:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1052,"indexed":false,"mutability":"mutable","name":"price","nameLocation":"2469:5:9","nodeType":"VariableDeclaration","scope":1058,"src":"2461:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1051,"name":"uint256","nodeType":"ElementaryTypeName","src":"2461:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1054,"indexed":false,"mutability":"mutable","name":"oldTimestamp","nameLocation":"2484:12:9","nodeType":"VariableDeclaration","scope":1058,"src":"2476:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1053,"name":"uint256","nodeType":"ElementaryTypeName","src":"2476:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1056,"indexed":false,"mutability":"mutable","name":"newTimestamp","nameLocation":"2506:12:9","nodeType":"VariableDeclaration","scope":1058,"src":"2498:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1055,"name":"uint256","nodeType":"ElementaryTypeName","src":"2498:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2437:82:9"},"src":"2413:107:9"},{"anonymous":false,"documentation":{"id":1059,"nodeType":"StructuredDocumentation","src":"2526:60:9","text":"@notice Emit this event when new token configs are added"},"eventSelector":"3cc8d9cb9370a23a8b9ffa75efa24cecb65c4693980e58260841adc474983c5f","id":1067,"name":"TokenConfigAdded","nameLocation":"2597:16:9","nodeType":"EventDefinition","parameters":{"id":1066,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1061,"indexed":true,"mutability":"mutable","name":"asset","nameLocation":"2630:5:9","nodeType":"VariableDeclaration","scope":1067,"src":"2614:21:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1060,"name":"address","nodeType":"ElementaryTypeName","src":"2614:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1063,"indexed":true,"mutability":"mutable","name":"pancakePool","nameLocation":"2653:11:9","nodeType":"VariableDeclaration","scope":1067,"src":"2637:27:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1062,"name":"address","nodeType":"ElementaryTypeName","src":"2637:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1065,"indexed":true,"mutability":"mutable","name":"anchorPeriod","nameLocation":"2682:12:9","nodeType":"VariableDeclaration","scope":1067,"src":"2666:28:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1064,"name":"uint256","nodeType":"ElementaryTypeName","src":"2666:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2613:82:9"},"src":"2591:105:9"},{"body":{"id":1082,"nodeType":"Block","src":"2743:83:9","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1077,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1072,"name":"someone","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1069,"src":"2761:7:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":1075,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2780:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":1074,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2772:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1073,"name":"address","nodeType":"ElementaryTypeName","src":"2772:7:9","typeDescriptions":{}}},"id":1076,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2772:10:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"2761:21:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"63616e2774206265207a65726f2061646472657373","id":1078,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2784:23:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296","typeString":"literal_string \"can't be zero address\""},"value":"can't be zero address"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296","typeString":"literal_string \"can't be zero address\""}],"id":1071,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2753:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1079,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2753:55:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1080,"nodeType":"ExpressionStatement","src":"2753:55:9"},{"id":1081,"nodeType":"PlaceholderStatement","src":"2818:1:9"}]},"id":1083,"name":"notNullAddress","nameLocation":"2711:14:9","nodeType":"ModifierDefinition","parameters":{"id":1070,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1069,"mutability":"mutable","name":"someone","nameLocation":"2734:7:9","nodeType":"VariableDeclaration","scope":1083,"src":"2726:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1068,"name":"address","nodeType":"ElementaryTypeName","src":"2726:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2725:17:9"},"src":"2702:124:9","virtual":false,"visibility":"internal"},{"body":{"id":1108,"nodeType":"Block","src":"3184:95:9","statements":[{"expression":{"id":1099,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1097,"name":"vBnb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1001,"src":"3194:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1098,"name":"vBnbAddress","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1086,"src":"3201:11:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"3194:18:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":1100,"nodeType":"ExpressionStatement","src":"3194:18:9"},{"expression":{"id":1103,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1101,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"3222:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1102,"name":"wBnbAddress","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1088,"src":"3229:11:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"3222:18:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":1104,"nodeType":"ExpressionStatement","src":"3222:18:9"},{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":1105,"name":"_disableInitializers","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":281,"src":"3250:20:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$__$returns$__$","typeString":"function ()"}},"id":1106,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3250:22:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1107,"nodeType":"ExpressionStatement","src":"3250:22:9"}]},"documentation":{"id":1084,"nodeType":"StructuredDocumentation","src":"2832:237:9","text":"@notice Constructor for the implementation contract. Sets immutable variables.\n @param vBnbAddress The address of the VBNB\n @param wBnbAddress The address of the WBNB\n @custom:oz-upgrades-unsafe-allow constructor"},"id":1109,"implemented":true,"kind":"constructor","modifiers":[{"arguments":[{"id":1091,"name":"vBnbAddress","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1086,"src":"3143:11:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":1092,"kind":"modifierInvocation","modifierName":{"id":1090,"name":"notNullAddress","nodeType":"IdentifierPath","referencedDeclaration":1083,"src":"3128:14:9"},"nodeType":"ModifierInvocation","src":"3128:27:9"},{"arguments":[{"id":1094,"name":"wBnbAddress","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1088,"src":"3171:11:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":1095,"kind":"modifierInvocation","modifierName":{"id":1093,"name":"notNullAddress","nodeType":"IdentifierPath","referencedDeclaration":1083,"src":"3156:14:9"},"nodeType":"ModifierInvocation","src":"3156:27:9"}],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":1089,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1086,"mutability":"mutable","name":"vBnbAddress","nameLocation":"3094:11:9","nodeType":"VariableDeclaration","scope":1109,"src":"3086:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1085,"name":"address","nodeType":"ElementaryTypeName","src":"3086:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1088,"mutability":"mutable","name":"wBnbAddress","nameLocation":"3115:11:9","nodeType":"VariableDeclaration","scope":1109,"src":"3107:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1087,"name":"address","nodeType":"ElementaryTypeName","src":"3107:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3085:42:9"},"returnParameters":{"id":1096,"nodeType":"ParameterList","parameters":[],"src":"3184:0:9"},"scope":1676,"src":"3074:205:9","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":1149,"nodeType":"Block","src":"3552:217:9","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1123,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1120,"name":"configs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1114,"src":"3570:7:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr","typeString":"struct TokenConfig memory[] memory"}},"id":1121,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"3570:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1122,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3587:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3570:18:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6c656e6774682063616e27742062652030","id":1124,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3590:19:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_2bcde6d36e25ff80edf1e7b323425b7fef87f9e0a4cccb1475b35b230048c1ed","typeString":"literal_string \"length can't be 0\""},"value":"length can't be 0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_2bcde6d36e25ff80edf1e7b323425b7fef87f9e0a4cccb1475b35b230048c1ed","typeString":"literal_string \"length can't be 0\""}],"id":1119,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"3562:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1125,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3562:48:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1126,"nodeType":"ExpressionStatement","src":"3562:48:9"},{"assignments":[1128],"declarations":[{"constant":false,"id":1128,"mutability":"mutable","name":"numTokenConfigs","nameLocation":"3628:15:9","nodeType":"VariableDeclaration","scope":1149,"src":"3620:23:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1127,"name":"uint256","nodeType":"ElementaryTypeName","src":"3620:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1131,"initialValue":{"expression":{"id":1129,"name":"configs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1114,"src":"3646:7:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr","typeString":"struct TokenConfig memory[] memory"}},"id":1130,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"3646:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"3620:40:9"},{"body":{"id":1147,"nodeType":"Block","src":"3712:51:9","statements":[{"expression":{"arguments":[{"baseExpression":{"id":1142,"name":"configs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1114,"src":"3741:7:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr","typeString":"struct TokenConfig memory[] memory"}},"id":1144,"indexExpression":{"id":1143,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1133,"src":"3749:1:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"3741:10:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}],"id":1141,"name":"setTokenConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1310,"src":"3726:14:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_struct$_TokenConfig_$989_memory_ptr_$returns$__$","typeString":"function (struct TokenConfig memory)"}},"id":1145,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3726:26:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1146,"nodeType":"ExpressionStatement","src":"3726:26:9"}]},"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1137,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1135,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1133,"src":"3686:1:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":1136,"name":"numTokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1128,"src":"3690:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3686:19:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1148,"initializationExpression":{"assignments":[1133],"declarations":[{"constant":false,"id":1133,"mutability":"mutable","name":"i","nameLocation":"3683:1:9","nodeType":"VariableDeclaration","scope":1148,"src":"3675:9:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1132,"name":"uint256","nodeType":"ElementaryTypeName","src":"3675:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1134,"nodeType":"VariableDeclarationStatement","src":"3675:9:9"},"loopExpression":{"expression":{"id":1139,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":true,"src":"3707:3:9","subExpression":{"id":1138,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1133,"src":"3709:1:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1140,"nodeType":"ExpressionStatement","src":"3707:3:9"},"nodeType":"ForStatement","src":"3670:93:9"}]},"documentation":{"id":1110,"nodeType":"StructuredDocumentation","src":"3285:188:9","text":" @notice Adds multiple token configs at the same time\n @param configs Config array\n @custom:error Zero length error thrown, if length of the config array is 0"},"functionSelector":"234a3446","id":1150,"implemented":true,"kind":"function","modifiers":[{"id":1117,"kind":"modifierInvocation","modifierName":{"id":1116,"name":"onlyOwner","nodeType":"IdentifierPath","referencedDeclaration":45,"src":"3542:9:9"},"nodeType":"ModifierInvocation","src":"3542:9:9"}],"name":"setTokenConfigs","nameLocation":"3487:15:9","nodeType":"FunctionDefinition","parameters":{"id":1115,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1114,"mutability":"mutable","name":"configs","nameLocation":"3524:7:9","nodeType":"VariableDeclaration","scope":1150,"src":"3503:28:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr","typeString":"struct TokenConfig[]"},"typeName":{"baseType":{"id":1112,"nodeType":"UserDefinedTypeName","pathNode":{"id":1111,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"3503:11:9"},"referencedDeclaration":989,"src":"3503:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}},"id":1113,"nodeType":"ArrayTypeName","src":"3503:13:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_TokenConfig_$989_storage_$dyn_storage_ptr","typeString":"struct TokenConfig[]"}},"visibility":"internal"}],"src":"3502:30:9"},"returnParameters":{"id":1118,"nodeType":"ParameterList","parameters":[],"src":"3552:0:9"},"scope":1676,"src":"3478:291:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[738],"body":{"id":1216,"nodeType":"Block","src":"4185:538:9","statements":[{"assignments":[1160],"declarations":[{"constant":false,"id":1160,"mutability":"mutable","name":"asset","nameLocation":"4291:5:9","nodeType":"VariableDeclaration","scope":1216,"src":"4283:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1159,"name":"address","nodeType":"ElementaryTypeName","src":"4283:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"id":1174,"initialValue":{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1166,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":1163,"name":"vToken","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1153,"src":"4307:6:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1162,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4299:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1161,"name":"address","nodeType":"ElementaryTypeName","src":"4299:7:9","typeDescriptions":{}}},"id":1164,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4299:15:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":1165,"name":"vBnb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1001,"src":"4318:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"4299:23:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":1169,"name":"vToken","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1153,"src":"4348:6:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1168,"name":"VBep20Interface","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":781,"src":"4332:15:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_VBep20Interface_$781_$","typeString":"type(contract VBep20Interface)"}},"id":1170,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4332:23:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_VBep20Interface_$781","typeString":"contract VBep20Interface"}},"id":1171,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"underlying","nodeType":"MemberAccess","referencedDeclaration":780,"src":"4332:34:9","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_address_$","typeString":"function () view external returns (address)"}},"id":1172,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4332:36:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":1173,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"4299:69:9","trueExpression":{"id":1167,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"4325:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"VariableDeclarationStatement","src":"4283:85:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1184,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"baseExpression":{"id":1176,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"4386:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1178,"indexExpression":{"id":1177,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1160,"src":"4399:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4386:19:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"id":1179,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"4386:25:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":1182,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4423:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":1181,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4415:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1180,"name":"address","nodeType":"ElementaryTypeName","src":"4415:7:9","typeDescriptions":{}}},"id":1183,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4415:10:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"4386:39:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6173736574206e6f74206578697374","id":1185,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4427:17:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18","typeString":"literal_string \"asset not exist\""},"value":"asset not exist"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18","typeString":"literal_string \"asset not exist\""}],"id":1175,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4378:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1186,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4378:67:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1187,"nodeType":"ExpressionStatement","src":"4378:67:9"},{"assignments":[1189],"declarations":[{"constant":false,"id":1189,"mutability":"mutable","name":"price","nameLocation":"4463:5:9","nodeType":"VariableDeclaration","scope":1216,"src":"4455:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1188,"name":"uint256","nodeType":"ElementaryTypeName","src":"4455:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1193,"initialValue":{"baseExpression":{"id":1190,"name":"prices","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1022,"src":"4471:6:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"}},"id":1192,"indexExpression":{"id":1191,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1160,"src":"4478:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4471:13:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"4455:29:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1197,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1195,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1189,"src":"4601:5:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1196,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4609:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4601:9:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"54574150207072696365206d75737420626520706f736974697665","id":1198,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4612:29:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_d951cb074914841cb4111125601a149e927e68a41aa2d7966912f89cd700c420","typeString":"literal_string \"TWAP price must be positive\""},"value":"TWAP price must be positive"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_d951cb074914841cb4111125601a149e927e68a41aa2d7966912f89cd700c420","typeString":"literal_string \"TWAP price must be positive\""}],"id":1194,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4593:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1199,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4593:49:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1200,"nodeType":"ExpressionStatement","src":"4593:49:9"},{"expression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1213,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1201,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1189,"src":"4660:5:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1211,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"3130","id":1202,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4669:2:9","typeDescriptions":{"typeIdentifier":"t_rational_10_by_1","typeString":"int_const 10"},"value":"10"},"nodeType":"BinaryOperation","operator":"**","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":1209,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"3138","id":1203,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4676:2:9","typeDescriptions":{"typeIdentifier":"t_rational_18_by_1","typeString":"int_const 18"},"value":"18"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":1205,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1160,"src":"4696:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1204,"name":"IERC20Metadata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":729,"src":"4681:14:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IERC20Metadata_$729_$","typeString":"type(contract IERC20Metadata)"}},"id":1206,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4681:21:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IERC20Metadata_$729","typeString":"contract IERC20Metadata"}},"id":1207,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"decimals","nodeType":"MemberAccess","referencedDeclaration":728,"src":"4681:30:9","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint8_$","typeString":"function () view external returns (uint8)"}},"id":1208,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4681:32:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4676:37:9","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"id":1210,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4675:39:9","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4669:45:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1212,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4668:47:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4660:55:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1214,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4659:57:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1158,"id":1215,"nodeType":"Return","src":"4652:64:9"}]},"documentation":{"id":1151,"nodeType":"StructuredDocumentation","src":"3775:320:9","text":" @notice Get the underlying TWAP price for the given vToken\n @param vToken vToken address\n @return price Underlying price in USD\n @custom:error Missing error is thrown if the token config does not exist\n @custom:error Range error is thrown if TWAP price is not greater than zero"},"functionSelector":"fc57d4df","id":1217,"implemented":true,"kind":"function","modifiers":[],"name":"getUnderlyingPrice","nameLocation":"4109:18:9","nodeType":"FunctionDefinition","overrides":{"id":1155,"nodeType":"OverrideSpecifier","overrides":[],"src":"4158:8:9"},"parameters":{"id":1154,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1153,"mutability":"mutable","name":"vToken","nameLocation":"4136:6:9","nodeType":"VariableDeclaration","scope":1217,"src":"4128:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1152,"name":"address","nodeType":"ElementaryTypeName","src":"4128:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"4127:16:9"},"returnParameters":{"id":1158,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1157,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1217,"src":"4176:7:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1156,"name":"uint256","nodeType":"ElementaryTypeName","src":"4176:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4175:9:9"},"scope":1676,"src":"4100:623:9","stateMutability":"view","virtual":false,"visibility":"external"},{"body":{"id":1226,"nodeType":"Block","src":"4871:33:9","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":1223,"name":"__Ownable_init","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":26,"src":"4881:14:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$__$returns$__$","typeString":"function ()"}},"id":1224,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4881:16:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1225,"nodeType":"ExpressionStatement","src":"4881:16:9"}]},"documentation":{"id":1218,"nodeType":"StructuredDocumentation","src":"4729:96:9","text":" @notice Initializes the owner of the contract and sets the contracts required"},"functionSelector":"8129fc1c","id":1227,"implemented":true,"kind":"function","modifiers":[{"id":1221,"kind":"modifierInvocation","modifierName":{"id":1220,"name":"initializer","nodeType":"IdentifierPath","referencedDeclaration":202,"src":"4859:11:9"},"nodeType":"ModifierInvocation","src":"4859:11:9"}],"name":"initialize","nameLocation":"4839:10:9","nodeType":"FunctionDefinition","parameters":{"id":1219,"nodeType":"ParameterList","parameters":[],"src":"4849:2:9"},"returnParameters":{"id":1222,"nodeType":"ParameterList","parameters":[],"src":"4871:0:9"},"scope":1676,"src":"4830:74:9","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":1309,"nodeType":"Block","src":"5776:647:9","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1248,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1245,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5794:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1246,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"anchorPeriod","nodeType":"MemberAccess","referencedDeclaration":988,"src":"5794:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1247,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5816:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5794:23:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"616e63686f7220706572696f64206d75737420626520706f736974697665","id":1249,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5819:32:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_5b63ee466c6470f47e94829ac8475c0f623b1a136bc8bd22b6f22a83a65967a0","typeString":"literal_string \"anchor period must be positive\""},"value":"anchor period must be positive"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_5b63ee466c6470f47e94829ac8475c0f623b1a136bc8bd22b6f22a83a65967a0","typeString":"literal_string \"anchor period must be positive\""}],"id":1244,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5786:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1250,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5786:66:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1251,"nodeType":"ExpressionStatement","src":"5786:66:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1256,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1253,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5870:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1254,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"baseUnit","nodeType":"MemberAccess","referencedDeclaration":976,"src":"5870:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1255,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5888:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5870:19:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6261736520756e6974206d75737420626520706f736974697665","id":1257,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5891:28:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_4f017bc3bc880cbbf5c5a42e0e59054836fef6161a6afc406ce026dd7586e7d3","typeString":"literal_string \"base unit must be positive\""},"value":"base unit must be positive"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_4f017bc3bc880cbbf5c5a42e0e59054836fef6161a6afc406ce026dd7586e7d3","typeString":"literal_string \"base unit must be positive\""}],"id":1252,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5862:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1258,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5862:58:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1259,"nodeType":"ExpressionStatement","src":"5862:58:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1271,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1261,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5951:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1262,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"baseUnit","nodeType":"MemberAccess","referencedDeclaration":976,"src":"5951:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1270,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"3130","id":1263,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5970:2:9","typeDescriptions":{"typeIdentifier":"t_rational_10_by_1","typeString":"int_const 10"},"value":"10"},"nodeType":"BinaryOperation","operator":"**","rightExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"expression":{"id":1265,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5991:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1266,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"5991:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1264,"name":"IERC20Metadata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":729,"src":"5976:14:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IERC20Metadata_$729_$","typeString":"type(contract IERC20Metadata)"}},"id":1267,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5976:28:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IERC20Metadata_$729","typeString":"contract IERC20Metadata"}},"id":1268,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"decimals","nodeType":"MemberAccess","referencedDeclaration":728,"src":"5976:37:9","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint8_$","typeString":"function () view external returns (uint8)"}},"id":1269,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5976:39:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"5970:45:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5951:64:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6261736520756e697420646563696d616c73206d7573742062652073616d6520617320617373657420646563696d616c73","id":1272,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6029:51:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_50635c480c5a4712f90e68527d5e38f58623f4078d491b98bd818c78bd98a946","typeString":"literal_string \"base unit decimals must be same as asset decimals\""},"value":"base unit decimals must be same as asset decimals"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_50635c480c5a4712f90e68527d5e38f58623f4078d491b98bd818c78bd98a946","typeString":"literal_string \"base unit decimals must be same as asset decimals\""}],"id":1260,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5930:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1273,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5930:160:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1274,"nodeType":"ExpressionStatement","src":"5930:160:9"},{"assignments":[1276],"declarations":[{"constant":false,"id":1276,"mutability":"mutable","name":"cumulativePrice","nameLocation":"6109:15:9","nodeType":"VariableDeclaration","scope":1309,"src":"6101:23:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1275,"name":"uint256","nodeType":"ElementaryTypeName","src":"6101:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1280,"initialValue":{"arguments":[{"id":1278,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6150:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}],"id":1277,"name":"currentCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1412,"src":"6127:22:9","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_struct$_TokenConfig_$989_memory_ptr_$returns$_t_uint256_$","typeString":"function (struct TokenConfig memory) view returns (uint256)"}},"id":1279,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6127:30:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"6101:56:9"},{"expression":{"arguments":[{"arguments":[{"expression":{"id":1287,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"6251:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1288,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"6251:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1289,"name":"cumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1276,"src":"6268:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1286,"name":"Observation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":970,"src":"6239:11:9","typeDescriptions":{"typeIdentifier":"t_type$_t_struct$_Observation_$970_storage_ptr_$","typeString":"type(struct Observation storage pointer)"}},"id":1290,"isConstant":false,"isLValue":false,"isPure":false,"kind":"structConstructorCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6239:45:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}],"expression":{"baseExpression":{"id":1281,"name":"observations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1029,"src":"6207:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation storage ref[] storage ref)"}},"id":1284,"indexExpression":{"expression":{"id":1282,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6220:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1283,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"6220:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6207:26:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage","typeString":"struct Observation storage ref[] storage ref"}},"id":1285,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"push","nodeType":"MemberAccess","src":"6207:31:9","typeDescriptions":{"typeIdentifier":"t_function_arraypush_nonpayable$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr_$_t_struct$_Observation_$970_storage_$returns$__$bound_to$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr_$","typeString":"function (struct Observation storage ref[] storage pointer,struct Observation storage ref)"}},"id":1291,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6207:78:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1292,"nodeType":"ExpressionStatement","src":"6207:78:9"},{"expression":{"id":1298,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"id":1293,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"6295:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1296,"indexExpression":{"expression":{"id":1294,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6308:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1295,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"6308:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"6295:26:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1297,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6324:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"src":"6295:35:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"id":1299,"nodeType":"ExpressionStatement","src":"6295:35:9"},{"eventCall":{"arguments":[{"expression":{"id":1301,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6362:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1302,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"6362:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":1303,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6376:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1304,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"pancakePool","nodeType":"MemberAccess","referencedDeclaration":979,"src":"6376:18:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":1305,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"6396:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1306,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"anchorPeriod","nodeType":"MemberAccess","referencedDeclaration":988,"src":"6396:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1300,"name":"TokenConfigAdded","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"6345:16:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$","typeString":"function (address,address,uint256)"}},"id":1307,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6345:71:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1308,"nodeType":"EmitStatement","src":"6340:76:9"}]},"documentation":{"id":1228,"nodeType":"StructuredDocumentation","src":"4910:715:9","text":" @notice Adds a single token config\n @param config token config struct\n @custom:access Only Governance\n @custom:error Range error is thrown if anchor period is not greater than zero\n @custom:error Range error is thrown if base unit is not greater than zero\n @custom:error Value error is thrown if base unit decimals is not the same as asset decimals\n @custom:error NotNullAddress error is thrown if address of asset is null\n @custom:error NotNullAddress error is thrown if PancakeSwap pool address is null\n @custom:event Emits TokenConfigAdded event if new token config are added with\n asset address, PancakePool address, anchor period address"},"functionSelector":"cbf67919","id":1310,"implemented":true,"kind":"function","modifiers":[{"id":1234,"kind":"modifierInvocation","modifierName":{"id":1233,"name":"onlyOwner","nodeType":"IdentifierPath","referencedDeclaration":45,"src":"5702:9:9"},"nodeType":"ModifierInvocation","src":"5702:9:9"},{"arguments":[{"expression":{"id":1236,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5727:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1237,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"5727:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":1238,"kind":"modifierInvocation","modifierName":{"id":1235,"name":"notNullAddress","nodeType":"IdentifierPath","referencedDeclaration":1083,"src":"5712:14:9"},"nodeType":"ModifierInvocation","src":"5712:28:9"},{"arguments":[{"expression":{"id":1240,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1231,"src":"5756:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1241,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"pancakePool","nodeType":"MemberAccess","referencedDeclaration":979,"src":"5756:18:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":1242,"kind":"modifierInvocation","modifierName":{"id":1239,"name":"notNullAddress","nodeType":"IdentifierPath","referencedDeclaration":1083,"src":"5741:14:9"},"nodeType":"ModifierInvocation","src":"5741:34:9"}],"name":"setTokenConfig","nameLocation":"5639:14:9","nodeType":"FunctionDefinition","parameters":{"id":1232,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1231,"mutability":"mutable","name":"config","nameLocation":"5682:6:9","nodeType":"VariableDeclaration","scope":1310,"src":"5663:25:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig"},"typeName":{"id":1230,"nodeType":"UserDefinedTypeName","pathNode":{"id":1229,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"5663:11:9"},"referencedDeclaration":989,"src":"5663:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}},"visibility":"internal"}],"src":"5653:41:9"},"returnParameters":{"id":1243,"nodeType":"ParameterList","parameters":[],"src":"5776:0:9"},"scope":1676,"src":"5630:793:9","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"baseFunctions":[756],"body":{"id":1382,"nodeType":"Block","src":"6761:624:9","statements":[{"assignments":[1319],"declarations":[{"constant":false,"id":1319,"mutability":"mutable","name":"asset","nameLocation":"6867:5:9","nodeType":"VariableDeclaration","scope":1382,"src":"6859:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1318,"name":"address","nodeType":"ElementaryTypeName","src":"6859:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"id":1333,"initialValue":{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1325,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":1322,"name":"vToken","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1313,"src":"6883:6:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1321,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6875:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1320,"name":"address","nodeType":"ElementaryTypeName","src":"6875:7:9","typeDescriptions":{}}},"id":1323,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6875:15:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":1324,"name":"vBnb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1001,"src":"6894:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"6875:23:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":1328,"name":"vToken","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1313,"src":"6924:6:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":1327,"name":"VBep20Interface","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":781,"src":"6908:15:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_VBep20Interface_$781_$","typeString":"type(contract VBep20Interface)"}},"id":1329,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6908:23:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_VBep20Interface_$781","typeString":"contract VBep20Interface"}},"id":1330,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"underlying","nodeType":"MemberAccess","referencedDeclaration":780,"src":"6908:34:9","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_address_$","typeString":"function () view external returns (address)"}},"id":1331,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6908:36:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":1332,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"6875:69:9","trueExpression":{"id":1326,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"6901:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"VariableDeclarationStatement","src":"6859:85:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1343,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"baseExpression":{"id":1335,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"6962:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1337,"indexExpression":{"id":1336,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1319,"src":"6975:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6962:19:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"id":1338,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"6962:25:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":1341,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6999:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":1340,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6991:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1339,"name":"address","nodeType":"ElementaryTypeName","src":"6991:7:9","typeDescriptions":{}}},"id":1342,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6991:10:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"6962:39:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6173736574206e6f74206578697374","id":1344,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"7003:17:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18","typeString":"literal_string \"asset not exist\""},"value":"asset not exist"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18","typeString":"literal_string \"asset not exist\""}],"id":1334,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"6954:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1345,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"6954:67:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1346,"nodeType":"ExpressionStatement","src":"6954:67:9"},{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1354,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1349,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1347,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1319,"src":"7130:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":1348,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"7139:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"7130:13:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"expression":{"baseExpression":{"id":1350,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"7147:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1352,"indexExpression":{"id":1351,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1319,"src":"7160:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7147:19:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"id":1353,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"isBnbBased","nodeType":"MemberAccess","referencedDeclaration":982,"src":"7147:30:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"7130:47:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1375,"nodeType":"IfStatement","src":"7126:196:9","trueBody":{"id":1374,"nodeType":"Block","src":"7179:143:9","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":1364,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"baseExpression":{"id":1356,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"7201:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1358,"indexExpression":{"id":1357,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"7214:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7201:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}},"id":1359,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"7201:24:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":1362,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7237:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":1361,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"7229:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1360,"name":"address","nodeType":"ElementaryTypeName","src":"7229:7:9","typeDescriptions":{}}},"id":1363,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7229:10:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"7201:38:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"57424e42206e6f74206578697374","id":1365,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"7241:16:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_aef763fd4fb164a611c1f79474469d30e366c3b2b994b385d33a8daa09234aaf","typeString":"literal_string \"WBNB not exist\""},"value":"WBNB not exist"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_aef763fd4fb164a611c1f79474469d30e366c3b2b994b385d33a8daa09234aaf","typeString":"literal_string \"WBNB not exist\""}],"id":1355,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"7193:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1366,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7193:65:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1367,"nodeType":"ExpressionStatement","src":"7193:65:9"},{"expression":{"arguments":[{"baseExpression":{"id":1369,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"7292:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1371,"indexExpression":{"id":1370,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"7305:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7292:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}],"id":1368,"name":"_updateTwapInternal","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1540,"src":"7272:19:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_struct$_TokenConfig_$989_memory_ptr_$returns$_t_uint256_$","typeString":"function (struct TokenConfig memory) returns (uint256)"}},"id":1372,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7272:39:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1373,"nodeType":"ExpressionStatement","src":"7272:39:9"}]}},{"expression":{"arguments":[{"baseExpression":{"id":1377,"name":"tokenConfigs","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1017,"src":"7358:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_struct$_TokenConfig_$989_storage_$","typeString":"mapping(address => struct TokenConfig storage ref)"}},"id":1379,"indexExpression":{"id":1378,"name":"asset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1319,"src":"7371:5:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7358:19:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_storage","typeString":"struct TokenConfig storage ref"}],"id":1376,"name":"_updateTwapInternal","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1540,"src":"7338:19:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_struct$_TokenConfig_$989_memory_ptr_$returns$_t_uint256_$","typeString":"function (struct TokenConfig memory) returns (uint256)"}},"id":1380,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7338:40:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1317,"id":1381,"nodeType":"Return","src":"7331:47:9"}]},"documentation":{"id":1311,"nodeType":"StructuredDocumentation","src":"6429:266:9","text":" @notice Updates the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\n @return anchorPrice anchor price of the underlying asset of the vToken\n @custom:error Missing error is thrown if token config does not exist"},"functionSelector":"725068a5","id":1383,"implemented":true,"kind":"function","modifiers":[],"name":"updateTwap","nameLocation":"6709:10:9","nodeType":"FunctionDefinition","parameters":{"id":1314,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1313,"mutability":"mutable","name":"vToken","nameLocation":"6728:6:9","nodeType":"VariableDeclaration","scope":1383,"src":"6720:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1312,"name":"address","nodeType":"ElementaryTypeName","src":"6720:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6719:16:9"},"returnParameters":{"id":1317,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1316,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1383,"src":"6752:7:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1315,"name":"uint256","nodeType":"ElementaryTypeName","src":"6752:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6751:9:9"},"scope":1676,"src":"6700:685:9","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":1411,"nodeType":"Block","src":"7666:236:9","statements":[{"assignments":[1393,1395,null],"declarations":[{"constant":false,"id":1393,"mutability":"mutable","name":"price0","nameLocation":"7685:6:9","nodeType":"VariableDeclaration","scope":1411,"src":"7677:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1392,"name":"uint256","nodeType":"ElementaryTypeName","src":"7677:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1395,"mutability":"mutable","name":"price1","nameLocation":"7701:6:9","nodeType":"VariableDeclaration","scope":1411,"src":"7693:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1394,"name":"uint256","nodeType":"ElementaryTypeName","src":"7693:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},null],"id":1401,"initialValue":{"arguments":[{"expression":{"id":1398,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1387,"src":"7758:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1399,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"pancakePool","nodeType":"MemberAccess","referencedDeclaration":979,"src":"7758:18:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"id":1396,"name":"PancakeOracleLibrary","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":958,"src":"7713:20:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_PancakeOracleLibrary_$958_$","typeString":"type(library PancakeOracleLibrary)"}},"id":1397,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"currentCumulativePrices","nodeType":"MemberAccess","referencedDeclaration":957,"src":"7713:44:9","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$returns$_t_uint256_$_t_uint256_$_t_uint32_$","typeString":"function (address) view returns (uint256,uint256,uint32)"}},"id":1400,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"7713:64:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$_t_uint32_$","typeString":"tuple(uint256,uint256,uint32)"}},"nodeType":"VariableDeclarationStatement","src":"7676:101:9"},{"condition":{"expression":{"id":1402,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1387,"src":"7791:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1403,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"isReversedPool","nodeType":"MemberAccess","referencedDeclaration":985,"src":"7791:21:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1409,"nodeType":"Block","src":"7858:38:9","statements":[{"expression":{"id":1407,"name":"price0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1393,"src":"7879:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1391,"id":1408,"nodeType":"Return","src":"7872:13:9"}]},"id":1410,"nodeType":"IfStatement","src":"7787:109:9","trueBody":{"id":1406,"nodeType":"Block","src":"7814:38:9","statements":[{"expression":{"id":1404,"name":"price1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1395,"src":"7835:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1391,"id":1405,"nodeType":"Return","src":"7828:13:9"}]}}]},"documentation":{"id":1384,"nodeType":"StructuredDocumentation","src":"7391:181:9","text":" @notice Fetches the current token/WBNB and token/BUSD price accumulator from PancakeSwap.\n @return cumulative price of target token regardless of pair order"},"functionSelector":"2b9d9dea","id":1412,"implemented":true,"kind":"function","modifiers":[],"name":"currentCumulativePrice","nameLocation":"7586:22:9","nodeType":"FunctionDefinition","parameters":{"id":1388,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1387,"mutability":"mutable","name":"config","nameLocation":"7628:6:9","nodeType":"VariableDeclaration","scope":1412,"src":"7609:25:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig"},"typeName":{"id":1386,"nodeType":"UserDefinedTypeName","pathNode":{"id":1385,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"7609:11:9"},"referencedDeclaration":989,"src":"7609:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}},"visibility":"internal"}],"src":"7608:27:9"},"returnParameters":{"id":1391,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1390,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1412,"src":"7657:7:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1389,"name":"uint256","nodeType":"ElementaryTypeName","src":"7657:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"7656:9:9"},"scope":1676,"src":"7577:325:9","stateMutability":"view","virtual":false,"visibility":"public"},{"body":{"id":1539,"nodeType":"Block","src":"8637:1769:9","statements":[{"assignments":[1422,1424,1426],"declarations":[{"constant":false,"id":1422,"mutability":"mutable","name":"nowCumulativePrice","nameLocation":"8799:18:9","nodeType":"VariableDeclaration","scope":1539,"src":"8791:26:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1421,"name":"uint256","nodeType":"ElementaryTypeName","src":"8791:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1424,"mutability":"mutable","name":"oldCumulativePrice","nameLocation":"8827:18:9","nodeType":"VariableDeclaration","scope":1539,"src":"8819:26:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1423,"name":"uint256","nodeType":"ElementaryTypeName","src":"8819:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1426,"mutability":"mutable","name":"oldTimestamp","nameLocation":"8855:12:9","nodeType":"VariableDeclaration","scope":1539,"src":"8847:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1425,"name":"uint256","nodeType":"ElementaryTypeName","src":"8847:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1430,"initialValue":{"arguments":[{"id":1428,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"8888:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}],"id":1427,"name":"pokeWindowValues","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1675,"src":"8871:16:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_struct$_TokenConfig_$989_memory_ptr_$returns$_t_uint256_$_t_uint256_$_t_uint256_$","typeString":"function (struct TokenConfig memory) returns (uint256,uint256,uint256)"}},"id":1429,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"8871:24:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256,uint256)"}},"nodeType":"VariableDeclarationStatement","src":"8790:105:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1435,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1432,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"8979:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1433,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"8979:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"id":1434,"name":"oldTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1426,"src":"8997:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"8979:30:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"6e6f77206d75737420636f6d65206166746572206265666f7265","id":1436,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"9011:28:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_97ea44ed9b1f8f794b0f4a84f43ed25e6702933fc90457cec778223d2aa076b2","typeString":"literal_string \"now must come after before\""},"value":"now must come after before"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_97ea44ed9b1f8f794b0f4a84f43ed25e6702933fc90457cec778223d2aa076b2","typeString":"literal_string \"now must come after before\""}],"id":1431,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"8971:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1437,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"8971:69:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1438,"nodeType":"ExpressionStatement","src":"8971:69:9"},{"assignments":[1440],"declarations":[{"constant":false,"id":1440,"mutability":"mutable","name":"timeElapsed","nameLocation":"9058:11:9","nodeType":"VariableDeclaration","scope":1539,"src":"9050:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1439,"name":"uint256","nodeType":"ElementaryTypeName","src":"9050:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1445,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1444,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":1441,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"9072:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1442,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"9072:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":1443,"name":"oldTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1426,"src":"9090:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"9072:30:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"9050:52:9"},{"assignments":[1450],"declarations":[{"constant":false,"id":1450,"mutability":"mutable","name":"priceAverage","nameLocation":"9179:12:9","nodeType":"VariableDeclaration","scope":1539,"src":"9151:40:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112"},"typeName":{"id":1449,"nodeType":"UserDefinedTypeName","pathNode":{"id":1448,"name":"FixedPoint.uq112x112","nodeType":"IdentifierPath","referencedDeclaration":806,"src":"9151:20:9"},"referencedDeclaration":806,"src":"9151:20:9","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_storage_ptr","typeString":"struct FixedPoint.uq112x112"}},"visibility":"internal"}],"id":1463,"initialValue":{"arguments":[{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1460,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1457,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1455,"name":"nowCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1422,"src":"9237:18:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":1456,"name":"oldCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1424,"src":"9258:18:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"9237:39:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1458,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"9236:41:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":1459,"name":"timeElapsed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1440,"src":"9280:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"9236:55:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1454,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"9228:7:9","typeDescriptions":{"typeIdentifier":"t_type$_t_uint224_$","typeString":"type(uint224)"},"typeName":{"id":1453,"name":"uint224","nodeType":"ElementaryTypeName","src":"9228:7:9","typeDescriptions":{}}},"id":1461,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"9228:64:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint224","typeString":"uint224"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint224","typeString":"uint224"}],"expression":{"id":1451,"name":"FixedPoint","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":854,"src":"9194:10:9","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FixedPoint_$854_$","typeString":"type(library FixedPoint)"}},"id":1452,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"uq112x112","nodeType":"MemberAccess","referencedDeclaration":806,"src":"9194:20:9","typeDescriptions":{"typeIdentifier":"t_type$_t_struct$_uq112x112_$806_storage_ptr_$","typeString":"type(struct FixedPoint.uq112x112 storage pointer)"}},"id":1462,"isConstant":false,"isLValue":false,"isPure":false,"kind":"structConstructorCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"9194:108:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"nodeType":"VariableDeclarationStatement","src":"9151:151:9"},{"assignments":[1465],"declarations":[{"constant":false,"id":1465,"mutability":"mutable","name":"priceAverageMantissa","nameLocation":"9372:20:9","nodeType":"VariableDeclaration","scope":1539,"src":"9364:28:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1464,"name":"uint256","nodeType":"ElementaryTypeName","src":"9364:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1469,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":1466,"name":"priceAverage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1450,"src":"9395:12:9","typeDescriptions":{"typeIdentifier":"t_struct$_uq112x112_$806_memory_ptr","typeString":"struct FixedPoint.uq112x112 memory"}},"id":1467,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"decode112with18","nodeType":"MemberAccess","referencedDeclaration":853,"src":"9395:28:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_uq112x112_$806_memory_ptr_$returns$_t_uint256_$bound_to$_t_struct$_uq112x112_$806_memory_ptr_$","typeString":"function (struct FixedPoint.uq112x112 memory) pure returns (uint256)"}},"id":1468,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"9395:30:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"9364:61:9"},{"assignments":[1471],"declarations":[{"constant":false,"id":1471,"mutability":"mutable","name":"pairedTokenBaseUnit","nameLocation":"9615:19:9","nodeType":"VariableDeclaration","scope":1539,"src":"9607:27:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1470,"name":"uint256","nodeType":"ElementaryTypeName","src":"9607:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1477,"initialValue":{"condition":{"expression":{"id":1472,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"9637:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1473,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"isBnbBased","nodeType":"MemberAccess","referencedDeclaration":982,"src":"9637:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"id":1475,"name":"busdBaseUnit","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1008,"src":"9671:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1476,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"9637:46:9","trueExpression":{"id":1474,"name":"bnbBaseUnit","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1005,"src":"9657:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"9607:76:9"},{"assignments":[1479],"declarations":[{"constant":false,"id":1479,"mutability":"mutable","name":"anchorPriceMantissa","nameLocation":"9701:19:9","nodeType":"VariableDeclaration","scope":1539,"src":"9693:27:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1478,"name":"uint256","nodeType":"ElementaryTypeName","src":"9693:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1487,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1486,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1483,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1480,"name":"priceAverageMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1465,"src":"9724:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"expression":{"id":1481,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"9747:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1482,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"baseUnit","nodeType":"MemberAccess","referencedDeclaration":976,"src":"9747:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"9724:38:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1484,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"9723:40:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":1485,"name":"pairedTokenBaseUnit","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1471,"src":"9766:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"9723:62:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"9693:92:9"},{"condition":{"expression":{"id":1488,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"9870:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1489,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"isBnbBased","nodeType":"MemberAccess","referencedDeclaration":982,"src":"9870:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1513,"nodeType":"IfStatement","src":"9866:221:9","trueBody":{"id":1512,"nodeType":"Block","src":"9889:198:9","statements":[{"assignments":[1491],"declarations":[{"constant":false,"id":1491,"mutability":"mutable","name":"bnbPrice","nameLocation":"9911:8:9","nodeType":"VariableDeclaration","scope":1512,"src":"9903:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1490,"name":"uint256","nodeType":"ElementaryTypeName","src":"9903:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1495,"initialValue":{"baseExpression":{"id":1492,"name":"prices","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1022,"src":"9922:6:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"}},"id":1494,"indexExpression":{"id":1493,"name":"WBNB","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":998,"src":"9929:4:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"9922:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"9903:31:9"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1499,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1497,"name":"bnbPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1491,"src":"9956:8:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":1498,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"9968:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"9956:13:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"626e6220707269636520697320696e76616c6964","id":1500,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"9971:22:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_c969e98b45e510a597b7277333f46c7416e7e4d72f43b5553650820daeef8314","typeString":"literal_string \"bnb price is invalid\""},"value":"bnb price is invalid"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_c969e98b45e510a597b7277333f46c7416e7e4d72f43b5553650820daeef8314","typeString":"literal_string \"bnb price is invalid\""}],"id":1496,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"9948:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1501,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"9948:46:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1502,"nodeType":"ExpressionStatement","src":"9948:46:9"},{"expression":{"id":1510,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1503,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10008:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1509,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1506,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1504,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10031:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1505,"name":"bnbPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1491,"src":"10053:8:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"10031:30:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1507,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"10030:32:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":1508,"name":"bnbBaseUnit","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1005,"src":"10065:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"10030:46:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"10008:68:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1511,"nodeType":"ExpressionStatement","src":"10008:68:9"}]}},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1517,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1515,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10105:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":1516,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"10128:1:9","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"10105:24:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"747761702070726963652063616e6e6f742062652030","id":1518,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"10131:24:9","typeDescriptions":{"typeIdentifier":"t_stringliteral_c08953b790cc95143eb8c20f59bd50de78e1f97d6bdda3d048ca1b7967d68bde","typeString":"literal_string \"twap price cannot be 0\""},"value":"twap price cannot be 0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_c08953b790cc95143eb8c20f59bd50de78e1f97d6bdda3d048ca1b7967d68bde","typeString":"literal_string \"twap price cannot be 0\""}],"id":1514,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"10097:7:9","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1519,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"10097:59:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1520,"nodeType":"ExpressionStatement","src":"10097:59:9"},{"eventCall":{"arguments":[{"expression":{"id":1522,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"10191:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1523,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"10191:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":1524,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10205:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1525,"name":"oldTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1426,"src":"10226:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"expression":{"id":1526,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"10240:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1527,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"10240:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1521,"name":"AnchorPriceUpdated","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1058,"src":"10172:18:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$","typeString":"function (address,uint256,uint256,uint256)"}},"id":1528,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"10172:84:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1529,"nodeType":"EmitStatement","src":"10167:89:9"},{"expression":{"id":1535,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"id":1530,"name":"prices","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1022,"src":"10320:6:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"}},"id":1533,"indexExpression":{"expression":{"id":1531,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1416,"src":"10327:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1532,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"10327:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"10320:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1534,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10343:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"10320:42:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1536,"nodeType":"ExpressionStatement","src":"10320:42:9"},{"expression":{"id":1537,"name":"anchorPriceMantissa","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1479,"src":"10380:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1420,"id":1538,"nodeType":"Return","src":"10373:26:9"}]},"documentation":{"id":1413,"nodeType":"StructuredDocumentation","src":"7908:633:9","text":" @notice Fetches the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\n @return price Underlying price in USD, with 18 decimals\n @custom:error Timing error is thrown if current time is not greater than old observation timestamp\n @custom:error Zero price error is thrown if token is BNB based and price is zero\n @custom:error Zero price error is thrown if fetched anchorPriceMantissa is zero\n @custom:event Emits AnchorPriceUpdated event on successful update of observation with assset address,\n AnchorPrice, old observation timestamp and current timestamp"},"id":1540,"implemented":true,"kind":"function","modifiers":[],"name":"_updateTwapInternal","nameLocation":"8555:19:9","nodeType":"FunctionDefinition","parameters":{"id":1417,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1416,"mutability":"mutable","name":"config","nameLocation":"8594:6:9","nodeType":"VariableDeclaration","scope":1540,"src":"8575:25:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig"},"typeName":{"id":1415,"nodeType":"UserDefinedTypeName","pathNode":{"id":1414,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"8575:11:9"},"referencedDeclaration":989,"src":"8575:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}},"visibility":"internal"}],"src":"8574:27:9"},"returnParameters":{"id":1420,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1419,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1540,"src":"8628:7:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1418,"name":"uint256","nodeType":"ElementaryTypeName","src":"8628:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"8627:9:9"},"scope":1676,"src":"8546:1860:9","stateMutability":"nonpayable","virtual":true,"visibility":"internal"},{"body":{"id":1674,"nodeType":"Block","src":"11237:1466:9","statements":[{"assignments":[1554],"declarations":[{"constant":false,"id":1554,"mutability":"mutable","name":"cumulativePrice","nameLocation":"11255:15:9","nodeType":"VariableDeclaration","scope":1674,"src":"11247:23:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1553,"name":"uint256","nodeType":"ElementaryTypeName","src":"11247:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1558,"initialValue":{"arguments":[{"id":1556,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"11296:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}],"id":1555,"name":"currentCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1412,"src":"11273:22:9","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_struct$_TokenConfig_$989_memory_ptr_$returns$_t_uint256_$","typeString":"function (struct TokenConfig memory) view returns (uint256)"}},"id":1557,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"11273:30:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"11247:56:9"},{"assignments":[1560],"declarations":[{"constant":false,"id":1560,"mutability":"mutable","name":"currentTimestamp","nameLocation":"11321:16:9","nodeType":"VariableDeclaration","scope":1674,"src":"11313:24:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1559,"name":"uint256","nodeType":"ElementaryTypeName","src":"11313:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1563,"initialValue":{"expression":{"id":1561,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"11340:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1562,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"11340:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"11313:42:9"},{"assignments":[1565],"declarations":[{"constant":false,"id":1565,"mutability":"mutable","name":"windowStartTimestamp","nameLocation":"11373:20:9","nodeType":"VariableDeclaration","scope":1674,"src":"11365:28:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1564,"name":"uint256","nodeType":"ElementaryTypeName","src":"11365:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1570,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1569,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1566,"name":"currentTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1560,"src":"11396:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":1567,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"11415:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1568,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"anchorPeriod","nodeType":"MemberAccess","referencedDeclaration":988,"src":"11415:19:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"11396:38:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"11365:69:9"},{"assignments":[1575],"declarations":[{"constant":false,"id":1575,"mutability":"mutable","name":"storedObservations","nameLocation":"11465:18:9","nodeType":"VariableDeclaration","scope":1674,"src":"11444:39:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_memory_ptr_$dyn_memory_ptr","typeString":"struct Observation[]"},"typeName":{"baseType":{"id":1573,"nodeType":"UserDefinedTypeName","pathNode":{"id":1572,"name":"Observation","nodeType":"IdentifierPath","referencedDeclaration":970,"src":"11444:11:9"},"referencedDeclaration":970,"src":"11444:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_storage_ptr","typeString":"struct Observation"}},"id":1574,"nodeType":"ArrayTypeName","src":"11444:13:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr","typeString":"struct Observation[]"}},"visibility":"internal"}],"id":1580,"initialValue":{"baseExpression":{"id":1576,"name":"observations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1029,"src":"11486:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation storage ref[] storage ref)"}},"id":1579,"indexExpression":{"expression":{"id":1577,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"11499:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1578,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"11499:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"11486:26:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage","typeString":"struct Observation storage ref[] storage ref"}},"nodeType":"VariableDeclarationStatement","src":"11444:68:9"},{"assignments":[1582],"declarations":[{"constant":false,"id":1582,"mutability":"mutable","name":"storedObservationsLength","nameLocation":"11531:24:9","nodeType":"VariableDeclaration","scope":1674,"src":"11523:32:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1581,"name":"uint256","nodeType":"ElementaryTypeName","src":"11523:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1585,"initialValue":{"expression":{"id":1583,"name":"storedObservations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1575,"src":"11558:18:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_memory_ptr_$dyn_memory_ptr","typeString":"struct Observation memory[] memory"}},"id":1584,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","src":"11558:25:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"11523:60:9"},{"body":{"id":1646,"nodeType":"Block","src":"11763:564:9","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1612,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1604,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"baseExpression":{"id":1599,"name":"storedObservations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1575,"src":"11799:18:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_memory_ptr_$dyn_memory_ptr","typeString":"struct Observation memory[] memory"}},"id":1601,"indexExpression":{"id":1600,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"11818:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"11799:36:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}},"id":1602,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","referencedDeclaration":967,"src":"11799:46:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":1603,"name":"windowStartTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1565,"src":"11849:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"11799:70:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1605,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"11798:72:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1610,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1606,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"11891:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1609,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1607,"name":"storedObservationsLength","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1582,"src":"11911:24:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"hexValue":"31","id":1608,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"11938:1:9","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"11911:28:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"11891:48:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1611,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"11890:50:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"11798:142:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1644,"nodeType":"Block","src":"12233:84:9","statements":[{"expression":{"id":1642,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"delete","prefix":true,"src":"12251:51:9","subExpression":{"baseExpression":{"baseExpression":{"id":1636,"name":"observations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1029,"src":"12258:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation storage ref[] storage ref)"}},"id":1639,"indexExpression":{"expression":{"id":1637,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"12271:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1638,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"12271:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"12258:26:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage","typeString":"struct Observation storage ref[] storage ref"}},"id":1641,"indexExpression":{"id":1640,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"12285:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"12258:44:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_storage","typeString":"struct Observation storage ref"}},"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1643,"nodeType":"ExpressionStatement","src":"12251:51:9"}]},"id":1645,"nodeType":"IfStatement","src":"11777:540:9","trueBody":{"id":1635,"nodeType":"Block","src":"11955:272:9","statements":[{"expression":{"id":1618,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1613,"name":"startCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1549,"src":"11973:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"baseExpression":{"id":1614,"name":"storedObservations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1575,"src":"11996:18:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_memory_ptr_$dyn_memory_ptr","typeString":"struct Observation memory[] memory"}},"id":1616,"indexExpression":{"id":1615,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"12015:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"11996:36:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}},"id":1617,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"acc","nodeType":"MemberAccess","referencedDeclaration":969,"src":"11996:40:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"11973:63:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1619,"nodeType":"ExpressionStatement","src":"11973:63:9"},{"expression":{"id":1625,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1620,"name":"startCumulativeTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1551,"src":"12054:24:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"baseExpression":{"id":1621,"name":"storedObservations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1575,"src":"12081:18:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_memory_ptr_$dyn_memory_ptr","typeString":"struct Observation memory[] memory"}},"id":1623,"indexExpression":{"id":1622,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"12100:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"12081:36:9","typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}},"id":1624,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","referencedDeclaration":967,"src":"12081:46:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"12054:73:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1626,"nodeType":"ExpressionStatement","src":"12054:73:9"},{"expression":{"id":1632,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"id":1627,"name":"windowStart","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1034,"src":"12145:11:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"}},"id":1630,"indexExpression":{"expression":{"id":1628,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"12157:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1629,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"12157:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"12145:25:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1631,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"12173:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"12145:44:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1633,"nodeType":"ExpressionStatement","src":"12145:44:9"},{"id":1634,"nodeType":"Break","src":"12207:5:9"}]}}]},"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1595,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1593,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"11677:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":1594,"name":"storedObservationsLength","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1582,"src":"11696:24:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"11677:43:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1647,"initializationExpression":{"assignments":[1587],"declarations":[{"constant":false,"id":1587,"mutability":"mutable","name":"windowStartIndex","nameLocation":"11619:16:9","nodeType":"VariableDeclaration","scope":1647,"src":"11611:24:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1586,"name":"uint256","nodeType":"ElementaryTypeName","src":"11611:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1592,"initialValue":{"baseExpression":{"id":1588,"name":"windowStart","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1034,"src":"11638:11:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint256_$","typeString":"mapping(address => uint256)"}},"id":1591,"indexExpression":{"expression":{"id":1589,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"11650:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1590,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"11650:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"11638:25:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"11611:52:9"},"loopExpression":{"expression":{"id":1597,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":true,"src":"11734:18:9","subExpression":{"id":1596,"name":"windowStartIndex","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1587,"src":"11736:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1598,"nodeType":"ExpressionStatement","src":"11734:18:9"},"nodeType":"ForStatement","src":"11593:734:9"},{"expression":{"arguments":[{"arguments":[{"id":1654,"name":"currentTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1560,"src":"12381:16:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1655,"name":"cumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1554,"src":"12399:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1653,"name":"Observation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":970,"src":"12369:11:9","typeDescriptions":{"typeIdentifier":"t_type$_t_struct$_Observation_$970_storage_ptr_$","typeString":"type(struct Observation storage pointer)"}},"id":1656,"isConstant":false,"isLValue":false,"isPure":false,"kind":"structConstructorCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"12369:46:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_struct$_Observation_$970_memory_ptr","typeString":"struct Observation memory"}],"expression":{"baseExpression":{"id":1648,"name":"observations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1029,"src":"12337:12:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_$","typeString":"mapping(address => struct Observation storage ref[] storage ref)"}},"id":1651,"indexExpression":{"expression":{"id":1649,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"12350:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1650,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"12350:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"12337:26:9","typeDescriptions":{"typeIdentifier":"t_array$_t_struct$_Observation_$970_storage_$dyn_storage","typeString":"struct Observation storage ref[] storage ref"}},"id":1652,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"push","nodeType":"MemberAccess","src":"12337:31:9","typeDescriptions":{"typeIdentifier":"t_function_arraypush_nonpayable$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr_$_t_struct$_Observation_$970_storage_$returns$__$bound_to$_t_array$_t_struct$_Observation_$970_storage_$dyn_storage_ptr_$","typeString":"function (struct Observation storage ref[] storage pointer,struct Observation storage ref)"}},"id":1657,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"12337:79:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1658,"nodeType":"ExpressionStatement","src":"12337:79:9"},{"eventCall":{"arguments":[{"expression":{"id":1660,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1544,"src":"12462:6:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig memory"}},"id":1661,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"asset","nodeType":"MemberAccess","referencedDeclaration":973,"src":"12462:12:9","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":1662,"name":"startCumulativeTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1551,"src":"12488:24:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1663,"name":"startCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1549,"src":"12526:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"expression":{"id":1664,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"12560:5:9","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":1665,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"timestamp","nodeType":"MemberAccess","src":"12560:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1666,"name":"cumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1554,"src":"12589:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1659,"name":"TwapWindowUpdated","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1047,"src":"12431:17:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$","typeString":"function (address,uint256,uint256,uint256,uint256)"}},"id":1667,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"12431:183:9","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1668,"nodeType":"EmitStatement","src":"12426:188:9"},{"expression":{"components":[{"id":1669,"name":"cumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1554,"src":"12632:15:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1670,"name":"startCumulativePrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1549,"src":"12649:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1671,"name":"startCumulativeTimestamp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1551,"src":"12671:24:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1672,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"12631:65:9","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256,uint256)"}},"functionReturnParameters":1552,"id":1673,"nodeType":"Return","src":"12624:72:9"}]},"documentation":{"id":1541,"nodeType":"StructuredDocumentation","src":"10412:662:9","text":" @notice Appends current observation and pick an observation with a timestamp equal\n or just greater than the window start timestamp. If one is not available,\n then pick the last availableobservation. The window start index is updated in both the cases.\n Only the current observation is saved, prior observations are deleted during this operation.\n @return Tuple of cumulative price, old observation and timestamp\n @custom:event Emits TwapWindowUpdated on successful calculation of cumulative price with asset address,\n new observation timestamp, current timestamp, new observation price and cumulative price"},"id":1675,"implemented":true,"kind":"function","modifiers":[],"name":"pokeWindowValues","nameLocation":"11088:16:9","nodeType":"FunctionDefinition","parameters":{"id":1545,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1544,"mutability":"mutable","name":"config","nameLocation":"11133:6:9","nodeType":"VariableDeclaration","scope":1675,"src":"11114:25:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_memory_ptr","typeString":"struct TokenConfig"},"typeName":{"id":1543,"nodeType":"UserDefinedTypeName","pathNode":{"id":1542,"name":"TokenConfig","nodeType":"IdentifierPath","referencedDeclaration":989,"src":"11114:11:9"},"referencedDeclaration":989,"src":"11114:11:9","typeDescriptions":{"typeIdentifier":"t_struct$_TokenConfig_$989_storage_ptr","typeString":"struct TokenConfig"}},"visibility":"internal"}],"src":"11104:41:9"},"returnParameters":{"id":1552,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1547,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1675,"src":"11164:7:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1546,"name":"uint256","nodeType":"ElementaryTypeName","src":"11164:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1549,"mutability":"mutable","name":"startCumulativePrice","nameLocation":"11181:20:9","nodeType":"VariableDeclaration","scope":1675,"src":"11173:28:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1548,"name":"uint256","nodeType":"ElementaryTypeName","src":"11173:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1551,"mutability":"mutable","name":"startCumulativeTimestamp","nameLocation":"11211:24:9","nodeType":"VariableDeclaration","scope":1675,"src":"11203:32:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1550,"name":"uint256","nodeType":"ElementaryTypeName","src":"11203:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"11163:73:9"},"scope":1676,"src":"11079:1624:9","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":1677,"src":"1018:11687:9","usedErrors":[]}],"src":"41:12665:9"},"id":9}},"contracts":{"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol":{"OwnableUpgradeable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"details":"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.","kind":"dev","methods":{"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"stateVariables":{"__gap":{"details":"This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps"}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"owner()":"8da5cb5b","renounceOwnership()":"715018a6","transferOwnership(address)":"f2fde38b"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.\",\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"stateVariables\":{\"__gap\":{\"details\":\"This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":\"OwnableUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x247c62047745915c0af6b955470a72d1696ebad4352d7d3011aef1a2463cd888\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[{"astId":138,"contract":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:OwnableUpgradeable","label":"_initialized","offset":0,"slot":"0","type":"t_uint8"},{"astId":141,"contract":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:OwnableUpgradeable","label":"_initializing","offset":1,"slot":"0","type":"t_bool"},{"astId":625,"contract":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:OwnableUpgradeable","label":"__gap","offset":0,"slot":"1","type":"t_array(t_uint256)50_storage"},{"astId":10,"contract":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:OwnableUpgradeable","label":"_owner","offset":0,"slot":"51","type":"t_address"},{"astId":130,"contract":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:OwnableUpgradeable","label":"__gap","offset":0,"slot":"52","type":"t_array(t_uint256)49_storage"}],"types":{"t_address":{"encoding":"inplace","label":"address","numberOfBytes":"20"},"t_array(t_uint256)49_storage":{"base":"t_uint256","encoding":"inplace","label":"uint256[49]","numberOfBytes":"1568"},"t_array(t_uint256)50_storage":{"base":"t_uint256","encoding":"inplace","label":"uint256[50]","numberOfBytes":"1600"},"t_bool":{"encoding":"inplace","label":"bool","numberOfBytes":"1"},"t_uint256":{"encoding":"inplace","label":"uint256","numberOfBytes":"32"},"t_uint8":{"encoding":"inplace","label":"uint8","numberOfBytes":"1"}}},"userdoc":{"kind":"user","methods":{},"version":1}}},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"Initializable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"}],"devdoc":{"custom:oz-upgrades-unsafe-allow":"constructor constructor() { _disableInitializers(); } ``` ====","details":"This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. The initialization functions use a version number. Once a version number is used, it is consumed and cannot be reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in case an upgrade adds a module that needs to be initialized. For example: [.hljs-theme-light.nopadding] ``` contract MyToken is ERC20Upgradeable { function initialize() initializer public { __ERC20_init(\"MyToken\", \"MTK\"); } } contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { function initializeV2() reinitializer(2) public { __ERC20Permit_init(\"MyToken\"); } } ``` TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: [.hljs-theme-light.nopadding] ```","events":{"Initialized(uint8)":{"details":"Triggered when the contract has been initialized or reinitialized."}},"kind":"dev","methods":{},"stateVariables":{"_initialized":{"custom:oz-retyped-from":"bool","details":"Indicates that the contract has been initialized."},"_initializing":{"details":"Indicates that the contract is in the process of being initialized."}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"}],\"devdoc\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor constructor() { _disableInitializers(); } ``` ====\",\"details\":\"This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. The initialization functions use a version number. Once a version number is used, it is consumed and cannot be reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in case an upgrade adds a module that needs to be initialized. For example: [.hljs-theme-light.nopadding] ``` contract MyToken is ERC20Upgradeable { function initialize() initializer public { __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\"); } } contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { function initializeV2() reinitializer(2) public { __ERC20Permit_init(\\\"MyToken\\\"); } } ``` TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: [.hljs-theme-light.nopadding] ```\",\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"_initialized\":{\"custom:oz-retyped-from\":\"bool\",\"details\":\"Indicates that the contract has been initialized.\"},\"_initializing\":{\"details\":\"Indicates that the contract is in the process of being initialized.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":\"Initializable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[{"astId":138,"contract":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:Initializable","label":"_initialized","offset":0,"slot":"0","type":"t_uint8"},{"astId":141,"contract":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:Initializable","label":"_initializing","offset":1,"slot":"0","type":"t_bool"}],"types":{"t_bool":{"encoding":"inplace","label":"bool","numberOfBytes":"1"},"t_uint8":{"encoding":"inplace","label":"uint8","numberOfBytes":"1"}}},"userdoc":{"kind":"user","methods":{},"version":1}}},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"AddressUpgradeable":{"abi":[],"devdoc":{"details":"Collection of functions related to the address type","kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122097e9e06bc026df99937437e60a4884138711c183f11fe43fed8ba31f83f27e5f64736f6c634300080d0033","opcodes":"PUSH1 0x56 PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP8 0xE9 0xE0 PUSH12 0xC026DF99937437E60A488413 DUP8 GT 0xC1 DUP4 CALL 0x1F 0xE4 EXTCODEHASH 0xED DUP12 LOG3 0x1F DUP4 CALLCODE PUSH31 0x5F64736F6C634300080D003300000000000000000000000000000000000000 ","sourceMap":"194:8087:2:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;194:8087:2;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122097e9e06bc026df99937437e60a4884138711c183f11fe43fed8ba31f83f27e5f64736f6c634300080d0033","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP8 0xE9 0xE0 PUSH12 0xC026DF99937437E60A488413 DUP8 GT 0xC1 DUP4 CALL 0x1F 0xE4 EXTCODEHASH 0xED DUP12 LOG3 0x1F DUP4 CALLCODE PUSH31 0x5F64736F6C634300080D003300000000000000000000000000000000000000 ","sourceMap":"194:8087:2:-:0;;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"17200","executionCost":"103","totalCost":"17303"},"internal":{"_revert(bytes memory,string memory)":"infinite","functionCall(address,bytes memory)":"infinite","functionCall(address,bytes memory,string memory)":"infinite","functionCallWithValue(address,bytes memory,uint256)":"infinite","functionCallWithValue(address,bytes memory,uint256,string memory)":"infinite","functionStaticCall(address,bytes memory)":"infinite","functionStaticCall(address,bytes memory,string memory)":"infinite","isContract(address)":"infinite","sendValue(address payable,uint256)":"infinite","verifyCallResult(bool,bytes memory,string memory)":"infinite","verifyCallResultFromTarget(address,bool,bytes memory,string memory)":"infinite"}},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Collection of functions related to the address type\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":\"AddressUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}}},"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol":{"ContextUpgradeable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"}],"devdoc":{"details":"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.","kind":"dev","methods":{},"stateVariables":{"__gap":{"details":"This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps"}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"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.\",\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"__gap\":{\"details\":\"This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":\"ContextUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[{"astId":138,"contract":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:ContextUpgradeable","label":"_initialized","offset":0,"slot":"0","type":"t_uint8"},{"astId":141,"contract":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:ContextUpgradeable","label":"_initializing","offset":1,"slot":"0","type":"t_bool"},{"astId":625,"contract":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:ContextUpgradeable","label":"__gap","offset":0,"slot":"1","type":"t_array(t_uint256)50_storage"}],"types":{"t_array(t_uint256)50_storage":{"base":"t_uint256","encoding":"inplace","label":"uint256[50]","numberOfBytes":"1600"},"t_bool":{"encoding":"inplace","label":"bool","numberOfBytes":"1"},"t_uint256":{"encoding":"inplace","label":"uint256","numberOfBytes":"32"},"t_uint8":{"encoding":"inplace","label":"uint8","numberOfBytes":"1"}}},"userdoc":{"kind":"user","methods":{},"version":1}}},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"IERC20":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"name":"totalSupply","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"}],"devdoc":{"details":"Interface of the ERC20 standard as defined in the EIP.","events":{"Approval(address,address,uint256)":{"details":"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."},"Transfer(address,address,uint256)":{"details":"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."}},"kind":"dev","methods":{"allowance(address,address)":{"details":"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."},"approve(address,uint256)":{"details":"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."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by `account`."},"totalSupply()":{"details":"Returns the amount of tokens in existence."},"transfer(address,uint256)":{"details":"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."},"transferFrom(address,address,uint256)":{"details":"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."}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"allowance(address,address)":"dd62ed3e","approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"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\":[],\"name\":\"totalSupply\",\"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\"}],\"devdoc\":{\"details\":\"Interface of the ERC20 standard as defined in the EIP.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}}},"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"IERC20Metadata":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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"}],"devdoc":{"details":"Interface for the optional metadata functions from the ERC20 standard. _Available since v4.1._","kind":"dev","methods":{"allowance(address,address)":{"details":"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."},"approve(address,uint256)":{"details":"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."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by `account`."},"decimals()":{"details":"Returns the decimals places of the token."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token."},"totalSupply()":{"details":"Returns the amount of tokens in existence."},"transfer(address,uint256)":{"details":"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."},"transferFrom(address,address,uint256)":{"details":"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."}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"allowance(address,address)":"dd62ed3e","approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","decimals()":"313ce567","name()":"06fdde03","symbol()":"95d89b41","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"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\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\":\"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\"}],\"devdoc\":{\"details\":\"Interface for the optional metadata functions from the ERC20 standard. _Available since v4.1._\",\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"decimals()\":{\"details\":\"Returns the decimals places of the token.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":\"IERC20Metadata\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}}},"contracts/interfaces/OracleInterface.sol":{"BoundValidatorInterface":{"abi":[{"inputs":[{"internalType":"address","name":"vToken","type":"address"},{"internalType":"uint256","name":"reporterPrice","type":"uint256"},{"internalType":"uint256","name":"anchorPrice","type":"uint256"}],"name":"validatePriceWithAnchorPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"validatePriceWithAnchorPrice(address,uint256,uint256)":"97c7033e"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"reporterPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"anchorPrice\",\"type\":\"uint256\"}],\"name\":\"validatePriceWithAnchorPrice\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/OracleInterface.sol\":\"BoundValidatorInterface\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/OracleInterface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface OracleInterface {\\n function getUnderlyingPrice(address vToken) external view returns (uint256);\\n}\\n\\ninterface ResilientOracleInterface is OracleInterface {\\n function updatePrice(address vToken) external;\\n}\\n\\ninterface TwapInterface is OracleInterface {\\n function updateTwap(address vToken) external returns (uint256);\\n}\\n\\ninterface BoundValidatorInterface {\\n function validatePriceWithAnchorPrice(\\n address vToken,\\n uint256 reporterPrice,\\n uint256 anchorPrice\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x8ac0bda5d5789c320bf219dc6691eef0e6617e9653bc0e24f407a44e4281edda\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}},"OracleInterface":{"abi":[{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"getUnderlyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"getUnderlyingPrice(address)":"fc57d4df"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/OracleInterface.sol\":\"OracleInterface\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/OracleInterface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface OracleInterface {\\n function getUnderlyingPrice(address vToken) external view returns (uint256);\\n}\\n\\ninterface ResilientOracleInterface is OracleInterface {\\n function updatePrice(address vToken) external;\\n}\\n\\ninterface TwapInterface is OracleInterface {\\n function updateTwap(address vToken) external returns (uint256);\\n}\\n\\ninterface BoundValidatorInterface {\\n function validatePriceWithAnchorPrice(\\n address vToken,\\n uint256 reporterPrice,\\n uint256 anchorPrice\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x8ac0bda5d5789c320bf219dc6691eef0e6617e9653bc0e24f407a44e4281edda\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}},"ResilientOracleInterface":{"abi":[{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"getUnderlyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"getUnderlyingPrice(address)":"fc57d4df","updatePrice(address)":"96e85ced"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"updatePrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/OracleInterface.sol\":\"ResilientOracleInterface\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/OracleInterface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface OracleInterface {\\n function getUnderlyingPrice(address vToken) external view returns (uint256);\\n}\\n\\ninterface ResilientOracleInterface is OracleInterface {\\n function updatePrice(address vToken) external;\\n}\\n\\ninterface TwapInterface is OracleInterface {\\n function updateTwap(address vToken) external returns (uint256);\\n}\\n\\ninterface BoundValidatorInterface {\\n function validatePriceWithAnchorPrice(\\n address vToken,\\n uint256 reporterPrice,\\n uint256 anchorPrice\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x8ac0bda5d5789c320bf219dc6691eef0e6617e9653bc0e24f407a44e4281edda\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}},"TwapInterface":{"abi":[{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"getUnderlyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"updateTwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"getUnderlyingPrice(address)":"fc57d4df","updateTwap(address)":"725068a5"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"updateTwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/OracleInterface.sol\":\"TwapInterface\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/OracleInterface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface OracleInterface {\\n function getUnderlyingPrice(address vToken) external view returns (uint256);\\n}\\n\\ninterface ResilientOracleInterface is OracleInterface {\\n function updatePrice(address vToken) external;\\n}\\n\\ninterface TwapInterface is OracleInterface {\\n function updateTwap(address vToken) external returns (uint256);\\n}\\n\\ninterface BoundValidatorInterface {\\n function validatePriceWithAnchorPrice(\\n address vToken,\\n uint256 reporterPrice,\\n uint256 anchorPrice\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x8ac0bda5d5789c320bf219dc6691eef0e6617e9653bc0e24f407a44e4281edda\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}}},"contracts/interfaces/VBep20Interface.sol":{"VBep20Interface":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"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."},"approve(address,uint256)":{"details":"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."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by `account`."},"decimals()":{"details":"Returns the decimals places of the token."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token."},"totalSupply()":{"details":"Returns the amount of tokens in existence."},"transfer(address,uint256)":{"details":"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."},"transferFrom(address,address,uint256)":{"details":"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."}},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"allowance(address,address)":"dd62ed3e","approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","decimals()":"313ce567","name()":"06fdde03","symbol()":"95d89b41","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd","underlying()":"6f307dc3"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"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\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlying\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"decimals()\":{\"details\":\"Returns the decimals places of the token.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"underlying()\":{\"notice\":\"Underlying asset for this VToken\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/VBep20Interface.sol\":\"VBep20Interface\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"contracts/interfaces/VBep20Interface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\n\\ninterface VBep20Interface is IERC20Metadata {\\n /**\\n * @notice Underlying asset for this VToken\\n */\\n function underlying() external view returns (address);\\n}\\n\",\"keccak256\":\"0x3f845cd51b2d82f7932ac6c0ab714df97f733b01ce50f6fb0adb4c28447d4618\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{"underlying()":{"notice":"Underlying asset for this VToken"}},"version":1}}},"contracts/libraries/PancakeLibrary.sol":{"FixedPoint":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122089ddabdf1bc67fbd0286b28ff1ba8b9c5623c1dd4f1e3bfaf8bd72cfe3db02c764736f6c634300080d0033","opcodes":"PUSH1 0x56 PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0xDD 0xAB 0xDF SHL 0xC6 PUSH32 0xBD0286B28FF1BA8B9C5623C1DD4F1E3BFAF8BD72CFE3DB02C764736F6C634300 ADDMOD 0xD STOP CALLER ","sourceMap":"348:975:8:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;348:975:8;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122089ddabdf1bc67fbd0286b28ff1ba8b9c5623c1dd4f1e3bfaf8bd72cfe3db02c764736f6c634300080d0033","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0xDD 0xAB 0xDF SHL 0xC6 PUSH32 0xBD0286B28FF1BA8B9C5623C1DD4F1E3BFAF8BD72CFE3DB02C764736F6C634300 ADDMOD 0xD STOP CALLER ","sourceMap":"348:975:8:-:0;;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"17200","executionCost":"103","totalCost":"17303"},"internal":{"decode112with18(struct FixedPoint.uq112x112 memory)":"infinite","fraction(uint112,uint112)":"infinite"}},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/PancakeLibrary.sol\":\"FixedPoint\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/libraries/PancakeLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface IPancakePair {\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n\\n function price0CumulativeLast() external view returns (uint256);\\n\\n function price1CumulativeLast() external view returns (uint256);\\n}\\n\\nlibrary FixedPoint {\\n // range: [0, 2**112 - 1]\\n // resolution: 1 / 2**112\\n struct uq112x112 {\\n uint224 _x;\\n }\\n\\n // returns a uq112x112 which represents the ratio of the numerator to the denominator\\n // equivalent to encode(numerator).div(denominator)\\n function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {\\n require(denominator > 0, \\\"FixedPoint: DIV_BY_ZERO\\\");\\n return uq112x112((uint224(numerator) << 112) / denominator);\\n }\\n\\n // decode a uq112x112 into a uint with 18 decimals of precision\\n function decode112with18(uq112x112 memory self) internal pure returns (uint256) {\\n // we only have 256 - 224 = 32 bits to spare, so scaling up by ~60 bits is dangerous\\n // instead, get close to:\\n // (x * 1e18) >> 112\\n // without risk of overflowing, e.g.:\\n // (x) / 2 ** (112 - lg(1e18))\\n return uint256(self._x) / 5192296858534827;\\n }\\n}\\n\\n// library with helper methods for oracles that are concerned with computing average prices\\nlibrary PancakeOracleLibrary {\\n using FixedPoint for *;\\n\\n // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]\\n function currentBlockTimestamp() internal view returns (uint32) {\\n return uint32(block.timestamp % 2 ** 32);\\n }\\n\\n // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.\\n function currentCumulativePrices(\\n address pair\\n ) internal view returns (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) {\\n blockTimestamp = currentBlockTimestamp();\\n price0Cumulative = IPancakePair(pair).price0CumulativeLast();\\n price1Cumulative = IPancakePair(pair).price1CumulativeLast();\\n\\n // if time has elapsed since the last update on the pair, mock the accumulated price values\\n (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(pair).getReserves();\\n if (blockTimestampLast != blockTimestamp) {\\n unchecked {\\n // subtraction overflow is desired\\n uint32 timeElapsed = blockTimestamp - blockTimestampLast;\\n // addition overflow is desired\\n // counterfactual\\n price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;\\n // counterfactual\\n price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2c8179ebad223998514d6f25ebd90f80ecb294b562d9fbc4a42bf6710486c25b\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}},"IPancakePair":{"abi":[{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"},{"internalType":"uint32","name":"blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"gasEstimates":null,"methodIdentifiers":{"getReserves()":"0902f1ac","price0CumulativeLast()":"5909c0d5","price1CumulativeLast()":"5a3d5493"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestampLast\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price1CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/PancakeLibrary.sol\":\"IPancakePair\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/libraries/PancakeLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface IPancakePair {\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n\\n function price0CumulativeLast() external view returns (uint256);\\n\\n function price1CumulativeLast() external view returns (uint256);\\n}\\n\\nlibrary FixedPoint {\\n // range: [0, 2**112 - 1]\\n // resolution: 1 / 2**112\\n struct uq112x112 {\\n uint224 _x;\\n }\\n\\n // returns a uq112x112 which represents the ratio of the numerator to the denominator\\n // equivalent to encode(numerator).div(denominator)\\n function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {\\n require(denominator > 0, \\\"FixedPoint: DIV_BY_ZERO\\\");\\n return uq112x112((uint224(numerator) << 112) / denominator);\\n }\\n\\n // decode a uq112x112 into a uint with 18 decimals of precision\\n function decode112with18(uq112x112 memory self) internal pure returns (uint256) {\\n // we only have 256 - 224 = 32 bits to spare, so scaling up by ~60 bits is dangerous\\n // instead, get close to:\\n // (x * 1e18) >> 112\\n // without risk of overflowing, e.g.:\\n // (x) / 2 ** (112 - lg(1e18))\\n return uint256(self._x) / 5192296858534827;\\n }\\n}\\n\\n// library with helper methods for oracles that are concerned with computing average prices\\nlibrary PancakeOracleLibrary {\\n using FixedPoint for *;\\n\\n // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]\\n function currentBlockTimestamp() internal view returns (uint32) {\\n return uint32(block.timestamp % 2 ** 32);\\n }\\n\\n // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.\\n function currentCumulativePrices(\\n address pair\\n ) internal view returns (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) {\\n blockTimestamp = currentBlockTimestamp();\\n price0Cumulative = IPancakePair(pair).price0CumulativeLast();\\n price1Cumulative = IPancakePair(pair).price1CumulativeLast();\\n\\n // if time has elapsed since the last update on the pair, mock the accumulated price values\\n (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(pair).getReserves();\\n if (blockTimestampLast != blockTimestamp) {\\n unchecked {\\n // subtraction overflow is desired\\n uint32 timeElapsed = blockTimestamp - blockTimestampLast;\\n // addition overflow is desired\\n // counterfactual\\n price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;\\n // counterfactual\\n price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2c8179ebad223998514d6f25ebd90f80ecb294b562d9fbc4a42bf6710486c25b\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}},"PancakeOracleLibrary":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220acaa1b010a81990b90b79e2104c49ec8840cb52f9b8875f097328c949df6988d64736f6c634300080d0033","opcodes":"PUSH1 0x56 PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xAC 0xAA SHL ADD EXP DUP2 SWAP10 SIGNEXTEND SWAP1 0xB7 SWAP15 0x21 DIV 0xC4 SWAP15 0xC8 DUP5 0xC 0xB5 0x2F SWAP12 DUP9 PUSH22 0xF097328C949DF6988D64736F6C634300080D00330000 ","sourceMap":"1417:1514:8:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;1417:1514:8;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220acaa1b010a81990b90b79e2104c49ec8840cb52f9b8875f097328c949df6988d64736f6c634300080d0033","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xAC 0xAA SHL ADD EXP DUP2 SWAP10 SIGNEXTEND SWAP1 0xB7 SWAP15 0x21 DIV 0xC4 SWAP15 0xC8 DUP5 0xC 0xB5 0x2F SWAP12 DUP9 PUSH22 0xF097328C949DF6988D64736F6C634300080D00330000 ","sourceMap":"1417:1514:8:-:0;;;;;;;;"},"gasEstimates":{"creation":{"codeDepositCost":"17200","executionCost":"103","totalCost":"17303"},"internal":{"currentBlockTimestamp()":"infinite","currentCumulativePrices(address)":"infinite"}},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/PancakeLibrary.sol\":\"PancakeOracleLibrary\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/libraries/PancakeLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface IPancakePair {\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n\\n function price0CumulativeLast() external view returns (uint256);\\n\\n function price1CumulativeLast() external view returns (uint256);\\n}\\n\\nlibrary FixedPoint {\\n // range: [0, 2**112 - 1]\\n // resolution: 1 / 2**112\\n struct uq112x112 {\\n uint224 _x;\\n }\\n\\n // returns a uq112x112 which represents the ratio of the numerator to the denominator\\n // equivalent to encode(numerator).div(denominator)\\n function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {\\n require(denominator > 0, \\\"FixedPoint: DIV_BY_ZERO\\\");\\n return uq112x112((uint224(numerator) << 112) / denominator);\\n }\\n\\n // decode a uq112x112 into a uint with 18 decimals of precision\\n function decode112with18(uq112x112 memory self) internal pure returns (uint256) {\\n // we only have 256 - 224 = 32 bits to spare, so scaling up by ~60 bits is dangerous\\n // instead, get close to:\\n // (x * 1e18) >> 112\\n // without risk of overflowing, e.g.:\\n // (x) / 2 ** (112 - lg(1e18))\\n return uint256(self._x) / 5192296858534827;\\n }\\n}\\n\\n// library with helper methods for oracles that are concerned with computing average prices\\nlibrary PancakeOracleLibrary {\\n using FixedPoint for *;\\n\\n // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]\\n function currentBlockTimestamp() internal view returns (uint32) {\\n return uint32(block.timestamp % 2 ** 32);\\n }\\n\\n // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.\\n function currentCumulativePrices(\\n address pair\\n ) internal view returns (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) {\\n blockTimestamp = currentBlockTimestamp();\\n price0Cumulative = IPancakePair(pair).price0CumulativeLast();\\n price1Cumulative = IPancakePair(pair).price1CumulativeLast();\\n\\n // if time has elapsed since the last update on the pair, mock the accumulated price values\\n (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(pair).getReserves();\\n if (blockTimestampLast != blockTimestamp) {\\n unchecked {\\n // subtraction overflow is desired\\n uint32 timeElapsed = blockTimestamp - blockTimestampLast;\\n // addition overflow is desired\\n // counterfactual\\n price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;\\n // counterfactual\\n price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2c8179ebad223998514d6f25ebd90f80ecb294b562d9fbc4a42bf6710486c25b\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[],"types":null},"userdoc":{"kind":"user","methods":{},"version":1}}},"contracts/oracles/TwapOracle.sol":{"TwapOracle":{"abi":[{"inputs":[{"internalType":"address","name":"vBnbAddress","type":"address"},{"internalType":"address","name":"wBnbAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"name":"AnchorPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"pancakePool","type":"address"},{"indexed":true,"internalType":"uint256","name":"anchorPeriod","type":"uint256"}],"name":"TokenConfigAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldAcc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAcc","type":"uint256"}],"name":"TwapWindowUpdated","type":"event"},{"inputs":[],"name":"WBNB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bnbBaseUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdBaseUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"baseUnit","type":"uint256"},{"internalType":"address","name":"pancakePool","type":"address"},{"internalType":"bool","name":"isBnbBased","type":"bool"},{"internalType":"bool","name":"isReversedPool","type":"bool"},{"internalType":"uint256","name":"anchorPeriod","type":"uint256"}],"internalType":"struct TokenConfig","name":"config","type":"tuple"}],"name":"currentCumulativePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expScale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"getUnderlyingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"observations","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"acc","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"baseUnit","type":"uint256"},{"internalType":"address","name":"pancakePool","type":"address"},{"internalType":"bool","name":"isBnbBased","type":"bool"},{"internalType":"bool","name":"isReversedPool","type":"bool"},{"internalType":"uint256","name":"anchorPeriod","type":"uint256"}],"internalType":"struct TokenConfig","name":"config","type":"tuple"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"baseUnit","type":"uint256"},{"internalType":"address","name":"pancakePool","type":"address"},{"internalType":"bool","name":"isBnbBased","type":"bool"},{"internalType":"bool","name":"isReversedPool","type":"bool"},{"internalType":"uint256","name":"anchorPeriod","type":"uint256"}],"internalType":"struct TokenConfig[]","name":"configs","type":"tuple[]"}],"name":"setTokenConfigs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenConfigs","outputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"baseUnit","type":"uint256"},{"internalType":"address","name":"pancakePool","type":"address"},{"internalType":"bool","name":"isBnbBased","type":"bool"},{"internalType":"bool","name":"isReversedPool","type":"bool"},{"internalType":"uint256","name":"anchorPeriod","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vToken","type":"address"}],"name":"updateTwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vBnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"windowStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"devdoc":{"kind":"dev","methods":{"constructor":{"custom:oz-upgrades-unsafe-allow":"constructor","params":{"vBnbAddress":"The address of the VBNB","wBnbAddress":"The address of the WBNB"}},"currentCumulativePrice((address,uint256,address,bool,bool,uint256))":{"returns":{"_0":"cumulative price of target token regardless of pair order"}},"getUnderlyingPrice(address)":{"custom:error":"Missing error is thrown if the token config does not existRange error is thrown if TWAP price is not greater than zero","params":{"vToken":"vToken address"},"returns":{"_0":"price Underlying price in USD"}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"setTokenConfig((address,uint256,address,bool,bool,uint256))":{"custom:access":"Only Governance","custom:error":"Range error is thrown if anchor period is not greater than zeroRange error is thrown if base unit is not greater than zeroValue error is thrown if base unit decimals is not the same as asset decimalsNotNullAddress error is thrown if address of asset is nullNotNullAddress error is thrown if PancakeSwap pool address is null","custom:event":"Emits TokenConfigAdded event if new token config are added with asset address, PancakePool address, anchor period address","params":{"config":"token config struct"}},"setTokenConfigs((address,uint256,address,bool,bool,uint256)[])":{"custom:error":"Zero length error thrown, if length of the config array is 0","params":{"configs":"Config array"}},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"updateTwap(address)":{"custom:error":"Missing error is thrown if token config does not exist","returns":{"_0":"anchorPrice anchor price of the underlying asset of the vToken"}}},"stateVariables":{"WBNB":{"custom:oz-upgrades-unsafe-allow":"state-variable-immutable"},"vBnb":{"custom:oz-upgrades-unsafe-allow":"state-variable-immutable"}},"version":1},"evm":{"bytecode":{"functionDebugData":{"@_1109":{"entryPoint":null,"id":1109,"parameterSlots":2,"returnSlots":0},"@_disableInitializers_281":{"entryPoint":273,"id":281,"parameterSlots":0,"returnSlots":0},"abi_decode_address_fromMemory":{"entryPoint":464,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_addresst_address_fromMemory":{"entryPoint":493,"id":null,"parameterSlots":2,"returnSlots":2},"abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:1438:10","statements":[{"nodeType":"YulBlock","src":"6:3:10","statements":[]},{"body":{"nodeType":"YulBlock","src":"74:117:10","statements":[{"nodeType":"YulAssignment","src":"84:22:10","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"99:6:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"93:5:10"},"nodeType":"YulFunctionCall","src":"93:13:10"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"84:5:10"}]},{"body":{"nodeType":"YulBlock","src":"169:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"178:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"181:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"171:6:10"},"nodeType":"YulFunctionCall","src":"171:12:10"},"nodeType":"YulExpressionStatement","src":"171:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"128:5:10"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"139:5:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"154:3:10","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"159:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"150:3:10"},"nodeType":"YulFunctionCall","src":"150:11:10"},{"kind":"number","nodeType":"YulLiteral","src":"163:1:10","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"146:3:10"},"nodeType":"YulFunctionCall","src":"146:19:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"135:3:10"},"nodeType":"YulFunctionCall","src":"135:31:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"125:2:10"},"nodeType":"YulFunctionCall","src":"125:42:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"118:6:10"},"nodeType":"YulFunctionCall","src":"118:50:10"},"nodeType":"YulIf","src":"115:70:10"}]},"name":"abi_decode_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"53:6:10","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"64:5:10","type":""}],"src":"14:177:10"},{"body":{"nodeType":"YulBlock","src":"294:195:10","statements":[{"body":{"nodeType":"YulBlock","src":"340:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"349:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"352:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"342:6:10"},"nodeType":"YulFunctionCall","src":"342:12:10"},"nodeType":"YulExpressionStatement","src":"342:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"315:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"324:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"311:3:10"},"nodeType":"YulFunctionCall","src":"311:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"336:2:10","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"307:3:10"},"nodeType":"YulFunctionCall","src":"307:32:10"},"nodeType":"YulIf","src":"304:52:10"},{"nodeType":"YulAssignment","src":"365:50:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"405:9:10"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"375:29:10"},"nodeType":"YulFunctionCall","src":"375:40:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"365:6:10"}]},{"nodeType":"YulAssignment","src":"424:59:10","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"468:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"479:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"464:3:10"},"nodeType":"YulFunctionCall","src":"464:18:10"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"434:29:10"},"nodeType":"YulFunctionCall","src":"434:49:10"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"424:6:10"}]}]},"name":"abi_decode_tuple_t_addresst_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"252:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"263:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"275:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"283:6:10","type":""}],"src":"196:293:10"},{"body":{"nodeType":"YulBlock","src":"668:171:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"685:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"696:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"678:6:10"},"nodeType":"YulFunctionCall","src":"678:21:10"},"nodeType":"YulExpressionStatement","src":"678:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"719:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"730:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"715:3:10"},"nodeType":"YulFunctionCall","src":"715:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"735:2:10","type":"","value":"21"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"708:6:10"},"nodeType":"YulFunctionCall","src":"708:30:10"},"nodeType":"YulExpressionStatement","src":"708:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"758:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"769:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"754:3:10"},"nodeType":"YulFunctionCall","src":"754:18:10"},{"hexValue":"63616e2774206265207a65726f2061646472657373","kind":"string","nodeType":"YulLiteral","src":"774:23:10","type":"","value":"can't be zero address"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"747:6:10"},"nodeType":"YulFunctionCall","src":"747:51:10"},"nodeType":"YulExpressionStatement","src":"747:51:10"},{"nodeType":"YulAssignment","src":"807:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"819:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"830:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"815:3:10"},"nodeType":"YulFunctionCall","src":"815:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"807:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"645:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"659:4:10","type":""}],"src":"494:345:10"},{"body":{"nodeType":"YulBlock","src":"1018:229:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1035:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1046:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1028:6:10"},"nodeType":"YulFunctionCall","src":"1028:21:10"},"nodeType":"YulExpressionStatement","src":"1028:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1069:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1080:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1065:3:10"},"nodeType":"YulFunctionCall","src":"1065:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"1085:2:10","type":"","value":"39"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1058:6:10"},"nodeType":"YulFunctionCall","src":"1058:30:10"},"nodeType":"YulExpressionStatement","src":"1058:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1108:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1119:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1104:3:10"},"nodeType":"YulFunctionCall","src":"1104:18:10"},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320696e697469","kind":"string","nodeType":"YulLiteral","src":"1124:34:10","type":"","value":"Initializable: contract is initi"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1097:6:10"},"nodeType":"YulFunctionCall","src":"1097:62:10"},"nodeType":"YulExpressionStatement","src":"1097:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1179:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1190:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1175:3:10"},"nodeType":"YulFunctionCall","src":"1175:18:10"},{"hexValue":"616c697a696e67","kind":"string","nodeType":"YulLiteral","src":"1195:9:10","type":"","value":"alizing"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1168:6:10"},"nodeType":"YulFunctionCall","src":"1168:37:10"},"nodeType":"YulExpressionStatement","src":"1168:37:10"},{"nodeType":"YulAssignment","src":"1214:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1226:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1237:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1222:3:10"},"nodeType":"YulFunctionCall","src":"1222:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1214:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"995:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1009:4:10","type":""}],"src":"844:403:10"},{"body":{"nodeType":"YulBlock","src":"1349:87:10","statements":[{"nodeType":"YulAssignment","src":"1359:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1371:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1382:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1367:3:10"},"nodeType":"YulFunctionCall","src":"1367:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1359:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1401:9:10"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1416:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"1424:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1412:3:10"},"nodeType":"YulFunctionCall","src":"1412:17:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1394:6:10"},"nodeType":"YulFunctionCall","src":"1394:36:10"},"nodeType":"YulExpressionStatement","src":"1394:36:10"}]},"name":"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1318:9:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1329:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1340:4:10","type":""}],"src":"1252:184:10"}]},"contents":"{\n { }\n function abi_decode_address_fromMemory(offset) -> value\n {\n value := mload(offset)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_addresst_address_fromMemory(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n value0 := abi_decode_address_fromMemory(headStart)\n value1 := abi_decode_address_fromMemory(add(headStart, 32))\n }\n function abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 21)\n mstore(add(headStart, 64), \"can't be zero address\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 39)\n mstore(add(headStart, 64), \"Initializable: contract is initi\")\n mstore(add(headStart, 96), \"alizing\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, 0xff))\n }\n}","id":10,"language":"Yul","name":"#utility.yul"}],"linkReferences":{},"object":"60c06040523480156200001157600080fd5b5060405162001e8d38038062001e8d8339810160408190526200003491620001ed565b816001600160a01b038116620000915760405162461bcd60e51b815260206004820152601560248201527f63616e2774206265207a65726f2061646472657373000000000000000000000060448201526064015b60405180910390fd5b816001600160a01b038116620000ea5760405162461bcd60e51b815260206004820152601560248201527f63616e2774206265207a65726f20616464726573730000000000000000000000604482015260640162000088565b6001600160a01b0380851660a05283166080526200010762000111565b5050505062000225565b600054610100900460ff16156200017b5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840162000088565b60005460ff9081161015620001ce576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b0381168114620001e857600080fd5b919050565b600080604083850312156200020157600080fd5b6200020c83620001d0565b91506200021c60208401620001d0565b90509250929050565b60805160a051611c0a620002836000396000818161023d015281816104540152610c420152600081816102bf015281816104f401528181610572015281816105e30152818161065b01528181610ce201526111aa0152611c0a6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063725068a5116100a2578063b8a8a62611610071578063b8a8a62614610277578063cbf67919146102e1578063cfed246b146102f4578063f2fde38b14610314578063fc57d4df1461032757600080fd5b8063725068a51461028e5780638129fc1c146102a15780638da5cb5b146102a95780638dd95002146102ba57600080fd5b80633334ecc5116100e95780633334ecc5146102185780635ba3792d14610238578063609f0f361461027757806369aa3ac614610277578063715018a61461028657600080fd5b8063024599661461011b5780631b69dc5f14610148578063234a3446146101e25780632b9d9dea146101f7575b600080fd5b61012e6101293660046116cb565b61033a565b604080519283526020830191909152015b60405180910390f35b6101a06101563660046116f7565b60656020526000908152604090208054600182015460028301546003909301546001600160a01b0392831693919282169160ff600160a01b8204811692600160a81b909204169086565b604080516001600160a01b03978816815260208101969096529390951692840192909252151560608301521515608082015260a081019190915260c00161013f565b6101f56101f0366004611808565b610376565b005b61020a6102053660046118b8565b61040c565b60405190815260200161013f565b61020a6102263660046116f7565b60686020526000908152604090205481565b61025f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013f565b61020a670de0b6b3a764000081565b6101f561043b565b61020a61029c3660046116f7565b61044f565b6101f5610772565b6033546001600160a01b031661025f565b61025f7f000000000000000000000000000000000000000000000000000000000000000081565b6101f56102ef3660046118b8565b610883565b61020a6103023660046116f7565b60666020526000908152604090205481565b6101f56103223660046116f7565b610bc7565b61020a6103353660046116f7565b610c3d565b6067602052816000526040600020818154811061035657600080fd5b600091825260209091206002909102018054600190910154909250905082565b61037e610e4e565b60008151116103c85760405162461bcd60e51b815260206004820152601160248201527006c656e6774682063616e2774206265203607c1b60448201526064015b60405180910390fd5b805160005b81811015610407576103f78382815181106103ea576103ea6118d4565b6020026020010151610883565b61040081611900565b90506103cd565b505050565b600080600061041e8460400151610ea8565b5091509150836080015115610434579392505050565b5092915050565b610443610e4e565b61044d6000611050565b565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146104f257826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed9190611919565b610514565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b03808216600090815260656020526040902054919250166105705760405162461bcd60e51b815260206004820152600f60248201526e185cdcd95d081b9bdd08195e1a5cdd608a1b60448201526064016103bf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141580156105d457506001600160a01b038116600090815260656020526040902060020154600160a01b900460ff165b156106ef576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600090815260656020526040902054166106515760405162461bcd60e51b815260206004820152600e60248201526d15d09390881b9bdd08195e1a5cdd60921b60448201526064016103bf565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600090815260656020908152604091829020825160c08101845281548516815260018201549281019290925260028101549384169282019290925260ff600160a01b8404811615156060830152600160a81b909304909216151560808301526003015460a08201526106ed906110a2565b505b6001600160a01b03808216600090815260656020908152604091829020825160c08101845281548516815260018201549281019290925260028101549384169282019290925260ff600160a01b8404811615156060830152600160a81b909304909216151560808301526003015460a082015261076b906110a2565b9392505050565b600054610100900460ff16158080156107925750600054600160ff909116105b806107ac5750303b1580156107ac575060005460ff166001145b61080f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103bf565b6000805460ff191660011790558015610832576000805461ff0019166101001790555b61083a611300565b8015610880576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b61088b610e4e565b80516001600160a01b0381166108db5760405162461bcd60e51b815260206004820152601560248201527463616e2774206265207a65726f206164647265737360581b60448201526064016103bf565b60408201516001600160a01b03811661092e5760405162461bcd60e51b815260206004820152601560248201527463616e2774206265207a65726f206164647265737360581b60448201526064016103bf565b60008360a00151116109825760405162461bcd60e51b815260206004820152601e60248201527f616e63686f7220706572696f64206d75737420626520706f736974697665000060448201526064016103bf565b60008360200151116109d65760405162461bcd60e51b815260206004820152601a60248201527f6261736520756e6974206d75737420626520706f73697469766500000000000060448201526064016103bf565b82600001516001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190611936565b610a4790600a611a3d565b836020015114610ab35760405162461bcd60e51b815260206004820152603160248201527f6261736520756e697420646563696d616c73206d7573742062652073616d6520604482015270617320617373657420646563696d616c7360781b60648201526084016103bf565b6000610abe8461040c565b84516001600160a01b03908116600090815260676020908152604080832081518083018352428152808401878152825460018181018555938752858720925160029182029093019283559051918301919091558a5186168552606584528285208b5181549088166001600160a01b031990911681178255948c015192810192909255828b0151908201805460608d015160808e01511515600160a81b0260ff60a81b19911515600160a01b026001600160a81b03199093169490991693841791909117169690961790955560a08a0151600390910181905590519495509390917f3cc8d9cb9370a23a8b9ffa75efa24cecb65c4693980e58260841adc474983c5f91a450505050565b610bcf610e4e565b6001600160a01b038116610c345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bf565b61088081611050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614610ce057826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdb9190611919565b610d02565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b0380821660009081526065602052604090205491925016610d5e5760405162461bcd60e51b815260206004820152600f60248201526e185cdcd95d081b9bdd08195e1a5cdd608a1b60448201526064016103bf565b6001600160a01b03811660009081526066602052604090205480610dc45760405162461bcd60e51b815260206004820152601b60248201527f54574150207072696365206d75737420626520706f736974697665000000000060448201526064016103bf565b816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e269190611936565b610e31906012611a4c565b610e3c90600a611a3d565b610e469082611a6f565b949350505050565b6033546001600160a01b0316331461044d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bf565b6000806000610eb561132f565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190611a8e565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d9190611a8e565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe69190611abe565b9250925092508363ffffffff168163ffffffff16146110465780840363ffffffff81166110138486611345565b516001600160e01b031602969096019563ffffffff81166110348585611345565b516001600160e01b0316029590950194505b5050509193909250565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000806110b1856113f7565b9250925092508042116111065760405162461bcd60e51b815260206004820152601a60248201527f6e6f77206d75737420636f6d65206166746572206265666f726500000000000060448201526064016103bf565b60006111128242611b0e565b90506000604051806020016040528083868861112e9190611b0e565b6111389190611b3b565b6001600160e01b031690529050600061115082611666565b90506000886060015161116b57670de0b6b3a7640000611175565b670de0b6b3a76400005b90506000818a602001518461118a9190611a6f565b6111949190611b3b565b9050896060015115611241576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260666020526040812054908190036112205760405162461bcd60e51b8152602060048201526014602482015273189b98881c1c9a58d9481a5cc81a5b9d985b1a5960621b60448201526064016103bf565b670de0b6b3a76400006112338284611a6f565b61123d9190611b3b565b9150505b8060000361128a5760405162461bcd60e51b81526020600482015260166024820152750747761702070726963652063616e6e6f7420626520360541b60448201526064016103bf565b89516040805183815260208101899052428183015290516001600160a01b03909216917f7d881580fb2bb7844e8ecf8df26510247c4bbea2735d40bf0d9ac33c0d9acd819181900360600190a298516001600160a01b031660009081526066602052604090208990555096979650505050505050565b600054610100900460ff166113275760405162461bcd60e51b81526004016103bf90611b4f565b61044d611686565b600061134064010000000042611b9a565b905090565b6040805160208101909152600081526000826001600160701b0316116113ad5760405162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f00000000000000000060448201526064016103bf565b6040805160208101909152806113e36001600160701b0385166dffffffffffffffffffffffffffff60701b607088901b16611bae565b6001600160e01b0316905290505b92915050565b6000806000806114068561040c565b60a0860151909150429060009061141d9083611b0e565b87516001600160a01b0316600090815260676020908152604080832080548251818502810185019093528083529495509293909291849084015b8282101561149d57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611457565b505082518b516001600160a01b0316600090815260686020526040902054939450929150505b818110156115b957838382815181106114de576114de6118d4565b60200260200101516000015110158061150057506114fd600183611b0e565b81145b1561156857828181518110611517576115176118d4565b6020026020010151602001519750828181518110611537576115376118d4565b602090810291909101810151518b516001600160a01b031660009081526068909252604090912082905596506115b9565b89516001600160a01b03166000908152606760205260409020805482908110611593576115936118d4565b600091825260208220600290910201818155600101556115b281611900565b90506114c3565b5088516001600160a01b039081166000908152606760209081526040808320815180830183528981528084018b81528254600180820185559387529585902091516002909602909101948555519301929092558b5182518a81529182018b90524292820192909252606081018890529116907f87208a84ec7402c933c70c261e53b733a9f1c893d73e941a152435d58177a2649060800160405180910390a2509295505050509193909250565b80516000906113f1906612725dd1d243ab906001600160e01b0316611b3b565b600054610100900460ff166116ad5760405162461bcd60e51b81526004016103bf90611b4f565b61044d33611050565b6001600160a01b038116811461088057600080fd5b600080604083850312156116de57600080fd5b82356116e9816116b6565b946020939093013593505050565b60006020828403121561170957600080fd5b813561076b816116b6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561175357611753611714565b604052919050565b8035801515811461176b57600080fd5b919050565b600060c0828403121561178257600080fd5b60405160c0810181811067ffffffffffffffff821117156117a5576117a5611714565b60405290508082356117b6816116b6565b81526020838101359082015260408301356117d0816116b6565b60408201526117e16060840161175b565b60608201526117f26080840161175b565b608082015260a083013560a08201525092915050565b6000602080838503121561181b57600080fd5b823567ffffffffffffffff8082111561183357600080fd5b818501915085601f83011261184757600080fd5b81358181111561185957611859611714565b611867848260051b0161172a565b818152848101925060c091820284018501918883111561188657600080fd5b938501935b828510156118ac5761189d8986611770565b8452938401939285019261188b565b50979650505050505050565b600060c082840312156118ca57600080fd5b61076b8383611770565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611912576119126118ea565b5060010190565b60006020828403121561192b57600080fd5b815161076b816116b6565b60006020828403121561194857600080fd5b815160ff8116811461076b57600080fd5b600181815b8085111561199457816000190482111561197a5761197a6118ea565b8085161561198757918102915b93841c939080029061195e565b509250929050565b6000826119ab575060016113f1565b816119b8575060006113f1565b81600181146119ce57600281146119d8576119f4565b60019150506113f1565b60ff8411156119e9576119e96118ea565b50506001821b6113f1565b5060208310610133831016604e8410600b8410161715611a17575081810a6113f1565b611a218383611959565b8060001904821115611a3557611a356118ea565b029392505050565b600061076b60ff84168361199c565b600060ff821660ff841680821015611a6657611a666118ea565b90039392505050565b6000816000190483118215151615611a8957611a896118ea565b500290565b600060208284031215611aa057600080fd5b5051919050565b80516001600160701b038116811461176b57600080fd5b600080600060608486031215611ad357600080fd5b611adc84611aa7565b9250611aea60208501611aa7565b9150604084015163ffffffff81168114611b0357600080fd5b809150509250925092565b600082821015611b2057611b206118ea565b500390565b634e487b7160e01b600052601260045260246000fd5b600082611b4a57611b4a611b25565b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082611ba957611ba9611b25565b500690565b60006001600160e01b0383811680611bc857611bc8611b25565b9216919091049291505056fea2646970667358221220d473ccf039d726e926c9ec0a0f47f4b2cac35cab16987260819ec49b6e10970064736f6c634300080d0033","opcodes":"PUSH1 0xC0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x1E8D CODESIZE SUB DUP1 PUSH3 0x1E8D DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x1ED JUMP JUMPDEST DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH3 0x91 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x63616E2774206265207A65726F20616464726573730000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH3 0xEA JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x63616E2774206265207A65726F20616464726573730000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH3 0x88 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0xA0 MSTORE DUP4 AND PUSH1 0x80 MSTORE PUSH3 0x107 PUSH3 0x111 JUMP JUMPDEST POP POP POP POP PUSH3 0x225 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH3 0x17B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x27 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320696E697469 PUSH1 0x44 DUP3 ADD MSTORE PUSH7 0x616C697A696E67 PUSH1 0xC8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH3 0x88 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0xFF SWAP1 DUP2 AND LT ISZERO PUSH3 0x1CE JUMPI PUSH1 0x0 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0xFF SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x1E8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH3 0x201 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x20C DUP4 PUSH3 0x1D0 JUMP JUMPDEST SWAP2 POP PUSH3 0x21C PUSH1 0x20 DUP5 ADD PUSH3 0x1D0 JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH2 0x1C0A PUSH3 0x283 PUSH1 0x0 CODECOPY PUSH1 0x0 DUP2 DUP2 PUSH2 0x23D ADD MSTORE DUP2 DUP2 PUSH2 0x454 ADD MSTORE PUSH2 0xC42 ADD MSTORE PUSH1 0x0 DUP2 DUP2 PUSH2 0x2BF ADD MSTORE DUP2 DUP2 PUSH2 0x4F4 ADD MSTORE DUP2 DUP2 PUSH2 0x572 ADD MSTORE DUP2 DUP2 PUSH2 0x5E3 ADD MSTORE DUP2 DUP2 PUSH2 0x65B ADD MSTORE DUP2 DUP2 PUSH2 0xCE2 ADD MSTORE PUSH2 0x11AA ADD MSTORE PUSH2 0x1C0A PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x116 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x725068A5 GT PUSH2 0xA2 JUMPI DUP1 PUSH4 0xB8A8A626 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0xB8A8A626 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0xCBF67919 EQ PUSH2 0x2E1 JUMPI DUP1 PUSH4 0xCFED246B EQ PUSH2 0x2F4 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0xFC57D4DF EQ PUSH2 0x327 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x725068A5 EQ PUSH2 0x28E JUMPI DUP1 PUSH4 0x8129FC1C EQ PUSH2 0x2A1 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x2A9 JUMPI DUP1 PUSH4 0x8DD95002 EQ PUSH2 0x2BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x3334ECC5 GT PUSH2 0xE9 JUMPI DUP1 PUSH4 0x3334ECC5 EQ PUSH2 0x218 JUMPI DUP1 PUSH4 0x5BA3792D EQ PUSH2 0x238 JUMPI DUP1 PUSH4 0x609F0F36 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0x69AA3AC6 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x286 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x2459966 EQ PUSH2 0x11B JUMPI DUP1 PUSH4 0x1B69DC5F EQ PUSH2 0x148 JUMPI DUP1 PUSH4 0x234A3446 EQ PUSH2 0x1E2 JUMPI DUP1 PUSH4 0x2B9D9DEA EQ PUSH2 0x1F7 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x12E PUSH2 0x129 CALLDATASIZE PUSH1 0x4 PUSH2 0x16CB JUMP JUMPDEST PUSH2 0x33A JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1A0 PUSH2 0x156 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 DUP3 ADD SLOAD PUSH1 0x2 DUP4 ADD SLOAD PUSH1 0x3 SWAP1 SWAP4 ADD SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 DUP4 AND SWAP4 SWAP2 SWAP3 DUP3 AND SWAP2 PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP3 DIV DUP2 AND SWAP3 PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP3 DIV AND SWAP1 DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP8 DUP9 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP7 SWAP1 SWAP7 MSTORE SWAP4 SWAP1 SWAP6 AND SWAP3 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE ISZERO ISZERO PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xC0 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x1F0 CALLDATASIZE PUSH1 0x4 PUSH2 0x1808 JUMP JUMPDEST PUSH2 0x376 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x20A PUSH2 0x205 CALLDATASIZE PUSH1 0x4 PUSH2 0x18B8 JUMP JUMPDEST PUSH2 0x40C JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x20A PUSH2 0x226 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x68 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x25F PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x20A PUSH8 0xDE0B6B3A7640000 DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x43B JUMP JUMPDEST PUSH2 0x20A PUSH2 0x29C CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0x44F JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x772 JUMP JUMPDEST PUSH1 0x33 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x25F JUMP JUMPDEST PUSH2 0x25F PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2EF CALLDATASIZE PUSH1 0x4 PUSH2 0x18B8 JUMP JUMPDEST PUSH2 0x883 JUMP JUMPDEST PUSH2 0x20A PUSH2 0x302 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0xBC7 JUMP JUMPDEST PUSH2 0x20A PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0xC3D JUMP JUMPDEST PUSH1 0x67 PUSH1 0x20 MSTORE DUP2 PUSH1 0x0 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x356 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP1 SLOAD PUSH1 0x1 SWAP1 SWAP2 ADD SLOAD SWAP1 SWAP3 POP SWAP1 POP DUP3 JUMP JUMPDEST PUSH2 0x37E PUSH2 0xE4E JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD GT PUSH2 0x3C8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x11 PUSH1 0x24 DUP3 ADD MSTORE PUSH17 0x6C656E6774682063616E2774206265203 PUSH1 0x7C SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 MLOAD PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x407 JUMPI PUSH2 0x3F7 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3EA JUMPI PUSH2 0x3EA PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x883 JUMP JUMPDEST PUSH2 0x400 DUP2 PUSH2 0x1900 JUMP JUMPDEST SWAP1 POP PUSH2 0x3CD JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x41E DUP5 PUSH1 0x40 ADD MLOAD PUSH2 0xEA8 JUMP JUMPDEST POP SWAP2 POP SWAP2 POP DUP4 PUSH1 0x80 ADD MLOAD ISZERO PUSH2 0x434 JUMPI SWAP4 SWAP3 POP POP POP JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x443 PUSH2 0xE4E JUMP JUMPDEST PUSH2 0x44D PUSH1 0x0 PUSH2 0x1050 JUMP JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0x4F2 JUMPI DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x6F307DC3 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x4C9 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x4ED SWAP2 SWAP1 PUSH2 0x1919 JUMP JUMPDEST PUSH2 0x514 JUMP JUMPDEST PUSH32 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP2 SWAP3 POP AND PUSH2 0x570 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x185CDCD95D081B9BDD08195E1A5CDD PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP1 ISZERO PUSH2 0x5D4 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH1 0x2 ADD SLOAD PUSH1 0x1 PUSH1 0xA0 SHL SWAP1 DIV PUSH1 0xFF AND JUMPDEST ISZERO PUSH2 0x6EF JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD AND PUSH2 0x651 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH14 0x15D09390881B9BDD08195E1A5CDD PUSH1 0x92 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP3 MLOAD PUSH1 0xC0 DUP2 ADD DUP5 MSTORE DUP2 SLOAD DUP6 AND DUP2 MSTORE PUSH1 0x1 DUP3 ADD SLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x2 DUP2 ADD SLOAD SWAP4 DUP5 AND SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP5 DIV DUP2 AND ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP4 DIV SWAP1 SWAP3 AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE PUSH1 0x3 ADD SLOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x6ED SWAP1 PUSH2 0x10A2 JUMP JUMPDEST POP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP3 MLOAD PUSH1 0xC0 DUP2 ADD DUP5 MSTORE DUP2 SLOAD DUP6 AND DUP2 MSTORE PUSH1 0x1 DUP3 ADD SLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x2 DUP2 ADD SLOAD SWAP4 DUP5 AND SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP5 DIV DUP2 AND ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP4 DIV SWAP1 SWAP3 AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE PUSH1 0x3 ADD SLOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x76B SWAP1 PUSH2 0x10A2 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO DUP1 DUP1 ISZERO PUSH2 0x792 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xFF SWAP1 SWAP2 AND LT JUMPDEST DUP1 PUSH2 0x7AC JUMPI POP ADDRESS EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x7AC JUMPI POP PUSH1 0x0 SLOAD PUSH1 0xFF AND PUSH1 0x1 EQ JUMPDEST PUSH2 0x80F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x2E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320616C726561 PUSH1 0x44 DUP3 ADD MSTORE PUSH14 0x191E481A5B9A5D1A585B1A5E9959 PUSH1 0x92 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE DUP1 ISZERO PUSH2 0x832 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH2 0xFF00 NOT AND PUSH2 0x100 OR SWAP1 SSTORE JUMPDEST PUSH2 0x83A PUSH2 0x1300 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x880 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH2 0xFF00 NOT AND SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST POP JUMP JUMPDEST PUSH2 0x88B PUSH2 0xE4E JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x8DB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x63616E2774206265207A65726F2061646472657373 PUSH1 0x58 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x92E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x63616E2774206265207A65726F2061646472657373 PUSH1 0x58 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP4 PUSH1 0xA0 ADD MLOAD GT PUSH2 0x982 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x616E63686F7220706572696F64206D75737420626520706F7369746976650000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP4 PUSH1 0x20 ADD MLOAD GT PUSH2 0x9D6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6261736520756E6974206D75737420626520706F736974697665000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xA18 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA3C SWAP2 SWAP1 PUSH2 0x1936 JUMP JUMPDEST PUSH2 0xA47 SWAP1 PUSH1 0xA PUSH2 0x1A3D JUMP JUMPDEST DUP4 PUSH1 0x20 ADD MLOAD EQ PUSH2 0xAB3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x31 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6261736520756E697420646563696D616C73206D7573742062652073616D6520 PUSH1 0x44 DUP3 ADD MSTORE PUSH17 0x617320617373657420646563696D616C73 PUSH1 0x78 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0xABE DUP5 PUSH2 0x40C JUMP JUMPDEST DUP5 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP2 MLOAD DUP1 DUP4 ADD DUP4 MSTORE TIMESTAMP DUP2 MSTORE DUP1 DUP5 ADD DUP8 DUP2 MSTORE DUP3 SLOAD PUSH1 0x1 DUP2 DUP2 ADD DUP6 SSTORE SWAP4 DUP8 MSTORE DUP6 DUP8 KECCAK256 SWAP3 MLOAD PUSH1 0x2 SWAP2 DUP3 MUL SWAP1 SWAP4 ADD SWAP3 DUP4 SSTORE SWAP1 MLOAD SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 SSTORE DUP11 MLOAD DUP7 AND DUP6 MSTORE PUSH1 0x65 DUP5 MSTORE DUP3 DUP6 KECCAK256 DUP12 MLOAD DUP2 SLOAD SWAP1 DUP9 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT SWAP1 SWAP2 AND DUP2 OR DUP3 SSTORE SWAP5 DUP13 ADD MLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 SSTORE DUP3 DUP12 ADD MLOAD SWAP1 DUP3 ADD DUP1 SLOAD PUSH1 0x60 DUP14 ADD MLOAD PUSH1 0x80 DUP15 ADD MLOAD ISZERO ISZERO PUSH1 0x1 PUSH1 0xA8 SHL MUL PUSH1 0xFF PUSH1 0xA8 SHL NOT SWAP2 ISZERO ISZERO PUSH1 0x1 PUSH1 0xA0 SHL MUL PUSH1 0x1 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT SWAP1 SWAP4 AND SWAP5 SWAP1 SWAP10 AND SWAP4 DUP5 OR SWAP2 SWAP1 SWAP2 OR AND SWAP7 SWAP1 SWAP7 OR SWAP1 SWAP6 SSTORE PUSH1 0xA0 DUP11 ADD MLOAD PUSH1 0x3 SWAP1 SWAP2 ADD DUP2 SWAP1 SSTORE SWAP1 MLOAD SWAP5 SWAP6 POP SWAP4 SWAP1 SWAP2 PUSH32 0x3CC8D9CB9370A23A8B9FFA75EFA24CECB65C4693980E58260841ADC474983C5F SWAP2 LOG4 POP POP POP POP JUMP JUMPDEST PUSH2 0xBCF PUSH2 0xE4E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0xC34 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH2 0x880 DUP2 PUSH2 0x1050 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0xCE0 JUMPI DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x6F307DC3 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xCB7 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xCDB SWAP2 SWAP1 PUSH2 0x1919 JUMP JUMPDEST PUSH2 0xD02 JUMP JUMPDEST PUSH32 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP2 SWAP3 POP AND PUSH2 0xD5E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x185CDCD95D081B9BDD08195E1A5CDD PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 PUSH2 0xDC4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1B PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x54574150207072696365206D75737420626520706F7369746976650000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xE02 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xE26 SWAP2 SWAP1 PUSH2 0x1936 JUMP JUMPDEST PUSH2 0xE31 SWAP1 PUSH1 0x12 PUSH2 0x1A4C JUMP JUMPDEST PUSH2 0xE3C SWAP1 PUSH1 0xA PUSH2 0x1A3D JUMP JUMPDEST PUSH2 0xE46 SWAP1 DUP3 PUSH2 0x1A6F JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x33 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x44D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0xEB5 PUSH2 0x132F JUMP JUMPDEST SWAP1 POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x5909C0D5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xEF5 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xF19 SWAP2 SWAP1 PUSH2 0x1A8E JUMP JUMPDEST SWAP3 POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x5A3D5493 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xF59 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xF7D SWAP2 SWAP1 PUSH2 0x1A8E JUMP JUMPDEST SWAP2 POP PUSH1 0x0 DUP1 PUSH1 0x0 DUP7 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x902F1AC PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x60 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xFC2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xFE6 SWAP2 SWAP1 PUSH2 0x1ABE JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP4 PUSH4 0xFFFFFFFF AND DUP2 PUSH4 0xFFFFFFFF AND EQ PUSH2 0x1046 JUMPI DUP1 DUP5 SUB PUSH4 0xFFFFFFFF DUP2 AND PUSH2 0x1013 DUP5 DUP7 PUSH2 0x1345 JUMP JUMPDEST MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND MUL SWAP7 SWAP1 SWAP7 ADD SWAP6 PUSH4 0xFFFFFFFF DUP2 AND PUSH2 0x1034 DUP6 DUP6 PUSH2 0x1345 JUMP JUMPDEST MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND MUL SWAP6 SWAP1 SWAP6 ADD SWAP5 POP JUMPDEST POP POP POP SWAP2 SWAP4 SWAP1 SWAP3 POP JUMP JUMPDEST PUSH1 0x33 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP4 AND DUP2 OR SWAP1 SWAP4 SSTORE PUSH1 0x40 MLOAD SWAP2 AND SWAP2 SWAP1 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x10B1 DUP6 PUSH2 0x13F7 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP1 TIMESTAMP GT PUSH2 0x1106 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F77206D75737420636F6D65206166746572206265666F7265000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1112 DUP3 TIMESTAMP PUSH2 0x1B0E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 DUP4 DUP7 DUP9 PUSH2 0x112E SWAP2 SWAP1 PUSH2 0x1B0E JUMP JUMPDEST PUSH2 0x1138 SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND SWAP1 MSTORE SWAP1 POP PUSH1 0x0 PUSH2 0x1150 DUP3 PUSH2 0x1666 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP9 PUSH1 0x60 ADD MLOAD PUSH2 0x116B JUMPI PUSH8 0xDE0B6B3A7640000 PUSH2 0x1175 JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 JUMPDEST SWAP1 POP PUSH1 0x0 DUP2 DUP11 PUSH1 0x20 ADD MLOAD DUP5 PUSH2 0x118A SWAP2 SWAP1 PUSH2 0x1A6F JUMP JUMPDEST PUSH2 0x1194 SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST SWAP1 POP DUP10 PUSH1 0x60 ADD MLOAD ISZERO PUSH2 0x1241 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD SWAP1 DUP2 SWAP1 SUB PUSH2 0x1220 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x189B98881C1C9A58D9481A5CC81A5B9D985B1A59 PUSH1 0x62 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 PUSH2 0x1233 DUP3 DUP5 PUSH2 0x1A6F JUMP JUMPDEST PUSH2 0x123D SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST SWAP2 POP POP JUMPDEST DUP1 PUSH1 0x0 SUB PUSH2 0x128A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x747761702070726963652063616E6E6F74206265203 PUSH1 0x54 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP10 MLOAD PUSH1 0x40 DUP1 MLOAD DUP4 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP10 SWAP1 MSTORE TIMESTAMP DUP2 DUP4 ADD MSTORE SWAP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND SWAP2 PUSH32 0x7D881580FB2BB7844E8ECF8DF26510247C4BBEA2735D40BF0D9AC33C0D9ACD81 SWAP2 DUP2 SWAP1 SUB PUSH1 0x60 ADD SWAP1 LOG2 SWAP9 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP10 SWAP1 SSTORE POP SWAP7 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND PUSH2 0x1327 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3BF SWAP1 PUSH2 0x1B4F JUMP JUMPDEST PUSH2 0x44D PUSH2 0x1686 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1340 PUSH5 0x100000000 TIMESTAMP PUSH2 0x1B9A JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE PUSH1 0x0 DUP2 MSTORE PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB AND GT PUSH2 0x13AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4669786564506F696E743A204449565F42595F5A45524F000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE DUP1 PUSH2 0x13E3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB DUP6 AND PUSH14 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x70 SHL PUSH1 0x70 DUP9 SWAP1 SHL AND PUSH2 0x1BAE JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND SWAP1 MSTORE SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x1406 DUP6 PUSH2 0x40C JUMP JUMPDEST PUSH1 0xA0 DUP7 ADD MLOAD SWAP1 SWAP2 POP TIMESTAMP SWAP1 PUSH1 0x0 SWAP1 PUSH2 0x141D SWAP1 DUP4 PUSH2 0x1B0E JUMP JUMPDEST DUP8 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP1 SLOAD DUP3 MLOAD DUP2 DUP6 MUL DUP2 ADD DUP6 ADD SWAP1 SWAP4 MSTORE DUP1 DUP4 MSTORE SWAP5 SWAP6 POP SWAP3 SWAP4 SWAP1 SWAP3 SWAP2 DUP5 SWAP1 DUP5 ADD JUMPDEST DUP3 DUP3 LT ISZERO PUSH2 0x149D JUMPI DUP4 DUP3 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH1 0x0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD SLOAD DUP2 MSTORE POP POP DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1457 JUMP JUMPDEST POP POP DUP3 MLOAD DUP12 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x68 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP4 SWAP5 POP SWAP3 SWAP2 POP POP JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x15B9 JUMPI DUP4 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x14DE JUMPI PUSH2 0x14DE PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x0 ADD MLOAD LT ISZERO DUP1 PUSH2 0x1500 JUMPI POP PUSH2 0x14FD PUSH1 0x1 DUP4 PUSH2 0x1B0E JUMP JUMPDEST DUP2 EQ JUMPDEST ISZERO PUSH2 0x1568 JUMPI DUP3 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x1517 JUMPI PUSH2 0x1517 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x20 ADD MLOAD SWAP8 POP DUP3 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x1537 JUMPI PUSH2 0x1537 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD DUP2 ADD MLOAD MLOAD DUP12 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x68 SWAP1 SWAP3 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP3 SWAP1 SSTORE SWAP7 POP PUSH2 0x15B9 JUMP JUMPDEST DUP10 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD DUP3 SWAP1 DUP2 LT PUSH2 0x1593 JUMPI PUSH2 0x1593 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP2 DUP2 SSTORE PUSH1 0x1 ADD SSTORE PUSH2 0x15B2 DUP2 PUSH2 0x1900 JUMP JUMPDEST SWAP1 POP PUSH2 0x14C3 JUMP JUMPDEST POP DUP9 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP2 MLOAD DUP1 DUP4 ADD DUP4 MSTORE DUP10 DUP2 MSTORE DUP1 DUP5 ADD DUP12 DUP2 MSTORE DUP3 SLOAD PUSH1 0x1 DUP1 DUP3 ADD DUP6 SSTORE SWAP4 DUP8 MSTORE SWAP6 DUP6 SWAP1 KECCAK256 SWAP2 MLOAD PUSH1 0x2 SWAP1 SWAP7 MUL SWAP1 SWAP2 ADD SWAP5 DUP6 SSTORE MLOAD SWAP4 ADD SWAP3 SWAP1 SWAP3 SSTORE DUP12 MLOAD DUP3 MLOAD DUP11 DUP2 MSTORE SWAP2 DUP3 ADD DUP12 SWAP1 MSTORE TIMESTAMP SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x60 DUP2 ADD DUP9 SWAP1 MSTORE SWAP2 AND SWAP1 PUSH32 0x87208A84EC7402C933C70C261E53B733A9F1C893D73E941A152435D58177A264 SWAP1 PUSH1 0x80 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP SWAP3 SWAP6 POP POP POP POP SWAP2 SWAP4 SWAP1 SWAP3 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH2 0x13F1 SWAP1 PUSH7 0x12725DD1D243AB SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND PUSH2 0x1B3B JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND PUSH2 0x16AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3BF SWAP1 PUSH2 0x1B4F JUMP JUMPDEST PUSH2 0x44D CALLER PUSH2 0x1050 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x880 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x16DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x16E9 DUP2 PUSH2 0x16B6 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1709 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x76B DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x1753 JUMPI PUSH2 0x1753 PUSH2 0x1714 JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 CALLDATALOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x176B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xC0 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1782 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0xC0 DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x17A5 JUMPI PUSH2 0x17A5 PUSH2 0x1714 JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP1 POP DUP1 DUP3 CALLDATALOAD PUSH2 0x17B6 DUP2 PUSH2 0x16B6 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 DUP4 DUP2 ADD CALLDATALOAD SWAP1 DUP3 ADD MSTORE PUSH1 0x40 DUP4 ADD CALLDATALOAD PUSH2 0x17D0 DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MSTORE PUSH2 0x17E1 PUSH1 0x60 DUP5 ADD PUSH2 0x175B JUMP JUMPDEST PUSH1 0x60 DUP3 ADD MSTORE PUSH2 0x17F2 PUSH1 0x80 DUP5 ADD PUSH2 0x175B JUMP JUMPDEST PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP4 ADD CALLDATALOAD PUSH1 0xA0 DUP3 ADD MSTORE POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x181B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x1833 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 DUP6 ADD SWAP2 POP DUP6 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x1847 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD DUP2 DUP2 GT ISZERO PUSH2 0x1859 JUMPI PUSH2 0x1859 PUSH2 0x1714 JUMP JUMPDEST PUSH2 0x1867 DUP5 DUP3 PUSH1 0x5 SHL ADD PUSH2 0x172A JUMP JUMPDEST DUP2 DUP2 MSTORE DUP5 DUP2 ADD SWAP3 POP PUSH1 0xC0 SWAP2 DUP3 MUL DUP5 ADD DUP6 ADD SWAP2 DUP9 DUP4 GT ISZERO PUSH2 0x1886 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 DUP6 ADD SWAP4 JUMPDEST DUP3 DUP6 LT ISZERO PUSH2 0x18AC JUMPI PUSH2 0x189D DUP10 DUP7 PUSH2 0x1770 JUMP JUMPDEST DUP5 MSTORE SWAP4 DUP5 ADD SWAP4 SWAP3 DUP6 ADD SWAP3 PUSH2 0x188B JUMP JUMPDEST POP SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xC0 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x18CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76B DUP4 DUP4 PUSH2 0x1770 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 ADD PUSH2 0x1912 JUMPI PUSH2 0x1912 PUSH2 0x18EA JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x192B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x76B DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1948 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x76B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 DUP2 DUP2 JUMPDEST DUP1 DUP6 GT ISZERO PUSH2 0x1994 JUMPI DUP2 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH2 0x197A JUMPI PUSH2 0x197A PUSH2 0x18EA JUMP JUMPDEST DUP1 DUP6 AND ISZERO PUSH2 0x1987 JUMPI SWAP2 DUP2 MUL SWAP2 JUMPDEST SWAP4 DUP5 SHR SWAP4 SWAP1 DUP1 MUL SWAP1 PUSH2 0x195E JUMP JUMPDEST POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x19AB JUMPI POP PUSH1 0x1 PUSH2 0x13F1 JUMP JUMPDEST DUP2 PUSH2 0x19B8 JUMPI POP PUSH1 0x0 PUSH2 0x13F1 JUMP JUMPDEST DUP2 PUSH1 0x1 DUP2 EQ PUSH2 0x19CE JUMPI PUSH1 0x2 DUP2 EQ PUSH2 0x19D8 JUMPI PUSH2 0x19F4 JUMP JUMPDEST PUSH1 0x1 SWAP2 POP POP PUSH2 0x13F1 JUMP JUMPDEST PUSH1 0xFF DUP5 GT ISZERO PUSH2 0x19E9 JUMPI PUSH2 0x19E9 PUSH2 0x18EA JUMP JUMPDEST POP POP PUSH1 0x1 DUP3 SHL PUSH2 0x13F1 JUMP JUMPDEST POP PUSH1 0x20 DUP4 LT PUSH2 0x133 DUP4 LT AND PUSH1 0x4E DUP5 LT PUSH1 0xB DUP5 LT AND OR ISZERO PUSH2 0x1A17 JUMPI POP DUP2 DUP2 EXP PUSH2 0x13F1 JUMP JUMPDEST PUSH2 0x1A21 DUP4 DUP4 PUSH2 0x1959 JUMP JUMPDEST DUP1 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH2 0x1A35 JUMPI PUSH2 0x1A35 PUSH2 0x18EA JUMP JUMPDEST MUL SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x76B PUSH1 0xFF DUP5 AND DUP4 PUSH2 0x199C JUMP JUMPDEST PUSH1 0x0 PUSH1 0xFF DUP3 AND PUSH1 0xFF DUP5 AND DUP1 DUP3 LT ISZERO PUSH2 0x1A66 JUMPI PUSH2 0x1A66 PUSH2 0x18EA JUMP JUMPDEST SWAP1 SUB SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 NOT DIV DUP4 GT DUP3 ISZERO ISZERO AND ISZERO PUSH2 0x1A89 JUMPI PUSH2 0x1A89 PUSH2 0x18EA JUMP JUMPDEST POP MUL SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1AA0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x176B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1AD3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1ADC DUP5 PUSH2 0x1AA7 JUMP JUMPDEST SWAP3 POP PUSH2 0x1AEA PUSH1 0x20 DUP6 ADD PUSH2 0x1AA7 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD MLOAD PUSH4 0xFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1B03 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0x1B20 JUMPI PUSH2 0x1B20 PUSH2 0x18EA JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1B4A JUMPI PUSH2 0x1B4A PUSH2 0x1B25 JUMP JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x2B SWAP1 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E7472616374206973206E6F742069 PUSH1 0x40 DUP3 ADD MSTORE PUSH11 0x6E697469616C697A696E67 PUSH1 0xA8 SHL PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1BA9 JUMPI PUSH2 0x1BA9 PUSH2 0x1B25 JUMP JUMPDEST POP MOD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB DUP4 DUP2 AND DUP1 PUSH2 0x1BC8 JUMPI PUSH2 0x1BC8 PUSH2 0x1B25 JUMP JUMPDEST SWAP3 AND SWAP2 SWAP1 SWAP2 DIV SWAP3 SWAP2 POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD4 PUSH20 0xCCF039D726E926C9EC0A0F47F4B2CAC35CAB1698 PUSH19 0x60819EC49B6E10970064736F6C634300080D00 CALLER ","sourceMap":"1018:11687:9:-:0;;;3074:205;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3143:11;-1:-1:-1;;;;;2761:21:9;;2753:55;;;;-1:-1:-1;;;2753:55:9;;696:2:10;2753:55:9;;;678:21:10;735:2;715:18;;;708:30;774:23;754:18;;;747:51;815:18;;2753:55:9;;;;;;;;;3171:11;-1:-1:-1;;;;;2761:21:9;::::1;2753:55;;;::::0;-1:-1:-1;;;2753:55:9;;696:2:10;2753:55:9::1;::::0;::::1;678:21:10::0;735:2;715:18;;;708:30;774:23;754:18;;;747:51;815:18;;2753:55:9::1;494:345:10::0;2753:55:9::1;-1:-1:-1::0;;;;;3194:18:9;;::::2;;::::0;3222;::::2;;::::0;3250:22:::2;:20;:22::i;:::-;2818:1:::1;3074:205:::0;;;1018:11687;;5928:279:1;5996:13;;;;;;;5995:14;5987:66;;;;-1:-1:-1;;;5987:66:1;;1046:2:10;5987:66:1;;;1028:21:10;1085:2;1065:18;;;1058:30;1124:34;1104:18;;;1097:62;-1:-1:-1;;;1175:18:10;;;1168:37;1222:19;;5987:66:1;844:403:10;5987:66:1;6067:12;;6082:15;6067:12;;;:30;6063:138;;;6113:12;:30;;-1:-1:-1;;6113:30:1;6128:15;6113:30;;;;;;6162:28;;1394:36:10;;;6162:28:1;;1382:2:10;1367:18;6162:28:1;;;;;;;6063:138;5928:279::o;14:177:10:-;93:13;;-1:-1:-1;;;;;135:31:10;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:293::-;275:6;283;336:2;324:9;315:7;311:23;307:32;304:52;;;352:1;349;342:12;304:52;375:40;405:9;375:40;:::i;:::-;365:50;;434:49;479:2;468:9;464:18;434:49;:::i;:::-;424:59;;196:293;;;;;:::o;1252:184::-;1018:11687:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{"@WBNB_998":{"entryPoint":null,"id":998,"parameterSlots":0,"returnSlots":0},"@__Ownable_init_26":{"entryPoint":4864,"id":26,"parameterSlots":0,"returnSlots":0},"@__Ownable_init_unchained_37":{"entryPoint":5766,"id":37,"parameterSlots":0,"returnSlots":0},"@_checkOwner_68":{"entryPoint":3662,"id":68,"parameterSlots":0,"returnSlots":0},"@_msgSender_611":{"entryPoint":null,"id":611,"parameterSlots":0,"returnSlots":1},"@_transferOwnership_125":{"entryPoint":4176,"id":125,"parameterSlots":1,"returnSlots":0},"@_updateTwapInternal_1540":{"entryPoint":4258,"id":1540,"parameterSlots":1,"returnSlots":1},"@bnbBaseUnit_1005":{"entryPoint":null,"id":1005,"parameterSlots":0,"returnSlots":0},"@busdBaseUnit_1008":{"entryPoint":null,"id":1008,"parameterSlots":0,"returnSlots":0},"@currentBlockTimestamp_872":{"entryPoint":4911,"id":872,"parameterSlots":0,"returnSlots":1},"@currentCumulativePrice_1412":{"entryPoint":1036,"id":1412,"parameterSlots":1,"returnSlots":1},"@currentCumulativePrices_957":{"entryPoint":3752,"id":957,"parameterSlots":1,"returnSlots":3},"@decode112with18_853":{"entryPoint":5734,"id":853,"parameterSlots":1,"returnSlots":1},"@expScale_1011":{"entryPoint":null,"id":1011,"parameterSlots":0,"returnSlots":0},"@fraction_836":{"entryPoint":4933,"id":836,"parameterSlots":2,"returnSlots":1},"@getUnderlyingPrice_1217":{"entryPoint":3133,"id":1217,"parameterSlots":1,"returnSlots":1},"@initialize_1227":{"entryPoint":1906,"id":1227,"parameterSlots":0,"returnSlots":0},"@isContract_318":{"entryPoint":null,"id":318,"parameterSlots":1,"returnSlots":1},"@observations_1029":{"entryPoint":826,"id":1029,"parameterSlots":0,"returnSlots":0},"@owner_54":{"entryPoint":null,"id":54,"parameterSlots":0,"returnSlots":1},"@pokeWindowValues_1675":{"entryPoint":5111,"id":1675,"parameterSlots":1,"returnSlots":3},"@prices_1022":{"entryPoint":null,"id":1022,"parameterSlots":0,"returnSlots":0},"@renounceOwnership_82":{"entryPoint":1083,"id":82,"parameterSlots":0,"returnSlots":0},"@setTokenConfig_1310":{"entryPoint":2179,"id":1310,"parameterSlots":1,"returnSlots":0},"@setTokenConfigs_1150":{"entryPoint":886,"id":1150,"parameterSlots":1,"returnSlots":0},"@tokenConfigs_1017":{"entryPoint":null,"id":1017,"parameterSlots":0,"returnSlots":0},"@transferOwnership_105":{"entryPoint":3015,"id":105,"parameterSlots":1,"returnSlots":0},"@updateTwap_1383":{"entryPoint":1103,"id":1383,"parameterSlots":1,"returnSlots":1},"@vBnb_1001":{"entryPoint":null,"id":1001,"parameterSlots":0,"returnSlots":0},"@windowStart_1034":{"entryPoint":null,"id":1034,"parameterSlots":0,"returnSlots":0},"abi_decode_bool":{"entryPoint":5979,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_struct_TokenConfig":{"entryPoint":6000,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_address":{"entryPoint":5879,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_address_fromMemory":{"entryPoint":6425,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_uint256":{"entryPoint":5835,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr":{"entryPoint":6152,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_struct$_TokenConfig_$989_memory_ptr":{"entryPoint":6328,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint112t_uint112t_uint32_fromMemory":{"entryPoint":6846,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_uint256_fromMemory":{"entryPoint":6798,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint8_fromMemory":{"entryPoint":6454,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_uint112_fromMemory":{"entryPoint":6823,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_address__to_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__to_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":7,"returnSlots":1},"abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_2bcde6d36e25ff80edf1e7b323425b7fef87f9e0a4cccb1475b35b230048c1ed__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_4f017bc3bc880cbbf5c5a42e0e59054836fef6161a6afc406ce026dd7586e7d3__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_50635c480c5a4712f90e68527d5e38f58623f4078d491b98bd818c78bd98a946__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_5b63ee466c6470f47e94829ac8475c0f623b1a136bc8bd22b6f22a83a65967a0__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_97ea44ed9b1f8f794b0f4a84f43ed25e6702933fc90457cec778223d2aa076b2__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_aef763fd4fb164a611c1f79474469d30e366c3b2b994b385d33a8daa09234aaf__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_c08953b790cc95143eb8c20f59bd50de78e1f97d6bdda3d048ca1b7967d68bde__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_c969e98b45e510a597b7277333f46c7416e7e4d72f43b5553650820daeef8314__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":6991,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_d951cb074914841cb4111125601a149e927e68a41aa2d7966912f89cd700c420__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_fb797fc20bb06d860bbe348d99030bb226d980421b724f94accde8487e338e12__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":4,"returnSlots":1},"abi_encode_tuple_t_uint256_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":5,"returnSlots":1},"allocate_memory":{"entryPoint":5930,"id":null,"parameterSlots":1,"returnSlots":1},"checked_div_t_uint224":{"entryPoint":7086,"id":null,"parameterSlots":2,"returnSlots":1},"checked_div_t_uint256":{"entryPoint":6971,"id":null,"parameterSlots":2,"returnSlots":1},"checked_exp_helper":{"entryPoint":6489,"id":null,"parameterSlots":2,"returnSlots":2},"checked_exp_t_uint256_t_uint8":{"entryPoint":6717,"id":null,"parameterSlots":2,"returnSlots":1},"checked_exp_unsigned":{"entryPoint":6556,"id":null,"parameterSlots":2,"returnSlots":1},"checked_mul_t_uint256":{"entryPoint":6767,"id":null,"parameterSlots":2,"returnSlots":1},"checked_sub_t_uint256":{"entryPoint":6926,"id":null,"parameterSlots":2,"returnSlots":1},"checked_sub_t_uint8":{"entryPoint":6732,"id":null,"parameterSlots":2,"returnSlots":1},"increment_t_uint256":{"entryPoint":6400,"id":null,"parameterSlots":1,"returnSlots":1},"mod_t_uint256":{"entryPoint":7066,"id":null,"parameterSlots":2,"returnSlots":1},"panic_error_0x11":{"entryPoint":6378,"id":null,"parameterSlots":0,"returnSlots":0},"panic_error_0x12":{"entryPoint":6949,"id":null,"parameterSlots":0,"returnSlots":0},"panic_error_0x32":{"entryPoint":6356,"id":null,"parameterSlots":0,"returnSlots":0},"panic_error_0x41":{"entryPoint":5908,"id":null,"parameterSlots":0,"returnSlots":0},"validator_revert_address":{"entryPoint":5814,"id":null,"parameterSlots":1,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:15745:10","statements":[{"nodeType":"YulBlock","src":"6:3:10","statements":[]},{"body":{"nodeType":"YulBlock","src":"59:86:10","statements":[{"body":{"nodeType":"YulBlock","src":"123:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"132:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"135:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"125:6:10"},"nodeType":"YulFunctionCall","src":"125:12:10"},"nodeType":"YulExpressionStatement","src":"125:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"82:5:10"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"93:5:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"108:3:10","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"113:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"104:3:10"},"nodeType":"YulFunctionCall","src":"104:11:10"},{"kind":"number","nodeType":"YulLiteral","src":"117:1:10","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"100:3:10"},"nodeType":"YulFunctionCall","src":"100:19:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"89:3:10"},"nodeType":"YulFunctionCall","src":"89:31:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"79:2:10"},"nodeType":"YulFunctionCall","src":"79:42:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"72:6:10"},"nodeType":"YulFunctionCall","src":"72:50:10"},"nodeType":"YulIf","src":"69:70:10"}]},"name":"validator_revert_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"48:5:10","type":""}],"src":"14:131:10"},{"body":{"nodeType":"YulBlock","src":"237:228:10","statements":[{"body":{"nodeType":"YulBlock","src":"283:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"292:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"295:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"285:6:10"},"nodeType":"YulFunctionCall","src":"285:12:10"},"nodeType":"YulExpressionStatement","src":"285:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"258:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"267:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"254:3:10"},"nodeType":"YulFunctionCall","src":"254:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"279:2:10","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"250:3:10"},"nodeType":"YulFunctionCall","src":"250:32:10"},"nodeType":"YulIf","src":"247:52:10"},{"nodeType":"YulVariableDeclaration","src":"308:36:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"334:9:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"321:12:10"},"nodeType":"YulFunctionCall","src":"321:23:10"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"312:5:10","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"378:5:10"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"353:24:10"},"nodeType":"YulFunctionCall","src":"353:31:10"},"nodeType":"YulExpressionStatement","src":"353:31:10"},{"nodeType":"YulAssignment","src":"393:15:10","value":{"name":"value","nodeType":"YulIdentifier","src":"403:5:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"393:6:10"}]},{"nodeType":"YulAssignment","src":"417:42:10","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"444:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"455:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"440:3:10"},"nodeType":"YulFunctionCall","src":"440:18:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"427:12:10"},"nodeType":"YulFunctionCall","src":"427:32:10"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"417:6:10"}]}]},"name":"abi_decode_tuple_t_addresst_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"195:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"206:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"218:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"226:6:10","type":""}],"src":"150:315:10"},{"body":{"nodeType":"YulBlock","src":"599:119:10","statements":[{"nodeType":"YulAssignment","src":"609:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"621:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"632:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"617:3:10"},"nodeType":"YulFunctionCall","src":"617:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"609:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"651:9:10"},{"name":"value0","nodeType":"YulIdentifier","src":"662:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"644:6:10"},"nodeType":"YulFunctionCall","src":"644:25:10"},"nodeType":"YulExpressionStatement","src":"644:25:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"689:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"700:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"685:3:10"},"nodeType":"YulFunctionCall","src":"685:18:10"},{"name":"value1","nodeType":"YulIdentifier","src":"705:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"678:6:10"},"nodeType":"YulFunctionCall","src":"678:34:10"},"nodeType":"YulExpressionStatement","src":"678:34:10"}]},"name":"abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"560:9:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"571:6:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"579:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"590:4:10","type":""}],"src":"470:248:10"},{"body":{"nodeType":"YulBlock","src":"793:177:10","statements":[{"body":{"nodeType":"YulBlock","src":"839:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"848:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"851:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"841:6:10"},"nodeType":"YulFunctionCall","src":"841:12:10"},"nodeType":"YulExpressionStatement","src":"841:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"814:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"823:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"810:3:10"},"nodeType":"YulFunctionCall","src":"810:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"835:2:10","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"806:3:10"},"nodeType":"YulFunctionCall","src":"806:32:10"},"nodeType":"YulIf","src":"803:52:10"},{"nodeType":"YulVariableDeclaration","src":"864:36:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"890:9:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"877:12:10"},"nodeType":"YulFunctionCall","src":"877:23:10"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"868:5:10","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"934:5:10"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"909:24:10"},"nodeType":"YulFunctionCall","src":"909:31:10"},"nodeType":"YulExpressionStatement","src":"909:31:10"},{"nodeType":"YulAssignment","src":"949:15:10","value":{"name":"value","nodeType":"YulIdentifier","src":"959:5:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"949:6:10"}]}]},"name":"abi_decode_tuple_t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"759:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"770:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"782:6:10","type":""}],"src":"723:247:10"},{"body":{"nodeType":"YulBlock","src":"1204:382:10","statements":[{"nodeType":"YulAssignment","src":"1214:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1226:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1237:3:10","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1222:3:10"},"nodeType":"YulFunctionCall","src":"1222:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1214:4:10"}]},{"nodeType":"YulVariableDeclaration","src":"1250:29:10","value":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1268:3:10","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"1273:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"1264:3:10"},"nodeType":"YulFunctionCall","src":"1264:11:10"},{"kind":"number","nodeType":"YulLiteral","src":"1277:1:10","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1260:3:10"},"nodeType":"YulFunctionCall","src":"1260:19:10"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"1254:2:10","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1295:9:10"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1310:6:10"},{"name":"_1","nodeType":"YulIdentifier","src":"1318:2:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1306:3:10"},"nodeType":"YulFunctionCall","src":"1306:15:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1288:6:10"},"nodeType":"YulFunctionCall","src":"1288:34:10"},"nodeType":"YulExpressionStatement","src":"1288:34:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1342:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1353:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1338:3:10"},"nodeType":"YulFunctionCall","src":"1338:18:10"},{"name":"value1","nodeType":"YulIdentifier","src":"1358:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1331:6:10"},"nodeType":"YulFunctionCall","src":"1331:34:10"},"nodeType":"YulExpressionStatement","src":"1331:34:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1385:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1396:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1381:3:10"},"nodeType":"YulFunctionCall","src":"1381:18:10"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"1405:6:10"},{"name":"_1","nodeType":"YulIdentifier","src":"1413:2:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1401:3:10"},"nodeType":"YulFunctionCall","src":"1401:15:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1374:6:10"},"nodeType":"YulFunctionCall","src":"1374:43:10"},"nodeType":"YulExpressionStatement","src":"1374:43:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1437:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1448:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1433:3:10"},"nodeType":"YulFunctionCall","src":"1433:18:10"},{"arguments":[{"arguments":[{"name":"value3","nodeType":"YulIdentifier","src":"1467:6:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1460:6:10"},"nodeType":"YulFunctionCall","src":"1460:14:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1453:6:10"},"nodeType":"YulFunctionCall","src":"1453:22:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1426:6:10"},"nodeType":"YulFunctionCall","src":"1426:50:10"},"nodeType":"YulExpressionStatement","src":"1426:50:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1496:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1507:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1492:3:10"},"nodeType":"YulFunctionCall","src":"1492:19:10"},{"arguments":[{"arguments":[{"name":"value4","nodeType":"YulIdentifier","src":"1527:6:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1520:6:10"},"nodeType":"YulFunctionCall","src":"1520:14:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1513:6:10"},"nodeType":"YulFunctionCall","src":"1513:22:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1485:6:10"},"nodeType":"YulFunctionCall","src":"1485:51:10"},"nodeType":"YulExpressionStatement","src":"1485:51:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1556:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"1567:3:10","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1552:3:10"},"nodeType":"YulFunctionCall","src":"1552:19:10"},{"name":"value5","nodeType":"YulIdentifier","src":"1573:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1545:6:10"},"nodeType":"YulFunctionCall","src":"1545:35:10"},"nodeType":"YulExpressionStatement","src":"1545:35:10"}]},"name":"abi_encode_tuple_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__to_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1133:9:10","type":""},{"name":"value5","nodeType":"YulTypedName","src":"1144:6:10","type":""},{"name":"value4","nodeType":"YulTypedName","src":"1152:6:10","type":""},{"name":"value3","nodeType":"YulTypedName","src":"1160:6:10","type":""},{"name":"value2","nodeType":"YulTypedName","src":"1168:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1176:6:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1184:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1195:4:10","type":""}],"src":"975:611:10"},{"body":{"nodeType":"YulBlock","src":"1623:95:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1640:1:10","type":"","value":"0"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1647:3:10","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"1652:10:10","type":"","value":"0x4e487b71"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"1643:3:10"},"nodeType":"YulFunctionCall","src":"1643:20:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1633:6:10"},"nodeType":"YulFunctionCall","src":"1633:31:10"},"nodeType":"YulExpressionStatement","src":"1633:31:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1680:1:10","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"1683:4:10","type":"","value":"0x41"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1673:6:10"},"nodeType":"YulFunctionCall","src":"1673:15:10"},"nodeType":"YulExpressionStatement","src":"1673:15:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1704:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1707:4:10","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1697:6:10"},"nodeType":"YulFunctionCall","src":"1697:15:10"},"nodeType":"YulExpressionStatement","src":"1697:15:10"}]},"name":"panic_error_0x41","nodeType":"YulFunctionDefinition","src":"1591:127:10"},{"body":{"nodeType":"YulBlock","src":"1768:230:10","statements":[{"nodeType":"YulAssignment","src":"1778:19:10","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1794:2:10","type":"","value":"64"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1788:5:10"},"nodeType":"YulFunctionCall","src":"1788:9:10"},"variableNames":[{"name":"memPtr","nodeType":"YulIdentifier","src":"1778:6:10"}]},{"nodeType":"YulVariableDeclaration","src":"1806:58:10","value":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"1828:6:10"},{"arguments":[{"arguments":[{"name":"size","nodeType":"YulIdentifier","src":"1844:4:10"},{"kind":"number","nodeType":"YulLiteral","src":"1850:2:10","type":"","value":"31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1840:3:10"},"nodeType":"YulFunctionCall","src":"1840:13:10"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1859:2:10","type":"","value":"31"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"1855:3:10"},"nodeType":"YulFunctionCall","src":"1855:7:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1836:3:10"},"nodeType":"YulFunctionCall","src":"1836:27:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1824:3:10"},"nodeType":"YulFunctionCall","src":"1824:40:10"},"variables":[{"name":"newFreePtr","nodeType":"YulTypedName","src":"1810:10:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"1939:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"1941:16:10"},"nodeType":"YulFunctionCall","src":"1941:18:10"},"nodeType":"YulExpressionStatement","src":"1941:18:10"}]},"condition":{"arguments":[{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1882:10:10"},{"kind":"number","nodeType":"YulLiteral","src":"1894:18:10","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1879:2:10"},"nodeType":"YulFunctionCall","src":"1879:34:10"},{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1918:10:10"},{"name":"memPtr","nodeType":"YulIdentifier","src":"1930:6:10"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"1915:2:10"},"nodeType":"YulFunctionCall","src":"1915:22:10"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"1876:2:10"},"nodeType":"YulFunctionCall","src":"1876:62:10"},"nodeType":"YulIf","src":"1873:88:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1977:2:10","type":"","value":"64"},{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1981:10:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1970:6:10"},"nodeType":"YulFunctionCall","src":"1970:22:10"},"nodeType":"YulExpressionStatement","src":"1970:22:10"}]},"name":"allocate_memory","nodeType":"YulFunctionDefinition","parameters":[{"name":"size","nodeType":"YulTypedName","src":"1748:4:10","type":""}],"returnVariables":[{"name":"memPtr","nodeType":"YulTypedName","src":"1757:6:10","type":""}],"src":"1723:275:10"},{"body":{"nodeType":"YulBlock","src":"2049:114:10","statements":[{"nodeType":"YulAssignment","src":"2059:29:10","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"2081:6:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2068:12:10"},"nodeType":"YulFunctionCall","src":"2068:20:10"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"2059:5:10"}]},{"body":{"nodeType":"YulBlock","src":"2141:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2150:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2153:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2143:6:10"},"nodeType":"YulFunctionCall","src":"2143:12:10"},"nodeType":"YulExpressionStatement","src":"2143:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"2110:5:10"},{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"2131:5:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2124:6:10"},"nodeType":"YulFunctionCall","src":"2124:13:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2117:6:10"},"nodeType":"YulFunctionCall","src":"2117:21:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"2107:2:10"},"nodeType":"YulFunctionCall","src":"2107:32:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2100:6:10"},"nodeType":"YulFunctionCall","src":"2100:40:10"},"nodeType":"YulIf","src":"2097:60:10"}]},"name":"abi_decode_bool","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"2028:6:10","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"2039:5:10","type":""}],"src":"2003:160:10"},{"body":{"nodeType":"YulBlock","src":"2236:828:10","statements":[{"body":{"nodeType":"YulBlock","src":"2280:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2289:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2292:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2282:6:10"},"nodeType":"YulFunctionCall","src":"2282:12:10"},"nodeType":"YulExpressionStatement","src":"2282:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"end","nodeType":"YulIdentifier","src":"2257:3:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"2262:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2253:3:10"},"nodeType":"YulFunctionCall","src":"2253:19:10"},{"kind":"number","nodeType":"YulLiteral","src":"2274:4:10","type":"","value":"0xc0"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"2249:3:10"},"nodeType":"YulFunctionCall","src":"2249:30:10"},"nodeType":"YulIf","src":"2246:50:10"},{"nodeType":"YulVariableDeclaration","src":"2305:23:10","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2325:2:10","type":"","value":"64"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"2319:5:10"},"nodeType":"YulFunctionCall","src":"2319:9:10"},"variables":[{"name":"memPtr","nodeType":"YulTypedName","src":"2309:6:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"2337:35:10","value":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2359:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"2367:4:10","type":"","value":"0xc0"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2355:3:10"},"nodeType":"YulFunctionCall","src":"2355:17:10"},"variables":[{"name":"newFreePtr","nodeType":"YulTypedName","src":"2341:10:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"2447:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"2449:16:10"},"nodeType":"YulFunctionCall","src":"2449:18:10"},"nodeType":"YulExpressionStatement","src":"2449:18:10"}]},"condition":{"arguments":[{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"2390:10:10"},{"kind":"number","nodeType":"YulLiteral","src":"2402:18:10","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"2387:2:10"},"nodeType":"YulFunctionCall","src":"2387:34:10"},{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"2426:10:10"},{"name":"memPtr","nodeType":"YulIdentifier","src":"2438:6:10"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"2423:2:10"},"nodeType":"YulFunctionCall","src":"2423:22:10"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"2384:2:10"},"nodeType":"YulFunctionCall","src":"2384:62:10"},"nodeType":"YulIf","src":"2381:88:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2485:2:10","type":"","value":"64"},{"name":"newFreePtr","nodeType":"YulIdentifier","src":"2489:10:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2478:6:10"},"nodeType":"YulFunctionCall","src":"2478:22:10"},"nodeType":"YulExpressionStatement","src":"2478:22:10"},{"nodeType":"YulAssignment","src":"2509:15:10","value":{"name":"memPtr","nodeType":"YulIdentifier","src":"2518:6:10"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"2509:5:10"}]},{"nodeType":"YulVariableDeclaration","src":"2533:38:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2561:9:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2548:12:10"},"nodeType":"YulFunctionCall","src":"2548:23:10"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"2537:7:10","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"2605:7:10"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2580:24:10"},"nodeType":"YulFunctionCall","src":"2580:33:10"},"nodeType":"YulExpressionStatement","src":"2580:33:10"},{"expression":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2629:6:10"},{"name":"value_1","nodeType":"YulIdentifier","src":"2637:7:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2622:6:10"},"nodeType":"YulFunctionCall","src":"2622:23:10"},"nodeType":"YulExpressionStatement","src":"2622:23:10"},{"expression":{"arguments":[{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2665:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"2673:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2661:3:10"},"nodeType":"YulFunctionCall","src":"2661:15:10"},{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2695:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"2706:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2691:3:10"},"nodeType":"YulFunctionCall","src":"2691:18:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2678:12:10"},"nodeType":"YulFunctionCall","src":"2678:32:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2654:6:10"},"nodeType":"YulFunctionCall","src":"2654:57:10"},"nodeType":"YulExpressionStatement","src":"2654:57:10"},{"nodeType":"YulVariableDeclaration","src":"2720:47:10","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2752:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"2763:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2748:3:10"},"nodeType":"YulFunctionCall","src":"2748:18:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2735:12:10"},"nodeType":"YulFunctionCall","src":"2735:32:10"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"2724:7:10","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"2801:7:10"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2776:24:10"},"nodeType":"YulFunctionCall","src":"2776:33:10"},"nodeType":"YulExpressionStatement","src":"2776:33:10"},{"expression":{"arguments":[{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2829:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"2837:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2825:3:10"},"nodeType":"YulFunctionCall","src":"2825:15:10"},{"name":"value_2","nodeType":"YulIdentifier","src":"2842:7:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2818:6:10"},"nodeType":"YulFunctionCall","src":"2818:32:10"},"nodeType":"YulExpressionStatement","src":"2818:32:10"},{"expression":{"arguments":[{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2870:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"2878:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2866:3:10"},"nodeType":"YulFunctionCall","src":"2866:15:10"},{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2903:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"2914:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2899:3:10"},"nodeType":"YulFunctionCall","src":"2899:18:10"}],"functionName":{"name":"abi_decode_bool","nodeType":"YulIdentifier","src":"2883:15:10"},"nodeType":"YulFunctionCall","src":"2883:35:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2859:6:10"},"nodeType":"YulFunctionCall","src":"2859:60:10"},"nodeType":"YulExpressionStatement","src":"2859:60:10"},{"expression":{"arguments":[{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"2939:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"2947:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2935:3:10"},"nodeType":"YulFunctionCall","src":"2935:16:10"},{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2973:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"2984:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2969:3:10"},"nodeType":"YulFunctionCall","src":"2969:19:10"}],"functionName":{"name":"abi_decode_bool","nodeType":"YulIdentifier","src":"2953:15:10"},"nodeType":"YulFunctionCall","src":"2953:36:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2928:6:10"},"nodeType":"YulFunctionCall","src":"2928:62:10"},"nodeType":"YulExpressionStatement","src":"2928:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"3010:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"3018:3:10","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3006:3:10"},"nodeType":"YulFunctionCall","src":"3006:16:10"},{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3041:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"3052:3:10","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3037:3:10"},"nodeType":"YulFunctionCall","src":"3037:19:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3024:12:10"},"nodeType":"YulFunctionCall","src":"3024:33:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2999:6:10"},"nodeType":"YulFunctionCall","src":"2999:59:10"},"nodeType":"YulExpressionStatement","src":"2999:59:10"}]},"name":"abi_decode_struct_TokenConfig","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2207:9:10","type":""},{"name":"end","nodeType":"YulTypedName","src":"2218:3:10","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"2226:5:10","type":""}],"src":"2168:896:10"},{"body":{"nodeType":"YulBlock","src":"3192:888:10","statements":[{"nodeType":"YulVariableDeclaration","src":"3202:12:10","value":{"kind":"number","nodeType":"YulLiteral","src":"3212:2:10","type":"","value":"32"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"3206:2:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3259:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3268:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3271:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3261:6:10"},"nodeType":"YulFunctionCall","src":"3261:12:10"},"nodeType":"YulExpressionStatement","src":"3261:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"3234:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"3243:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"3230:3:10"},"nodeType":"YulFunctionCall","src":"3230:23:10"},{"name":"_1","nodeType":"YulIdentifier","src":"3255:2:10"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"3226:3:10"},"nodeType":"YulFunctionCall","src":"3226:32:10"},"nodeType":"YulIf","src":"3223:52:10"},{"nodeType":"YulVariableDeclaration","src":"3284:37:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3311:9:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3298:12:10"},"nodeType":"YulFunctionCall","src":"3298:23:10"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"3288:6:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"3330:28:10","value":{"kind":"number","nodeType":"YulLiteral","src":"3340:18:10","type":"","value":"0xffffffffffffffff"},"variables":[{"name":"_2","nodeType":"YulTypedName","src":"3334:2:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3385:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3394:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3397:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3387:6:10"},"nodeType":"YulFunctionCall","src":"3387:12:10"},"nodeType":"YulExpressionStatement","src":"3387:12:10"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"3373:6:10"},{"name":"_2","nodeType":"YulIdentifier","src":"3381:2:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3370:2:10"},"nodeType":"YulFunctionCall","src":"3370:14:10"},"nodeType":"YulIf","src":"3367:34:10"},{"nodeType":"YulVariableDeclaration","src":"3410:32:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3424:9:10"},{"name":"offset","nodeType":"YulIdentifier","src":"3435:6:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3420:3:10"},"nodeType":"YulFunctionCall","src":"3420:22:10"},"variables":[{"name":"_3","nodeType":"YulTypedName","src":"3414:2:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3490:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3499:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3502:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3492:6:10"},"nodeType":"YulFunctionCall","src":"3492:12:10"},"nodeType":"YulExpressionStatement","src":"3492:12:10"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"3469:2:10"},{"kind":"number","nodeType":"YulLiteral","src":"3473:4:10","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3465:3:10"},"nodeType":"YulFunctionCall","src":"3465:13:10"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3480:7:10"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"3461:3:10"},"nodeType":"YulFunctionCall","src":"3461:27:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"3454:6:10"},"nodeType":"YulFunctionCall","src":"3454:35:10"},"nodeType":"YulIf","src":"3451:55:10"},{"nodeType":"YulVariableDeclaration","src":"3515:26:10","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"3538:2:10"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3525:12:10"},"nodeType":"YulFunctionCall","src":"3525:16:10"},"variables":[{"name":"_4","nodeType":"YulTypedName","src":"3519:2:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3564:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"3566:16:10"},"nodeType":"YulFunctionCall","src":"3566:18:10"},"nodeType":"YulExpressionStatement","src":"3566:18:10"}]},"condition":{"arguments":[{"name":"_4","nodeType":"YulIdentifier","src":"3556:2:10"},{"name":"_2","nodeType":"YulIdentifier","src":"3560:2:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3553:2:10"},"nodeType":"YulFunctionCall","src":"3553:10:10"},"nodeType":"YulIf","src":"3550:36:10"},{"nodeType":"YulVariableDeclaration","src":"3595:47:10","value":{"arguments":[{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3630:1:10","type":"","value":"5"},{"name":"_4","nodeType":"YulIdentifier","src":"3633:2:10"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"3626:3:10"},"nodeType":"YulFunctionCall","src":"3626:10:10"},{"name":"_1","nodeType":"YulIdentifier","src":"3638:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3622:3:10"},"nodeType":"YulFunctionCall","src":"3622:19:10"}],"functionName":{"name":"allocate_memory","nodeType":"YulIdentifier","src":"3606:15:10"},"nodeType":"YulFunctionCall","src":"3606:36:10"},"variables":[{"name":"dst","nodeType":"YulTypedName","src":"3599:3:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"3651:16:10","value":{"name":"dst","nodeType":"YulIdentifier","src":"3664:3:10"},"variables":[{"name":"dst_1","nodeType":"YulTypedName","src":"3655:5:10","type":""}]},{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"3683:3:10"},{"name":"_4","nodeType":"YulIdentifier","src":"3688:2:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3676:6:10"},"nodeType":"YulFunctionCall","src":"3676:15:10"},"nodeType":"YulExpressionStatement","src":"3676:15:10"},{"nodeType":"YulAssignment","src":"3700:19:10","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"3711:3:10"},{"name":"_1","nodeType":"YulIdentifier","src":"3716:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3707:3:10"},"nodeType":"YulFunctionCall","src":"3707:12:10"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"3700:3:10"}]},{"nodeType":"YulVariableDeclaration","src":"3728:14:10","value":{"kind":"number","nodeType":"YulLiteral","src":"3738:4:10","type":"","value":"0xc0"},"variables":[{"name":"_5","nodeType":"YulTypedName","src":"3732:2:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"3751:43:10","value":{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"3773:2:10"},{"arguments":[{"name":"_4","nodeType":"YulIdentifier","src":"3781:2:10"},{"name":"_5","nodeType":"YulIdentifier","src":"3785:2:10"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"3777:3:10"},"nodeType":"YulFunctionCall","src":"3777:11:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3769:3:10"},"nodeType":"YulFunctionCall","src":"3769:20:10"},{"name":"_1","nodeType":"YulIdentifier","src":"3791:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3765:3:10"},"nodeType":"YulFunctionCall","src":"3765:29:10"},"variables":[{"name":"srcEnd","nodeType":"YulTypedName","src":"3755:6:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3826:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3835:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3838:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3828:6:10"},"nodeType":"YulFunctionCall","src":"3828:12:10"},"nodeType":"YulExpressionStatement","src":"3828:12:10"}]},"condition":{"arguments":[{"name":"srcEnd","nodeType":"YulIdentifier","src":"3809:6:10"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3817:7:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3806:2:10"},"nodeType":"YulFunctionCall","src":"3806:19:10"},"nodeType":"YulIf","src":"3803:39:10"},{"nodeType":"YulVariableDeclaration","src":"3851:22:10","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"3866:2:10"},{"name":"_1","nodeType":"YulIdentifier","src":"3870:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3862:3:10"},"nodeType":"YulFunctionCall","src":"3862:11:10"},"variables":[{"name":"src","nodeType":"YulTypedName","src":"3855:3:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"3938:112:10","statements":[{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"3959:3:10"},{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3994:3:10"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3999:7:10"}],"functionName":{"name":"abi_decode_struct_TokenConfig","nodeType":"YulIdentifier","src":"3964:29:10"},"nodeType":"YulFunctionCall","src":"3964:43:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3952:6:10"},"nodeType":"YulFunctionCall","src":"3952:56:10"},"nodeType":"YulExpressionStatement","src":"3952:56:10"},{"nodeType":"YulAssignment","src":"4021:19:10","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"4032:3:10"},{"name":"_1","nodeType":"YulIdentifier","src":"4037:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4028:3:10"},"nodeType":"YulFunctionCall","src":"4028:12:10"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"4021:3:10"}]}]},"condition":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3893:3:10"},{"name":"srcEnd","nodeType":"YulIdentifier","src":"3898:6:10"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"3890:2:10"},"nodeType":"YulFunctionCall","src":"3890:15:10"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"3906:23:10","statements":[{"nodeType":"YulAssignment","src":"3908:19:10","value":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3919:3:10"},{"name":"_5","nodeType":"YulIdentifier","src":"3924:2:10"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3915:3:10"},"nodeType":"YulFunctionCall","src":"3915:12:10"},"variableNames":[{"name":"src","nodeType":"YulIdentifier","src":"3908:3:10"}]}]},"pre":{"nodeType":"YulBlock","src":"3886:3:10","statements":[]},"src":"3882:168:10"},{"nodeType":"YulAssignment","src":"4059:15:10","value":{"name":"dst_1","nodeType":"YulIdentifier","src":"4069:5:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"4059:6:10"}]}]},"name":"abi_decode_tuple_t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3158:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"3169:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"3181:6:10","type":""}],"src":"3069:1011:10"},{"body":{"nodeType":"YulBlock","src":"4183:137:10","statements":[{"body":{"nodeType":"YulBlock","src":"4230:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4239:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4242:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4232:6:10"},"nodeType":"YulFunctionCall","src":"4232:12:10"},"nodeType":"YulExpressionStatement","src":"4232:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"4204:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"4213:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4200:3:10"},"nodeType":"YulFunctionCall","src":"4200:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"4225:3:10","type":"","value":"192"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"4196:3:10"},"nodeType":"YulFunctionCall","src":"4196:33:10"},"nodeType":"YulIf","src":"4193:53:10"},{"nodeType":"YulAssignment","src":"4255:59:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4295:9:10"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"4306:7:10"}],"functionName":{"name":"abi_decode_struct_TokenConfig","nodeType":"YulIdentifier","src":"4265:29:10"},"nodeType":"YulFunctionCall","src":"4265:49:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"4255:6:10"}]}]},"name":"abi_decode_tuple_t_struct$_TokenConfig_$989_memory_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4149:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"4160:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"4172:6:10","type":""}],"src":"4085:235:10"},{"body":{"nodeType":"YulBlock","src":"4426:76:10","statements":[{"nodeType":"YulAssignment","src":"4436:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4448:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"4459:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4444:3:10"},"nodeType":"YulFunctionCall","src":"4444:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"4436:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4478:9:10"},{"name":"value0","nodeType":"YulIdentifier","src":"4489:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4471:6:10"},"nodeType":"YulFunctionCall","src":"4471:25:10"},"nodeType":"YulExpressionStatement","src":"4471:25:10"}]},"name":"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4395:9:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"4406:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"4417:4:10","type":""}],"src":"4325:177:10"},{"body":{"nodeType":"YulBlock","src":"4608:102:10","statements":[{"nodeType":"YulAssignment","src":"4618:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4630:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"4641:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4626:3:10"},"nodeType":"YulFunctionCall","src":"4626:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"4618:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4660:9:10"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"4675:6:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4691:3:10","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"4696:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"4687:3:10"},"nodeType":"YulFunctionCall","src":"4687:11:10"},{"kind":"number","nodeType":"YulLiteral","src":"4700:1:10","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4683:3:10"},"nodeType":"YulFunctionCall","src":"4683:19:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"4671:3:10"},"nodeType":"YulFunctionCall","src":"4671:32:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4653:6:10"},"nodeType":"YulFunctionCall","src":"4653:51:10"},"nodeType":"YulExpressionStatement","src":"4653:51:10"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4577:9:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"4588:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"4599:4:10","type":""}],"src":"4507:203:10"},{"body":{"nodeType":"YulBlock","src":"4889:167:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4906:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"4917:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4899:6:10"},"nodeType":"YulFunctionCall","src":"4899:21:10"},"nodeType":"YulExpressionStatement","src":"4899:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4940:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"4951:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4936:3:10"},"nodeType":"YulFunctionCall","src":"4936:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"4956:2:10","type":"","value":"17"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4929:6:10"},"nodeType":"YulFunctionCall","src":"4929:30:10"},"nodeType":"YulExpressionStatement","src":"4929:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4979:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"4990:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4975:3:10"},"nodeType":"YulFunctionCall","src":"4975:18:10"},{"hexValue":"6c656e6774682063616e27742062652030","kind":"string","nodeType":"YulLiteral","src":"4995:19:10","type":"","value":"length can't be 0"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4968:6:10"},"nodeType":"YulFunctionCall","src":"4968:47:10"},"nodeType":"YulExpressionStatement","src":"4968:47:10"},{"nodeType":"YulAssignment","src":"5024:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5036:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"5047:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5032:3:10"},"nodeType":"YulFunctionCall","src":"5032:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5024:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_2bcde6d36e25ff80edf1e7b323425b7fef87f9e0a4cccb1475b35b230048c1ed__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4866:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"4880:4:10","type":""}],"src":"4715:341:10"},{"body":{"nodeType":"YulBlock","src":"5093:95:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5110:1:10","type":"","value":"0"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5117:3:10","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"5122:10:10","type":"","value":"0x4e487b71"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5113:3:10"},"nodeType":"YulFunctionCall","src":"5113:20:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5103:6:10"},"nodeType":"YulFunctionCall","src":"5103:31:10"},"nodeType":"YulExpressionStatement","src":"5103:31:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5150:1:10","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"5153:4:10","type":"","value":"0x32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5143:6:10"},"nodeType":"YulFunctionCall","src":"5143:15:10"},"nodeType":"YulExpressionStatement","src":"5143:15:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5174:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5177:4:10","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5167:6:10"},"nodeType":"YulFunctionCall","src":"5167:15:10"},"nodeType":"YulExpressionStatement","src":"5167:15:10"}]},"name":"panic_error_0x32","nodeType":"YulFunctionDefinition","src":"5061:127:10"},{"body":{"nodeType":"YulBlock","src":"5225:95:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5242:1:10","type":"","value":"0"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5249:3:10","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"5254:10:10","type":"","value":"0x4e487b71"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5245:3:10"},"nodeType":"YulFunctionCall","src":"5245:20:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5235:6:10"},"nodeType":"YulFunctionCall","src":"5235:31:10"},"nodeType":"YulExpressionStatement","src":"5235:31:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5282:1:10","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"5285:4:10","type":"","value":"0x11"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5275:6:10"},"nodeType":"YulFunctionCall","src":"5275:15:10"},"nodeType":"YulExpressionStatement","src":"5275:15:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5306:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5309:4:10","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5299:6:10"},"nodeType":"YulFunctionCall","src":"5299:15:10"},"nodeType":"YulExpressionStatement","src":"5299:15:10"}]},"name":"panic_error_0x11","nodeType":"YulFunctionDefinition","src":"5193:127:10"},{"body":{"nodeType":"YulBlock","src":"5372:88:10","statements":[{"body":{"nodeType":"YulBlock","src":"5403:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"5405:16:10"},"nodeType":"YulFunctionCall","src":"5405:18:10"},"nodeType":"YulExpressionStatement","src":"5405:18:10"}]},"condition":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"5388:5:10"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5399:1:10","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"5395:3:10"},"nodeType":"YulFunctionCall","src":"5395:6:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"5385:2:10"},"nodeType":"YulFunctionCall","src":"5385:17:10"},"nodeType":"YulIf","src":"5382:43:10"},{"nodeType":"YulAssignment","src":"5434:20:10","value":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"5445:5:10"},{"kind":"number","nodeType":"YulLiteral","src":"5452:1:10","type":"","value":"1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5441:3:10"},"nodeType":"YulFunctionCall","src":"5441:13:10"},"variableNames":[{"name":"ret","nodeType":"YulIdentifier","src":"5434:3:10"}]}]},"name":"increment_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"5354:5:10","type":""}],"returnVariables":[{"name":"ret","nodeType":"YulTypedName","src":"5364:3:10","type":""}],"src":"5325:135:10"},{"body":{"nodeType":"YulBlock","src":"5546:170:10","statements":[{"body":{"nodeType":"YulBlock","src":"5592:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5601:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5604:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5594:6:10"},"nodeType":"YulFunctionCall","src":"5594:12:10"},"nodeType":"YulExpressionStatement","src":"5594:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"5567:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"5576:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"5563:3:10"},"nodeType":"YulFunctionCall","src":"5563:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"5588:2:10","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"5559:3:10"},"nodeType":"YulFunctionCall","src":"5559:32:10"},"nodeType":"YulIf","src":"5556:52:10"},{"nodeType":"YulVariableDeclaration","src":"5617:29:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5636:9:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"5630:5:10"},"nodeType":"YulFunctionCall","src":"5630:16:10"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"5621:5:10","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"5680:5:10"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"5655:24:10"},"nodeType":"YulFunctionCall","src":"5655:31:10"},"nodeType":"YulExpressionStatement","src":"5655:31:10"},{"nodeType":"YulAssignment","src":"5695:15:10","value":{"name":"value","nodeType":"YulIdentifier","src":"5705:5:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"5695:6:10"}]}]},"name":"abi_decode_tuple_t_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5512:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"5523:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"5535:6:10","type":""}],"src":"5465:251:10"},{"body":{"nodeType":"YulBlock","src":"5895:165:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5912:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"5923:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5905:6:10"},"nodeType":"YulFunctionCall","src":"5905:21:10"},"nodeType":"YulExpressionStatement","src":"5905:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5946:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"5957:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5942:3:10"},"nodeType":"YulFunctionCall","src":"5942:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"5962:2:10","type":"","value":"15"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5935:6:10"},"nodeType":"YulFunctionCall","src":"5935:30:10"},"nodeType":"YulExpressionStatement","src":"5935:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5985:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"5996:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5981:3:10"},"nodeType":"YulFunctionCall","src":"5981:18:10"},{"hexValue":"6173736574206e6f74206578697374","kind":"string","nodeType":"YulLiteral","src":"6001:17:10","type":"","value":"asset not exist"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5974:6:10"},"nodeType":"YulFunctionCall","src":"5974:45:10"},"nodeType":"YulExpressionStatement","src":"5974:45:10"},{"nodeType":"YulAssignment","src":"6028:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6040:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6051:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6036:3:10"},"nodeType":"YulFunctionCall","src":"6036:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6028:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5872:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"5886:4:10","type":""}],"src":"5721:339:10"},{"body":{"nodeType":"YulBlock","src":"6239:164:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6256:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6267:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6249:6:10"},"nodeType":"YulFunctionCall","src":"6249:21:10"},"nodeType":"YulExpressionStatement","src":"6249:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6290:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6301:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6286:3:10"},"nodeType":"YulFunctionCall","src":"6286:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"6306:2:10","type":"","value":"14"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6279:6:10"},"nodeType":"YulFunctionCall","src":"6279:30:10"},"nodeType":"YulExpressionStatement","src":"6279:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6329:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6340:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6325:3:10"},"nodeType":"YulFunctionCall","src":"6325:18:10"},{"hexValue":"57424e42206e6f74206578697374","kind":"string","nodeType":"YulLiteral","src":"6345:16:10","type":"","value":"WBNB not exist"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6318:6:10"},"nodeType":"YulFunctionCall","src":"6318:44:10"},"nodeType":"YulExpressionStatement","src":"6318:44:10"},{"nodeType":"YulAssignment","src":"6371:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6383:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6394:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6379:3:10"},"nodeType":"YulFunctionCall","src":"6379:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6371:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_aef763fd4fb164a611c1f79474469d30e366c3b2b994b385d33a8daa09234aaf__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6216:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"6230:4:10","type":""}],"src":"6065:338:10"},{"body":{"nodeType":"YulBlock","src":"6582:236:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6599:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6610:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6592:6:10"},"nodeType":"YulFunctionCall","src":"6592:21:10"},"nodeType":"YulExpressionStatement","src":"6592:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6633:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6644:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6629:3:10"},"nodeType":"YulFunctionCall","src":"6629:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"6649:2:10","type":"","value":"46"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6622:6:10"},"nodeType":"YulFunctionCall","src":"6622:30:10"},"nodeType":"YulExpressionStatement","src":"6622:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6672:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6683:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6668:3:10"},"nodeType":"YulFunctionCall","src":"6668:18:10"},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561","kind":"string","nodeType":"YulLiteral","src":"6688:34:10","type":"","value":"Initializable: contract is alrea"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6661:6:10"},"nodeType":"YulFunctionCall","src":"6661:62:10"},"nodeType":"YulExpressionStatement","src":"6661:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6743:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6754:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6739:3:10"},"nodeType":"YulFunctionCall","src":"6739:18:10"},{"hexValue":"647920696e697469616c697a6564","kind":"string","nodeType":"YulLiteral","src":"6759:16:10","type":"","value":"dy initialized"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6732:6:10"},"nodeType":"YulFunctionCall","src":"6732:44:10"},"nodeType":"YulExpressionStatement","src":"6732:44:10"},{"nodeType":"YulAssignment","src":"6785:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6797:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6808:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6793:3:10"},"nodeType":"YulFunctionCall","src":"6793:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6785:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6559:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"6573:4:10","type":""}],"src":"6408:410:10"},{"body":{"nodeType":"YulBlock","src":"6930:87:10","statements":[{"nodeType":"YulAssignment","src":"6940:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6952:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"6963:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6948:3:10"},"nodeType":"YulFunctionCall","src":"6948:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6940:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6982:9:10"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"6997:6:10"},{"kind":"number","nodeType":"YulLiteral","src":"7005:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6993:3:10"},"nodeType":"YulFunctionCall","src":"6993:17:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6975:6:10"},"nodeType":"YulFunctionCall","src":"6975:36:10"},"nodeType":"YulExpressionStatement","src":"6975:36:10"}]},"name":"abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6899:9:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"6910:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"6921:4:10","type":""}],"src":"6823:194:10"},{"body":{"nodeType":"YulBlock","src":"7196:171:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7213:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7224:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7206:6:10"},"nodeType":"YulFunctionCall","src":"7206:21:10"},"nodeType":"YulExpressionStatement","src":"7206:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7247:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7258:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7243:3:10"},"nodeType":"YulFunctionCall","src":"7243:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"7263:2:10","type":"","value":"21"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7236:6:10"},"nodeType":"YulFunctionCall","src":"7236:30:10"},"nodeType":"YulExpressionStatement","src":"7236:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7286:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7297:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7282:3:10"},"nodeType":"YulFunctionCall","src":"7282:18:10"},{"hexValue":"63616e2774206265207a65726f2061646472657373","kind":"string","nodeType":"YulLiteral","src":"7302:23:10","type":"","value":"can't be zero address"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7275:6:10"},"nodeType":"YulFunctionCall","src":"7275:51:10"},"nodeType":"YulExpressionStatement","src":"7275:51:10"},{"nodeType":"YulAssignment","src":"7335:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7347:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7358:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7343:3:10"},"nodeType":"YulFunctionCall","src":"7343:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"7335:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"7173:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"7187:4:10","type":""}],"src":"7022:345:10"},{"body":{"nodeType":"YulBlock","src":"7546:180:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7563:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7574:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7556:6:10"},"nodeType":"YulFunctionCall","src":"7556:21:10"},"nodeType":"YulExpressionStatement","src":"7556:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7597:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7608:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7593:3:10"},"nodeType":"YulFunctionCall","src":"7593:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"7613:2:10","type":"","value":"30"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7586:6:10"},"nodeType":"YulFunctionCall","src":"7586:30:10"},"nodeType":"YulExpressionStatement","src":"7586:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7636:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7647:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7632:3:10"},"nodeType":"YulFunctionCall","src":"7632:18:10"},{"hexValue":"616e63686f7220706572696f64206d75737420626520706f736974697665","kind":"string","nodeType":"YulLiteral","src":"7652:32:10","type":"","value":"anchor period must be positive"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7625:6:10"},"nodeType":"YulFunctionCall","src":"7625:60:10"},"nodeType":"YulExpressionStatement","src":"7625:60:10"},{"nodeType":"YulAssignment","src":"7694:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7706:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7717:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7702:3:10"},"nodeType":"YulFunctionCall","src":"7702:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"7694:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_5b63ee466c6470f47e94829ac8475c0f623b1a136bc8bd22b6f22a83a65967a0__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"7523:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"7537:4:10","type":""}],"src":"7372:354:10"},{"body":{"nodeType":"YulBlock","src":"7905:176:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7922:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7933:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7915:6:10"},"nodeType":"YulFunctionCall","src":"7915:21:10"},"nodeType":"YulExpressionStatement","src":"7915:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7956:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"7967:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7952:3:10"},"nodeType":"YulFunctionCall","src":"7952:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"7972:2:10","type":"","value":"26"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7945:6:10"},"nodeType":"YulFunctionCall","src":"7945:30:10"},"nodeType":"YulExpressionStatement","src":"7945:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7995:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"8006:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7991:3:10"},"nodeType":"YulFunctionCall","src":"7991:18:10"},{"hexValue":"6261736520756e6974206d75737420626520706f736974697665","kind":"string","nodeType":"YulLiteral","src":"8011:28:10","type":"","value":"base unit must be positive"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"7984:6:10"},"nodeType":"YulFunctionCall","src":"7984:56:10"},"nodeType":"YulExpressionStatement","src":"7984:56:10"},{"nodeType":"YulAssignment","src":"8049:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8061:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"8072:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8057:3:10"},"nodeType":"YulFunctionCall","src":"8057:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"8049:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_4f017bc3bc880cbbf5c5a42e0e59054836fef6161a6afc406ce026dd7586e7d3__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"7882:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"7896:4:10","type":""}],"src":"7731:350:10"},{"body":{"nodeType":"YulBlock","src":"8165:194:10","statements":[{"body":{"nodeType":"YulBlock","src":"8211:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8220:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"8223:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8213:6:10"},"nodeType":"YulFunctionCall","src":"8213:12:10"},"nodeType":"YulExpressionStatement","src":"8213:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"8186:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"8195:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"8182:3:10"},"nodeType":"YulFunctionCall","src":"8182:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"8207:2:10","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"8178:3:10"},"nodeType":"YulFunctionCall","src":"8178:32:10"},"nodeType":"YulIf","src":"8175:52:10"},{"nodeType":"YulVariableDeclaration","src":"8236:29:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8255:9:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"8249:5:10"},"nodeType":"YulFunctionCall","src":"8249:16:10"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"8240:5:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"8313:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8322:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"8325:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8315:6:10"},"nodeType":"YulFunctionCall","src":"8315:12:10"},"nodeType":"YulExpressionStatement","src":"8315:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"8287:5:10"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"8298:5:10"},{"kind":"number","nodeType":"YulLiteral","src":"8305:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"8294:3:10"},"nodeType":"YulFunctionCall","src":"8294:16:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"8284:2:10"},"nodeType":"YulFunctionCall","src":"8284:27:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"8277:6:10"},"nodeType":"YulFunctionCall","src":"8277:35:10"},"nodeType":"YulIf","src":"8274:55:10"},{"nodeType":"YulAssignment","src":"8338:15:10","value":{"name":"value","nodeType":"YulIdentifier","src":"8348:5:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"8338:6:10"}]}]},"name":"abi_decode_tuple_t_uint8_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"8131:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"8142:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"8154:6:10","type":""}],"src":"8086:273:10"},{"body":{"nodeType":"YulBlock","src":"8428:358:10","statements":[{"nodeType":"YulVariableDeclaration","src":"8438:16:10","value":{"kind":"number","nodeType":"YulLiteral","src":"8453:1:10","type":"","value":"1"},"variables":[{"name":"power_1","nodeType":"YulTypedName","src":"8442:7:10","type":""}]},{"nodeType":"YulAssignment","src":"8463:16:10","value":{"name":"power_1","nodeType":"YulIdentifier","src":"8472:7:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"8463:5:10"}]},{"nodeType":"YulAssignment","src":"8488:13:10","value":{"name":"_base","nodeType":"YulIdentifier","src":"8496:5:10"},"variableNames":[{"name":"base","nodeType":"YulIdentifier","src":"8488:4:10"}]},{"body":{"nodeType":"YulBlock","src":"8552:228:10","statements":[{"body":{"nodeType":"YulBlock","src":"8597:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"8599:16:10"},"nodeType":"YulFunctionCall","src":"8599:18:10"},"nodeType":"YulExpressionStatement","src":"8599:18:10"}]},"condition":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"8572:4:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8586:1:10","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"8582:3:10"},"nodeType":"YulFunctionCall","src":"8582:6:10"},{"name":"base","nodeType":"YulIdentifier","src":"8590:4:10"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"8578:3:10"},"nodeType":"YulFunctionCall","src":"8578:17:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"8569:2:10"},"nodeType":"YulFunctionCall","src":"8569:27:10"},"nodeType":"YulIf","src":"8566:53:10"},{"body":{"nodeType":"YulBlock","src":"8658:29:10","statements":[{"nodeType":"YulAssignment","src":"8660:25:10","value":{"arguments":[{"name":"power","nodeType":"YulIdentifier","src":"8673:5:10"},{"name":"base","nodeType":"YulIdentifier","src":"8680:4:10"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"8669:3:10"},"nodeType":"YulFunctionCall","src":"8669:16:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"8660:5:10"}]}]},"condition":{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"8639:8:10"},{"name":"power_1","nodeType":"YulIdentifier","src":"8649:7:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"8635:3:10"},"nodeType":"YulFunctionCall","src":"8635:22:10"},"nodeType":"YulIf","src":"8632:55:10"},{"nodeType":"YulAssignment","src":"8700:23:10","value":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"8712:4:10"},{"name":"base","nodeType":"YulIdentifier","src":"8718:4:10"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"8708:3:10"},"nodeType":"YulFunctionCall","src":"8708:15:10"},"variableNames":[{"name":"base","nodeType":"YulIdentifier","src":"8700:4:10"}]},{"nodeType":"YulAssignment","src":"8736:34:10","value":{"arguments":[{"name":"power_1","nodeType":"YulIdentifier","src":"8752:7:10"},{"name":"exponent","nodeType":"YulIdentifier","src":"8761:8:10"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"8748:3:10"},"nodeType":"YulFunctionCall","src":"8748:22:10"},"variableNames":[{"name":"exponent","nodeType":"YulIdentifier","src":"8736:8:10"}]}]},"condition":{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"8521:8:10"},{"name":"power_1","nodeType":"YulIdentifier","src":"8531:7:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"8518:2:10"},"nodeType":"YulFunctionCall","src":"8518:21:10"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"8540:3:10","statements":[]},"pre":{"nodeType":"YulBlock","src":"8514:3:10","statements":[]},"src":"8510:270:10"}]},"name":"checked_exp_helper","nodeType":"YulFunctionDefinition","parameters":[{"name":"_base","nodeType":"YulTypedName","src":"8392:5:10","type":""},{"name":"exponent","nodeType":"YulTypedName","src":"8399:8:10","type":""}],"returnVariables":[{"name":"power","nodeType":"YulTypedName","src":"8412:5:10","type":""},{"name":"base","nodeType":"YulTypedName","src":"8419:4:10","type":""}],"src":"8364:422:10"},{"body":{"nodeType":"YulBlock","src":"8850:747:10","statements":[{"body":{"nodeType":"YulBlock","src":"8888:52:10","statements":[{"nodeType":"YulAssignment","src":"8902:10:10","value":{"kind":"number","nodeType":"YulLiteral","src":"8911:1:10","type":"","value":"1"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"8902:5:10"}]},{"nodeType":"YulLeave","src":"8925:5:10"}]},"condition":{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"8870:8:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"8863:6:10"},"nodeType":"YulFunctionCall","src":"8863:16:10"},"nodeType":"YulIf","src":"8860:80:10"},{"body":{"nodeType":"YulBlock","src":"8973:52:10","statements":[{"nodeType":"YulAssignment","src":"8987:10:10","value":{"kind":"number","nodeType":"YulLiteral","src":"8996:1:10","type":"","value":"0"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"8987:5:10"}]},{"nodeType":"YulLeave","src":"9010:5:10"}]},"condition":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"8959:4:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"8952:6:10"},"nodeType":"YulFunctionCall","src":"8952:12:10"},"nodeType":"YulIf","src":"8949:76:10"},{"cases":[{"body":{"nodeType":"YulBlock","src":"9061:52:10","statements":[{"nodeType":"YulAssignment","src":"9075:10:10","value":{"kind":"number","nodeType":"YulLiteral","src":"9084:1:10","type":"","value":"1"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"9075:5:10"}]},{"nodeType":"YulLeave","src":"9098:5:10"}]},"nodeType":"YulCase","src":"9054:59:10","value":{"kind":"number","nodeType":"YulLiteral","src":"9059:1:10","type":"","value":"1"}},{"body":{"nodeType":"YulBlock","src":"9129:123:10","statements":[{"body":{"nodeType":"YulBlock","src":"9164:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"9166:16:10"},"nodeType":"YulFunctionCall","src":"9166:18:10"},"nodeType":"YulExpressionStatement","src":"9166:18:10"}]},"condition":{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"9149:8:10"},{"kind":"number","nodeType":"YulLiteral","src":"9159:3:10","type":"","value":"255"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"9146:2:10"},"nodeType":"YulFunctionCall","src":"9146:17:10"},"nodeType":"YulIf","src":"9143:43:10"},{"nodeType":"YulAssignment","src":"9199:25:10","value":{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"9212:8:10"},{"kind":"number","nodeType":"YulLiteral","src":"9222:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"9208:3:10"},"nodeType":"YulFunctionCall","src":"9208:16:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"9199:5:10"}]},{"nodeType":"YulLeave","src":"9237:5:10"}]},"nodeType":"YulCase","src":"9122:130:10","value":{"kind":"number","nodeType":"YulLiteral","src":"9127:1:10","type":"","value":"2"}}],"expression":{"name":"base","nodeType":"YulIdentifier","src":"9041:4:10"},"nodeType":"YulSwitch","src":"9034:218:10"},{"body":{"nodeType":"YulBlock","src":"9350:70:10","statements":[{"nodeType":"YulAssignment","src":"9364:28:10","value":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"9377:4:10"},{"name":"exponent","nodeType":"YulIdentifier","src":"9383:8:10"}],"functionName":{"name":"exp","nodeType":"YulIdentifier","src":"9373:3:10"},"nodeType":"YulFunctionCall","src":"9373:19:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"9364:5:10"}]},{"nodeType":"YulLeave","src":"9405:5:10"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"9274:4:10"},{"kind":"number","nodeType":"YulLiteral","src":"9280:2:10","type":"","value":"11"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"9271:2:10"},"nodeType":"YulFunctionCall","src":"9271:12:10"},{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"9288:8:10"},{"kind":"number","nodeType":"YulLiteral","src":"9298:2:10","type":"","value":"78"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"9285:2:10"},"nodeType":"YulFunctionCall","src":"9285:16:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"9267:3:10"},"nodeType":"YulFunctionCall","src":"9267:35:10"},{"arguments":[{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"9311:4:10"},{"kind":"number","nodeType":"YulLiteral","src":"9317:3:10","type":"","value":"307"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"9308:2:10"},"nodeType":"YulFunctionCall","src":"9308:13:10"},{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"9326:8:10"},{"kind":"number","nodeType":"YulLiteral","src":"9336:2:10","type":"","value":"32"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"9323:2:10"},"nodeType":"YulFunctionCall","src":"9323:16:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"9304:3:10"},"nodeType":"YulFunctionCall","src":"9304:36:10"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"9264:2:10"},"nodeType":"YulFunctionCall","src":"9264:77:10"},"nodeType":"YulIf","src":"9261:159:10"},{"nodeType":"YulVariableDeclaration","src":"9429:57:10","value":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"9471:4:10"},{"name":"exponent","nodeType":"YulIdentifier","src":"9477:8:10"}],"functionName":{"name":"checked_exp_helper","nodeType":"YulIdentifier","src":"9452:18:10"},"nodeType":"YulFunctionCall","src":"9452:34:10"},"variables":[{"name":"power_1","nodeType":"YulTypedName","src":"9433:7:10","type":""},{"name":"base_1","nodeType":"YulTypedName","src":"9442:6:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"9531:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"9533:16:10"},"nodeType":"YulFunctionCall","src":"9533:18:10"},"nodeType":"YulExpressionStatement","src":"9533:18:10"}]},"condition":{"arguments":[{"name":"power_1","nodeType":"YulIdentifier","src":"9501:7:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9518:1:10","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"9514:3:10"},"nodeType":"YulFunctionCall","src":"9514:6:10"},{"name":"base_1","nodeType":"YulIdentifier","src":"9522:6:10"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"9510:3:10"},"nodeType":"YulFunctionCall","src":"9510:19:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"9498:2:10"},"nodeType":"YulFunctionCall","src":"9498:32:10"},"nodeType":"YulIf","src":"9495:58:10"},{"nodeType":"YulAssignment","src":"9562:29:10","value":{"arguments":[{"name":"power_1","nodeType":"YulIdentifier","src":"9575:7:10"},{"name":"base_1","nodeType":"YulIdentifier","src":"9584:6:10"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"9571:3:10"},"nodeType":"YulFunctionCall","src":"9571:20:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"9562:5:10"}]}]},"name":"checked_exp_unsigned","nodeType":"YulFunctionDefinition","parameters":[{"name":"base","nodeType":"YulTypedName","src":"8821:4:10","type":""},{"name":"exponent","nodeType":"YulTypedName","src":"8827:8:10","type":""}],"returnVariables":[{"name":"power","nodeType":"YulTypedName","src":"8840:5:10","type":""}],"src":"8791:806:10"},{"body":{"nodeType":"YulBlock","src":"9670:72:10","statements":[{"nodeType":"YulAssignment","src":"9680:56:10","value":{"arguments":[{"name":"base","nodeType":"YulIdentifier","src":"9710:4:10"},{"arguments":[{"name":"exponent","nodeType":"YulIdentifier","src":"9720:8:10"},{"kind":"number","nodeType":"YulLiteral","src":"9730:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"9716:3:10"},"nodeType":"YulFunctionCall","src":"9716:19:10"}],"functionName":{"name":"checked_exp_unsigned","nodeType":"YulIdentifier","src":"9689:20:10"},"nodeType":"YulFunctionCall","src":"9689:47:10"},"variableNames":[{"name":"power","nodeType":"YulIdentifier","src":"9680:5:10"}]}]},"name":"checked_exp_t_uint256_t_uint8","nodeType":"YulFunctionDefinition","parameters":[{"name":"base","nodeType":"YulTypedName","src":"9641:4:10","type":""},{"name":"exponent","nodeType":"YulTypedName","src":"9647:8:10","type":""}],"returnVariables":[{"name":"power","nodeType":"YulTypedName","src":"9660:5:10","type":""}],"src":"9602:140:10"},{"body":{"nodeType":"YulBlock","src":"9921:239:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9938:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"9949:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"9931:6:10"},"nodeType":"YulFunctionCall","src":"9931:21:10"},"nodeType":"YulExpressionStatement","src":"9931:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9972:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"9983:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9968:3:10"},"nodeType":"YulFunctionCall","src":"9968:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"9988:2:10","type":"","value":"49"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"9961:6:10"},"nodeType":"YulFunctionCall","src":"9961:30:10"},"nodeType":"YulExpressionStatement","src":"9961:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10011:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10022:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10007:3:10"},"nodeType":"YulFunctionCall","src":"10007:18:10"},{"hexValue":"6261736520756e697420646563696d616c73206d7573742062652073616d6520","kind":"string","nodeType":"YulLiteral","src":"10027:34:10","type":"","value":"base unit decimals must be same "}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10000:6:10"},"nodeType":"YulFunctionCall","src":"10000:62:10"},"nodeType":"YulExpressionStatement","src":"10000:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10082:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10093:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10078:3:10"},"nodeType":"YulFunctionCall","src":"10078:18:10"},{"hexValue":"617320617373657420646563696d616c73","kind":"string","nodeType":"YulLiteral","src":"10098:19:10","type":"","value":"as asset decimals"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10071:6:10"},"nodeType":"YulFunctionCall","src":"10071:47:10"},"nodeType":"YulExpressionStatement","src":"10071:47:10"},{"nodeType":"YulAssignment","src":"10127:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10139:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10150:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10135:3:10"},"nodeType":"YulFunctionCall","src":"10135:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"10127:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_50635c480c5a4712f90e68527d5e38f58623f4078d491b98bd818c78bd98a946__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"9898:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"9912:4:10","type":""}],"src":"9747:413:10"},{"body":{"nodeType":"YulBlock","src":"10339:228:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10356:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10367:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10349:6:10"},"nodeType":"YulFunctionCall","src":"10349:21:10"},"nodeType":"YulExpressionStatement","src":"10349:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10390:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10401:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10386:3:10"},"nodeType":"YulFunctionCall","src":"10386:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"10406:2:10","type":"","value":"38"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10379:6:10"},"nodeType":"YulFunctionCall","src":"10379:30:10"},"nodeType":"YulExpressionStatement","src":"10379:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10429:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10440:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10425:3:10"},"nodeType":"YulFunctionCall","src":"10425:18:10"},{"hexValue":"4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061","kind":"string","nodeType":"YulLiteral","src":"10445:34:10","type":"","value":"Ownable: new owner is the zero a"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10418:6:10"},"nodeType":"YulFunctionCall","src":"10418:62:10"},"nodeType":"YulExpressionStatement","src":"10418:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10500:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10511:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10496:3:10"},"nodeType":"YulFunctionCall","src":"10496:18:10"},{"hexValue":"646472657373","kind":"string","nodeType":"YulLiteral","src":"10516:8:10","type":"","value":"ddress"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10489:6:10"},"nodeType":"YulFunctionCall","src":"10489:36:10"},"nodeType":"YulExpressionStatement","src":"10489:36:10"},{"nodeType":"YulAssignment","src":"10534:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10546:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10557:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10542:3:10"},"nodeType":"YulFunctionCall","src":"10542:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"10534:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"10316:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"10330:4:10","type":""}],"src":"10165:402:10"},{"body":{"nodeType":"YulBlock","src":"10746:177:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10763:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10774:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10756:6:10"},"nodeType":"YulFunctionCall","src":"10756:21:10"},"nodeType":"YulExpressionStatement","src":"10756:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10797:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10808:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10793:3:10"},"nodeType":"YulFunctionCall","src":"10793:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"10813:2:10","type":"","value":"27"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10786:6:10"},"nodeType":"YulFunctionCall","src":"10786:30:10"},"nodeType":"YulExpressionStatement","src":"10786:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10836:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10847:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10832:3:10"},"nodeType":"YulFunctionCall","src":"10832:18:10"},{"hexValue":"54574150207072696365206d75737420626520706f736974697665","kind":"string","nodeType":"YulLiteral","src":"10852:29:10","type":"","value":"TWAP price must be positive"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10825:6:10"},"nodeType":"YulFunctionCall","src":"10825:57:10"},"nodeType":"YulExpressionStatement","src":"10825:57:10"},{"nodeType":"YulAssignment","src":"10891:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10903:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"10914:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10899:3:10"},"nodeType":"YulFunctionCall","src":"10899:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"10891:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_d951cb074914841cb4111125601a149e927e68a41aa2d7966912f89cd700c420__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"10723:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"10737:4:10","type":""}],"src":"10572:351:10"},{"body":{"nodeType":"YulBlock","src":"10975:148:10","statements":[{"nodeType":"YulVariableDeclaration","src":"10985:23:10","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"11000:1:10"},{"kind":"number","nodeType":"YulLiteral","src":"11003:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"10996:3:10"},"nodeType":"YulFunctionCall","src":"10996:12:10"},"variables":[{"name":"x_1","nodeType":"YulTypedName","src":"10989:3:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"11017:23:10","value":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"11032:1:10"},{"kind":"number","nodeType":"YulLiteral","src":"11035:4:10","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11028:3:10"},"nodeType":"YulFunctionCall","src":"11028:12:10"},"variables":[{"name":"y_1","nodeType":"YulTypedName","src":"11021:3:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"11065:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"11067:16:10"},"nodeType":"YulFunctionCall","src":"11067:18:10"},"nodeType":"YulExpressionStatement","src":"11067:18:10"}]},"condition":{"arguments":[{"name":"x_1","nodeType":"YulIdentifier","src":"11055:3:10"},{"name":"y_1","nodeType":"YulIdentifier","src":"11060:3:10"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"11052:2:10"},"nodeType":"YulFunctionCall","src":"11052:12:10"},"nodeType":"YulIf","src":"11049:38:10"},{"nodeType":"YulAssignment","src":"11096:21:10","value":{"arguments":[{"name":"x_1","nodeType":"YulIdentifier","src":"11108:3:10"},{"name":"y_1","nodeType":"YulIdentifier","src":"11113:3:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"11104:3:10"},"nodeType":"YulFunctionCall","src":"11104:13:10"},"variableNames":[{"name":"diff","nodeType":"YulIdentifier","src":"11096:4:10"}]}]},"name":"checked_sub_t_uint8","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"10957:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"10960:1:10","type":""}],"returnVariables":[{"name":"diff","nodeType":"YulTypedName","src":"10966:4:10","type":""}],"src":"10928:195:10"},{"body":{"nodeType":"YulBlock","src":"11180:116:10","statements":[{"body":{"nodeType":"YulBlock","src":"11239:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"11241:16:10"},"nodeType":"YulFunctionCall","src":"11241:18:10"},"nodeType":"YulExpressionStatement","src":"11241:18:10"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"11211:1:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"11204:6:10"},"nodeType":"YulFunctionCall","src":"11204:9:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"11197:6:10"},"nodeType":"YulFunctionCall","src":"11197:17:10"},{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"11219:1:10"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11230:1:10","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"11226:3:10"},"nodeType":"YulFunctionCall","src":"11226:6:10"},{"name":"x","nodeType":"YulIdentifier","src":"11234:1:10"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"11222:3:10"},"nodeType":"YulFunctionCall","src":"11222:14:10"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"11216:2:10"},"nodeType":"YulFunctionCall","src":"11216:21:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11193:3:10"},"nodeType":"YulFunctionCall","src":"11193:45:10"},"nodeType":"YulIf","src":"11190:71:10"},{"nodeType":"YulAssignment","src":"11270:20:10","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"11285:1:10"},{"name":"y","nodeType":"YulIdentifier","src":"11288:1:10"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"11281:3:10"},"nodeType":"YulFunctionCall","src":"11281:9:10"},"variableNames":[{"name":"product","nodeType":"YulIdentifier","src":"11270:7:10"}]}]},"name":"checked_mul_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"11159:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"11162:1:10","type":""}],"returnVariables":[{"name":"product","nodeType":"YulTypedName","src":"11168:7:10","type":""}],"src":"11128:168:10"},{"body":{"nodeType":"YulBlock","src":"11475:182:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11492:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"11503:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11485:6:10"},"nodeType":"YulFunctionCall","src":"11485:21:10"},"nodeType":"YulExpressionStatement","src":"11485:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11526:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"11537:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11522:3:10"},"nodeType":"YulFunctionCall","src":"11522:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"11542:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11515:6:10"},"nodeType":"YulFunctionCall","src":"11515:30:10"},"nodeType":"YulExpressionStatement","src":"11515:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11565:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"11576:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11561:3:10"},"nodeType":"YulFunctionCall","src":"11561:18:10"},{"hexValue":"4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572","kind":"string","nodeType":"YulLiteral","src":"11581:34:10","type":"","value":"Ownable: caller is not the owner"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11554:6:10"},"nodeType":"YulFunctionCall","src":"11554:62:10"},"nodeType":"YulExpressionStatement","src":"11554:62:10"},{"nodeType":"YulAssignment","src":"11625:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11637:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"11648:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11633:3:10"},"nodeType":"YulFunctionCall","src":"11633:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"11625:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11452:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"11466:4:10","type":""}],"src":"11301:356:10"},{"body":{"nodeType":"YulBlock","src":"11743:103:10","statements":[{"body":{"nodeType":"YulBlock","src":"11789:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11798:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"11801:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"11791:6:10"},"nodeType":"YulFunctionCall","src":"11791:12:10"},"nodeType":"YulExpressionStatement","src":"11791:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"11764:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"11773:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"11760:3:10"},"nodeType":"YulFunctionCall","src":"11760:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"11785:2:10","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"11756:3:10"},"nodeType":"YulFunctionCall","src":"11756:32:10"},"nodeType":"YulIf","src":"11753:52:10"},{"nodeType":"YulAssignment","src":"11814:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11830:9:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"11824:5:10"},"nodeType":"YulFunctionCall","src":"11824:16:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"11814:6:10"}]}]},"name":"abi_decode_tuple_t_uint256_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11709:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"11720:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"11732:6:10","type":""}],"src":"11662:184:10"},{"body":{"nodeType":"YulBlock","src":"11911:128:10","statements":[{"nodeType":"YulAssignment","src":"11921:22:10","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"11936:6:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"11930:5:10"},"nodeType":"YulFunctionCall","src":"11930:13:10"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"11921:5:10"}]},{"body":{"nodeType":"YulBlock","src":"12017:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12026:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12029:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12019:6:10"},"nodeType":"YulFunctionCall","src":"12019:12:10"},"nodeType":"YulExpressionStatement","src":"12019:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11965:5:10"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11976:5:10"},{"kind":"number","nodeType":"YulLiteral","src":"11983:30:10","type":"","value":"0xffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11972:3:10"},"nodeType":"YulFunctionCall","src":"11972:42:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"11962:2:10"},"nodeType":"YulFunctionCall","src":"11962:53:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"11955:6:10"},"nodeType":"YulFunctionCall","src":"11955:61:10"},"nodeType":"YulIf","src":"11952:81:10"}]},"name":"abi_decode_uint112_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"11890:6:10","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"11901:5:10","type":""}],"src":"11851:188:10"},{"body":{"nodeType":"YulBlock","src":"12158:336:10","statements":[{"body":{"nodeType":"YulBlock","src":"12204:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12213:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12216:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12206:6:10"},"nodeType":"YulFunctionCall","src":"12206:12:10"},"nodeType":"YulExpressionStatement","src":"12206:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"12179:7:10"},{"name":"headStart","nodeType":"YulIdentifier","src":"12188:9:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"12175:3:10"},"nodeType":"YulFunctionCall","src":"12175:23:10"},{"kind":"number","nodeType":"YulLiteral","src":"12200:2:10","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"12171:3:10"},"nodeType":"YulFunctionCall","src":"12171:32:10"},"nodeType":"YulIf","src":"12168:52:10"},{"nodeType":"YulAssignment","src":"12229:50:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12269:9:10"}],"functionName":{"name":"abi_decode_uint112_fromMemory","nodeType":"YulIdentifier","src":"12239:29:10"},"nodeType":"YulFunctionCall","src":"12239:40:10"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"12229:6:10"}]},{"nodeType":"YulAssignment","src":"12288:59:10","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12332:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12343:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12328:3:10"},"nodeType":"YulFunctionCall","src":"12328:18:10"}],"functionName":{"name":"abi_decode_uint112_fromMemory","nodeType":"YulIdentifier","src":"12298:29:10"},"nodeType":"YulFunctionCall","src":"12298:49:10"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"12288:6:10"}]},{"nodeType":"YulVariableDeclaration","src":"12356:38:10","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12379:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12390:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12375:3:10"},"nodeType":"YulFunctionCall","src":"12375:18:10"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"12369:5:10"},"nodeType":"YulFunctionCall","src":"12369:25:10"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"12360:5:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"12448:16:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12457:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12460:1:10","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12450:6:10"},"nodeType":"YulFunctionCall","src":"12450:12:10"},"nodeType":"YulExpressionStatement","src":"12450:12:10"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"12416:5:10"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"12427:5:10"},{"kind":"number","nodeType":"YulLiteral","src":"12434:10:10","type":"","value":"0xffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"12423:3:10"},"nodeType":"YulFunctionCall","src":"12423:22:10"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"12413:2:10"},"nodeType":"YulFunctionCall","src":"12413:33:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"12406:6:10"},"nodeType":"YulFunctionCall","src":"12406:41:10"},"nodeType":"YulIf","src":"12403:61:10"},{"nodeType":"YulAssignment","src":"12473:15:10","value":{"name":"value","nodeType":"YulIdentifier","src":"12483:5:10"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"12473:6:10"}]}]},"name":"abi_decode_tuple_t_uint112t_uint112t_uint32_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"12108:9:10","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"12119:7:10","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"12131:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"12139:6:10","type":""},{"name":"value2","nodeType":"YulTypedName","src":"12147:6:10","type":""}],"src":"12044:450:10"},{"body":{"nodeType":"YulBlock","src":"12673:176:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12690:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12701:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12683:6:10"},"nodeType":"YulFunctionCall","src":"12683:21:10"},"nodeType":"YulExpressionStatement","src":"12683:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12724:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12735:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12720:3:10"},"nodeType":"YulFunctionCall","src":"12720:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"12740:2:10","type":"","value":"26"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12713:6:10"},"nodeType":"YulFunctionCall","src":"12713:30:10"},"nodeType":"YulExpressionStatement","src":"12713:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12763:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12774:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12759:3:10"},"nodeType":"YulFunctionCall","src":"12759:18:10"},{"hexValue":"6e6f77206d75737420636f6d65206166746572206265666f7265","kind":"string","nodeType":"YulLiteral","src":"12779:28:10","type":"","value":"now must come after before"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12752:6:10"},"nodeType":"YulFunctionCall","src":"12752:56:10"},"nodeType":"YulExpressionStatement","src":"12752:56:10"},{"nodeType":"YulAssignment","src":"12817:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12829:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"12840:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12825:3:10"},"nodeType":"YulFunctionCall","src":"12825:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"12817:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_97ea44ed9b1f8f794b0f4a84f43ed25e6702933fc90457cec778223d2aa076b2__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"12650:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"12664:4:10","type":""}],"src":"12499:350:10"},{"body":{"nodeType":"YulBlock","src":"12903:76:10","statements":[{"body":{"nodeType":"YulBlock","src":"12925:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"12927:16:10"},"nodeType":"YulFunctionCall","src":"12927:18:10"},"nodeType":"YulExpressionStatement","src":"12927:18:10"}]},"condition":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12919:1:10"},{"name":"y","nodeType":"YulIdentifier","src":"12922:1:10"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"12916:2:10"},"nodeType":"YulFunctionCall","src":"12916:8:10"},"nodeType":"YulIf","src":"12913:34:10"},{"nodeType":"YulAssignment","src":"12956:17:10","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12968:1:10"},{"name":"y","nodeType":"YulIdentifier","src":"12971:1:10"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"12964:3:10"},"nodeType":"YulFunctionCall","src":"12964:9:10"},"variableNames":[{"name":"diff","nodeType":"YulIdentifier","src":"12956:4:10"}]}]},"name":"checked_sub_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"12885:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"12888:1:10","type":""}],"returnVariables":[{"name":"diff","nodeType":"YulTypedName","src":"12894:4:10","type":""}],"src":"12854:125:10"},{"body":{"nodeType":"YulBlock","src":"13016:95:10","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13033:1:10","type":"","value":"0"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13040:3:10","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"13045:10:10","type":"","value":"0x4e487b71"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"13036:3:10"},"nodeType":"YulFunctionCall","src":"13036:20:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13026:6:10"},"nodeType":"YulFunctionCall","src":"13026:31:10"},"nodeType":"YulExpressionStatement","src":"13026:31:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13073:1:10","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"13076:4:10","type":"","value":"0x12"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13066:6:10"},"nodeType":"YulFunctionCall","src":"13066:15:10"},"nodeType":"YulExpressionStatement","src":"13066:15:10"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13097:1:10","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13100:4:10","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13090:6:10"},"nodeType":"YulFunctionCall","src":"13090:15:10"},"nodeType":"YulExpressionStatement","src":"13090:15:10"}]},"name":"panic_error_0x12","nodeType":"YulFunctionDefinition","src":"12984:127:10"},{"body":{"nodeType":"YulBlock","src":"13162:74:10","statements":[{"body":{"nodeType":"YulBlock","src":"13185:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x12","nodeType":"YulIdentifier","src":"13187:16:10"},"nodeType":"YulFunctionCall","src":"13187:18:10"},"nodeType":"YulExpressionStatement","src":"13187:18:10"}]},"condition":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"13182:1:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"13175:6:10"},"nodeType":"YulFunctionCall","src":"13175:9:10"},"nodeType":"YulIf","src":"13172:35:10"},{"nodeType":"YulAssignment","src":"13216:14:10","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"13225:1:10"},{"name":"y","nodeType":"YulIdentifier","src":"13228:1:10"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"13221:3:10"},"nodeType":"YulFunctionCall","src":"13221:9:10"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"13216:1:10"}]}]},"name":"checked_div_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"13147:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"13150:1:10","type":""}],"returnVariables":[{"name":"r","nodeType":"YulTypedName","src":"13156:1:10","type":""}],"src":"13116:120:10"},{"body":{"nodeType":"YulBlock","src":"13415:170:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13432:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13443:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13425:6:10"},"nodeType":"YulFunctionCall","src":"13425:21:10"},"nodeType":"YulExpressionStatement","src":"13425:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13466:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13477:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13462:3:10"},"nodeType":"YulFunctionCall","src":"13462:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"13482:2:10","type":"","value":"20"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13455:6:10"},"nodeType":"YulFunctionCall","src":"13455:30:10"},"nodeType":"YulExpressionStatement","src":"13455:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13505:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13516:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13501:3:10"},"nodeType":"YulFunctionCall","src":"13501:18:10"},{"hexValue":"626e6220707269636520697320696e76616c6964","kind":"string","nodeType":"YulLiteral","src":"13521:22:10","type":"","value":"bnb price is invalid"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13494:6:10"},"nodeType":"YulFunctionCall","src":"13494:50:10"},"nodeType":"YulExpressionStatement","src":"13494:50:10"},{"nodeType":"YulAssignment","src":"13553:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13565:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13576:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13561:3:10"},"nodeType":"YulFunctionCall","src":"13561:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"13553:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_c969e98b45e510a597b7277333f46c7416e7e4d72f43b5553650820daeef8314__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13392:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"13406:4:10","type":""}],"src":"13241:344:10"},{"body":{"nodeType":"YulBlock","src":"13764:172:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13781:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13792:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13774:6:10"},"nodeType":"YulFunctionCall","src":"13774:21:10"},"nodeType":"YulExpressionStatement","src":"13774:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13815:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13826:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13811:3:10"},"nodeType":"YulFunctionCall","src":"13811:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"13831:2:10","type":"","value":"22"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13804:6:10"},"nodeType":"YulFunctionCall","src":"13804:30:10"},"nodeType":"YulExpressionStatement","src":"13804:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13854:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13865:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13850:3:10"},"nodeType":"YulFunctionCall","src":"13850:18:10"},{"hexValue":"747761702070726963652063616e6e6f742062652030","kind":"string","nodeType":"YulLiteral","src":"13870:24:10","type":"","value":"twap price cannot be 0"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13843:6:10"},"nodeType":"YulFunctionCall","src":"13843:52:10"},"nodeType":"YulExpressionStatement","src":"13843:52:10"},{"nodeType":"YulAssignment","src":"13904:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13916:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"13927:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13912:3:10"},"nodeType":"YulFunctionCall","src":"13912:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"13904:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_c08953b790cc95143eb8c20f59bd50de78e1f97d6bdda3d048ca1b7967d68bde__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13741:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"13755:4:10","type":""}],"src":"13590:346:10"},{"body":{"nodeType":"YulBlock","src":"14098:162:10","statements":[{"nodeType":"YulAssignment","src":"14108:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14120:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14131:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14116:3:10"},"nodeType":"YulFunctionCall","src":"14116:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"14108:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14150:9:10"},{"name":"value0","nodeType":"YulIdentifier","src":"14161:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14143:6:10"},"nodeType":"YulFunctionCall","src":"14143:25:10"},"nodeType":"YulExpressionStatement","src":"14143:25:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14188:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14199:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14184:3:10"},"nodeType":"YulFunctionCall","src":"14184:18:10"},{"name":"value1","nodeType":"YulIdentifier","src":"14204:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14177:6:10"},"nodeType":"YulFunctionCall","src":"14177:34:10"},"nodeType":"YulExpressionStatement","src":"14177:34:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14231:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14242:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14227:3:10"},"nodeType":"YulFunctionCall","src":"14227:18:10"},{"name":"value2","nodeType":"YulIdentifier","src":"14247:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14220:6:10"},"nodeType":"YulFunctionCall","src":"14220:34:10"},"nodeType":"YulExpressionStatement","src":"14220:34:10"}]},"name":"abi_encode_tuple_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"14051:9:10","type":""},{"name":"value2","nodeType":"YulTypedName","src":"14062:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"14070:6:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"14078:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"14089:4:10","type":""}],"src":"13941:319:10"},{"body":{"nodeType":"YulBlock","src":"14439:233:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14456:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14467:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14449:6:10"},"nodeType":"YulFunctionCall","src":"14449:21:10"},"nodeType":"YulExpressionStatement","src":"14449:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14490:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14501:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14486:3:10"},"nodeType":"YulFunctionCall","src":"14486:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"14506:2:10","type":"","value":"43"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14479:6:10"},"nodeType":"YulFunctionCall","src":"14479:30:10"},"nodeType":"YulExpressionStatement","src":"14479:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14529:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14540:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14525:3:10"},"nodeType":"YulFunctionCall","src":"14525:18:10"},{"hexValue":"496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069","kind":"string","nodeType":"YulLiteral","src":"14545:34:10","type":"","value":"Initializable: contract is not i"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14518:6:10"},"nodeType":"YulFunctionCall","src":"14518:62:10"},"nodeType":"YulExpressionStatement","src":"14518:62:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14600:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14611:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14596:3:10"},"nodeType":"YulFunctionCall","src":"14596:18:10"},{"hexValue":"6e697469616c697a696e67","kind":"string","nodeType":"YulLiteral","src":"14616:13:10","type":"","value":"nitializing"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14589:6:10"},"nodeType":"YulFunctionCall","src":"14589:41:10"},"nodeType":"YulExpressionStatement","src":"14589:41:10"},{"nodeType":"YulAssignment","src":"14639:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14651:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14662:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14647:3:10"},"nodeType":"YulFunctionCall","src":"14647:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"14639:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"14416:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"14430:4:10","type":""}],"src":"14265:407:10"},{"body":{"nodeType":"YulBlock","src":"14715:74:10","statements":[{"body":{"nodeType":"YulBlock","src":"14738:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x12","nodeType":"YulIdentifier","src":"14740:16:10"},"nodeType":"YulFunctionCall","src":"14740:18:10"},"nodeType":"YulExpressionStatement","src":"14740:18:10"}]},"condition":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"14735:1:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"14728:6:10"},"nodeType":"YulFunctionCall","src":"14728:9:10"},"nodeType":"YulIf","src":"14725:35:10"},{"nodeType":"YulAssignment","src":"14769:14:10","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"14778:1:10"},{"name":"y","nodeType":"YulIdentifier","src":"14781:1:10"}],"functionName":{"name":"mod","nodeType":"YulIdentifier","src":"14774:3:10"},"nodeType":"YulFunctionCall","src":"14774:9:10"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"14769:1:10"}]}]},"name":"mod_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"14700:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"14703:1:10","type":""}],"returnVariables":[{"name":"r","nodeType":"YulTypedName","src":"14709:1:10","type":""}],"src":"14677:112:10"},{"body":{"nodeType":"YulBlock","src":"14968:173:10","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14985:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"14996:2:10","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"14978:6:10"},"nodeType":"YulFunctionCall","src":"14978:21:10"},"nodeType":"YulExpressionStatement","src":"14978:21:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15019:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15030:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15015:3:10"},"nodeType":"YulFunctionCall","src":"15015:18:10"},{"kind":"number","nodeType":"YulLiteral","src":"15035:2:10","type":"","value":"23"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15008:6:10"},"nodeType":"YulFunctionCall","src":"15008:30:10"},"nodeType":"YulExpressionStatement","src":"15008:30:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15058:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15069:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15054:3:10"},"nodeType":"YulFunctionCall","src":"15054:18:10"},{"hexValue":"4669786564506f696e743a204449565f42595f5a45524f","kind":"string","nodeType":"YulLiteral","src":"15074:25:10","type":"","value":"FixedPoint: DIV_BY_ZERO"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15047:6:10"},"nodeType":"YulFunctionCall","src":"15047:53:10"},"nodeType":"YulExpressionStatement","src":"15047:53:10"},{"nodeType":"YulAssignment","src":"15109:26:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15121:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15132:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15117:3:10"},"nodeType":"YulFunctionCall","src":"15117:18:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"15109:4:10"}]}]},"name":"abi_encode_tuple_t_stringliteral_fb797fc20bb06d860bbe348d99030bb226d980421b724f94accde8487e338e12__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"14945:9:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"14959:4:10","type":""}],"src":"14794:347:10"},{"body":{"nodeType":"YulBlock","src":"15192:155:10","statements":[{"nodeType":"YulVariableDeclaration","src":"15202:29:10","value":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"15220:3:10","type":"","value":"224"},{"kind":"number","nodeType":"YulLiteral","src":"15225:1:10","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"15216:3:10"},"nodeType":"YulFunctionCall","src":"15216:11:10"},{"kind":"number","nodeType":"YulLiteral","src":"15229:1:10","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"15212:3:10"},"nodeType":"YulFunctionCall","src":"15212:19:10"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"15206:2:10","type":""}]},{"nodeType":"YulVariableDeclaration","src":"15240:21:10","value":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"15255:1:10"},{"name":"_1","nodeType":"YulIdentifier","src":"15258:2:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15251:3:10"},"nodeType":"YulFunctionCall","src":"15251:10:10"},"variables":[{"name":"y_1","nodeType":"YulTypedName","src":"15244:3:10","type":""}]},{"body":{"nodeType":"YulBlock","src":"15285:22:10","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x12","nodeType":"YulIdentifier","src":"15287:16:10"},"nodeType":"YulFunctionCall","src":"15287:18:10"},"nodeType":"YulExpressionStatement","src":"15287:18:10"}]},"condition":{"arguments":[{"name":"y_1","nodeType":"YulIdentifier","src":"15280:3:10"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"15273:6:10"},"nodeType":"YulFunctionCall","src":"15273:11:10"},"nodeType":"YulIf","src":"15270:37:10"},{"nodeType":"YulAssignment","src":"15316:25:10","value":{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"15329:1:10"},{"name":"_1","nodeType":"YulIdentifier","src":"15332:2:10"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15325:3:10"},"nodeType":"YulFunctionCall","src":"15325:10:10"},{"name":"y_1","nodeType":"YulIdentifier","src":"15337:3:10"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"15321:3:10"},"nodeType":"YulFunctionCall","src":"15321:20:10"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"15316:1:10"}]}]},"name":"checked_div_t_uint224","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"15177:1:10","type":""},{"name":"y","nodeType":"YulTypedName","src":"15180:1:10","type":""}],"returnVariables":[{"name":"r","nodeType":"YulTypedName","src":"15186:1:10","type":""}],"src":"15146:201:10"},{"body":{"nodeType":"YulBlock","src":"15537:206:10","statements":[{"nodeType":"YulAssignment","src":"15547:27:10","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15559:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15570:3:10","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15555:3:10"},"nodeType":"YulFunctionCall","src":"15555:19:10"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"15547:4:10"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15590:9:10"},{"name":"value0","nodeType":"YulIdentifier","src":"15601:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15583:6:10"},"nodeType":"YulFunctionCall","src":"15583:25:10"},"nodeType":"YulExpressionStatement","src":"15583:25:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15628:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15639:2:10","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15624:3:10"},"nodeType":"YulFunctionCall","src":"15624:18:10"},{"name":"value1","nodeType":"YulIdentifier","src":"15644:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15617:6:10"},"nodeType":"YulFunctionCall","src":"15617:34:10"},"nodeType":"YulExpressionStatement","src":"15617:34:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15671:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15682:2:10","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15667:3:10"},"nodeType":"YulFunctionCall","src":"15667:18:10"},{"name":"value2","nodeType":"YulIdentifier","src":"15687:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15660:6:10"},"nodeType":"YulFunctionCall","src":"15660:34:10"},"nodeType":"YulExpressionStatement","src":"15660:34:10"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15714:9:10"},{"kind":"number","nodeType":"YulLiteral","src":"15725:2:10","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15710:3:10"},"nodeType":"YulFunctionCall","src":"15710:18:10"},{"name":"value3","nodeType":"YulIdentifier","src":"15730:6:10"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15703:6:10"},"nodeType":"YulFunctionCall","src":"15703:34:10"},"nodeType":"YulExpressionStatement","src":"15703:34:10"}]},"name":"abi_encode_tuple_t_uint256_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"15482:9:10","type":""},{"name":"value3","nodeType":"YulTypedName","src":"15493:6:10","type":""},{"name":"value2","nodeType":"YulTypedName","src":"15501:6:10","type":""},{"name":"value1","nodeType":"YulTypedName","src":"15509:6:10","type":""},{"name":"value0","nodeType":"YulTypedName","src":"15517:6:10","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"15528:4:10","type":""}],"src":"15352:391:10"}]},"contents":"{\n { }\n function validator_revert_address(value)\n {\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_addresst_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n let value := calldataload(headStart)\n validator_revert_address(value)\n value0 := value\n value1 := calldataload(add(headStart, 32))\n }\n function abi_encode_tuple_t_uint256_t_uint256__to_t_uint256_t_uint256__fromStack_reversed(headStart, value1, value0) -> tail\n {\n tail := add(headStart, 64)\n mstore(headStart, value0)\n mstore(add(headStart, 32), value1)\n }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := calldataload(headStart)\n validator_revert_address(value)\n value0 := value\n }\n function abi_encode_tuple_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__to_t_address_t_uint256_t_address_t_bool_t_bool_t_uint256__fromStack_reversed(headStart, value5, value4, value3, value2, value1, value0) -> tail\n {\n tail := add(headStart, 192)\n let _1 := sub(shl(160, 1), 1)\n mstore(headStart, and(value0, _1))\n mstore(add(headStart, 32), value1)\n mstore(add(headStart, 64), and(value2, _1))\n mstore(add(headStart, 96), iszero(iszero(value3)))\n mstore(add(headStart, 128), iszero(iszero(value4)))\n mstore(add(headStart, 160), value5)\n }\n function panic_error_0x41()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n function allocate_memory(size) -> memPtr\n {\n memPtr := mload(64)\n let newFreePtr := add(memPtr, and(add(size, 31), not(31)))\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n function abi_decode_bool(offset) -> value\n {\n value := calldataload(offset)\n if iszero(eq(value, iszero(iszero(value)))) { revert(0, 0) }\n }\n function abi_decode_struct_TokenConfig(headStart, end) -> value\n {\n if slt(sub(end, headStart), 0xc0) { revert(0, 0) }\n let memPtr := mload(64)\n let newFreePtr := add(memPtr, 0xc0)\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n value := memPtr\n let value_1 := calldataload(headStart)\n validator_revert_address(value_1)\n mstore(memPtr, value_1)\n mstore(add(memPtr, 32), calldataload(add(headStart, 32)))\n let value_2 := calldataload(add(headStart, 64))\n validator_revert_address(value_2)\n mstore(add(memPtr, 64), value_2)\n mstore(add(memPtr, 96), abi_decode_bool(add(headStart, 96)))\n mstore(add(memPtr, 128), abi_decode_bool(add(headStart, 128)))\n mstore(add(memPtr, 160), calldataload(add(headStart, 160)))\n }\n function abi_decode_tuple_t_array$_t_struct$_TokenConfig_$989_memory_ptr_$dyn_memory_ptr(headStart, dataEnd) -> value0\n {\n let _1 := 32\n if slt(sub(dataEnd, headStart), _1) { revert(0, 0) }\n let offset := calldataload(headStart)\n let _2 := 0xffffffffffffffff\n if gt(offset, _2) { revert(0, 0) }\n let _3 := add(headStart, offset)\n if iszero(slt(add(_3, 0x1f), dataEnd)) { revert(0, 0) }\n let _4 := calldataload(_3)\n if gt(_4, _2) { panic_error_0x41() }\n let dst := allocate_memory(add(shl(5, _4), _1))\n let dst_1 := dst\n mstore(dst, _4)\n dst := add(dst, _1)\n let _5 := 0xc0\n let srcEnd := add(add(_3, mul(_4, _5)), _1)\n if gt(srcEnd, dataEnd) { revert(0, 0) }\n let src := add(_3, _1)\n for { } lt(src, srcEnd) { src := add(src, _5) }\n {\n mstore(dst, abi_decode_struct_TokenConfig(src, dataEnd))\n dst := add(dst, _1)\n }\n value0 := dst_1\n }\n function abi_decode_tuple_t_struct$_TokenConfig_$989_memory_ptr(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 192) { revert(0, 0) }\n value0 := abi_decode_struct_TokenConfig(headStart, dataEnd)\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_stringliteral_2bcde6d36e25ff80edf1e7b323425b7fef87f9e0a4cccb1475b35b230048c1ed__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 17)\n mstore(add(headStart, 64), \"length can't be 0\")\n tail := add(headStart, 96)\n }\n function panic_error_0x32()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n function panic_error_0x11()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n function increment_t_uint256(value) -> ret\n {\n if eq(value, not(0)) { panic_error_0x11() }\n ret := add(value, 1)\n }\n function abi_decode_tuple_t_address_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := mload(headStart)\n validator_revert_address(value)\n value0 := value\n }\n function abi_encode_tuple_t_stringliteral_7edd35f2542fe6cab3bfe6256750fc7e82f5f31c71f2be70fc72bb2fdbf9cf18__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 15)\n mstore(add(headStart, 64), \"asset not exist\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_aef763fd4fb164a611c1f79474469d30e366c3b2b994b385d33a8daa09234aaf__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 14)\n mstore(add(headStart, 64), \"WBNB not exist\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 46)\n mstore(add(headStart, 64), \"Initializable: contract is alrea\")\n mstore(add(headStart, 96), \"dy initialized\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, 0xff))\n }\n function abi_encode_tuple_t_stringliteral_4793c2d6e615a200d995dd9ad0db45f00df0789bc148a42df7526d2509d0f296__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 21)\n mstore(add(headStart, 64), \"can't be zero address\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_5b63ee466c6470f47e94829ac8475c0f623b1a136bc8bd22b6f22a83a65967a0__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 30)\n mstore(add(headStart, 64), \"anchor period must be positive\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_4f017bc3bc880cbbf5c5a42e0e59054836fef6161a6afc406ce026dd7586e7d3__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 26)\n mstore(add(headStart, 64), \"base unit must be positive\")\n tail := add(headStart, 96)\n }\n function abi_decode_tuple_t_uint8_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := mload(headStart)\n if iszero(eq(value, and(value, 0xff))) { revert(0, 0) }\n value0 := value\n }\n function checked_exp_helper(_base, exponent) -> power, base\n {\n let power_1 := 1\n power := power_1\n base := _base\n for { } gt(exponent, power_1) { }\n {\n if gt(base, div(not(0), base)) { panic_error_0x11() }\n if and(exponent, power_1) { power := mul(power, base) }\n base := mul(base, base)\n exponent := shr(power_1, exponent)\n }\n }\n function checked_exp_unsigned(base, exponent) -> power\n {\n if iszero(exponent)\n {\n power := 1\n leave\n }\n if iszero(base)\n {\n power := 0\n leave\n }\n switch base\n case 1 {\n power := 1\n leave\n }\n case 2 {\n if gt(exponent, 255) { panic_error_0x11() }\n power := shl(exponent, 1)\n leave\n }\n if or(and(lt(base, 11), lt(exponent, 78)), and(lt(base, 307), lt(exponent, 32)))\n {\n power := exp(base, exponent)\n leave\n }\n let power_1, base_1 := checked_exp_helper(base, exponent)\n if gt(power_1, div(not(0), base_1)) { panic_error_0x11() }\n power := mul(power_1, base_1)\n }\n function checked_exp_t_uint256_t_uint8(base, exponent) -> power\n {\n power := checked_exp_unsigned(base, and(exponent, 0xff))\n }\n function abi_encode_tuple_t_stringliteral_50635c480c5a4712f90e68527d5e38f58623f4078d491b98bd818c78bd98a946__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 49)\n mstore(add(headStart, 64), \"base unit decimals must be same \")\n mstore(add(headStart, 96), \"as asset decimals\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 38)\n mstore(add(headStart, 64), \"Ownable: new owner is the zero a\")\n mstore(add(headStart, 96), \"ddress\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_d951cb074914841cb4111125601a149e927e68a41aa2d7966912f89cd700c420__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 27)\n mstore(add(headStart, 64), \"TWAP price must be positive\")\n tail := add(headStart, 96)\n }\n function checked_sub_t_uint8(x, y) -> diff\n {\n let x_1 := and(x, 0xff)\n let y_1 := and(y, 0xff)\n if lt(x_1, y_1) { panic_error_0x11() }\n diff := sub(x_1, y_1)\n }\n function checked_mul_t_uint256(x, y) -> product\n {\n if and(iszero(iszero(x)), gt(y, div(not(0), x))) { panic_error_0x11() }\n product := mul(x, y)\n }\n function abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 32)\n mstore(add(headStart, 64), \"Ownable: caller is not the owner\")\n tail := add(headStart, 96)\n }\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := mload(headStart)\n }\n function abi_decode_uint112_fromMemory(offset) -> value\n {\n value := mload(offset)\n if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffff))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_uint112t_uint112t_uint32_fromMemory(headStart, dataEnd) -> value0, value1, value2\n {\n if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n value0 := abi_decode_uint112_fromMemory(headStart)\n value1 := abi_decode_uint112_fromMemory(add(headStart, 32))\n let value := mload(add(headStart, 64))\n if iszero(eq(value, and(value, 0xffffffff))) { revert(0, 0) }\n value2 := value\n }\n function abi_encode_tuple_t_stringliteral_97ea44ed9b1f8f794b0f4a84f43ed25e6702933fc90457cec778223d2aa076b2__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 26)\n mstore(add(headStart, 64), \"now must come after before\")\n tail := add(headStart, 96)\n }\n function checked_sub_t_uint256(x, y) -> diff\n {\n if lt(x, y) { panic_error_0x11() }\n diff := sub(x, y)\n }\n function panic_error_0x12()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x12)\n revert(0, 0x24)\n }\n function checked_div_t_uint256(x, y) -> r\n {\n if iszero(y) { panic_error_0x12() }\n r := div(x, y)\n }\n function abi_encode_tuple_t_stringliteral_c969e98b45e510a597b7277333f46c7416e7e4d72f43b5553650820daeef8314__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 20)\n mstore(add(headStart, 64), \"bnb price is invalid\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_c08953b790cc95143eb8c20f59bd50de78e1f97d6bdda3d048ca1b7967d68bde__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 22)\n mstore(add(headStart, 64), \"twap price cannot be 0\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256__fromStack_reversed(headStart, value2, value1, value0) -> tail\n {\n tail := add(headStart, 96)\n mstore(headStart, value0)\n mstore(add(headStart, 32), value1)\n mstore(add(headStart, 64), value2)\n }\n function abi_encode_tuple_t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 43)\n mstore(add(headStart, 64), \"Initializable: contract is not i\")\n mstore(add(headStart, 96), \"nitializing\")\n tail := add(headStart, 128)\n }\n function mod_t_uint256(x, y) -> r\n {\n if iszero(y) { panic_error_0x12() }\n r := mod(x, y)\n }\n function abi_encode_tuple_t_stringliteral_fb797fc20bb06d860bbe348d99030bb226d980421b724f94accde8487e338e12__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 23)\n mstore(add(headStart, 64), \"FixedPoint: DIV_BY_ZERO\")\n tail := add(headStart, 96)\n }\n function checked_div_t_uint224(x, y) -> r\n {\n let _1 := sub(shl(224, 1), 1)\n let y_1 := and(y, _1)\n if iszero(y_1) { panic_error_0x12() }\n r := div(and(x, _1), y_1)\n }\n function abi_encode_tuple_t_uint256_t_uint256_t_uint256_t_uint256__to_t_uint256_t_uint256_t_uint256_t_uint256__fromStack_reversed(headStart, value3, value2, value1, value0) -> tail\n {\n tail := add(headStart, 128)\n mstore(headStart, value0)\n mstore(add(headStart, 32), value1)\n mstore(add(headStart, 64), value2)\n mstore(add(headStart, 96), value3)\n }\n}","id":10,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{"998":[{"length":32,"start":703},{"length":32,"start":1268},{"length":32,"start":1394},{"length":32,"start":1507},{"length":32,"start":1627},{"length":32,"start":3298},{"length":32,"start":4522}],"1001":[{"length":32,"start":573},{"length":32,"start":1108},{"length":32,"start":3138}]},"linkReferences":{},"object":"608060405234801561001057600080fd5b50600436106101165760003560e01c8063725068a5116100a2578063b8a8a62611610071578063b8a8a62614610277578063cbf67919146102e1578063cfed246b146102f4578063f2fde38b14610314578063fc57d4df1461032757600080fd5b8063725068a51461028e5780638129fc1c146102a15780638da5cb5b146102a95780638dd95002146102ba57600080fd5b80633334ecc5116100e95780633334ecc5146102185780635ba3792d14610238578063609f0f361461027757806369aa3ac614610277578063715018a61461028657600080fd5b8063024599661461011b5780631b69dc5f14610148578063234a3446146101e25780632b9d9dea146101f7575b600080fd5b61012e6101293660046116cb565b61033a565b604080519283526020830191909152015b60405180910390f35b6101a06101563660046116f7565b60656020526000908152604090208054600182015460028301546003909301546001600160a01b0392831693919282169160ff600160a01b8204811692600160a81b909204169086565b604080516001600160a01b03978816815260208101969096529390951692840192909252151560608301521515608082015260a081019190915260c00161013f565b6101f56101f0366004611808565b610376565b005b61020a6102053660046118b8565b61040c565b60405190815260200161013f565b61020a6102263660046116f7565b60686020526000908152604090205481565b61025f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013f565b61020a670de0b6b3a764000081565b6101f561043b565b61020a61029c3660046116f7565b61044f565b6101f5610772565b6033546001600160a01b031661025f565b61025f7f000000000000000000000000000000000000000000000000000000000000000081565b6101f56102ef3660046118b8565b610883565b61020a6103023660046116f7565b60666020526000908152604090205481565b6101f56103223660046116f7565b610bc7565b61020a6103353660046116f7565b610c3d565b6067602052816000526040600020818154811061035657600080fd5b600091825260209091206002909102018054600190910154909250905082565b61037e610e4e565b60008151116103c85760405162461bcd60e51b815260206004820152601160248201527006c656e6774682063616e2774206265203607c1b60448201526064015b60405180910390fd5b805160005b81811015610407576103f78382815181106103ea576103ea6118d4565b6020026020010151610883565b61040081611900565b90506103cd565b505050565b600080600061041e8460400151610ea8565b5091509150836080015115610434579392505050565b5092915050565b610443610e4e565b61044d6000611050565b565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146104f257826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed9190611919565b610514565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b03808216600090815260656020526040902054919250166105705760405162461bcd60e51b815260206004820152600f60248201526e185cdcd95d081b9bdd08195e1a5cdd608a1b60448201526064016103bf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141580156105d457506001600160a01b038116600090815260656020526040902060020154600160a01b900460ff165b156106ef576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600090815260656020526040902054166106515760405162461bcd60e51b815260206004820152600e60248201526d15d09390881b9bdd08195e1a5cdd60921b60448201526064016103bf565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600090815260656020908152604091829020825160c08101845281548516815260018201549281019290925260028101549384169282019290925260ff600160a01b8404811615156060830152600160a81b909304909216151560808301526003015460a08201526106ed906110a2565b505b6001600160a01b03808216600090815260656020908152604091829020825160c08101845281548516815260018201549281019290925260028101549384169282019290925260ff600160a01b8404811615156060830152600160a81b909304909216151560808301526003015460a082015261076b906110a2565b9392505050565b600054610100900460ff16158080156107925750600054600160ff909116105b806107ac5750303b1580156107ac575060005460ff166001145b61080f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103bf565b6000805460ff191660011790558015610832576000805461ff0019166101001790555b61083a611300565b8015610880576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b61088b610e4e565b80516001600160a01b0381166108db5760405162461bcd60e51b815260206004820152601560248201527463616e2774206265207a65726f206164647265737360581b60448201526064016103bf565b60408201516001600160a01b03811661092e5760405162461bcd60e51b815260206004820152601560248201527463616e2774206265207a65726f206164647265737360581b60448201526064016103bf565b60008360a00151116109825760405162461bcd60e51b815260206004820152601e60248201527f616e63686f7220706572696f64206d75737420626520706f736974697665000060448201526064016103bf565b60008360200151116109d65760405162461bcd60e51b815260206004820152601a60248201527f6261736520756e6974206d75737420626520706f73697469766500000000000060448201526064016103bf565b82600001516001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c9190611936565b610a4790600a611a3d565b836020015114610ab35760405162461bcd60e51b815260206004820152603160248201527f6261736520756e697420646563696d616c73206d7573742062652073616d6520604482015270617320617373657420646563696d616c7360781b60648201526084016103bf565b6000610abe8461040c565b84516001600160a01b03908116600090815260676020908152604080832081518083018352428152808401878152825460018181018555938752858720925160029182029093019283559051918301919091558a5186168552606584528285208b5181549088166001600160a01b031990911681178255948c015192810192909255828b0151908201805460608d015160808e01511515600160a81b0260ff60a81b19911515600160a01b026001600160a81b03199093169490991693841791909117169690961790955560a08a0151600390910181905590519495509390917f3cc8d9cb9370a23a8b9ffa75efa24cecb65c4693980e58260841adc474983c5f91a450505050565b610bcf610e4e565b6001600160a01b038116610c345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bf565b61088081611050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614610ce057826001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdb9190611919565b610d02565b7f00000000000000000000000000000000000000000000000000000000000000005b6001600160a01b0380821660009081526065602052604090205491925016610d5e5760405162461bcd60e51b815260206004820152600f60248201526e185cdcd95d081b9bdd08195e1a5cdd608a1b60448201526064016103bf565b6001600160a01b03811660009081526066602052604090205480610dc45760405162461bcd60e51b815260206004820152601b60248201527f54574150207072696365206d75737420626520706f736974697665000000000060448201526064016103bf565b816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e269190611936565b610e31906012611a4c565b610e3c90600a611a3d565b610e469082611a6f565b949350505050565b6033546001600160a01b0316331461044d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bf565b6000806000610eb561132f565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190611a8e565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d9190611a8e565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe69190611abe565b9250925092508363ffffffff168163ffffffff16146110465780840363ffffffff81166110138486611345565b516001600160e01b031602969096019563ffffffff81166110348585611345565b516001600160e01b0316029590950194505b5050509193909250565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000806110b1856113f7565b9250925092508042116111065760405162461bcd60e51b815260206004820152601a60248201527f6e6f77206d75737420636f6d65206166746572206265666f726500000000000060448201526064016103bf565b60006111128242611b0e565b90506000604051806020016040528083868861112e9190611b0e565b6111389190611b3b565b6001600160e01b031690529050600061115082611666565b90506000886060015161116b57670de0b6b3a7640000611175565b670de0b6b3a76400005b90506000818a602001518461118a9190611a6f565b6111949190611b3b565b9050896060015115611241576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260666020526040812054908190036112205760405162461bcd60e51b8152602060048201526014602482015273189b98881c1c9a58d9481a5cc81a5b9d985b1a5960621b60448201526064016103bf565b670de0b6b3a76400006112338284611a6f565b61123d9190611b3b565b9150505b8060000361128a5760405162461bcd60e51b81526020600482015260166024820152750747761702070726963652063616e6e6f7420626520360541b60448201526064016103bf565b89516040805183815260208101899052428183015290516001600160a01b03909216917f7d881580fb2bb7844e8ecf8df26510247c4bbea2735d40bf0d9ac33c0d9acd819181900360600190a298516001600160a01b031660009081526066602052604090208990555096979650505050505050565b600054610100900460ff166113275760405162461bcd60e51b81526004016103bf90611b4f565b61044d611686565b600061134064010000000042611b9a565b905090565b6040805160208101909152600081526000826001600160701b0316116113ad5760405162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f00000000000000000060448201526064016103bf565b6040805160208101909152806113e36001600160701b0385166dffffffffffffffffffffffffffff60701b607088901b16611bae565b6001600160e01b0316905290505b92915050565b6000806000806114068561040c565b60a0860151909150429060009061141d9083611b0e565b87516001600160a01b0316600090815260676020908152604080832080548251818502810185019093528083529495509293909291849084015b8282101561149d57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611457565b505082518b516001600160a01b0316600090815260686020526040902054939450929150505b818110156115b957838382815181106114de576114de6118d4565b60200260200101516000015110158061150057506114fd600183611b0e565b81145b1561156857828181518110611517576115176118d4565b6020026020010151602001519750828181518110611537576115376118d4565b602090810291909101810151518b516001600160a01b031660009081526068909252604090912082905596506115b9565b89516001600160a01b03166000908152606760205260409020805482908110611593576115936118d4565b600091825260208220600290910201818155600101556115b281611900565b90506114c3565b5088516001600160a01b039081166000908152606760209081526040808320815180830183528981528084018b81528254600180820185559387529585902091516002909602909101948555519301929092558b5182518a81529182018b90524292820192909252606081018890529116907f87208a84ec7402c933c70c261e53b733a9f1c893d73e941a152435d58177a2649060800160405180910390a2509295505050509193909250565b80516000906113f1906612725dd1d243ab906001600160e01b0316611b3b565b600054610100900460ff166116ad5760405162461bcd60e51b81526004016103bf90611b4f565b61044d33611050565b6001600160a01b038116811461088057600080fd5b600080604083850312156116de57600080fd5b82356116e9816116b6565b946020939093013593505050565b60006020828403121561170957600080fd5b813561076b816116b6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561175357611753611714565b604052919050565b8035801515811461176b57600080fd5b919050565b600060c0828403121561178257600080fd5b60405160c0810181811067ffffffffffffffff821117156117a5576117a5611714565b60405290508082356117b6816116b6565b81526020838101359082015260408301356117d0816116b6565b60408201526117e16060840161175b565b60608201526117f26080840161175b565b608082015260a083013560a08201525092915050565b6000602080838503121561181b57600080fd5b823567ffffffffffffffff8082111561183357600080fd5b818501915085601f83011261184757600080fd5b81358181111561185957611859611714565b611867848260051b0161172a565b818152848101925060c091820284018501918883111561188657600080fd5b938501935b828510156118ac5761189d8986611770565b8452938401939285019261188b565b50979650505050505050565b600060c082840312156118ca57600080fd5b61076b8383611770565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611912576119126118ea565b5060010190565b60006020828403121561192b57600080fd5b815161076b816116b6565b60006020828403121561194857600080fd5b815160ff8116811461076b57600080fd5b600181815b8085111561199457816000190482111561197a5761197a6118ea565b8085161561198757918102915b93841c939080029061195e565b509250929050565b6000826119ab575060016113f1565b816119b8575060006113f1565b81600181146119ce57600281146119d8576119f4565b60019150506113f1565b60ff8411156119e9576119e96118ea565b50506001821b6113f1565b5060208310610133831016604e8410600b8410161715611a17575081810a6113f1565b611a218383611959565b8060001904821115611a3557611a356118ea565b029392505050565b600061076b60ff84168361199c565b600060ff821660ff841680821015611a6657611a666118ea565b90039392505050565b6000816000190483118215151615611a8957611a896118ea565b500290565b600060208284031215611aa057600080fd5b5051919050565b80516001600160701b038116811461176b57600080fd5b600080600060608486031215611ad357600080fd5b611adc84611aa7565b9250611aea60208501611aa7565b9150604084015163ffffffff81168114611b0357600080fd5b809150509250925092565b600082821015611b2057611b206118ea565b500390565b634e487b7160e01b600052601260045260246000fd5b600082611b4a57611b4a611b25565b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082611ba957611ba9611b25565b500690565b60006001600160e01b0383811680611bc857611bc8611b25565b9216919091049291505056fea2646970667358221220d473ccf039d726e926c9ec0a0f47f4b2cac35cab16987260819ec49b6e10970064736f6c634300080d0033","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x116 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x725068A5 GT PUSH2 0xA2 JUMPI DUP1 PUSH4 0xB8A8A626 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0xB8A8A626 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0xCBF67919 EQ PUSH2 0x2E1 JUMPI DUP1 PUSH4 0xCFED246B EQ PUSH2 0x2F4 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0xFC57D4DF EQ PUSH2 0x327 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x725068A5 EQ PUSH2 0x28E JUMPI DUP1 PUSH4 0x8129FC1C EQ PUSH2 0x2A1 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x2A9 JUMPI DUP1 PUSH4 0x8DD95002 EQ PUSH2 0x2BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x3334ECC5 GT PUSH2 0xE9 JUMPI DUP1 PUSH4 0x3334ECC5 EQ PUSH2 0x218 JUMPI DUP1 PUSH4 0x5BA3792D EQ PUSH2 0x238 JUMPI DUP1 PUSH4 0x609F0F36 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0x69AA3AC6 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x286 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x2459966 EQ PUSH2 0x11B JUMPI DUP1 PUSH4 0x1B69DC5F EQ PUSH2 0x148 JUMPI DUP1 PUSH4 0x234A3446 EQ PUSH2 0x1E2 JUMPI DUP1 PUSH4 0x2B9D9DEA EQ PUSH2 0x1F7 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x12E PUSH2 0x129 CALLDATASIZE PUSH1 0x4 PUSH2 0x16CB JUMP JUMPDEST PUSH2 0x33A JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1A0 PUSH2 0x156 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 DUP3 ADD SLOAD PUSH1 0x2 DUP4 ADD SLOAD PUSH1 0x3 SWAP1 SWAP4 ADD SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 DUP4 AND SWAP4 SWAP2 SWAP3 DUP3 AND SWAP2 PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP3 DIV DUP2 AND SWAP3 PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP3 DIV AND SWAP1 DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP8 DUP9 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP7 SWAP1 SWAP7 MSTORE SWAP4 SWAP1 SWAP6 AND SWAP3 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE ISZERO ISZERO PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xC0 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x1F0 CALLDATASIZE PUSH1 0x4 PUSH2 0x1808 JUMP JUMPDEST PUSH2 0x376 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x20A PUSH2 0x205 CALLDATASIZE PUSH1 0x4 PUSH2 0x18B8 JUMP JUMPDEST PUSH2 0x40C JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x20A PUSH2 0x226 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x68 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x25F PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x13F JUMP JUMPDEST PUSH2 0x20A PUSH8 0xDE0B6B3A7640000 DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x43B JUMP JUMPDEST PUSH2 0x20A PUSH2 0x29C CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0x44F JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x772 JUMP JUMPDEST PUSH1 0x33 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x25F JUMP JUMPDEST PUSH2 0x25F PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2EF CALLDATASIZE PUSH1 0x4 PUSH2 0x18B8 JUMP JUMPDEST PUSH2 0x883 JUMP JUMPDEST PUSH2 0x20A PUSH2 0x302 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0xBC7 JUMP JUMPDEST PUSH2 0x20A PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x16F7 JUMP JUMPDEST PUSH2 0xC3D JUMP JUMPDEST PUSH1 0x67 PUSH1 0x20 MSTORE DUP2 PUSH1 0x0 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x356 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP1 SLOAD PUSH1 0x1 SWAP1 SWAP2 ADD SLOAD SWAP1 SWAP3 POP SWAP1 POP DUP3 JUMP JUMPDEST PUSH2 0x37E PUSH2 0xE4E JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD GT PUSH2 0x3C8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x11 PUSH1 0x24 DUP3 ADD MSTORE PUSH17 0x6C656E6774682063616E2774206265203 PUSH1 0x7C SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 MLOAD PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x407 JUMPI PUSH2 0x3F7 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3EA JUMPI PUSH2 0x3EA PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x883 JUMP JUMPDEST PUSH2 0x400 DUP2 PUSH2 0x1900 JUMP JUMPDEST SWAP1 POP PUSH2 0x3CD JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x41E DUP5 PUSH1 0x40 ADD MLOAD PUSH2 0xEA8 JUMP JUMPDEST POP SWAP2 POP SWAP2 POP DUP4 PUSH1 0x80 ADD MLOAD ISZERO PUSH2 0x434 JUMPI SWAP4 SWAP3 POP POP POP JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x443 PUSH2 0xE4E JUMP JUMPDEST PUSH2 0x44D PUSH1 0x0 PUSH2 0x1050 JUMP JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0x4F2 JUMPI DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x6F307DC3 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x4C9 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x4ED SWAP2 SWAP1 PUSH2 0x1919 JUMP JUMPDEST PUSH2 0x514 JUMP JUMPDEST PUSH32 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP2 SWAP3 POP AND PUSH2 0x570 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x185CDCD95D081B9BDD08195E1A5CDD PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP1 ISZERO PUSH2 0x5D4 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH1 0x2 ADD SLOAD PUSH1 0x1 PUSH1 0xA0 SHL SWAP1 DIV PUSH1 0xFF AND JUMPDEST ISZERO PUSH2 0x6EF JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD AND PUSH2 0x651 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH14 0x15D09390881B9BDD08195E1A5CDD PUSH1 0x92 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP3 MLOAD PUSH1 0xC0 DUP2 ADD DUP5 MSTORE DUP2 SLOAD DUP6 AND DUP2 MSTORE PUSH1 0x1 DUP3 ADD SLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x2 DUP2 ADD SLOAD SWAP4 DUP5 AND SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP5 DIV DUP2 AND ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP4 DIV SWAP1 SWAP3 AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE PUSH1 0x3 ADD SLOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x6ED SWAP1 PUSH2 0x10A2 JUMP JUMPDEST POP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP3 MLOAD PUSH1 0xC0 DUP2 ADD DUP5 MSTORE DUP2 SLOAD DUP6 AND DUP2 MSTORE PUSH1 0x1 DUP3 ADD SLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x2 DUP2 ADD SLOAD SWAP4 DUP5 AND SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0xFF PUSH1 0x1 PUSH1 0xA0 SHL DUP5 DIV DUP2 AND ISZERO ISZERO PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xA8 SHL SWAP1 SWAP4 DIV SWAP1 SWAP3 AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE PUSH1 0x3 ADD SLOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x76B SWAP1 PUSH2 0x10A2 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO DUP1 DUP1 ISZERO PUSH2 0x792 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xFF SWAP1 SWAP2 AND LT JUMPDEST DUP1 PUSH2 0x7AC JUMPI POP ADDRESS EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x7AC JUMPI POP PUSH1 0x0 SLOAD PUSH1 0xFF AND PUSH1 0x1 EQ JUMPDEST PUSH2 0x80F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x2E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320616C726561 PUSH1 0x44 DUP3 ADD MSTORE PUSH14 0x191E481A5B9A5D1A585B1A5E9959 PUSH1 0x92 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE DUP1 ISZERO PUSH2 0x832 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH2 0xFF00 NOT AND PUSH2 0x100 OR SWAP1 SSTORE JUMPDEST PUSH2 0x83A PUSH2 0x1300 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x880 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH2 0xFF00 NOT AND SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST POP JUMP JUMPDEST PUSH2 0x88B PUSH2 0xE4E JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x8DB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x63616E2774206265207A65726F2061646472657373 PUSH1 0x58 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x92E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x63616E2774206265207A65726F2061646472657373 PUSH1 0x58 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP4 PUSH1 0xA0 ADD MLOAD GT PUSH2 0x982 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x616E63686F7220706572696F64206D75737420626520706F7369746976650000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP4 PUSH1 0x20 ADD MLOAD GT PUSH2 0x9D6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6261736520756E6974206D75737420626520706F736974697665000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xA18 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA3C SWAP2 SWAP1 PUSH2 0x1936 JUMP JUMPDEST PUSH2 0xA47 SWAP1 PUSH1 0xA PUSH2 0x1A3D JUMP JUMPDEST DUP4 PUSH1 0x20 ADD MLOAD EQ PUSH2 0xAB3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x31 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6261736520756E697420646563696D616C73206D7573742062652073616D6520 PUSH1 0x44 DUP3 ADD MSTORE PUSH17 0x617320617373657420646563696D616C73 PUSH1 0x78 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0xABE DUP5 PUSH2 0x40C JUMP JUMPDEST DUP5 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP2 MLOAD DUP1 DUP4 ADD DUP4 MSTORE TIMESTAMP DUP2 MSTORE DUP1 DUP5 ADD DUP8 DUP2 MSTORE DUP3 SLOAD PUSH1 0x1 DUP2 DUP2 ADD DUP6 SSTORE SWAP4 DUP8 MSTORE DUP6 DUP8 KECCAK256 SWAP3 MLOAD PUSH1 0x2 SWAP2 DUP3 MUL SWAP1 SWAP4 ADD SWAP3 DUP4 SSTORE SWAP1 MLOAD SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 SSTORE DUP11 MLOAD DUP7 AND DUP6 MSTORE PUSH1 0x65 DUP5 MSTORE DUP3 DUP6 KECCAK256 DUP12 MLOAD DUP2 SLOAD SWAP1 DUP9 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT SWAP1 SWAP2 AND DUP2 OR DUP3 SSTORE SWAP5 DUP13 ADD MLOAD SWAP3 DUP2 ADD SWAP3 SWAP1 SWAP3 SSTORE DUP3 DUP12 ADD MLOAD SWAP1 DUP3 ADD DUP1 SLOAD PUSH1 0x60 DUP14 ADD MLOAD PUSH1 0x80 DUP15 ADD MLOAD ISZERO ISZERO PUSH1 0x1 PUSH1 0xA8 SHL MUL PUSH1 0xFF PUSH1 0xA8 SHL NOT SWAP2 ISZERO ISZERO PUSH1 0x1 PUSH1 0xA0 SHL MUL PUSH1 0x1 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT SWAP1 SWAP4 AND SWAP5 SWAP1 SWAP10 AND SWAP4 DUP5 OR SWAP2 SWAP1 SWAP2 OR AND SWAP7 SWAP1 SWAP7 OR SWAP1 SWAP6 SSTORE PUSH1 0xA0 DUP11 ADD MLOAD PUSH1 0x3 SWAP1 SWAP2 ADD DUP2 SWAP1 SSTORE SWAP1 MLOAD SWAP5 SWAP6 POP SWAP4 SWAP1 SWAP2 PUSH32 0x3CC8D9CB9370A23A8B9FFA75EFA24CECB65C4693980E58260841ADC474983C5F SWAP2 LOG4 POP POP POP POP JUMP JUMPDEST PUSH2 0xBCF PUSH2 0xE4E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0xC34 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH2 0x880 DUP2 PUSH2 0x1050 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0xCE0 JUMPI DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x6F307DC3 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xCB7 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xCDB SWAP2 SWAP1 PUSH2 0x1919 JUMP JUMPDEST PUSH2 0xD02 JUMP JUMPDEST PUSH32 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x65 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP2 SWAP3 POP AND PUSH2 0xD5E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x185CDCD95D081B9BDD08195E1A5CDD PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 PUSH2 0xDC4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1B PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x54574150207072696365206D75737420626520706F7369746976650000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xE02 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xE26 SWAP2 SWAP1 PUSH2 0x1936 JUMP JUMPDEST PUSH2 0xE31 SWAP1 PUSH1 0x12 PUSH2 0x1A4C JUMP JUMPDEST PUSH2 0xE3C SWAP1 PUSH1 0xA PUSH2 0x1A3D JUMP JUMPDEST PUSH2 0xE46 SWAP1 DUP3 PUSH2 0x1A6F JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x33 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x44D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0xEB5 PUSH2 0x132F JUMP JUMPDEST SWAP1 POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x5909C0D5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xEF5 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xF19 SWAP2 SWAP1 PUSH2 0x1A8E JUMP JUMPDEST SWAP3 POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x5A3D5493 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xF59 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xF7D SWAP2 SWAP1 PUSH2 0x1A8E JUMP JUMPDEST SWAP2 POP PUSH1 0x0 DUP1 PUSH1 0x0 DUP7 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x902F1AC PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x60 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xFC2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xFE6 SWAP2 SWAP1 PUSH2 0x1ABE JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP4 PUSH4 0xFFFFFFFF AND DUP2 PUSH4 0xFFFFFFFF AND EQ PUSH2 0x1046 JUMPI DUP1 DUP5 SUB PUSH4 0xFFFFFFFF DUP2 AND PUSH2 0x1013 DUP5 DUP7 PUSH2 0x1345 JUMP JUMPDEST MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND MUL SWAP7 SWAP1 SWAP7 ADD SWAP6 PUSH4 0xFFFFFFFF DUP2 AND PUSH2 0x1034 DUP6 DUP6 PUSH2 0x1345 JUMP JUMPDEST MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND MUL SWAP6 SWAP1 SWAP6 ADD SWAP5 POP JUMPDEST POP POP POP SWAP2 SWAP4 SWAP1 SWAP3 POP JUMP JUMPDEST PUSH1 0x33 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP4 AND DUP2 OR SWAP1 SWAP4 SSTORE PUSH1 0x40 MLOAD SWAP2 AND SWAP2 SWAP1 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x10B1 DUP6 PUSH2 0x13F7 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP1 TIMESTAMP GT PUSH2 0x1106 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F77206D75737420636F6D65206166746572206265666F7265000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1112 DUP3 TIMESTAMP PUSH2 0x1B0E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 DUP4 DUP7 DUP9 PUSH2 0x112E SWAP2 SWAP1 PUSH2 0x1B0E JUMP JUMPDEST PUSH2 0x1138 SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND SWAP1 MSTORE SWAP1 POP PUSH1 0x0 PUSH2 0x1150 DUP3 PUSH2 0x1666 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP9 PUSH1 0x60 ADD MLOAD PUSH2 0x116B JUMPI PUSH8 0xDE0B6B3A7640000 PUSH2 0x1175 JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 JUMPDEST SWAP1 POP PUSH1 0x0 DUP2 DUP11 PUSH1 0x20 ADD MLOAD DUP5 PUSH2 0x118A SWAP2 SWAP1 PUSH2 0x1A6F JUMP JUMPDEST PUSH2 0x1194 SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST SWAP1 POP DUP10 PUSH1 0x60 ADD MLOAD ISZERO PUSH2 0x1241 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH32 0x0 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD SWAP1 DUP2 SWAP1 SUB PUSH2 0x1220 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x189B98881C1C9A58D9481A5CC81A5B9D985B1A59 PUSH1 0x62 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 PUSH2 0x1233 DUP3 DUP5 PUSH2 0x1A6F JUMP JUMPDEST PUSH2 0x123D SWAP2 SWAP1 PUSH2 0x1B3B JUMP JUMPDEST SWAP2 POP POP JUMPDEST DUP1 PUSH1 0x0 SUB PUSH2 0x128A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x747761702070726963652063616E6E6F74206265203 PUSH1 0x54 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST DUP10 MLOAD PUSH1 0x40 DUP1 MLOAD DUP4 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP10 SWAP1 MSTORE TIMESTAMP DUP2 DUP4 ADD MSTORE SWAP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND SWAP2 PUSH32 0x7D881580FB2BB7844E8ECF8DF26510247C4BBEA2735D40BF0D9AC33C0D9ACD81 SWAP2 DUP2 SWAP1 SUB PUSH1 0x60 ADD SWAP1 LOG2 SWAP9 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x66 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP10 SWAP1 SSTORE POP SWAP7 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND PUSH2 0x1327 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3BF SWAP1 PUSH2 0x1B4F JUMP JUMPDEST PUSH2 0x44D PUSH2 0x1686 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1340 PUSH5 0x100000000 TIMESTAMP PUSH2 0x1B9A JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE PUSH1 0x0 DUP2 MSTORE PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB AND GT PUSH2 0x13AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4669786564506F696E743A204449565F42595F5A45524F000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x3BF JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE DUP1 PUSH2 0x13E3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB DUP6 AND PUSH14 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x70 SHL PUSH1 0x70 DUP9 SWAP1 SHL AND PUSH2 0x1BAE JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND SWAP1 MSTORE SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x1406 DUP6 PUSH2 0x40C JUMP JUMPDEST PUSH1 0xA0 DUP7 ADD MLOAD SWAP1 SWAP2 POP TIMESTAMP SWAP1 PUSH1 0x0 SWAP1 PUSH2 0x141D SWAP1 DUP4 PUSH2 0x1B0E JUMP JUMPDEST DUP8 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP1 SLOAD DUP3 MLOAD DUP2 DUP6 MUL DUP2 ADD DUP6 ADD SWAP1 SWAP4 MSTORE DUP1 DUP4 MSTORE SWAP5 SWAP6 POP SWAP3 SWAP4 SWAP1 SWAP3 SWAP2 DUP5 SWAP1 DUP5 ADD JUMPDEST DUP3 DUP3 LT ISZERO PUSH2 0x149D JUMPI DUP4 DUP3 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH1 0x0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD SLOAD DUP2 MSTORE POP POP DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1457 JUMP JUMPDEST POP POP DUP3 MLOAD DUP12 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x68 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP4 SWAP5 POP SWAP3 SWAP2 POP POP JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x15B9 JUMPI DUP4 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x14DE JUMPI PUSH2 0x14DE PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x0 ADD MLOAD LT ISZERO DUP1 PUSH2 0x1500 JUMPI POP PUSH2 0x14FD PUSH1 0x1 DUP4 PUSH2 0x1B0E JUMP JUMPDEST DUP2 EQ JUMPDEST ISZERO PUSH2 0x1568 JUMPI DUP3 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x1517 JUMPI PUSH2 0x1517 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x20 ADD MLOAD SWAP8 POP DUP3 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x1537 JUMPI PUSH2 0x1537 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD DUP2 ADD MLOAD MLOAD DUP12 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x68 SWAP1 SWAP3 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP3 SWAP1 SSTORE SWAP7 POP PUSH2 0x15B9 JUMP JUMPDEST DUP10 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD DUP3 SWAP1 DUP2 LT PUSH2 0x1593 JUMPI PUSH2 0x1593 PUSH2 0x18D4 JUMP JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP2 DUP2 SSTORE PUSH1 0x1 ADD SSTORE PUSH2 0x15B2 DUP2 PUSH2 0x1900 JUMP JUMPDEST SWAP1 POP PUSH2 0x14C3 JUMP JUMPDEST POP DUP9 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x67 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP2 MLOAD DUP1 DUP4 ADD DUP4 MSTORE DUP10 DUP2 MSTORE DUP1 DUP5 ADD DUP12 DUP2 MSTORE DUP3 SLOAD PUSH1 0x1 DUP1 DUP3 ADD DUP6 SSTORE SWAP4 DUP8 MSTORE SWAP6 DUP6 SWAP1 KECCAK256 SWAP2 MLOAD PUSH1 0x2 SWAP1 SWAP7 MUL SWAP1 SWAP2 ADD SWAP5 DUP6 SSTORE MLOAD SWAP4 ADD SWAP3 SWAP1 SWAP3 SSTORE DUP12 MLOAD DUP3 MLOAD DUP11 DUP2 MSTORE SWAP2 DUP3 ADD DUP12 SWAP1 MSTORE TIMESTAMP SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x60 DUP2 ADD DUP9 SWAP1 MSTORE SWAP2 AND SWAP1 PUSH32 0x87208A84EC7402C933C70C261E53B733A9F1C893D73E941A152435D58177A264 SWAP1 PUSH1 0x80 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP SWAP3 SWAP6 POP POP POP POP SWAP2 SWAP4 SWAP1 SWAP3 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH2 0x13F1 SWAP1 PUSH7 0x12725DD1D243AB SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND PUSH2 0x1B3B JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND PUSH2 0x16AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3BF SWAP1 PUSH2 0x1B4F JUMP JUMPDEST PUSH2 0x44D CALLER PUSH2 0x1050 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x880 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x16DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x16E9 DUP2 PUSH2 0x16B6 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1709 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x76B DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x1753 JUMPI PUSH2 0x1753 PUSH2 0x1714 JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 CALLDATALOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x176B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xC0 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1782 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0xC0 DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x17A5 JUMPI PUSH2 0x17A5 PUSH2 0x1714 JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP1 POP DUP1 DUP3 CALLDATALOAD PUSH2 0x17B6 DUP2 PUSH2 0x16B6 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 DUP4 DUP2 ADD CALLDATALOAD SWAP1 DUP3 ADD MSTORE PUSH1 0x40 DUP4 ADD CALLDATALOAD PUSH2 0x17D0 DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MSTORE PUSH2 0x17E1 PUSH1 0x60 DUP5 ADD PUSH2 0x175B JUMP JUMPDEST PUSH1 0x60 DUP3 ADD MSTORE PUSH2 0x17F2 PUSH1 0x80 DUP5 ADD PUSH2 0x175B JUMP JUMPDEST PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP4 ADD CALLDATALOAD PUSH1 0xA0 DUP3 ADD MSTORE POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x181B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x1833 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 DUP6 ADD SWAP2 POP DUP6 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x1847 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD DUP2 DUP2 GT ISZERO PUSH2 0x1859 JUMPI PUSH2 0x1859 PUSH2 0x1714 JUMP JUMPDEST PUSH2 0x1867 DUP5 DUP3 PUSH1 0x5 SHL ADD PUSH2 0x172A JUMP JUMPDEST DUP2 DUP2 MSTORE DUP5 DUP2 ADD SWAP3 POP PUSH1 0xC0 SWAP2 DUP3 MUL DUP5 ADD DUP6 ADD SWAP2 DUP9 DUP4 GT ISZERO PUSH2 0x1886 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 DUP6 ADD SWAP4 JUMPDEST DUP3 DUP6 LT ISZERO PUSH2 0x18AC JUMPI PUSH2 0x189D DUP10 DUP7 PUSH2 0x1770 JUMP JUMPDEST DUP5 MSTORE SWAP4 DUP5 ADD SWAP4 SWAP3 DUP6 ADD SWAP3 PUSH2 0x188B JUMP JUMPDEST POP SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xC0 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x18CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x76B DUP4 DUP4 PUSH2 0x1770 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 ADD PUSH2 0x1912 JUMPI PUSH2 0x1912 PUSH2 0x18EA JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x192B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x76B DUP2 PUSH2 0x16B6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1948 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x76B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 DUP2 DUP2 JUMPDEST DUP1 DUP6 GT ISZERO PUSH2 0x1994 JUMPI DUP2 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH2 0x197A JUMPI PUSH2 0x197A PUSH2 0x18EA JUMP JUMPDEST DUP1 DUP6 AND ISZERO PUSH2 0x1987 JUMPI SWAP2 DUP2 MUL SWAP2 JUMPDEST SWAP4 DUP5 SHR SWAP4 SWAP1 DUP1 MUL SWAP1 PUSH2 0x195E JUMP JUMPDEST POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x19AB JUMPI POP PUSH1 0x1 PUSH2 0x13F1 JUMP JUMPDEST DUP2 PUSH2 0x19B8 JUMPI POP PUSH1 0x0 PUSH2 0x13F1 JUMP JUMPDEST DUP2 PUSH1 0x1 DUP2 EQ PUSH2 0x19CE JUMPI PUSH1 0x2 DUP2 EQ PUSH2 0x19D8 JUMPI PUSH2 0x19F4 JUMP JUMPDEST PUSH1 0x1 SWAP2 POP POP PUSH2 0x13F1 JUMP JUMPDEST PUSH1 0xFF DUP5 GT ISZERO PUSH2 0x19E9 JUMPI PUSH2 0x19E9 PUSH2 0x18EA JUMP JUMPDEST POP POP PUSH1 0x1 DUP3 SHL PUSH2 0x13F1 JUMP JUMPDEST POP PUSH1 0x20 DUP4 LT PUSH2 0x133 DUP4 LT AND PUSH1 0x4E DUP5 LT PUSH1 0xB DUP5 LT AND OR ISZERO PUSH2 0x1A17 JUMPI POP DUP2 DUP2 EXP PUSH2 0x13F1 JUMP JUMPDEST PUSH2 0x1A21 DUP4 DUP4 PUSH2 0x1959 JUMP JUMPDEST DUP1 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH2 0x1A35 JUMPI PUSH2 0x1A35 PUSH2 0x18EA JUMP JUMPDEST MUL SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x76B PUSH1 0xFF DUP5 AND DUP4 PUSH2 0x199C JUMP JUMPDEST PUSH1 0x0 PUSH1 0xFF DUP3 AND PUSH1 0xFF DUP5 AND DUP1 DUP3 LT ISZERO PUSH2 0x1A66 JUMPI PUSH2 0x1A66 PUSH2 0x18EA JUMP JUMPDEST SWAP1 SUB SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 NOT DIV DUP4 GT DUP3 ISZERO ISZERO AND ISZERO PUSH2 0x1A89 JUMPI PUSH2 0x1A89 PUSH2 0x18EA JUMP JUMPDEST POP MUL SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1AA0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x70 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x176B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1AD3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1ADC DUP5 PUSH2 0x1AA7 JUMP JUMPDEST SWAP3 POP PUSH2 0x1AEA PUSH1 0x20 DUP6 ADD PUSH2 0x1AA7 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD MLOAD PUSH4 0xFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1B03 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0x1B20 JUMPI PUSH2 0x1B20 PUSH2 0x18EA JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1B4A JUMPI PUSH2 0x1B4A PUSH2 0x1B25 JUMP JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x2B SWAP1 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E7472616374206973206E6F742069 PUSH1 0x40 DUP3 ADD MSTORE PUSH11 0x6E697469616C697A696E67 PUSH1 0xA8 SHL PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1BA9 JUMPI PUSH2 0x1BA9 PUSH2 0x1B25 JUMP JUMPDEST POP MOD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB DUP4 DUP2 AND DUP1 PUSH2 0x1BC8 JUMPI PUSH2 0x1BC8 PUSH2 0x1B25 JUMP JUMPDEST SWAP3 AND SWAP2 SWAP1 SWAP2 DIV SWAP3 SWAP2 POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD4 PUSH20 0xCCF039D726E926C9EC0A0F47F4B2CAC35CAB1698 PUSH19 0x60819EC49B6E10970064736F6C634300080D00 CALLER ","sourceMap":"1018:11687:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1896:53;;;;;;:::i;:::-;;:::i;:::-;;;;644:25:10;;;700:2;685:18;;678:34;;;;617:18;1896:53:9;;;;;;;;1640:51;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1640:51:9;;;;;;;;;;-1:-1:-1;;;1640:51:9;;;;;-1:-1:-1;;;1640:51:9;;;;;;;;;;;-1:-1:-1;;;;;1306:15:10;;;1288:34;;1353:2;1338:18;;1331:34;;;;1401:15;;;;1381:18;;;1374:43;;;;1460:14;1453:22;1448:2;1433:18;;1426:50;1520:14;1513:22;1507:3;1492:19;;1485:51;1268:3;1552:19;;1545:35;;;;1237:3;1222:19;1640:51:9;975:611:10;3478:291:9;;;;;;:::i;:::-;;:::i;:::-;;7577:325;;;;;;:::i;:::-;;:::i;:::-;;;4471:25:10;;;4459:2;4444:18;7577:325:9;4325:177:10;2066:46:9;;;;;;:::i;:::-;;;;;;;;;;;;;;1336:29;;;;;;;;-1:-1:-1;;;;;4671:32:10;;;4653:51;;4641:2;4626:18;1336:29:9;4507:203:10;1511:43:9;;1550:4;1511:43;;2071:101:0;;;:::i;6700:685:9:-;;;;;;:::i;:::-;;:::i;4830:74::-;;;:::i;1441:85:0:-;1513:6;;-1:-1:-1;;;;;1513:6:0;1441:85;;1205:29:9;;;;;5630:793;;;;;;:::i;:::-;;:::i;1736:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2321:198:0;;;;;;:::i;:::-;;:::i;4100:623:9:-;;;;;;:::i;:::-;;:::i;1896:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1896:53:9;-1:-1:-1;1896:53:9;:::o;3478:291::-;1334:13:0;:11;:13::i;:::-;3587:1:9::1;3570:7;:14;:18;3562:48;;;::::0;-1:-1:-1;;;3562:48:9;;4917:2:10;3562:48:9::1;::::0;::::1;4899:21:10::0;4956:2;4936:18;;;4929:30;-1:-1:-1;;;4975:18:10;;;4968:47;5032:18;;3562:48:9::1;;;;;;;;;3646:14:::0;;3620:23:::1;3670:93;3690:15;3686:1;:19;3670:93;;;3726:26;3741:7;3749:1;3741:10;;;;;;;;:::i;:::-;;;;;;;3726:14;:26::i;:::-;3707:3;::::0;::::1;:::i;:::-;;;3670:93;;;;3552:217;3478:291:::0;:::o;7577:325::-;7657:7;7677:14;7693;7713:64;7758:6;:18;;;7713:44;:64::i;:::-;7676:101;;;;;7791:6;:21;;;7787:109;;;7835:6;7577:325;-1:-1:-1;;;7577:325:9:o;7787:109::-;-1:-1:-1;7879:6:9;7577:325;-1:-1:-1;;7577:325:9:o;2071:101:0:-;1334:13;:11;:13::i;:::-;2135:30:::1;2162:1;2135:18;:30::i;:::-;2071:101::o:0;6700:685:9:-;6752:7;6859:13;6894:4;-1:-1:-1;;;;;6875:23:9;6883:6;-1:-1:-1;;;;;6875:23:9;;:69;;6924:6;-1:-1:-1;;;;;6908:34:9;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6875:69;;;6901:4;6875:69;-1:-1:-1;;;;;6962:19:9;;;6999:1;6962:19;;;:12;:19;;;;;:25;6859:85;;-1:-1:-1;6962:25:9;6954:67;;;;-1:-1:-1;;;6954:67:9;;5923:2:10;6954:67:9;;;5905:21:10;5962:2;5942:18;;;5935:30;-1:-1:-1;;;5981:18:10;;;5974:45;6036:18;;6954:67:9;5721:339:10;6954:67:9;7139:4;-1:-1:-1;;;;;7130:13:9;:5;-1:-1:-1;;;;;7130:13:9;;;:47;;;;-1:-1:-1;;;;;;7147:19:9;;;;;;:12;:19;;;;;:30;;;-1:-1:-1;;;7147:30:9;;;;7130:47;7126:196;;;-1:-1:-1;;;;;7214:4:9;7201:18;;7237:1;7201:18;;;:12;:18;;;;;:24;;7193:65;;;;-1:-1:-1;;;7193:65:9;;6267:2:10;7193:65:9;;;6249:21:10;6306:2;6286:18;;;6279:30;-1:-1:-1;;;6325:18:10;;;6318:44;6379:18;;7193:65:9;6065:338:10;7193:65:9;-1:-1:-1;;;;;7305:4:9;7292:18;;;;;;:12;:18;;;;;;;;;7272:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7272:39:9;;;;;;;;;;-1:-1:-1;;;7272:39:9;;;;;;;;;;;;;;;;;;;;;:19;:39::i;:::-;;7126:196;-1:-1:-1;;;;;7358:19:9;;;;;;;:12;:19;;;;;;;;;7338:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7338:40:9;;;;;;;;;;-1:-1:-1;;;7338:40:9;;;;;;;;;;;;;;;;;;;;;:19;:40::i;:::-;7331:47;6700:685;-1:-1:-1;;;6700:685:9:o;4830:74::-;3268:19:1;3291:13;;;;;;3290:14;;3336:34;;;;-1:-1:-1;3354:12:1;;3369:1;3354:12;;;;:16;3336:34;3335:108;;;-1:-1:-1;3415:4:1;1476:19:2;:23;;;3376:66:1;;-1:-1:-1;3425:12:1;;;;;:17;3376:66;3314:201;;;;-1:-1:-1;;;3314:201:1;;6610:2:10;3314:201:1;;;6592:21:10;6649:2;6629:18;;;6622:30;6688:34;6668:18;;;6661:62;-1:-1:-1;;;6739:18:10;;;6732:44;6793:19;;3314:201:1;6408:410:10;3314:201:1;3525:12;:16;;-1:-1:-1;;3525:16:1;3540:1;3525:16;;;3551:65;;;;3585:13;:20;;-1:-1:-1;;3585:20:1;;;;;3551:65;4881:16:9::1;:14;:16::i;:::-;3640:14:1::0;3636:99;;;3686:5;3670:21;;-1:-1:-1;;3670:21:1;;;3710:14;;-1:-1:-1;6975:36:10;;3710:14:1;;6963:2:10;6948:18;3710:14:1;;;;;;;3636:99;3258:483;4830:74:9:o;5630:793::-;1334:13:0;:11;:13::i;:::-;5727:12:9;;-1:-1:-1;;;;;2761:21:9;::::1;2753:55;;;::::0;-1:-1:-1;;;2753:55:9;;7224:2:10;2753:55:9::1;::::0;::::1;7206:21:10::0;7263:2;7243:18;;;7236:30;-1:-1:-1;;;7282:18:10;;;7275:51;7343:18;;2753:55:9::1;7022:345:10::0;2753:55:9::1;5756:18:::2;::::0;::::2;::::0;-1:-1:-1;;;;;2761:21:9;::::2;2753:55;;;::::0;-1:-1:-1;;;2753:55:9;;7224:2:10;2753:55:9::2;::::0;::::2;7206:21:10::0;7263:2;7243:18;;;7236:30;-1:-1:-1;;;7282:18:10;;;7275:51;7343:18;;2753:55:9::2;7022:345:10::0;2753:55:9::2;5816:1:::3;5794:6;:19;;;:23;5786:66;;;::::0;-1:-1:-1;;;5786:66:9;;7574:2:10;5786:66:9::3;::::0;::::3;7556:21:10::0;7613:2;7593:18;;;7586:30;7652:32;7632:18;;;7625:60;7702:18;;5786:66:9::3;7372:354:10::0;5786:66:9::3;5888:1;5870:6;:15;;;:19;5862:58;;;::::0;-1:-1:-1;;;5862:58:9;;7933:2:10;5862:58:9::3;::::0;::::3;7915:21:10::0;7972:2;7952:18;;;7945:30;8011:28;7991:18;;;7984:56;8057:18;;5862:58:9::3;7731:350:10::0;5862:58:9::3;5991:6;:12;;;-1:-1:-1::0;;;;;5976:37:9::3;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5970:45;::::0;:2:::3;:45;:::i;:::-;5951:6;:15;;;:64;5930:160;;;::::0;-1:-1:-1;;;5930:160:9;;9949:2:10;5930:160:9::3;::::0;::::3;9931:21:10::0;9988:2;9968:18;;;9961:30;10027:34;10007:18;;;10000:62;-1:-1:-1;;;10078:18:10;;;10071:47;10135:19;;5930:160:9::3;9747:413:10::0;5930:160:9::3;6101:23;6127:30;6150:6;6127:22;:30::i;:::-;6220:12:::0;;-1:-1:-1;;;;;6207:26:9;;::::3;;::::0;;;:12:::3;:26;::::0;;;;;;;6239:45;;;;::::3;::::0;;6251:15:::3;6239:45:::0;;;;::::3;::::0;;;6207:78;;::::3;::::0;;::::3;::::0;;;;;;;;;;::::3;::::0;;::::3;::::0;;::::3;::::0;;;;;;;::::3;::::0;;;;6308:12;;6295:26;::::3;::::0;;:12:::3;:26:::0;;;;;:35;;;;;;::::3;-1:-1:-1::0;;;;;;6295:35:9;;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;::::3;::::0;;;;;;::::3;::::0;;;::::3;::::0;;::::3;::::0;::::3;::::0;::::3;::::0;::::3;::::0;::::3;;-1:-1:-1::0;;;6295:35:9::3;-1:-1:-1::0;;;;6295:35:9;::::3;;-1:-1:-1::0;;;6295:35:9::3;-1:-1:-1::0;;;;;;6295:35:9;;;;;;::::3;::::0;;;;;;::::3;;::::0;;;::::3;::::0;;;::::3;::::0;::::3;::::0;::::3;::::0;;::::3;::::0;;;6345:71;;6101:56;;-1:-1:-1;6295:35:9;;;6345:71:::3;::::0;::::3;5776:647;2818:1:::2;1357::0::1;5630:793:9::0;:::o;2321:198:0:-;1334:13;:11;:13::i;:::-;-1:-1:-1;;;;;2409:22:0;::::1;2401:73;;;::::0;-1:-1:-1;;;2401:73:0;;10367:2:10;2401:73:0::1;::::0;::::1;10349:21:10::0;10406:2;10386:18;;;10379:30;10445:34;10425:18;;;10418:62;-1:-1:-1;;;10496:18:10;;;10489:36;10542:19;;2401:73:0::1;10165:402:10::0;2401:73:0::1;2484:28;2503:8;2484:18;:28::i;4100:623:9:-:0;4176:7;4283:13;4318:4;-1:-1:-1;;;;;4299:23:9;4307:6;-1:-1:-1;;;;;4299:23:9;;:69;;4348:6;-1:-1:-1;;;;;4332:34:9;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4299:69;;;4325:4;4299:69;-1:-1:-1;;;;;4386:19:9;;;4423:1;4386:19;;;:12;:19;;;;;:25;4283:85;;-1:-1:-1;4386:25:9;4378:67;;;;-1:-1:-1;;;4378:67:9;;5923:2:10;4378:67:9;;;5905:21:10;5962:2;5942:18;;;5935:30;-1:-1:-1;;;5981:18:10;;;5974:45;6036:18;;4378:67:9;5721:339:10;4378:67:9;-1:-1:-1;;;;;4471:13:9;;4455;4471;;;:6;:13;;;;;;4601:9;4593:49;;;;-1:-1:-1;;;4593:49:9;;10774:2:10;4593:49:9;;;10756:21:10;10813:2;10793:18;;;10786:30;10852:29;10832:18;;;10825:57;10899:18;;4593:49:9;10572:351:10;4593:49:9;4696:5;-1:-1:-1;;;;;4681:30:9;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4676:37;;:2;:37;:::i;:::-;4669:45;;:2;:45;:::i;:::-;4660:55;;:5;:55;:::i;:::-;4652:64;4100:623;-1:-1:-1;;;;4100:623:9:o;1599:130:0:-;1513:6;;-1:-1:-1;;;;;1513:6:0;929:10:3;1662:23:0;1654:68;;;;-1:-1:-1;;;1654:68:0;;11503:2:10;1654:68:0;;;11485:21:10;;;11522:18;;;11515:30;11581:34;11561:18;;;11554:62;11633:18;;1654:68:0;11301:356:10;1817:1112:8;1901:24;1927;1953:21;2003:23;:21;:23::i;:::-;1986:40;;2068:4;-1:-1:-1;;;;;2055:39:8;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2036:60;;2138:4;-1:-1:-1;;;;;2125:39:8;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2106:60;;2278:16;2296;2314:25;2356:4;-1:-1:-1;;;;;2343:30:8;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2277:98;;;;;;2411:14;2389:36;;:18;:36;;;2385:538;;2541:35;;;2696:65;;;2704:39;2724:8;2734;2704:19;:39::i;:::-;:42;-1:-1:-1;;;;;2696:51:8;:65;2676:85;;;;;2833:65;;;2841:39;2861:8;2871;2841:19;:39::i;:::-;:42;-1:-1:-1;;;;;2833:51:8;:65;2813:85;;;;;-1:-1:-1;2385:538:8;1976:953;;;1817:1112;;;;;:::o;2673:187:0:-;2765:6;;;-1:-1:-1;;;;;2781:17:0;;;-1:-1:-1;;;;;;2781:17:0;;;;;;;2813:40;;2765:6;;;2781:17;2765:6;;2813:40;;2746:16;;2813:40;2736:124;2673:187;:::o;8546:1860:9:-;8628:7;8791:26;8819;8847:20;8871:24;8888:6;8871:16;:24::i;:::-;8790:105;;;;;;8997:12;8979:15;:30;8971:69;;;;-1:-1:-1;;;8971:69:9;;12701:2:10;8971:69:9;;;12683:21:10;12740:2;12720:18;;;12713:30;12779:28;12759:18;;;12752:56;12825:18;;8971:69:9;12499:350:10;8971:69:9;9050:19;9072:30;9090:12;9072:15;:30;:::i;:::-;9050:52;;9151:40;9194:108;;;;;;;;9280:11;9258:18;9237;:39;;;;:::i;:::-;9236:55;;;;:::i;:::-;-1:-1:-1;;;;;9194:108:9;;;9151:151;-1:-1:-1;9364:28:9;9395:30;9151:151;9395:28;:30::i;:::-;9364:61;;9607:27;9637:6;:17;;;:46;;1550:4;9637:46;;;1501:4;9637:46;9607:76;;9693:27;9766:19;9747:6;:15;;;9724:20;:38;;;;:::i;:::-;9723:62;;;;:::i;:::-;9693:92;;9870:6;:17;;;9866:221;;;-1:-1:-1;;;;;9929:4:9;9922:12;9903:16;9922:12;;;:6;:12;;;;;;;9956:13;;;9948:46;;;;-1:-1:-1;;;9948:46:9;;13443:2:10;9948:46:9;;;13425:21:10;13482:2;13462:18;;;13455:30;-1:-1:-1;;;13501:18:10;;;13494:50;13561:18;;9948:46:9;13241:344:10;9948:46:9;1501:4;10031:30;10053:8;10031:19;:30;:::i;:::-;10030:46;;;;:::i;:::-;10008:68;;9889:198;9866:221;10105:19;10128:1;10105:24;10097:59;;;;-1:-1:-1;;;10097:59:9;;13792:2:10;10097:59:9;;;13774:21:10;13831:2;13811:18;;;13804:30;-1:-1:-1;;;13850:18:10;;;13843:52;13912:18;;10097:59:9;13590:346:10;10097:59:9;10191:12;;10172:84;;;14143:25:10;;;14199:2;14184:18;;14177:34;;;10240:15:9;14227:18:10;;;14220:34;10172:84:9;;-1:-1:-1;;;;;10172:84:9;;;;;;;;;14131:2:10;10172:84:9;;;10327:12;;-1:-1:-1;;;;;10320:20:9;;;;;:6;:20;;;;;:42;;;-1:-1:-1;10343:19:9;;8546:1860;-1:-1:-1;;;;;;;8546:1860:9:o;1003:95:0:-;5363:13:1;;;;;;;5355:69;;;;-1:-1:-1;;;5355:69:1;;;;;;;:::i;:::-;1065:26:0::1;:24;:26::i;1593:121:8:-:0;1649:6;1681:25;1699:7;1681:15;:25;:::i;:::-;1667:40;;1593:121;:::o;629:236::-;-1:-1:-1;;;;;;;;;;;;760:1:8;746:11;-1:-1:-1;;;;;746:15:8;;738:51;;;;-1:-1:-1;;;738:51:8;;14996:2:10;738:51:8;;;14978:21:10;15035:2;15015:18;;;15008:30;15074:25;15054:18;;;15047:53;15117:18;;738:51:8;14794:347:10;738:51:8;806:52;;;;;;;;;;816:41;-1:-1:-1;;;;;816:41:8;;-1:-1:-1;;;839:3:8;817:25;;;;816:41;:::i;:::-;-1:-1:-1;;;;;806:52:8;;;799:59;-1:-1:-1;629:236:8;;;;;:::o;11079:1624:9:-;11164:7;11173:28;11203:32;11247:23;11273:30;11296:6;11273:22;:30::i;:::-;11415:19;;;;11247:56;;-1:-1:-1;11340:15:9;;11313:24;;11396:38;;11340:15;11396:38;:::i;:::-;11499:12;;-1:-1:-1;;;;;11486:26:9;11444:39;11486:26;;;:12;:26;;;;;;;;11444:68;;;;;;;;;;;;;;;;;11365:69;;-1:-1:-1;11444:39:9;;:68;;11486:26;11444:39;;:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;11558:25:9;;11650:12;;-1:-1:-1;;;;;11638:25:9;11523:32;11638:25;;;:11;:25;;;;;;11444:68;;-1:-1:-1;11558:25:9;11638;-1:-1:-1;;11593:734:9;11696:24;11677:16;:43;11593:734;;;11849:20;11799:18;11818:16;11799:36;;;;;;;;:::i;:::-;;;;;;;:46;;;:70;;11798:142;;;-1:-1:-1;11911:28:9;11938:1;11911:24;:28;:::i;:::-;11891:16;:48;11798:142;11777:540;;;11996:18;12015:16;11996:36;;;;;;;;:::i;:::-;;;;;;;:40;;;11973:63;;12081:18;12100:16;12081:36;;;;;;;;:::i;:::-;;;;;;;;;;;;:46;12157:12;;-1:-1:-1;;;;;12145:25:9;12081:46;12145:25;;;:11;:25;;;;;;;:44;;;12081:46;-1:-1:-1;12207:5:9;;11777:540;12271:12;;-1:-1:-1;;;;;12258:26:9;;;;;:12;:26;;;;;:44;;12285:16;;12258:44;;;;;;:::i;:::-;;;;;;;;;;;;;12251:51;;;;;;11734:18;;;:::i;:::-;;;11593:734;;;-1:-1:-1;12350:12:9;;-1:-1:-1;;;;;12337:26:9;;;;;;;:12;:26;;;;;;;;12369:46;;;;;;;;;;;;;;;;12337:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12462:12;;12431:183;;15583:25:10;;;15624:18;;;15617:34;;;12560:15:9;15667:18:10;;;15660:34;;;;15725:2;15710:18;;15703:34;;;12431:183:9;;;;;15570:3:10;15555:19;12431:183:9;;;;;;;-1:-1:-1;12632:15:9;;-1:-1:-1;;;;11079:1624:9;;;;;:::o;939:382:8:-;1287:7;;1010;;1279:35;;1298:16;;-1:-1:-1;;;;;1279:16:8;:35;:::i;1104:111:0:-;5363:13:1;;;;;;;5355:69;;;;-1:-1:-1;;;5355:69:1;;;;;;;:::i;:::-;1176:32:0::1;929:10:3::0;1176:18:0::1;:32::i;14:131:10:-:0;-1:-1:-1;;;;;89:31:10;;79:42;;69:70;;135:1;132;125:12;150:315;218:6;226;279:2;267:9;258:7;254:23;250:32;247:52;;;295:1;292;285:12;247:52;334:9;321:23;353:31;378:5;353:31;:::i;:::-;403:5;455:2;440:18;;;;427:32;;-1:-1:-1;;;150:315:10:o;723:247::-;782:6;835:2;823:9;814:7;810:23;806:32;803:52;;;851:1;848;841:12;803:52;890:9;877:23;909:31;934:5;909:31;:::i;1591:127::-;1652:10;1647:3;1643:20;1640:1;1633:31;1683:4;1680:1;1673:15;1707:4;1704:1;1697:15;1723:275;1794:2;1788:9;1859:2;1840:13;;-1:-1:-1;;1836:27:10;1824:40;;1894:18;1879:34;;1915:22;;;1876:62;1873:88;;;1941:18;;:::i;:::-;1977:2;1970:22;1723:275;;-1:-1:-1;1723:275:10:o;2003:160::-;2068:20;;2124:13;;2117:21;2107:32;;2097:60;;2153:1;2150;2143:12;2097:60;2003:160;;;:::o;2168:896::-;2226:5;2274:4;2262:9;2257:3;2253:19;2249:30;2246:50;;;2292:1;2289;2282:12;2246:50;2325:2;2319:9;2367:4;2359:6;2355:17;2438:6;2426:10;2423:22;2402:18;2390:10;2387:34;2384:62;2381:88;;;2449:18;;:::i;:::-;2485:2;2478:22;2518:6;-1:-1:-1;2518:6:10;2548:23;;2580:33;2548:23;2580:33;:::i;:::-;2622:23;;2706:2;2691:18;;;2678:32;2661:15;;;2654:57;2763:2;2748:18;;2735:32;2776:33;2735:32;2776:33;:::i;:::-;2837:2;2825:15;;2818:32;2883:35;2914:2;2899:18;;2883:35;:::i;:::-;2878:2;2870:6;2866:15;2859:60;2953:36;2984:3;2973:9;2969:19;2953:36;:::i;:::-;2947:3;2939:6;2935:16;2928:62;3052:3;3041:9;3037:19;3024:33;3018:3;3010:6;3006:16;2999:59;;2168:896;;;;:::o;3069:1011::-;3181:6;3212:2;3255;3243:9;3234:7;3230:23;3226:32;3223:52;;;3271:1;3268;3261:12;3223:52;3311:9;3298:23;3340:18;3381:2;3373:6;3370:14;3367:34;;;3397:1;3394;3387:12;3367:34;3435:6;3424:9;3420:22;3410:32;;3480:7;3473:4;3469:2;3465:13;3461:27;3451:55;;3502:1;3499;3492:12;3451:55;3538:2;3525:16;3560:2;3556;3553:10;3550:36;;;3566:18;;:::i;:::-;3606:36;3638:2;3633;3630:1;3626:10;3622:19;3606:36;:::i;:::-;3676:15;;;3707:12;;;;-1:-1:-1;3738:4:10;3777:11;;;3769:20;;3765:29;;;3806:19;;;3803:39;;;3838:1;3835;3828:12;3803:39;3862:11;;;;3882:168;3898:6;3893:3;3890:15;3882:168;;;3964:43;3999:7;3994:3;3964:43;:::i;:::-;3952:56;;3915:12;;;;4028;;;;3882:168;;;-1:-1:-1;4069:5:10;3069:1011;-1:-1:-1;;;;;;;3069:1011:10:o;4085:235::-;4172:6;4225:3;4213:9;4204:7;4200:23;4196:33;4193:53;;;4242:1;4239;4232:12;4193:53;4265:49;4306:7;4295:9;4265:49;:::i;5061:127::-;5122:10;5117:3;5113:20;5110:1;5103:31;5153:4;5150:1;5143:15;5177:4;5174:1;5167:15;5193:127;5254:10;5249:3;5245:20;5242:1;5235:31;5285:4;5282:1;5275:15;5309:4;5306:1;5299:15;5325:135;5364:3;5385:17;;;5382:43;;5405:18;;:::i;:::-;-1:-1:-1;5452:1:10;5441:13;;5325:135::o;5465:251::-;5535:6;5588:2;5576:9;5567:7;5563:23;5559:32;5556:52;;;5604:1;5601;5594:12;5556:52;5636:9;5630:16;5655:31;5680:5;5655:31;:::i;8086:273::-;8154:6;8207:2;8195:9;8186:7;8182:23;8178:32;8175:52;;;8223:1;8220;8213:12;8175:52;8255:9;8249:16;8305:4;8298:5;8294:16;8287:5;8284:27;8274:55;;8325:1;8322;8315:12;8364:422;8453:1;8496:5;8453:1;8510:270;8531:7;8521:8;8518:21;8510:270;;;8590:4;8586:1;8582:6;8578:17;8572:4;8569:27;8566:53;;;8599:18;;:::i;:::-;8649:7;8639:8;8635:22;8632:55;;;8669:16;;;;8632:55;8748:22;;;;8708:15;;;;8510:270;;;8514:3;8364:422;;;;;:::o;8791:806::-;8840:5;8870:8;8860:80;;-1:-1:-1;8911:1:10;8925:5;;8860:80;8959:4;8949:76;;-1:-1:-1;8996:1:10;9010:5;;8949:76;9041:4;9059:1;9054:59;;;;9127:1;9122:130;;;;9034:218;;9054:59;9084:1;9075:10;;9098:5;;;9122:130;9159:3;9149:8;9146:17;9143:43;;;9166:18;;:::i;:::-;-1:-1:-1;;9222:1:10;9208:16;;9237:5;;9034:218;;9336:2;9326:8;9323:16;9317:3;9311:4;9308:13;9304:36;9298:2;9288:8;9285:16;9280:2;9274:4;9271:12;9267:35;9264:77;9261:159;;;-1:-1:-1;9373:19:10;;;9405:5;;9261:159;9452:34;9477:8;9471:4;9452:34;:::i;:::-;9522:6;9518:1;9514:6;9510:19;9501:7;9498:32;9495:58;;;9533:18;;:::i;:::-;9571:20;;8791:806;-1:-1:-1;;;8791:806:10:o;9602:140::-;9660:5;9689:47;9730:4;9720:8;9716:19;9710:4;9689:47;:::i;10928:195::-;10966:4;11003;11000:1;10996:12;11035:4;11032:1;11028:12;11060:3;11055;11052:12;11049:38;;;11067:18;;:::i;:::-;11104:13;;;10928:195;-1:-1:-1;;;10928:195:10:o;11128:168::-;11168:7;11234:1;11230;11226:6;11222:14;11219:1;11216:21;11211:1;11204:9;11197:17;11193:45;11190:71;;;11241:18;;:::i;:::-;-1:-1:-1;11281:9:10;;11128:168::o;11662:184::-;11732:6;11785:2;11773:9;11764:7;11760:23;11756:32;11753:52;;;11801:1;11798;11791:12;11753:52;-1:-1:-1;11824:16:10;;11662:184;-1:-1:-1;11662:184:10:o;11851:188::-;11930:13;;-1:-1:-1;;;;;11972:42:10;;11962:53;;11952:81;;12029:1;12026;12019:12;12044:450;12131:6;12139;12147;12200:2;12188:9;12179:7;12175:23;12171:32;12168:52;;;12216:1;12213;12206:12;12168:52;12239:40;12269:9;12239:40;:::i;:::-;12229:50;;12298:49;12343:2;12332:9;12328:18;12298:49;:::i;:::-;12288:59;;12390:2;12379:9;12375:18;12369:25;12434:10;12427:5;12423:22;12416:5;12413:33;12403:61;;12460:1;12457;12450:12;12403:61;12483:5;12473:15;;;12044:450;;;;;:::o;12854:125::-;12894:4;12922:1;12919;12916:8;12913:34;;;12927:18;;:::i;:::-;-1:-1:-1;12964:9:10;;12854:125::o;12984:127::-;13045:10;13040:3;13036:20;13033:1;13026:31;13076:4;13073:1;13066:15;13100:4;13097:1;13090:15;13116:120;13156:1;13182;13172:35;;13187:18;;:::i;:::-;-1:-1:-1;13221:9:10;;13116:120::o;14265:407::-;14467:2;14449:21;;;14506:2;14486:18;;;14479:30;14545:34;14540:2;14525:18;;14518:62;-1:-1:-1;;;14611:2:10;14596:18;;14589:41;14662:3;14647:19;;14265:407::o;14677:112::-;14709:1;14735;14725:35;;14740:18;;:::i;:::-;-1:-1:-1;14774:9:10;;14677:112::o;15146:201::-;15186:1;-1:-1:-1;;;;;15251:10:10;;;;15270:37;;15287:18;;:::i;:::-;15325:10;;15321:20;;;;;15146:201;-1:-1:-1;;15146:201:10:o"},"gasEstimates":{"creation":{"codeDepositCost":"1435600","executionCost":"infinite","totalCost":"infinite"},"external":{"WBNB()":"infinite","bnbBaseUnit()":"217","busdBaseUnit()":"262","currentCumulativePrice((address,uint256,address,bool,bool,uint256))":"infinite","expScale()":"284","getUnderlyingPrice(address)":"infinite","initialize()":"infinite","observations(address,uint256)":"6908","owner()":"2398","prices(address)":"2579","renounceOwnership()":"infinite","setTokenConfig((address,uint256,address,bool,bool,uint256))":"infinite","setTokenConfigs((address,uint256,address,bool,bool,uint256)[])":"infinite","tokenConfigs(address)":"9139","transferOwnership(address)":"infinite","updateTwap(address)":"infinite","vBnb()":"infinite","windowStart(address)":"2536"},"internal":{"_updateTwapInternal(struct TokenConfig memory)":"infinite","pokeWindowValues(struct TokenConfig memory)":"infinite"}},"methodIdentifiers":{"WBNB()":"8dd95002","bnbBaseUnit()":"b8a8a626","busdBaseUnit()":"609f0f36","currentCumulativePrice((address,uint256,address,bool,bool,uint256))":"2b9d9dea","expScale()":"69aa3ac6","getUnderlyingPrice(address)":"fc57d4df","initialize()":"8129fc1c","observations(address,uint256)":"02459966","owner()":"8da5cb5b","prices(address)":"cfed246b","renounceOwnership()":"715018a6","setTokenConfig((address,uint256,address,bool,bool,uint256))":"cbf67919","setTokenConfigs((address,uint256,address,bool,bool,uint256)[])":"234a3446","tokenConfigs(address)":"1b69dc5f","transferOwnership(address)":"f2fde38b","updateTwap(address)":"725068a5","vBnb()":"5ba3792d","windowStart(address)":"3334ecc5"}},"metadata":"{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vBnbAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wBnbAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newTimestamp\",\"type\":\"uint256\"}],\"name\":\"AnchorPriceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pancakePool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"anchorPeriod\",\"type\":\"uint256\"}],\"name\":\"TokenConfigAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldAcc\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newAcc\",\"type\":\"uint256\"}],\"name\":\"TwapWindowUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WBNB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bnbBaseUnit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"busdBaseUnit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"baseUnit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pancakePool\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isBnbBased\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isReversedPool\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"anchorPeriod\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"currentCumulativePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"expScale\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"getUnderlyingPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acc\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"prices\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"baseUnit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pancakePool\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isBnbBased\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isReversedPool\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"anchorPeriod\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"setTokenConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"baseUnit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pancakePool\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isBnbBased\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isReversedPool\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"anchorPeriod\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenConfig[]\",\"name\":\"configs\",\"type\":\"tuple[]\"}],\"name\":\"setTokenConfigs\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenConfigs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"baseUnit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pancakePool\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isBnbBased\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isReversedPool\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"anchorPeriod\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vToken\",\"type\":\"address\"}],\"name\":\"updateTwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vBnb\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"windowStart\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"params\":{\"vBnbAddress\":\"The address of the VBNB\",\"wBnbAddress\":\"The address of the WBNB\"}},\"currentCumulativePrice((address,uint256,address,bool,bool,uint256))\":{\"returns\":{\"_0\":\"cumulative price of target token regardless of pair order\"}},\"getUnderlyingPrice(address)\":{\"custom:error\":\"Missing error is thrown if the token config does not existRange error is thrown if TWAP price is not greater than zero\",\"params\":{\"vToken\":\"vToken address\"},\"returns\":{\"_0\":\"price Underlying price in USD\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setTokenConfig((address,uint256,address,bool,bool,uint256))\":{\"custom:access\":\"Only Governance\",\"custom:error\":\"Range error is thrown if anchor period is not greater than zeroRange error is thrown if base unit is not greater than zeroValue error is thrown if base unit decimals is not the same as asset decimalsNotNullAddress error is thrown if address of asset is nullNotNullAddress error is thrown if PancakeSwap pool address is null\",\"custom:event\":\"Emits TokenConfigAdded event if new token config are added with asset address, PancakePool address, anchor period address\",\"params\":{\"config\":\"token config struct\"}},\"setTokenConfigs((address,uint256,address,bool,bool,uint256)[])\":{\"custom:error\":\"Zero length error thrown, if length of the config array is 0\",\"params\":{\"configs\":\"Config array\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"updateTwap(address)\":{\"custom:error\":\"Missing error is thrown if token config does not exist\",\"returns\":{\"_0\":\"anchorPrice anchor price of the underlying asset of the vToken\"}}},\"stateVariables\":{\"WBNB\":{\"custom:oz-upgrades-unsafe-allow\":\"state-variable-immutable\"},\"vBnb\":{\"custom:oz-upgrades-unsafe-allow\":\"state-variable-immutable\"}},\"version\":1},\"userdoc\":{\"events\":{\"AnchorPriceUpdated(address,uint256,uint256,uint256)\":{\"notice\":\"Emit this event when TWAP price is updated\"},\"TokenConfigAdded(address,address,uint256)\":{\"notice\":\"Emit this event when new token configs are added\"},\"TwapWindowUpdated(address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emit this event when TWAP window is updated\"}},\"kind\":\"user\",\"methods\":{\"WBNB()\":{\"notice\":\"WBNB address\"},\"bnbBaseUnit()\":{\"notice\":\"the base unit of WBNB and BUSD, which are the paired tokens for all assets\"},\"constructor\":{\"notice\":\"Constructor for the implementation contract. Sets immutable variables.\"},\"currentCumulativePrice((address,uint256,address,bool,bool,uint256))\":{\"notice\":\"Fetches the current token/WBNB and token/BUSD price accumulator from PancakeSwap.\"},\"getUnderlyingPrice(address)\":{\"notice\":\"Get the underlying TWAP price for the given vToken\"},\"initialize()\":{\"notice\":\"Initializes the owner of the contract and sets the contracts required\"},\"observations(address,uint256)\":{\"notice\":\"Keeps a record of token observations mapped by address, updated on every updateTwap invocation.\"},\"prices(address)\":{\"notice\":\"Stored price by token\"},\"setTokenConfig((address,uint256,address,bool,bool,uint256))\":{\"notice\":\"Adds a single token config\"},\"setTokenConfigs((address,uint256,address,bool,bool,uint256)[])\":{\"notice\":\"Adds multiple token configs at the same time\"},\"tokenConfigs(address)\":{\"notice\":\"Configs by token\"},\"updateTwap(address)\":{\"notice\":\"Updates the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\"},\"vBnb()\":{\"notice\":\"vBNB address\"},\"windowStart(address)\":{\"notice\":\"Observation array index which probably falls in current anchor period mapped by asset address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/oracles/TwapOracle.sol\":\"TwapOracle\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x247c62047745915c0af6b955470a72d1696ebad4352d7d3011aef1a2463cd888\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"contracts/interfaces/OracleInterface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface OracleInterface {\\n function getUnderlyingPrice(address vToken) external view returns (uint256);\\n}\\n\\ninterface ResilientOracleInterface is OracleInterface {\\n function updatePrice(address vToken) external;\\n}\\n\\ninterface TwapInterface is OracleInterface {\\n function updateTwap(address vToken) external returns (uint256);\\n}\\n\\ninterface BoundValidatorInterface {\\n function validatePriceWithAnchorPrice(\\n address vToken,\\n uint256 reporterPrice,\\n uint256 anchorPrice\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x8ac0bda5d5789c320bf219dc6691eef0e6617e9653bc0e24f407a44e4281edda\",\"license\":\"BSD-3-Clause\"},\"contracts/interfaces/VBep20Interface.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\n\\ninterface VBep20Interface is IERC20Metadata {\\n /**\\n * @notice Underlying asset for this VToken\\n */\\n function underlying() external view returns (address);\\n}\\n\",\"keccak256\":\"0x3f845cd51b2d82f7932ac6c0ab714df97f733b01ce50f6fb0adb4c28447d4618\",\"license\":\"BSD-3-Clause\"},\"contracts/libraries/PancakeLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\ninterface IPancakePair {\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n\\n function price0CumulativeLast() external view returns (uint256);\\n\\n function price1CumulativeLast() external view returns (uint256);\\n}\\n\\nlibrary FixedPoint {\\n // range: [0, 2**112 - 1]\\n // resolution: 1 / 2**112\\n struct uq112x112 {\\n uint224 _x;\\n }\\n\\n // returns a uq112x112 which represents the ratio of the numerator to the denominator\\n // equivalent to encode(numerator).div(denominator)\\n function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {\\n require(denominator > 0, \\\"FixedPoint: DIV_BY_ZERO\\\");\\n return uq112x112((uint224(numerator) << 112) / denominator);\\n }\\n\\n // decode a uq112x112 into a uint with 18 decimals of precision\\n function decode112with18(uq112x112 memory self) internal pure returns (uint256) {\\n // we only have 256 - 224 = 32 bits to spare, so scaling up by ~60 bits is dangerous\\n // instead, get close to:\\n // (x * 1e18) >> 112\\n // without risk of overflowing, e.g.:\\n // (x) / 2 ** (112 - lg(1e18))\\n return uint256(self._x) / 5192296858534827;\\n }\\n}\\n\\n// library with helper methods for oracles that are concerned with computing average prices\\nlibrary PancakeOracleLibrary {\\n using FixedPoint for *;\\n\\n // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]\\n function currentBlockTimestamp() internal view returns (uint32) {\\n return uint32(block.timestamp % 2 ** 32);\\n }\\n\\n // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.\\n function currentCumulativePrices(\\n address pair\\n ) internal view returns (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) {\\n blockTimestamp = currentBlockTimestamp();\\n price0Cumulative = IPancakePair(pair).price0CumulativeLast();\\n price1Cumulative = IPancakePair(pair).price1CumulativeLast();\\n\\n // if time has elapsed since the last update on the pair, mock the accumulated price values\\n (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(pair).getReserves();\\n if (blockTimestampLast != blockTimestamp) {\\n unchecked {\\n // subtraction overflow is desired\\n uint32 timeElapsed = blockTimestamp - blockTimestampLast;\\n // addition overflow is desired\\n // counterfactual\\n price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;\\n // counterfactual\\n price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2c8179ebad223998514d6f25ebd90f80ecb294b562d9fbc4a42bf6710486c25b\",\"license\":\"BSD-3-Clause\"},\"contracts/oracles/TwapOracle.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.13;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\nimport \\\"../libraries/PancakeLibrary.sol\\\";\\nimport \\\"../interfaces/OracleInterface.sol\\\";\\nimport \\\"../interfaces/VBep20Interface.sol\\\";\\n\\nstruct Observation {\\n uint256 timestamp;\\n uint256 acc;\\n}\\n\\nstruct TokenConfig {\\n /// @notice Asset address, which can't be zero address and can be used for existance check\\n address asset;\\n /// @notice Decimals of underlying asset\\n uint256 baseUnit;\\n /// @notice The address of Pancake pair\\n address pancakePool;\\n /// @notice Whether the token is paired with WBNB\\n bool isBnbBased;\\n /// @notice A flag identifies whether the Pancake pair is reversed\\n /// e.g. XVS-WBNB is not reversed, while WBNB-XVS is.\\n bool isReversedPool;\\n /// @notice The minimum window in seconds required between TWAP updates\\n uint256 anchorPeriod;\\n}\\n\\ncontract TwapOracle is OwnableUpgradeable, TwapInterface {\\n using FixedPoint for *;\\n\\n /// @notice WBNB address\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address public immutable WBNB;\\n\\n /// @notice vBNB address\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address public immutable vBnb;\\n\\n /// @notice the base unit of WBNB and BUSD, which are the paired tokens for all assets\\n uint256 public constant bnbBaseUnit = 1e18;\\n uint256 public constant busdBaseUnit = 1e18;\\n\\n uint256 public constant expScale = 1e18;\\n\\n /// @notice Configs by token\\n mapping(address => TokenConfig) public tokenConfigs;\\n\\n /// @notice Stored price by token\\n mapping(address => uint256) public prices;\\n\\n /// @notice Keeps a record of token observations mapped by address, updated on every updateTwap invocation.\\n mapping(address => Observation[]) public observations;\\n\\n /// @notice Observation array index which probably falls in current anchor period mapped by asset address\\n mapping(address => uint256) public windowStart;\\n\\n /// @notice Emit this event when TWAP window is updated\\n event TwapWindowUpdated(\\n address indexed asset,\\n uint256 oldTimestamp,\\n uint256 oldAcc,\\n uint256 newTimestamp,\\n uint256 newAcc\\n );\\n\\n /// @notice Emit this event when TWAP price is updated\\n event AnchorPriceUpdated(address indexed asset, uint256 price, uint256 oldTimestamp, uint256 newTimestamp);\\n\\n /// @notice Emit this event when new token configs are added\\n event TokenConfigAdded(address indexed asset, address indexed pancakePool, uint256 indexed anchorPeriod);\\n\\n modifier notNullAddress(address someone) {\\n require(someone != address(0), \\\"can't be zero address\\\");\\n _;\\n }\\n\\n /// @notice Constructor for the implementation contract. Sets immutable variables.\\n /// @param vBnbAddress The address of the VBNB\\n /// @param wBnbAddress The address of the WBNB\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor(address vBnbAddress, address wBnbAddress) notNullAddress(vBnbAddress) notNullAddress(wBnbAddress) {\\n vBnb = vBnbAddress;\\n WBNB = wBnbAddress;\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Adds multiple token configs at the same time\\n * @param configs Config array\\n * @custom:error Zero length error thrown, if length of the config array is 0\\n */\\n function setTokenConfigs(TokenConfig[] memory configs) external onlyOwner {\\n require(configs.length > 0, \\\"length can't be 0\\\");\\n uint256 numTokenConfigs = configs.length;\\n for (uint256 i; i < numTokenConfigs; ++i) {\\n setTokenConfig(configs[i]);\\n }\\n }\\n\\n /**\\n * @notice Get the underlying TWAP price for the given vToken\\n * @param vToken vToken address\\n * @return price Underlying price in USD\\n * @custom:error Missing error is thrown if the token config does not exist\\n * @custom:error Range error is thrown if TWAP price is not greater than zero\\n */\\n function getUnderlyingPrice(address vToken) external view override returns (uint256) {\\n // VBNB token doesn't have `underlying` method, vBNB's underlying token is wBNB\\n address asset = address(vToken) == vBnb ? WBNB : VBep20Interface(vToken).underlying();\\n require(tokenConfigs[asset].asset != address(0), \\\"asset not exist\\\");\\n uint256 price = prices[asset];\\n\\n // if price is 0, it means the price hasn't been updated yet and it's meaningless, revert\\n require(price > 0, \\\"TWAP price must be positive\\\");\\n return (price * (10 ** (18 - IERC20Metadata(asset).decimals())));\\n }\\n\\n /**\\n * @notice Initializes the owner of the contract and sets the contracts required\\n */\\n function initialize() public initializer {\\n __Ownable_init();\\n }\\n\\n /**\\n * @notice Adds a single token config\\n * @param config token config struct\\n * @custom:access Only Governance\\n * @custom:error Range error is thrown if anchor period is not greater than zero\\n * @custom:error Range error is thrown if base unit is not greater than zero\\n * @custom:error Value error is thrown if base unit decimals is not the same as asset decimals\\n * @custom:error NotNullAddress error is thrown if address of asset is null\\n * @custom:error NotNullAddress error is thrown if PancakeSwap pool address is null\\n * @custom:event Emits TokenConfigAdded event if new token config are added with\\n * asset address, PancakePool address, anchor period address\\n */\\n function setTokenConfig(\\n TokenConfig memory config\\n ) public onlyOwner notNullAddress(config.asset) notNullAddress(config.pancakePool) {\\n require(config.anchorPeriod > 0, \\\"anchor period must be positive\\\");\\n require(config.baseUnit > 0, \\\"base unit must be positive\\\");\\n require(\\n config.baseUnit == 10 ** IERC20Metadata(config.asset).decimals(),\\n \\\"base unit decimals must be same as asset decimals\\\"\\n );\\n\\n uint256 cumulativePrice = currentCumulativePrice(config);\\n\\n // Initialize observation data\\n observations[config.asset].push(Observation(block.timestamp, cumulativePrice));\\n tokenConfigs[config.asset] = config;\\n emit TokenConfigAdded(config.asset, config.pancakePool, config.anchorPeriod);\\n }\\n\\n /**\\n * @notice Updates the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\\n * @return anchorPrice anchor price of the underlying asset of the vToken\\n * @custom:error Missing error is thrown if token config does not exist\\n */\\n function updateTwap(address vToken) public returns (uint256) {\\n // VBNB token doesn't have `underlying` method, vBNB's underlying token is wBNB\\n address asset = address(vToken) == vBnb ? WBNB : VBep20Interface(vToken).underlying();\\n require(tokenConfigs[asset].asset != address(0), \\\"asset not exist\\\");\\n // Update & fetch WBNB price first, so we can calculate the price of WBNB paired token\\n if (asset != WBNB && tokenConfigs[asset].isBnbBased) {\\n require(tokenConfigs[WBNB].asset != address(0), \\\"WBNB not exist\\\");\\n _updateTwapInternal(tokenConfigs[WBNB]);\\n }\\n return _updateTwapInternal(tokenConfigs[asset]);\\n }\\n\\n /**\\n * @notice Fetches the current token/WBNB and token/BUSD price accumulator from PancakeSwap.\\n * @return cumulative price of target token regardless of pair order\\n */\\n function currentCumulativePrice(TokenConfig memory config) public view returns (uint256) {\\n (uint256 price0, uint256 price1, ) = PancakeOracleLibrary.currentCumulativePrices(config.pancakePool);\\n if (config.isReversedPool) {\\n return price1;\\n } else {\\n return price0;\\n }\\n }\\n\\n /**\\n * @notice Fetches the current token/BUSD price from PancakeSwap, with 18 decimals of precision.\\n * @return price Underlying price in USD, with 18 decimals\\n * @custom:error Timing error is thrown if current time is not greater than old observation timestamp\\n * @custom:error Zero price error is thrown if token is BNB based and price is zero\\n * @custom:error Zero price error is thrown if fetched anchorPriceMantissa is zero\\n * @custom:event Emits AnchorPriceUpdated event on successful update of observation with assset address,\\n * AnchorPrice, old observation timestamp and current timestamp\\n */\\n function _updateTwapInternal(TokenConfig memory config) internal virtual returns (uint256) {\\n // pokeWindowValues already handled reversed pool cases,\\n // priceAverage will always be Token/BNB or Token/BUSD *twap** price.\\n (uint256 nowCumulativePrice, uint256 oldCumulativePrice, uint256 oldTimestamp) = pokeWindowValues(config);\\n\\n // This should be impossible, but better safe than sorry\\n require(block.timestamp > oldTimestamp, \\\"now must come after before\\\");\\n uint256 timeElapsed = block.timestamp - oldTimestamp;\\n\\n // Calculate Pancakge *twap**\\n FixedPoint.uq112x112 memory priceAverage = FixedPoint.uq112x112(\\n uint224((nowCumulativePrice - oldCumulativePrice) / timeElapsed)\\n );\\n // *twap** price with 1e18 decimal mantissa\\n uint256 priceAverageMantissa = priceAverage.decode112with18();\\n\\n // To cancel the decimals in cumulative price, we need to mulitply the average price with\\n // tokenBaseUnit / (wbnbBaseUnit or busdBaseUnit, which is 1e18)\\n uint256 pairedTokenBaseUnit = config.isBnbBased ? bnbBaseUnit : busdBaseUnit;\\n uint256 anchorPriceMantissa = (priceAverageMantissa * config.baseUnit) / pairedTokenBaseUnit;\\n\\n // if this token is paired with BNB, convert its price to USD\\n if (config.isBnbBased) {\\n uint256 bnbPrice = prices[WBNB];\\n require(bnbPrice != 0, \\\"bnb price is invalid\\\");\\n anchorPriceMantissa = (anchorPriceMantissa * bnbPrice) / bnbBaseUnit;\\n }\\n\\n require(anchorPriceMantissa != 0, \\\"twap price cannot be 0\\\");\\n\\n emit AnchorPriceUpdated(config.asset, anchorPriceMantissa, oldTimestamp, block.timestamp);\\n\\n // save anchor price, which is 1e18 decimals\\n prices[config.asset] = anchorPriceMantissa;\\n\\n return anchorPriceMantissa;\\n }\\n\\n /**\\n * @notice Appends current observation and pick an observation with a timestamp equal\\n * or just greater than the window start timestamp. If one is not available,\\n * then pick the last availableobservation. The window start index is updated in both the cases.\\n * Only the current observation is saved, prior observations are deleted during this operation.\\n * @return Tuple of cumulative price, old observation and timestamp\\n * @custom:event Emits TwapWindowUpdated on successful calculation of cumulative price with asset address,\\n * new observation timestamp, current timestamp, new observation price and cumulative price\\n */\\n function pokeWindowValues(\\n TokenConfig memory config\\n ) internal returns (uint256, uint256 startCumulativePrice, uint256 startCumulativeTimestamp) {\\n uint256 cumulativePrice = currentCumulativePrice(config);\\n uint256 currentTimestamp = block.timestamp;\\n uint256 windowStartTimestamp = currentTimestamp - config.anchorPeriod;\\n Observation[] memory storedObservations = observations[config.asset];\\n\\n uint256 storedObservationsLength = storedObservations.length;\\n for (\\n uint256 windowStartIndex = windowStart[config.asset];\\n windowStartIndex < storedObservationsLength;\\n ++windowStartIndex\\n ) {\\n if (\\n (storedObservations[windowStartIndex].timestamp >= windowStartTimestamp) ||\\n (windowStartIndex == storedObservationsLength - 1)\\n ) {\\n startCumulativePrice = storedObservations[windowStartIndex].acc;\\n startCumulativeTimestamp = storedObservations[windowStartIndex].timestamp;\\n windowStart[config.asset] = windowStartIndex;\\n break;\\n } else {\\n delete observations[config.asset][windowStartIndex];\\n }\\n }\\n\\n observations[config.asset].push(Observation(currentTimestamp, cumulativePrice));\\n emit TwapWindowUpdated(\\n config.asset,\\n startCumulativeTimestamp,\\n startCumulativePrice,\\n block.timestamp,\\n cumulativePrice\\n );\\n return (cumulativePrice, startCumulativePrice, startCumulativeTimestamp);\\n }\\n}\\n\",\"keccak256\":\"0x7db1694cb20ec377347fb3c113fafda77c7e29b9b20615d1460e4a0cf794e871\",\"license\":\"BSD-3-Clause\"}},\"version\":1}","storageLayout":{"storage":[{"astId":138,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"_initialized","offset":0,"slot":"0","type":"t_uint8"},{"astId":141,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"_initializing","offset":1,"slot":"0","type":"t_bool"},{"astId":625,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"__gap","offset":0,"slot":"1","type":"t_array(t_uint256)50_storage"},{"astId":10,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"_owner","offset":0,"slot":"51","type":"t_address"},{"astId":130,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"__gap","offset":0,"slot":"52","type":"t_array(t_uint256)49_storage"},{"astId":1017,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"tokenConfigs","offset":0,"slot":"101","type":"t_mapping(t_address,t_struct(TokenConfig)989_storage)"},{"astId":1022,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"prices","offset":0,"slot":"102","type":"t_mapping(t_address,t_uint256)"},{"astId":1029,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"observations","offset":0,"slot":"103","type":"t_mapping(t_address,t_array(t_struct(Observation)970_storage)dyn_storage)"},{"astId":1034,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"windowStart","offset":0,"slot":"104","type":"t_mapping(t_address,t_uint256)"}],"types":{"t_address":{"encoding":"inplace","label":"address","numberOfBytes":"20"},"t_array(t_struct(Observation)970_storage)dyn_storage":{"base":"t_struct(Observation)970_storage","encoding":"dynamic_array","label":"struct Observation[]","numberOfBytes":"32"},"t_array(t_uint256)49_storage":{"base":"t_uint256","encoding":"inplace","label":"uint256[49]","numberOfBytes":"1568"},"t_array(t_uint256)50_storage":{"base":"t_uint256","encoding":"inplace","label":"uint256[50]","numberOfBytes":"1600"},"t_bool":{"encoding":"inplace","label":"bool","numberOfBytes":"1"},"t_mapping(t_address,t_array(t_struct(Observation)970_storage)dyn_storage)":{"encoding":"mapping","key":"t_address","label":"mapping(address => struct Observation[])","numberOfBytes":"32","value":"t_array(t_struct(Observation)970_storage)dyn_storage"},"t_mapping(t_address,t_struct(TokenConfig)989_storage)":{"encoding":"mapping","key":"t_address","label":"mapping(address => struct TokenConfig)","numberOfBytes":"32","value":"t_struct(TokenConfig)989_storage"},"t_mapping(t_address,t_uint256)":{"encoding":"mapping","key":"t_address","label":"mapping(address => uint256)","numberOfBytes":"32","value":"t_uint256"},"t_struct(Observation)970_storage":{"encoding":"inplace","label":"struct Observation","members":[{"astId":967,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"timestamp","offset":0,"slot":"0","type":"t_uint256"},{"astId":969,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"acc","offset":0,"slot":"1","type":"t_uint256"}],"numberOfBytes":"64"},"t_struct(TokenConfig)989_storage":{"encoding":"inplace","label":"struct TokenConfig","members":[{"astId":973,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"asset","offset":0,"slot":"0","type":"t_address"},{"astId":976,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"baseUnit","offset":0,"slot":"1","type":"t_uint256"},{"astId":979,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"pancakePool","offset":0,"slot":"2","type":"t_address"},{"astId":982,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"isBnbBased","offset":20,"slot":"2","type":"t_bool"},{"astId":985,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"isReversedPool","offset":21,"slot":"2","type":"t_bool"},{"astId":988,"contract":"contracts/oracles/TwapOracle.sol:TwapOracle","label":"anchorPeriod","offset":0,"slot":"3","type":"t_uint256"}],"numberOfBytes":"128"},"t_uint256":{"encoding":"inplace","label":"uint256","numberOfBytes":"32"},"t_uint8":{"encoding":"inplace","label":"uint8","numberOfBytes":"1"}}},"userdoc":{"events":{"AnchorPriceUpdated(address,uint256,uint256,uint256)":{"notice":"Emit this event when TWAP price is updated"},"TokenConfigAdded(address,address,uint256)":{"notice":"Emit this event when new token configs are added"},"TwapWindowUpdated(address,uint256,uint256,uint256,uint256)":{"notice":"Emit this event when TWAP window is updated"}},"kind":"user","methods":{"WBNB()":{"notice":"WBNB address"},"bnbBaseUnit()":{"notice":"the base unit of WBNB and BUSD, which are the paired tokens for all assets"},"constructor":{"notice":"Constructor for the implementation contract. Sets immutable variables."},"currentCumulativePrice((address,uint256,address,bool,bool,uint256))":{"notice":"Fetches the current token/WBNB and token/BUSD price accumulator from PancakeSwap."},"getUnderlyingPrice(address)":{"notice":"Get the underlying TWAP price for the given vToken"},"initialize()":{"notice":"Initializes the owner of the contract and sets the contracts required"},"observations(address,uint256)":{"notice":"Keeps a record of token observations mapped by address, updated on every updateTwap invocation."},"prices(address)":{"notice":"Stored price by token"},"setTokenConfig((address,uint256,address,bool,bool,uint256))":{"notice":"Adds a single token config"},"setTokenConfigs((address,uint256,address,bool,bool,uint256)[])":{"notice":"Adds multiple token configs at the same time"},"tokenConfigs(address)":{"notice":"Configs by token"},"updateTwap(address)":{"notice":"Updates the current token/BUSD price from PancakeSwap, with 18 decimals of precision."},"vBnb()":{"notice":"vBNB address"},"windowStart(address)":{"notice":"Observation array index which probably falls in current anchor period mapped by asset address"}},"version":1}}}}}}
|