{"id":"780a7c924da5059c1403c8513a37052b","_format":"hh-sol-build-info-1","solcVersion":"0.8.20","solcLongVersion":"0.8.20+commit.a1b79de6","input":{"language":"Solidity","sources":{"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity ^0.8.20;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol';\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';\r\n\r\nimport './interfaces/IAbstractPlugin.sol';\r\n\r\n/// @title Algebra Integral 1.2.1 plugin base\r\n/// @notice This contract simplifies development process of plugins by providing base functionality\r\nabstract contract AbstractPlugin is IAbstractPlugin, Timestamp {\r\n  using Plugins for uint8;\r\n\r\n  /// @dev The role can be granted in AlgebraFactory\r\n  bytes32 public constant ALGEBRA_BASE_PLUGIN_MANAGER = keccak256('ALGEBRA_BASE_PLUGIN_MANAGER');\r\n\r\n  uint8 private constant defaultPluginConfig = 0;\r\n\r\n  address public immutable pool;\r\n  address internal immutable pluginFactory;\r\n\r\n  modifier onlyPool() {\r\n    _checkIfFromPool();\r\n    _;\r\n  }\r\n\r\n  constructor(address _pool, address _pluginFactory) {\r\n    (pool, pluginFactory) = (_pool, _pluginFactory);\r\n  }\r\n\r\n  function _checkIfFromPool() internal view {\r\n    require(msg.sender == pool, 'Only pool can call this');\r\n  }\r\n\r\n  function _authorize() internal view virtual;\r\n\r\n  function _getPoolState() internal view returns (uint160 price, int24 tick, uint16 fee, uint8 pluginConfig) {\r\n    (price, tick, fee, pluginConfig, , ) = IAlgebraPoolState(pool).globalState();\r\n  }\r\n\r\n  function _getPluginInPool() internal view returns (address plugin) {\r\n    return IAlgebraPool(pool).plugin();\r\n  }\r\n\r\n  /// @inheritdoc IAbstractPlugin\r\n  function collectPluginFee(address token, uint256 amount, address recipient) external override {\r\n    _authorize();\r\n    SafeTransfer.safeTransfer(token, recipient, amount);\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPlugin\r\n  function handlePluginFee(uint256, uint256) external view override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.handlePluginFee.selector;\r\n  }\r\n\r\n  // ###### HOOKS ######\r\n\r\n  function beforeInitialize(address, uint160) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.beforeInitialize.selector;\r\n  }\r\n\r\n  function afterInitialize(address, uint160, int24) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.afterInitialize.selector;\r\n  }\r\n\r\n  function beforeModifyPosition(address, address, int24, int24, int128, bytes calldata) external virtual override onlyPool returns (bytes4, uint24) {\r\n    return (IAlgebraPlugin.beforeModifyPosition.selector, 0);\r\n  }\r\n\r\n  function afterModifyPosition(\r\n    address,\r\n    address,\r\n    int24,\r\n    int24,\r\n    int128,\r\n    uint256,\r\n    uint256,\r\n    bytes calldata\r\n  ) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.afterModifyPosition.selector;\r\n  }\r\n\r\n  function beforeSwap(\r\n    address,\r\n    address,\r\n    bool,\r\n    int256,\r\n    uint160,\r\n    bool,\r\n    bytes calldata\r\n  ) external virtual override onlyPool returns (bytes4, uint24, uint24) {\r\n    return (IAlgebraPlugin.beforeSwap.selector, 0, 0);\r\n  }\r\n\r\n  function afterSwap(address, address, bool, int256, uint160, int256, int256, bytes calldata) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.afterSwap.selector;\r\n  }\r\n\r\n  function beforeFlash(address, address, uint256, uint256, bytes calldata) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.beforeFlash.selector;\r\n  }\r\n\r\n  function afterFlash(address, address, uint256, uint256, uint256, uint256, bytes calldata) external virtual override onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.afterFlash.selector;\r\n  }\r\n\r\n  function _updatePluginConfigInPool(uint8 newPluginConfig) internal {\r\n    (, , , uint8 currentPluginConfig) = _getPoolState();\r\n    if (currentPluginConfig != newPluginConfig) {\r\n      IAlgebraPool(pool).setPluginConfig(newPluginConfig);\r\n    }\r\n  }\r\n\r\n  function _disablePluginFlags(uint8 config) internal {\r\n    (, , , uint8 currentPluginConfig) = _getPoolState();\r\n    uint8 newPluginConfig = currentPluginConfig & ~config;\r\n    if (currentPluginConfig != newPluginConfig) {\r\n      IAlgebraPool(pool).setPluginConfig(newPluginConfig);\r\n    }\r\n  }\r\n\r\n  function _enablePluginFlags(uint8 config) internal {\r\n    (, , , uint8 currentPluginConfig) = _getPoolState();\r\n    uint8 newPluginConfig = currentPluginConfig | config;\r\n    if (currentPluginConfig != newPluginConfig) {\r\n      IAlgebraPool(pool).setPluginConfig(newPluginConfig);\r\n    }\r\n  }\r\n}\r\n"},"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.20;\n\nimport './AbstractPlugin.sol';\n\n/// @title Algebra's internal Integral 1.2.1 abstract plugin for `Base` plugins\n/// @notice This contract inherits AbstractPlugin\nabstract contract BaseAbstractPlugin is AbstractPlugin {\n  address internal immutable factory;\n\n  constructor(address _pool, address _factory, address _pluginFactory) AbstractPlugin(_pool, _pluginFactory) {\n    factory = _factory;\n  }\n\n  function _authorize() internal view virtual override {\n    require(IAlgebraFactory(factory).hasRoleOrOwner(ALGEBRA_BASE_PLUGIN_MANAGER, msg.sender));\n  }\n}\n"},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\npragma abicoder v2;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol';\r\n\r\n/// @title The interface for the BasePlugin\r\ninterface IAbstractPlugin is IAlgebraPlugin {\r\n  /// @notice Claim plugin fee\r\n  /// @param token The token address\r\n  /// @param amount Amount of tokens\r\n  /// @param recipient Recipient address\r\n  function collectPluginFee(address token, uint256 amount, address recipient) external;\r\n}\r\n"},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.0 <0.9.0;\n\n/// @title Abstract contract with modified blockTimestamp functionality\n/// @notice Allows the pool and other contracts to get a timestamp truncated to 32 bits\n/// @dev Can be overridden in tests to make testing easier\nabstract contract Timestamp {\n  /// @dev This function is created for testing by overriding it.\n  /// @return A timestamp converted to uint32\n  function _blockTimestamp() internal view virtual returns (uint32) {\n    return uint32(block.timestamp); // truncation is desired\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\npragma abicoder v2;\n\nimport './plugin/IAlgebraPluginFactory.sol';\nimport './vault/IAlgebraVaultFactory.sol';\n\n/// @title The interface for the Algebra Factory\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraFactory {\n  /// @notice Emitted when a process of ownership renounce is started\n  /// @param timestamp The timestamp of event\n  /// @param finishTimestamp The timestamp when ownership renounce will be possible to finish\n  event RenounceOwnershipStart(uint256 timestamp, uint256 finishTimestamp);\n\n  /// @notice Emitted when a process of ownership renounce cancelled\n  /// @param timestamp The timestamp of event\n  event RenounceOwnershipStop(uint256 timestamp);\n\n  /// @notice Emitted when a process of ownership renounce finished\n  /// @param timestamp The timestamp of ownership renouncement\n  event RenounceOwnershipFinish(uint256 timestamp);\n\n  /// @notice Emitted when a pool is created\n  /// @param token0 The first token of the pool by address sort order\n  /// @param token1 The second token of the pool by address sort order\n  /// @param pool The address of the created pool\n  event Pool(address indexed token0, address indexed token1, address pool);\n\n  /// @notice Emitted when a pool is created\n  /// @param deployer The corresponding custom deployer contract\n  /// @param token0 The first token of the pool by address sort order\n  /// @param token1 The second token of the pool by address sort order\n  /// @param pool The address of the created pool\n  event CustomPool(address indexed deployer, address indexed token0, address indexed token1, address pool);\n\n  /// @notice Emitted when the default community fee is changed\n  /// @param newDefaultCommunityFee The new default community fee value\n  event DefaultCommunityFee(uint16 newDefaultCommunityFee);\n\n  /// @notice Emitted when the default tickspacing is changed\n  /// @param newDefaultTickspacing The new default tickspacing value\n  event DefaultTickspacing(int24 newDefaultTickspacing);\n\n  /// @notice Emitted when the default fee is changed\n  /// @param newDefaultFee The new default fee value\n  event DefaultFee(uint16 newDefaultFee);\n\n  /// @notice Emitted when the defaultPluginFactory address is changed\n  /// @param defaultPluginFactoryAddress The new defaultPluginFactory address\n  event DefaultPluginFactory(address defaultPluginFactoryAddress);\n\n  /// @notice Emitted when the vaultFactory address is changed\n  /// @param newVaultFactory The new vaultFactory address\n  event VaultFactory(address newVaultFactory);\n\n  /// @notice role that can change communityFee and tickspacing in pools\n  /// @return The hash corresponding to this role\n  function POOLS_ADMINISTRATOR_ROLE() external view returns (bytes32);\n\n  /// @notice role that can call `createCustomPool` function\n  /// @return The hash corresponding to this role\n  function CUSTOM_POOL_DEPLOYER() external view returns (bytes32);\n\n  /// @notice Returns `true` if `account` has been granted `role` or `account` is owner.\n  /// @param role The hash corresponding to the role\n  /// @param account The address for which the role is checked\n  /// @return bool Whether the address has this role or the owner role or not\n  function hasRoleOrOwner(bytes32 role, address account) external view returns (bool);\n\n  /// @notice Returns the current owner of the factory\n  /// @dev Can be changed by the current owner via transferOwnership(address newOwner)\n  /// @return The address of the factory owner\n  function owner() external view returns (address);\n\n  /// @notice Returns the current poolDeployerAddress\n  /// @return The address of the poolDeployer\n  function poolDeployer() external view returns (address);\n\n  /// @notice Returns the default community fee\n  /// @return Fee which will be set at the creation of the pool\n  function defaultCommunityFee() external view returns (uint16);\n\n  /// @notice Returns the default fee\n  /// @return Fee which will be set at the creation of the pool\n  function defaultFee() external view returns (uint16);\n\n  /// @notice Returns the default tickspacing\n  /// @return Tickspacing which will be set at the creation of the pool\n  function defaultTickspacing() external view returns (int24);\n\n  /// @notice Return the current pluginFactory address\n  /// @dev This contract is used to automatically set a plugin address in new liquidity pools\n  /// @return Algebra plugin factory\n  function defaultPluginFactory() external view returns (IAlgebraPluginFactory);\n\n  /// @notice Return the current vaultFactory address\n  /// @dev This contract is used to automatically set a vault address in new liquidity pools\n  /// @return Algebra vault factory\n  function vaultFactory() external view returns (IAlgebraVaultFactory);\n\n  /// @notice Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\n  /// @return communityFee which will be set at the creation of the pool\n  /// @return tickSpacing which will be set at the creation of the pool\n  /// @return fee which will be set at the creation of the pool\n  function defaultConfigurationForPool() external view returns (uint16 communityFee, int24 tickSpacing, uint16 fee);\n\n  /// @notice Deterministically computes the pool address given the token0 and token1\n  /// @dev The method does not check if such a pool has been created\n  /// @param token0 first token\n  /// @param token1 second token\n  /// @return pool The contract address of the Algebra pool\n  function computePoolAddress(address token0, address token1) external view returns (address pool);\n\n  /// @notice Deterministically computes the custom pool address given the customDeployer, token0 and token1\n  /// @dev The method does not check if such a pool has been created\n  /// @param customDeployer the address of custom plugin deployer\n  /// @param token0 first token\n  /// @param token1 second token\n  /// @return customPool The contract address of the Algebra pool\n  function computeCustomPoolAddress(address customDeployer, address token0, address token1) external view returns (address customPool);\n\n  /// @notice Returns the pool address for a given pair of tokens, or address 0 if it does not exist\n  /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n  /// @param tokenA The contract address of either token0 or token1\n  /// @param tokenB The contract address of the other token\n  /// @return pool The pool address\n  function poolByPair(address tokenA, address tokenB) external view returns (address pool);\n\n  /// @notice Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\n  /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n  /// @param customDeployer The address of custom plugin deployer\n  /// @param tokenA The contract address of either token0 or token1\n  /// @param tokenB The contract address of the other token\n  /// @return customPool The pool address\n  function customPoolByPair(address customDeployer, address tokenA, address tokenB) external view returns (address customPool);\n\n  /// @notice returns keccak256 of AlgebraPool init bytecode.\n  /// @dev the hash value changes with any change in the pool bytecode\n  /// @return Keccak256 hash of AlgebraPool contract init bytecode\n  function POOL_INIT_CODE_HASH() external view returns (bytes32);\n\n  /// @return timestamp The timestamp of the beginning of the renounceOwnership process\n  function renounceOwnershipStartTimestamp() external view returns (uint256 timestamp);\n\n  /// @notice Creates a pool for the given two tokens\n  /// @param tokenA One of the two tokens in the desired pool\n  /// @param tokenB The other of the two tokens in the desired pool\n  /// @param data Data for plugin creation\n  /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n  /// The call will revert if the pool already exists or the token arguments are invalid.\n  /// @return pool The address of the newly created pool\n  function createPool(address tokenA, address tokenB, bytes calldata data) external returns (address pool);\n\n  /// @notice Creates a custom pool for the given two tokens using `deployer` contract\n  /// @param deployer The address of plugin deployer, also used for custom pool address calculation\n  /// @param creator The initiator of custom pool creation\n  /// @param tokenA One of the two tokens in the desired pool\n  /// @param tokenB The other of the two tokens in the desired pool\n  /// @param data The additional data bytes\n  /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n  /// The call will revert if the pool already exists or the token arguments are invalid.\n  /// @return customPool The address of the newly created custom pool\n  function createCustomPool(\n    address deployer,\n    address creator,\n    address tokenA,\n    address tokenB,\n    bytes calldata data\n  ) external returns (address customPool);\n\n  /// @dev updates default community fee for new pools\n  /// @param newDefaultCommunityFee The new community fee, _must_ be <= MAX_COMMUNITY_FEE\n  function setDefaultCommunityFee(uint16 newDefaultCommunityFee) external;\n\n  /// @dev updates default fee for new pools\n  /// @param newDefaultFee The new  fee, _must_ be <= MAX_DEFAULT_FEE\n  function setDefaultFee(uint16 newDefaultFee) external;\n\n  /// @dev updates default tickspacing for new pools\n  /// @param newDefaultTickspacing The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING\n  function setDefaultTickspacing(int24 newDefaultTickspacing) external;\n\n  /// @dev updates pluginFactory address\n  /// @param newDefaultPluginFactory address of new plugin factory\n  function setDefaultPluginFactory(address newDefaultPluginFactory) external;\n\n  /// @dev updates vaultFactory address\n  /// @param newVaultFactory address of new vault factory\n  function setVaultFactory(address newVaultFactory) external;\n\n  /// @notice Starts process of renounceOwnership. After that, a certain period\n  /// of time must pass before the ownership renounce can be completed.\n  function startRenounceOwnership() external;\n\n  /// @notice Stops process of renounceOwnership and removes timer.\n  function stopRenounceOwnership() external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4;\n\nimport './pool/IAlgebraPoolImmutables.sol';\nimport './pool/IAlgebraPoolState.sol';\nimport './pool/IAlgebraPoolActions.sol';\nimport './pool/IAlgebraPoolPermissionedActions.sol';\nimport './pool/IAlgebraPoolEvents.sol';\nimport './pool/IAlgebraPoolErrors.sol';\n\n/// @title The interface for a Algebra Pool\n/// @dev The pool interface is broken up into many smaller pieces.\n/// This interface includes custom error definitions and cannot be used in older versions of Solidity.\n/// For older versions of Solidity use #IAlgebraPoolLegacy\n/// Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPool is\n  IAlgebraPoolImmutables,\n  IAlgebraPoolState,\n  IAlgebraPoolActions,\n  IAlgebraPoolPermissionedActions,\n  IAlgebraPoolEvents,\n  IAlgebraPoolErrors\n{\n  // used only for combining interfaces\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The Algebra plugin interface\n/// @dev The plugin will be called by the pool using hook methods depending on the current pool settings\ninterface IAlgebraPlugin {\n  /// @notice Returns plugin config\n  /// @return config Each bit of the config is responsible for enabling/disabling the hooks.\n  /// The last bit indicates whether the plugin contains dynamic fees logic\n  function defaultPluginConfig() external view returns (uint8);\n\n  /// @notice Handle plugin fee transfer on plugin contract\n  /// @param pluginFee0 Fee0 amount transferred to plugin\n  /// @param pluginFee1 Fee1 amount transferred to plugin\n  /// @return bytes4 The function selector\n  function handlePluginFee(uint256 pluginFee0, uint256 pluginFee1) external returns (bytes4);\n\n  /// @notice The hook called before the state of a pool is initialized\n  /// @param sender The initial msg.sender for the initialize call\n  /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n  /// @return bytes4 The function selector for the hook\n  function beforeInitialize(address sender, uint160 sqrtPriceX96) external returns (bytes4);\n\n  /// @notice The hook called after the state of a pool is initialized\n  /// @param sender The initial msg.sender for the initialize call\n  /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n  /// @param tick The current tick after the state of a pool is initialized\n  /// @return bytes4 The function selector for the hook\n  function afterInitialize(address sender, uint160 sqrtPriceX96, int24 tick) external returns (bytes4);\n\n  /// @notice The hook called before a position is modified\n  /// @param sender The initial msg.sender for the modify position call\n  /// @param recipient Address to which the liquidity will be assigned in case of a mint or\n  /// to which tokens will be sent in case of a burn\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n  /// @param data Data that passed through the callback\n  /// @return selector The function selector for the hook\n  function beforeModifyPosition(\n    address sender,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    int128 desiredLiquidityDelta,\n    bytes calldata data\n  ) external returns (bytes4 selector, uint24 pluginFee);\n\n  /// @notice The hook called after a position is modified\n  /// @param sender The initial msg.sender for the modify position call\n  /// @param recipient Address to which the liquidity will be assigned in case of a mint or\n  /// to which tokens will be sent in case of a burn\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n  /// @param amount0 The amount of token0 sent to the recipient or was paid to mint\n  /// @param amount1 The amount of token0 sent to the recipient or was paid to mint\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterModifyPosition(\n    address sender,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    int128 desiredLiquidityDelta,\n    uint256 amount0,\n    uint256 amount1,\n    bytes calldata data\n  ) external returns (bytes4);\n\n  /// @notice The hook called before a swap\n  /// @param sender The initial msg.sender for the swap call\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param withPaymentInAdvance The flag indicating whether the `swapWithPaymentInAdvance` method was called\n  /// @param data Data that passed through the callback\n  /// @return selector The function selector for the hook\n  function beforeSwap(\n    address sender,\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    bool withPaymentInAdvance,\n    bytes calldata data\n  ) external returns (bytes4 selector, uint24 feeOverride, uint24 pluginFee);\n\n  /// @notice The hook called after a swap\n  /// @param sender The initial msg.sender for the swap call\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @param amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterSwap(\n    address sender,\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    int256 amount0,\n    int256 amount1,\n    bytes calldata data\n  ) external returns (bytes4);\n\n  /// @notice The hook called before flash\n  /// @param sender The initial msg.sender for the flash call\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 being requested for flash\n  /// @param amount1 The amount of token1 being requested for flash\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function beforeFlash(address sender, address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external returns (bytes4);\n\n  /// @notice The hook called after flash\n  /// @param sender The initial msg.sender for the flash call\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 being requested for flash\n  /// @param amount1 The amount of token1 being requested for flash\n  /// @param paid0 The amount of token0 being paid for flash\n  /// @param paid1 The amount of token1 being paid for flash\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterFlash(\n    address sender,\n    address recipient,\n    uint256 amount0,\n    uint256 amount1,\n    uint256 paid0,\n    uint256 paid1,\n    bytes calldata data\n  ) external returns (bytes4);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title An interface for a contract that is capable of deploying Algebra plugins\n/// @dev Such a factory can be used for automatic plugin creation for new pools.\n/// Also a factory be used as an entry point for custom (additional) pools creation\ninterface IAlgebraPluginFactory {\n  /// @notice Deploys new plugin contract for pool\n  /// @param pool The address of the new pool\n  /// @param creator The address that initiated the pool creation\n  /// @param deployer The address of new plugin deployer contract (0 if not used)\n  /// @param token0 First token of the pool\n  /// @param token1 Second token of the pool\n  /// @return New plugin address\n  function beforeCreatePoolHook(\n    address pool,\n    address creator,\n    address deployer,\n    address token0,\n    address token1,\n    bytes calldata data\n  ) external returns (address);\n\n  /// @notice Called after the pool is created\n  /// @param plugin The plugin address\n  /// @param pool The address of the new pool\n  /// @param deployer The address of new plugin deployer contract (0 if not used)\n  function afterCreatePoolHook(address plugin, address pool, address deployer) external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Permissionless pool actions\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolActions {\n  /// @notice Sets the initial price for the pool\n  /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\n  /// @dev Initialization should be done in one transaction with pool creation to avoid front-running\n  /// @param initialPrice The initial sqrt price of the pool as a Q64.96\n  function initialize(uint160 initialPrice) external;\n\n  /// @notice Adds liquidity for the given recipient/bottomTick/topTick position\n  /// @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback\n  /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\n  /// on bottomTick, topTick, the amount of liquidity, and the current price.\n  /// @param leftoversRecipient The address which will receive potential surplus of paid tokens\n  /// @param recipient The address for which the liquidity will be created\n  /// @param bottomTick The lower tick of the position in which to add liquidity\n  /// @param topTick The upper tick of the position in which to add liquidity\n  /// @param liquidityDesired The desired amount of liquidity to mint\n  /// @param data Any data that should be passed through to the callback\n  /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\n  /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\n  /// @return liquidityActual The actual minted amount of liquidity\n  function mint(\n    address leftoversRecipient,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    uint128 liquidityDesired,\n    bytes calldata data\n  ) external returns (uint256 amount0, uint256 amount1, uint128 liquidityActual);\n\n  /// @notice Collects tokens owed to a position\n  /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\n  /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\n  /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\n  /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\n  /// @param recipient The address which should receive the fees collected\n  /// @param bottomTick The lower tick of the position for which to collect fees\n  /// @param topTick The upper tick of the position for which to collect fees\n  /// @param amount0Requested How much token0 should be withdrawn from the fees owed\n  /// @param amount1Requested How much token1 should be withdrawn from the fees owed\n  /// @return amount0 The amount of fees collected in token0\n  /// @return amount1 The amount of fees collected in token1\n  function collect(\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    uint128 amount0Requested,\n    uint128 amount1Requested\n  ) external returns (uint128 amount0, uint128 amount1);\n\n  /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\n  /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\n  /// @dev Fees must be collected separately via a call to #collect\n  /// @param bottomTick The lower tick of the position for which to burn liquidity\n  /// @param topTick The upper tick of the position for which to burn liquidity\n  /// @param amount How much liquidity to burn\n  /// @param data Any data that should be passed through to the plugin\n  /// @return amount0 The amount of token0 sent to the recipient\n  /// @return amount1 The amount of token1 sent to the recipient\n  function burn(int24 bottomTick, int24 topTick, uint128 amount, bytes calldata data) external returns (uint256 amount0, uint256 amount1);\n\n  /// @notice Swap token0 for token1, or token1 for token0\n  /// @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n  /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  function swap(\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    bytes calldata data\n  ) external returns (int256 amount0, int256 amount1);\n\n  /// @notice Swap token0 for token1, or token1 for token0 with prepayment\n  /// @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n  /// caller must send tokens in callback before swap calculation\n  /// the actually sent amount of tokens is used for further calculations\n  /// @param leftoversRecipient The address which will receive potential surplus of paid tokens\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountToSell The amount of the swap, only positive (exact input) amount allowed\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n  /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  function swapWithPaymentInAdvance(\n    address leftoversRecipient,\n    address recipient,\n    bool zeroToOne,\n    int256 amountToSell,\n    uint160 limitSqrtPrice,\n    bytes calldata data\n  ) external returns (int256 amount0, int256 amount1);\n\n  /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\n  /// @dev The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallback\n  /// @dev All excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee.\n  /// If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 to send\n  /// @param amount1 The amount of token1 to send\n  /// @param data Any data to be passed through to the callback\n  function flash(address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4;\n\n/// @title Errors emitted by a pool\n/// @notice Contains custom errors emitted by the pool\n/// @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidity\ninterface IAlgebraPoolErrors {\n  // ####  pool errors  ####\n\n  /// @notice Emitted by the reentrancy guard\n  error locked();\n\n  /// @notice Emitted if arithmetic error occurred\n  error arithmeticError();\n\n  /// @notice Emitted if an attempt is made to initialize the pool twice\n  error alreadyInitialized();\n\n  /// @notice Emitted if an attempt is made to mint or swap in uninitialized pool\n  error notInitialized();\n\n  /// @notice Emitted if 0 is passed as amountRequired to swap function\n  error zeroAmountRequired();\n\n  /// @notice Emitted if invalid amount is passed as amountRequired to swap function\n  error invalidAmountRequired();\n\n  /// @notice Emitted if plugin fee param greater than fee/override fee\n  error incorrectPluginFee();\n\n  /// @notice Emitted if the pool received fewer tokens than it should have\n  error insufficientInputAmount();\n\n  /// @notice Emitted if there was an attempt to mint zero liquidity\n  error zeroLiquidityDesired();\n  /// @notice Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\n  error zeroLiquidityActual();\n\n  /// @notice Emitted if the pool received fewer tokens0 after flash than it should have\n  error flashInsufficientPaid0();\n  /// @notice Emitted if the pool received fewer tokens1 after flash than it should have\n  error flashInsufficientPaid1();\n\n  /// @notice Emitted if limitSqrtPrice param is incorrect\n  error invalidLimitSqrtPrice();\n\n  /// @notice Tick must be divisible by tickspacing\n  error tickIsNotSpaced();\n\n  /// @notice Emitted if a method is called that is accessible only to the factory owner or dedicated role\n  error notAllowed();\n\n  /// @notice Emitted if new tick spacing exceeds max allowed value\n  error invalidNewTickSpacing();\n  /// @notice Emitted if new community fee exceeds max allowed value\n  error invalidNewCommunityFee();\n\n  /// @notice Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\n  error dynamicFeeActive();\n  /// @notice Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\n  error dynamicFeeDisabled();\n  /// @notice Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\n  error pluginIsNotConnected();\n  /// @notice Emitted if a plugin returns invalid selector after hook call\n  /// @param expectedSelector The expected selector\n  error invalidHookResponse(bytes4 expectedSelector);\n\n  // ####  LiquidityMath errors  ####\n\n  /// @notice Emitted if liquidity underflows\n  error liquiditySub();\n  /// @notice Emitted if liquidity overflows\n  error liquidityAdd();\n\n  // ####  TickManagement errors  ####\n\n  /// @notice Emitted if the topTick param not greater then the bottomTick param\n  error topTickLowerOrEqBottomTick();\n  /// @notice Emitted if the bottomTick param is lower than min allowed value\n  error bottomTickLowerThanMIN();\n  /// @notice Emitted if the topTick param is greater than max allowed value\n  error topTickAboveMAX();\n  /// @notice Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\n  error liquidityOverflow();\n  /// @notice Emitted if an attempt is made to interact with an uninitialized tick\n  error tickIsNotInitialized();\n  /// @notice Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\n  error tickInvalidLinks();\n\n  // ####  SafeTransfer errors  ####\n\n  /// @notice Emitted if token transfer failed internally\n  error transferFailed();\n\n  // ####  TickMath errors  ####\n\n  /// @notice Emitted if tick is greater than the maximum or less than the minimum allowed value\n  error tickOutOfRange();\n  /// @notice Emitted if price is greater than the maximum or less than the minimum allowed value\n  error priceOutOfRange();\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Events emitted by a pool\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolEvents {\n  /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\n  /// @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize\n  /// @param price The initial sqrt price of the pool, as a Q64.96\n  /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\n  event Initialize(uint160 price, int24 tick);\n\n  /// @notice Emitted when liquidity is minted for a given position\n  /// @param sender The address that minted the liquidity\n  /// @param owner The owner of the position and recipient of any minted liquidity\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param liquidityAmount The amount of liquidity minted to the position range\n  /// @param amount0 How much token0 was required for the minted liquidity\n  /// @param amount1 How much token1 was required for the minted liquidity\n  event Mint(\n    address sender,\n    address indexed owner,\n    int24 indexed bottomTick,\n    int24 indexed topTick,\n    uint128 liquidityAmount,\n    uint256 amount0,\n    uint256 amount1\n  );\n\n  /// @notice Emitted when fees are collected by the owner of a position\n  /// @param owner The owner of the position for which fees are collected\n  /// @param recipient The address that received fees\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param amount0 The amount of token0 fees collected\n  /// @param amount1 The amount of token1 fees collected\n  event Collect(address indexed owner, address recipient, int24 indexed bottomTick, int24 indexed topTick, uint128 amount0, uint128 amount1);\n\n  /// @notice Emitted when a position's liquidity is removed\n  /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\n  /// @param owner The owner of the position for which liquidity is removed\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param liquidityAmount The amount of liquidity to remove\n  /// @param amount0 The amount of token0 withdrawn\n  /// @param amount1 The amount of token1 withdrawn\n  /// @param pluginFee The fee to be sent to the plugin\n  event Burn(\n    address indexed owner,\n    int24 indexed bottomTick,\n    int24 indexed topTick,\n    uint128 liquidityAmount,\n    uint256 amount0,\n    uint256 amount1,\n    uint24 pluginFee\n  );\n\n  /// @notice Emitted by the pool for any swaps between token0 and token1\n  /// @param sender The address that initiated the swap call, and that received the callback\n  /// @param recipient The address that received the output of the swap\n  /// @param amount0 The delta of the token0 balance of the pool\n  /// @param amount1 The delta of the token1 balance of the pool\n  /// @param price The sqrt(price) of the pool after the swap, as a Q64.96\n  /// @param liquidity The liquidity of the pool after the swap\n  /// @param tick The log base 1.0001 of price of the pool after the swap\n  /// @param overrideFee The fee to be applied to the trade\n  /// @param pluginFee The fee to be sent to the plugin\n  event Swap(\n    address indexed sender,\n    address indexed recipient,\n    int256 amount0,\n    int256 amount1,\n    uint160 price,\n    uint128 liquidity,\n    int24 tick,\n    uint24 overrideFee,\n    uint24 pluginFee\n  );\n\n  /// @notice Emitted by the pool for any flashes of token0/token1\n  /// @param sender The address that initiated the swap call, and that received the callback\n  /// @param recipient The address that received the tokens from flash\n  /// @param amount0 The amount of token0 that was flashed\n  /// @param amount1 The amount of token1 that was flashed\n  /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\n  /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\n  event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1);\n\n  /// @notice Emitted when the pool has higher balances than expected.\n  /// Any excess of tokens will be distributed between liquidity providers as fee.\n  /// @dev Fees after flash also will trigger this event due to mechanics of flash.\n  /// @param amount0 The excess of token0\n  /// @param amount1 The excess of token1\n  event ExcessTokens(uint256 amount0, uint256 amount1);\n\n  /// @notice Emitted when the community fee is changed by the pool\n  /// @param communityFeeNew The updated value of the community fee in thousandths (1e-3)\n  event CommunityFee(uint16 communityFeeNew);\n\n  /// @notice Emitted when the tick spacing changes\n  /// @param newTickSpacing The updated value of the new tick spacing\n  event TickSpacing(int24 newTickSpacing);\n\n  /// @notice Emitted when the plugin address changes\n  /// @param newPluginAddress New plugin address\n  event Plugin(address newPluginAddress);\n\n  /// @notice Emitted when the plugin config changes\n  /// @param newPluginConfig New plugin config\n  event PluginConfig(uint8 newPluginConfig);\n\n  /// @notice Emitted when the fee changes inside the pool\n  /// @param fee The current fee in hundredths of a bip, i.e. 1e-6\n  event Fee(uint16 fee);\n\n  /// @notice Emitted when the community vault address changes\n  /// @param newCommunityVault New community vault\n  event CommunityVault(address newCommunityVault);\n\n  /// @notice Emitted when the plugin does skim the excess of tokens\n  /// @param to THe receiver of tokens (plugin)\n  /// @param amount0 The amount of token0\n  /// @param amount1 The amount of token1\n  event Skim(address indexed to, uint256 amount0, uint256 amount1);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Pool state that never changes\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolImmutables {\n  /// @notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface\n  /// @return The contract address\n  function factory() external view returns (address);\n\n  /// @notice The first of the two tokens of the pool, sorted by address\n  /// @return The token contract address\n  function token0() external view returns (address);\n\n  /// @notice The second of the two tokens of the pool, sorted by address\n  /// @return The token contract address\n  function token1() external view returns (address);\n\n  /// @notice The maximum amount of position liquidity that can use any tick in the range\n  /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n  /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n  /// @return The max amount of liquidity per tick\n  function maxLiquidityPerTick() external view returns (uint128);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Permissioned pool actions\n/// @notice Contains pool methods that may only be called by permissioned addresses\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolPermissionedActions {\n  /// @notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newCommunityFee The new community fee percent in thousandths (1e-3)\n  function setCommunityFee(uint16 newCommunityFee) external;\n\n  /// @notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newTickSpacing The new tick spacing value\n  function setTickSpacing(int24 newTickSpacing) external;\n\n  /// @notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newPluginAddress The new plugin address\n  function setPlugin(address newPluginAddress) external;\n\n  /// @notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newConfig In the new configuration of the plugin,\n  /// each bit of which is responsible for a particular hook.\n  function setPluginConfig(uint8 newConfig) external;\n\n  /// @notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @dev Community fee vault receives collected community fees.\n  /// **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\n  /// @param newCommunityVault The address of new community fee vault\n  function setCommunityVault(address newCommunityVault) external;\n\n  /// @notice Set new pool fee. Can be called by owner if dynamic fee is disabled.\n  /// Called by the plugin if dynamic fee is enabled\n  /// @param newFee The new fee value\n  function setFee(uint16 newFee) external;\n\n  /// @notice Forces balances to match reserves. Excessive tokens will be distributed between active LPs\n  /// @dev Only plugin can call this function\n  function sync() external;\n\n  /// @notice Forces balances to match reserves. Excessive tokens will be sent to msg.sender\n  /// @dev Only plugin can call this function\n  function skim() external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Pool state that can change\n/// @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility\n/// of manipulation (including read-only reentrancy).\n/// This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolState {\n  /// @notice Safely get most important state values of Algebra Integral AMM\n  /// @dev Several values exposed as a single method to save gas when accessed externally.\n  /// **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\n  /// @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n  /// @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n  /// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n  /// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n  /// @return activeLiquidity  The currently in-range liquidity available to the pool\n  /// @return nextTick The next initialized tick after current global tick\n  /// @return previousTick The previous initialized tick before (or at) current global tick\n  function safelyGetStateOfAMM()\n    external\n    view\n    returns (uint160 sqrtPrice, int24 tick, uint16 lastFee, uint8 pluginConfig, uint128 activeLiquidity, int24 nextTick, int24 previousTick);\n\n  /// @notice Allows to easily get current reentrancy lock status\n  /// @dev can be used to prevent read-only reentrancy.\n  /// This method just returns `globalState.unlocked` value\n  /// @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\n  function isUnlocked() external view returns (bool unlocked);\n\n  // ! IMPORTANT security note: the pool state can be manipulated.\n  // ! The following methods do not check reentrancy lock themselves.\n\n  /// @notice The globalState structure in the pool stores many values but requires only one slot\n  /// and is exposed as a single method to save gas when accessed externally.\n  /// @dev **important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\n  /// @return price The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n  /// @return tick The current tick of the pool, i.e. according to the last tick transition that was run\n  /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n  /// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n  /// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n  /// @return communityFee The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\n  /// @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\n  function globalState() external view returns (uint160 price, int24 tick, uint16 lastFee, uint8 pluginConfig, uint16 communityFee, bool unlocked);\n\n  /// @notice Look up information about a specific tick in the pool\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @param tick The tick to look up\n  /// @return liquidityTotal The total amount of position liquidity that uses the pool either as tick lower or tick upper\n  /// @return liquidityDelta How much liquidity changes when the pool price crosses the tick\n  /// @return prevTick The previous tick in tick list\n  /// @return nextTick The next tick in tick list\n  /// @return outerFeeGrowth0Token The fee growth on the other side of the tick from the current tick in token0\n  /// @return outerFeeGrowth1Token The fee growth on the other side of the tick from the current tick in token1\n  /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\n  /// a specific position.\n  function ticks(\n    int24 tick\n  )\n    external\n    view\n    returns (\n      uint256 liquidityTotal,\n      int128 liquidityDelta,\n      int24 prevTick,\n      int24 nextTick,\n      uint256 outerFeeGrowth0Token,\n      uint256 outerFeeGrowth1Token\n    );\n\n  /// @notice The timestamp of the last sending of tokens to vault/plugin\n  /// @return The timestamp truncated to 32 bits\n  function lastFeeTransferTimestamp() external view returns (uint32);\n\n  /// @notice The amounts of token0 and token1 that will be sent to the vault\n  /// @dev Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\n  /// @return communityFeePending0 The amount of token0 that will be sent to the vault\n  /// @return communityFeePending1 The amount of token1 that will be sent to the vault\n  function getCommunityFeePending() external view returns (uint128 communityFeePending0, uint128 communityFeePending1);\n\n  /// @notice The amounts of token0 and token1 that will be sent to the plugin\n  /// @dev Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\n  /// @return pluginFeePending0 The amount of token0 that will be sent to the plugin\n  /// @return pluginFeePending1 The amount of token1 that will be sent to the plugin\n  function getPluginFeePending() external view returns (uint128 pluginFeePending0, uint128 pluginFeePending1);\n\n  /// @notice Returns the address of currently used plugin\n  /// @dev The plugin is subject to change\n  /// @return pluginAddress The address of currently used plugin\n  function plugin() external view returns (address pluginAddress);\n\n  /// @notice The contract to which community fees are transferred\n  /// @return communityVaultAddress The communityVault address\n  function communityVault() external view returns (address communityVaultAddress);\n\n  /// @notice Returns 256 packed tick initialized boolean values. See TickTree for more information\n  /// @param wordPosition Index of 256-bits word with ticks\n  /// @return The 256-bits word with packed ticks info\n  function tickTable(int16 wordPosition) external view returns (uint256);\n\n  /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\n  /// @dev This value can overflow the uint256\n  /// @return The fee growth accumulator for token0\n  function totalFeeGrowth0Token() external view returns (uint256);\n\n  /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\n  /// @dev This value can overflow the uint256\n  /// @return The fee growth accumulator for token1\n  function totalFeeGrowth1Token() external view returns (uint256);\n\n  /// @notice The current pool fee value\n  /// @dev In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee.\n  /// If the plugin implements complex fee logic, this method may return an incorrect value or revert.\n  /// In this case, see the plugin implementation and related documentation.\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return currentFee The current pool fee value in hundredths of a bip, i.e. 1e-6\n  function fee() external view returns (uint16 currentFee);\n\n  /// @notice The tracked token0 and token1 reserves of pool\n  /// @dev If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee.\n  /// If the balance exceeds uint128, the excess will be sent to the communityVault.\n  /// @return reserve0 The last known reserve of token0\n  /// @return reserve1 The last known reserve of token1\n  function getReserves() external view returns (uint128 reserve0, uint128 reserve1);\n\n  /// @notice Returns the information about a position by the position's key\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @param key The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\n  /// @return liquidity The amount of liquidity in the position\n  /// @return innerFeeGrowth0Token Fee growth of token0 inside the tick range as of the last mint/burn/poke\n  /// @return innerFeeGrowth1Token Fee growth of token1 inside the tick range as of the last mint/burn/poke\n  /// @return fees0 The computed amount of token0 owed to the position as of the last mint/burn/poke\n  /// @return fees1 The computed amount of token1 owed to the position as of the last mint/burn/poke\n  function positions(\n    bytes32 key\n  ) external view returns (uint256 liquidity, uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token, uint128 fees0, uint128 fees1);\n\n  /// @notice The currently in range liquidity available to the pool\n  /// @dev This value has no relationship to the total liquidity across all ticks.\n  /// Returned value cannot exceed type(uint128).max\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The current in range liquidity\n  function liquidity() external view returns (uint128);\n\n  /// @notice The current tick spacing\n  /// @dev Ticks can only be initialized by new mints at multiples of this value\n  /// e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ...\n  /// However, tickspacing can be changed after the ticks have been initialized.\n  /// This value is an int24 to avoid casting even though it is always positive.\n  /// @return The current tick spacing\n  function tickSpacing() external view returns (int24);\n\n  /// @notice The previous initialized tick before (or at) current global tick\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The previous initialized tick\n  function prevTickGlobal() external view returns (int24);\n\n  /// @notice The next initialized tick after current global tick\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The next initialized tick\n  function nextTickGlobal() external view returns (int24);\n\n  /// @notice The root of tick search tree\n  /// @dev Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit.\n  /// **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The root of tick search tree as bitmap\n  function tickTreeRoot() external view returns (uint32);\n\n  /// @notice The second layer of tick search tree\n  /// @dev Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit.\n  /// **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The node of tick search tree second layer\n  function tickTreeSecondLayer(int16) external view returns (uint256);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The interface for the Algebra Vault Factory\n/// @notice This contract can be used for automatic vaults creation\n/// @dev Version: Algebra Integral\ninterface IAlgebraVaultFactory {\n  /// @notice returns address of the community fee vault for the pool\n  /// @param pool the address of Algebra Integral pool\n  /// @return communityFeeVault the address of community fee vault\n  function getVaultForPool(address pool) external view returns (address communityFeeVault);\n\n  /// @notice creates the community fee vault for the pool if needed\n  /// @param pool the address of Algebra Integral pool\n  /// @return communityFeeVault the address of community fee vault\n  function createVaultForPool(\n    address pool,\n    address creator,\n    address deployer,\n    address token0,\n    address token1\n  ) external returns (address communityFeeVault);\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0 <0.9.0;\n\n/// @title Contains common constants for Algebra contracts\n/// @dev Constants moved to the library, not the base contract, to further emphasize their constant nature\nlibrary Constants {\n  uint8 internal constant RESOLUTION = 96;\n  uint256 internal constant Q96 = 1 << 96;\n  uint256 internal constant Q128 = 1 << 128;\n\n  uint24 internal constant FEE_DENOMINATOR = 1e6;\n  uint16 internal constant FLASH_FEE = 0.01e4; // fee for flash loan in hundredths of a bip (0.01%)\n  uint16 internal constant INIT_DEFAULT_FEE = 0.05e4; // init default fee value in hundredths of a bip (0.05%)\n  uint16 internal constant MAX_DEFAULT_FEE = 5e4; // max default fee value in hundredths of a bip (5%)\n\n  int24 internal constant INIT_DEFAULT_TICK_SPACING = 60;\n  int24 internal constant MAX_TICK_SPACING = 500;\n  int24 internal constant MIN_TICK_SPACING = 1;\n\n  // the frequency with which the accumulated community fees are sent to the vault\n  uint32 internal constant FEE_TRANSFER_FREQUENCY = 8 hours;\n\n  // max(uint128) / (MAX_TICK - MIN_TICK)\n  uint128 internal constant MAX_LIQUIDITY_PER_TICK = 191757638537527648490752896198553;\n\n  uint16 internal constant MAX_COMMUNITY_FEE = 1e3; // 100%\n  uint256 internal constant COMMUNITY_FEE_DENOMINATOR = 1e3;\n  // role that can change settings in pools\n  bytes32 internal constant POOLS_ADMINISTRATOR_ROLE = keccak256('POOLS_ADMINISTRATOR');\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Contains 512-bit math functions\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\n/// @dev Handles \"phantom overflow\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\nlibrary FullMath {\n  /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n  /// @param a The multiplicand\n  /// @param b The multiplier\n  /// @param denominator The divisor\n  /// @return result The 256-bit result\n  /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\n  function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n    unchecked {\n      // 512-bit multiply [prod1 prod0] = a * b\n      // Compute the product mod 2**256 and mod 2**256 - 1\n      // then use the Chinese Remainder Theorem to reconstruct\n      // the 512 bit result. The result is stored in two 256\n      // variables such that product = prod1 * 2**256 + prod0\n      uint256 prod0 = a * b; // Least significant 256 bits of the product\n      uint256 prod1; // Most significant 256 bits of the product\n      assembly {\n        let mm := mulmod(a, b, not(0))\n        prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n      }\n\n      // Make sure the result is less than 2**256.\n      // Also prevents denominator == 0\n      require(denominator > prod1);\n\n      // Handle non-overflow cases, 256 by 256 division\n      if (prod1 == 0) {\n        assembly {\n          result := div(prod0, denominator)\n        }\n        return result;\n      }\n\n      ///////////////////////////////////////////////\n      // 512 by 256 division.\n      ///////////////////////////////////////////////\n\n      // Make division exact by subtracting the remainder from [prod1 prod0]\n      // Compute remainder using mulmod\n      // Subtract 256 bit remainder from 512 bit number\n      assembly {\n        let remainder := mulmod(a, b, denominator)\n        prod1 := sub(prod1, gt(remainder, prod0))\n        prod0 := sub(prod0, remainder)\n      }\n\n      // Factor powers of two out of denominator\n      // Compute largest power of two divisor of denominator.\n      // Always >= 1.\n      uint256 twos = (0 - denominator) & denominator;\n      // Divide denominator by power of two\n      assembly {\n        denominator := div(denominator, twos)\n      }\n\n      // Divide [prod1 prod0] by the factors of two\n      assembly {\n        prod0 := div(prod0, twos)\n      }\n      // Shift in bits from prod1 into prod0. For this we need\n      // to flip `twos` such that it is 2**256 / twos.\n      // If twos is zero, then it becomes one\n      assembly {\n        twos := add(div(sub(0, twos), twos), 1)\n      }\n      prod0 |= prod1 * twos;\n\n      // Invert denominator mod 2**256\n      // Now that denominator is an odd number, it has an inverse\n      // modulo 2**256 such that denominator * inv = 1 mod 2**256.\n      // Compute the inverse by starting with a seed that is correct\n      // correct for four bits. That is, denominator * inv = 1 mod 2**4\n      uint256 inv = (3 * denominator) ^ 2;\n      // Now use Newton-Raphson iteration to improve the precision.\n      // Thanks to Hensel's lifting lemma, this also works in modular\n      // arithmetic, doubling the correct bits in each step.\n      inv *= 2 - denominator * inv; // inverse mod 2**8\n      inv *= 2 - denominator * inv; // inverse mod 2**16\n      inv *= 2 - denominator * inv; // inverse mod 2**32\n      inv *= 2 - denominator * inv; // inverse mod 2**64\n      inv *= 2 - denominator * inv; // inverse mod 2**128\n      inv *= 2 - denominator * inv; // inverse mod 2**256\n\n      // Because the division is now exact we can divide by multiplying\n      // with the modular inverse of denominator. This will give us the\n      // correct result modulo 2**256. Since the preconditions guarantee\n      // that the outcome is less than 2**256, this is the final result.\n      // We don't need to compute the high bits of the result and prod1\n      // is no longer required.\n      result = prod0 * inv;\n      return result;\n    }\n  }\n\n  /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n  /// @param a The multiplicand\n  /// @param b The multiplier\n  /// @param denominator The divisor\n  /// @return result The 256-bit result\n  function mulDivRoundingUp(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {\n    unchecked {\n      if (a == 0 || ((result = a * b) / a == b)) {\n        require(denominator > 0);\n        assembly {\n          result := add(div(result, denominator), gt(mod(result, denominator), 0))\n        }\n      } else {\n        result = mulDiv(a, b, denominator);\n        if (mulmod(a, b, denominator) > 0) {\n          require(result < type(uint256).max);\n          result++;\n        }\n      }\n    }\n  }\n\n  /// @notice Returns ceil(x / y)\n  /// @dev division by 0 has unspecified behavior, and must be checked externally\n  /// @param x The dividend\n  /// @param y The divisor\n  /// @return z The quotient, ceil(x / y)\n  function unsafeDivRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z) {\n    assembly {\n      z := add(div(x, y), gt(mod(x, y), 0))\n    }\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\nimport './TickMath.sol';\nimport './TokenDeltaMath.sol';\n\n/// @title Math library for liquidity\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\nlibrary LiquidityMath {\n  /// @notice Add a signed liquidity delta to liquidity and revert if it overflows or underflows\n  /// @param x The liquidity before change\n  /// @param y The delta by which liquidity should be changed\n  /// @return z The liquidity delta\n  function addDelta(uint128 x, int128 y) internal pure returns (uint128 z) {\n    unchecked {\n      if (y < 0) {\n        if ((z = x - uint128(-y)) >= x) revert IAlgebraPoolErrors.liquiditySub();\n      } else {\n        if ((z = x + uint128(y)) < x) revert IAlgebraPoolErrors.liquidityAdd();\n      }\n    }\n  }\n\n  function getAmountsForLiquidity(\n    int24 bottomTick,\n    int24 topTick,\n    int128 liquidityDelta,\n    int24 currentTick,\n    uint160 currentPrice\n  ) internal pure returns (uint256 amount0, uint256 amount1, int128 globalLiquidityDelta) {\n    uint160 priceAtBottomTick = TickMath.getSqrtRatioAtTick(bottomTick);\n    uint160 priceAtTopTick = TickMath.getSqrtRatioAtTick(topTick);\n\n    int256 amount0Int;\n    int256 amount1Int;\n    if (currentTick < bottomTick) {\n      // If current tick is less than the provided bottom one then only the token0 has to be provided\n      amount0Int = TokenDeltaMath.getToken0Delta(priceAtBottomTick, priceAtTopTick, liquidityDelta);\n    } else if (currentTick < topTick) {\n      amount0Int = TokenDeltaMath.getToken0Delta(currentPrice, priceAtTopTick, liquidityDelta);\n      amount1Int = TokenDeltaMath.getToken1Delta(priceAtBottomTick, currentPrice, liquidityDelta);\n      globalLiquidityDelta = liquidityDelta;\n    } else {\n      // If current tick is greater than the provided top one then only the token1 has to be provided\n      amount1Int = TokenDeltaMath.getToken1Delta(priceAtBottomTick, priceAtTopTick, liquidityDelta);\n    }\n\n    unchecked {\n      (amount0, amount1) = liquidityDelta < 0 ? (uint256(-amount0Int), uint256(-amount1Int)) : (uint256(amount0Int), uint256(amount1Int));\n    }\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\n/// @title Contains logic and constants for interacting with the plugin through hooks\n/// @dev Allows pool to check which hooks are enabled, as well as control the return selector\nlibrary Plugins {\n  function hasFlag(uint8 pluginConfig, uint256 flag) internal pure returns (bool res) {\n    assembly {\n      res := gt(and(pluginConfig, flag), 0)\n    }\n  }\n\n  function shouldReturn(bytes4 selector, bytes4 expectedSelector) internal pure {\n    if (selector != expectedSelector) revert IAlgebraPoolErrors.invalidHookResponse(expectedSelector);\n  }\n\n  uint256 internal constant BEFORE_SWAP_FLAG = 1;\n  uint256 internal constant AFTER_SWAP_FLAG = 1 << 1;\n  uint256 internal constant BEFORE_POSITION_MODIFY_FLAG = 1 << 2;\n  uint256 internal constant AFTER_POSITION_MODIFY_FLAG = 1 << 3;\n  uint256 internal constant BEFORE_FLASH_FLAG = 1 << 4;\n  uint256 internal constant AFTER_FLASH_FLAG = 1 << 5;\n  uint256 internal constant AFTER_INIT_FLAG = 1 << 6;\n  uint256 internal constant DYNAMIC_FEE = 1 << 7;\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0 <0.9.0;\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\nlibrary SafeCast {\n  /// @notice Cast a uint256 to a uint160, revert on overflow\n  /// @param y The uint256 to be downcasted\n  /// @return z The downcasted integer, now type uint160\n  function toUint160(uint256 y) internal pure returns (uint160 z) {\n    require((z = uint160(y)) == y);\n  }\n\n  /// @notice Cast a uint256 to a uint128, revert on overflow\n  /// @param y The uint256 to be downcasted\n  /// @return z The downcasted integer, now type uint128\n  function toUint128(uint256 y) internal pure returns (uint128 z) {\n    require((z = uint128(y)) == y);\n  }\n\n  /// @notice Cast a int256 to a int128, revert on overflow or underflow\n  /// @param y The int256 to be downcasted\n  /// @return z The downcasted integer, now type int128\n  function toInt128(int256 y) internal pure returns (int128 z) {\n    require((z = int128(y)) == y);\n  }\n\n  /// @notice Cast a uint128 to a int128, revert on overflow\n  /// @param y The uint128 to be downcasted\n  /// @return z The downcasted integer, now type int128\n  function toInt128(uint128 y) internal pure returns (int128 z) {\n    require((z = int128(y)) >= 0);\n  }\n\n  /// @notice Cast a uint256 to a int256, revert on overflow\n  /// @param y The uint256 to be casted\n  /// @return z The casted integer, now type int256\n  function toInt256(uint256 y) internal pure returns (int256 z) {\n    require((z = int256(y)) >= 0);\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\n/// @title SafeTransfer\n/// @notice Safe ERC20 transfer library that gracefully handles missing return values.\n/// @dev Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.sol\n/// @dev Please note that this library does not check if the token has a code! That responsibility is delegated to the caller.\nlibrary SafeTransfer {\n  /// @notice Transfers tokens to a recipient\n  /// @dev Calls transfer on token contract, errors with transferFailed() if transfer fails\n  /// @param token The contract address of the token which will be transferred\n  /// @param to The recipient of the transfer\n  /// @param amount The amount of the token to transfer\n  function safeTransfer(address token, address to, uint256 amount) internal {\n    bool success;\n    assembly {\n      let freeMemoryPointer := mload(0x40) // we will need to restore 0x40 slot\n      mstore(0x00, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) // \"transfer(address,uint256)\" selector\n      mstore(0x04, and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // append cleaned \"to\" address\n      mstore(0x24, amount)\n      // now we use 0x00 - 0x44 bytes (68), freeMemoryPointer is dirty\n      success := call(gas(), token, 0, 0, 0x44, 0, 0x20)\n      success := and(\n        // set success to true if call isn't reverted and returned exactly 1 (can't just be non-zero data) or nothing\n        or(and(eq(mload(0), 1), eq(returndatasize(), 32)), iszero(returndatasize())),\n        success\n      )\n      mstore(0x40, freeMemoryPointer) // restore the freeMemoryPointer\n    }\n\n    if (!success) revert IAlgebraPoolErrors.transferFailed();\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\nimport './TickMath.sol';\nimport './LiquidityMath.sol';\nimport './Constants.sol';\n\n/// @title Library for managing and interacting with ticks\n/// @notice Contains functions for managing tick processes and relevant calculations\n/// @dev Ticks are organized as a doubly linked list\nlibrary TickManagement {\n  // info stored for each initialized individual tick\n  struct Tick {\n    uint256 liquidityTotal; // the total position liquidity that references this tick\n    int128 liquidityDelta; // amount of net liquidity added (subtracted) when tick is crossed left-right (right-left),\n    int24 prevTick;\n    int24 nextTick;\n    // fee growth per unit of liquidity on the _other_ side of this tick (relative to the current tick)\n    // only has relative meaning, not absolute — the value depends on when the tick is initialized\n    uint256 outerFeeGrowth0Token;\n    uint256 outerFeeGrowth1Token;\n  }\n\n  function checkTickRangeValidity(int24 bottomTick, int24 topTick) internal pure {\n    if (topTick > TickMath.MAX_TICK) revert IAlgebraPoolErrors.topTickAboveMAX();\n    if (topTick <= bottomTick) revert IAlgebraPoolErrors.topTickLowerOrEqBottomTick();\n    if (bottomTick < TickMath.MIN_TICK) revert IAlgebraPoolErrors.bottomTickLowerThanMIN();\n  }\n\n  /// @notice Retrieves fee growth data\n  /// @param self The mapping containing all tick information for initialized ticks\n  /// @param bottomTick The lower tick boundary of the position\n  /// @param topTick The upper tick boundary of the position\n  /// @param currentTick The current tick\n  /// @param totalFeeGrowth0Token The all-time global fee growth, per unit of liquidity, in token0\n  /// @param totalFeeGrowth1Token The all-time global fee growth, per unit of liquidity, in token1\n  /// @return innerFeeGrowth0Token The all-time fee growth in token0, per unit of liquidity, inside the position's tick boundaries\n  /// @return innerFeeGrowth1Token The all-time fee growth in token1, per unit of liquidity, inside the position's tick boundaries\n  function getInnerFeeGrowth(\n    mapping(int24 => Tick) storage self,\n    int24 bottomTick,\n    int24 topTick,\n    int24 currentTick,\n    uint256 totalFeeGrowth0Token,\n    uint256 totalFeeGrowth1Token\n  ) internal view returns (uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token) {\n    Tick storage lower = self[bottomTick];\n    Tick storage upper = self[topTick];\n\n    unchecked {\n      if (currentTick < topTick) {\n        if (currentTick >= bottomTick) {\n          innerFeeGrowth0Token = totalFeeGrowth0Token - lower.outerFeeGrowth0Token;\n          innerFeeGrowth1Token = totalFeeGrowth1Token - lower.outerFeeGrowth1Token;\n        } else {\n          innerFeeGrowth0Token = lower.outerFeeGrowth0Token;\n          innerFeeGrowth1Token = lower.outerFeeGrowth1Token;\n        }\n        innerFeeGrowth0Token -= upper.outerFeeGrowth0Token;\n        innerFeeGrowth1Token -= upper.outerFeeGrowth1Token;\n      } else {\n        innerFeeGrowth0Token = upper.outerFeeGrowth0Token - lower.outerFeeGrowth0Token;\n        innerFeeGrowth1Token = upper.outerFeeGrowth1Token - lower.outerFeeGrowth1Token;\n      }\n    }\n  }\n\n  /// @notice Updates a tick and returns true if the tick was flipped from initialized to uninitialized, or vice versa\n  /// @param self The mapping containing all tick information for initialized ticks\n  /// @param tick The tick that will be updated\n  /// @param currentTick The current tick\n  /// @param liquidityDelta A new amount of liquidity to be added (subtracted) when tick is crossed from left to right (right to left)\n  /// @param totalFeeGrowth0Token The all-time global fee growth, per unit of liquidity, in token0\n  /// @param totalFeeGrowth1Token The all-time global fee growth, per unit of liquidity, in token1\n  /// @param upper True for updating a position's upper tick, or false for updating a position's lower tick\n  /// @return flipped Whether the tick was flipped from initialized to uninitialized, or vice versa\n  function update(\n    mapping(int24 => Tick) storage self,\n    int24 tick,\n    int24 currentTick,\n    int128 liquidityDelta,\n    uint256 totalFeeGrowth0Token,\n    uint256 totalFeeGrowth1Token,\n    bool upper\n  ) internal returns (bool flipped) {\n    Tick storage data = self[tick];\n\n    uint256 liquidityTotalBefore = data.liquidityTotal;\n    uint256 liquidityTotalAfter = LiquidityMath.addDelta(uint128(liquidityTotalBefore), liquidityDelta);\n    if (liquidityTotalAfter > Constants.MAX_LIQUIDITY_PER_TICK) revert IAlgebraPoolErrors.liquidityOverflow();\n\n    int128 liquidityDeltaBefore = data.liquidityDelta;\n    // when the lower (upper) tick is crossed left to right (right to left), liquidity must be added (removed)\n    data.liquidityDelta = upper ? int128(int256(liquidityDeltaBefore) - liquidityDelta) : int128(int256(liquidityDeltaBefore) + liquidityDelta);\n    data.liquidityTotal = liquidityTotalAfter;\n\n    flipped = (liquidityTotalAfter == 0);\n    if (liquidityTotalBefore == 0) {\n      flipped = !flipped;\n      // by convention, we assume that all growth before a tick was initialized happened _below_ the tick\n      if (tick <= currentTick) (data.outerFeeGrowth0Token, data.outerFeeGrowth1Token) = (totalFeeGrowth0Token, totalFeeGrowth1Token);\n    }\n  }\n\n  /// @notice Transitions to next tick as needed by price movement\n  /// @param self The mapping containing all tick information for initialized ticks\n  /// @param tick The destination tick of the transition\n  /// @param feeGrowth0 The all-time global fee growth, per unit of liquidity, in token0\n  /// @param feeGrowth1 The all-time global fee growth, per unit of liquidity, in token1\n  /// @return liquidityDelta The amount of liquidity added (subtracted) when tick is crossed from left to right (right to left)\n  /// @return prevTick The previous active tick before _tick_\n  /// @return nextTick The next active tick after _tick_\n  function cross(\n    mapping(int24 => Tick) storage self,\n    int24 tick,\n    uint256 feeGrowth0,\n    uint256 feeGrowth1\n  ) internal returns (int128 liquidityDelta, int24 prevTick, int24 nextTick) {\n    Tick storage data = self[tick];\n    unchecked {\n      (data.outerFeeGrowth1Token, data.outerFeeGrowth0Token) = (feeGrowth1 - data.outerFeeGrowth1Token, feeGrowth0 - data.outerFeeGrowth0Token);\n    }\n    return (data.liquidityDelta, data.prevTick, data.nextTick);\n  }\n\n  /// @notice Used for initial setup of ticks list\n  /// @param self The mapping containing all tick information for initialized ticks\n  function initTickState(mapping(int24 => Tick) storage self) internal {\n    (self[TickMath.MIN_TICK].prevTick, self[TickMath.MIN_TICK].nextTick) = (TickMath.MIN_TICK, TickMath.MAX_TICK);\n    (self[TickMath.MAX_TICK].prevTick, self[TickMath.MAX_TICK].nextTick) = (TickMath.MIN_TICK, TickMath.MAX_TICK);\n  }\n\n  /// @notice Removes tick from the linked list\n  /// @param self The mapping containing all tick information for initialized ticks\n  /// @param tick The tick that will be removed\n  /// @return prevTick The previous active tick before _tick_\n  /// @return nextTick The next active tick after _tick_\n  function removeTick(mapping(int24 => Tick) storage self, int24 tick) internal returns (int24 prevTick, int24 nextTick) {\n    (prevTick, nextTick) = (self[tick].prevTick, self[tick].nextTick);\n    delete self[tick];\n\n    if (tick == TickMath.MIN_TICK || tick == TickMath.MAX_TICK) {\n      // MIN_TICK and MAX_TICK cannot be removed from tick list\n      (self[tick].prevTick, self[tick].nextTick) = (prevTick, nextTick);\n    } else {\n      if (prevTick == nextTick) revert IAlgebraPoolErrors.tickIsNotInitialized();\n      self[prevTick].nextTick = nextTick;\n      self[nextTick].prevTick = prevTick;\n    }\n    return (prevTick, nextTick);\n  }\n\n  /// @notice Adds tick to the linked list\n  /// @param self The mapping containing all tick information for initialized ticks\n  /// @param tick The tick that will be inserted\n  /// @param prevTick The previous active tick before _tick_\n  /// @param nextTick The next active tick after _tick_\n  function insertTick(mapping(int24 => Tick) storage self, int24 tick, int24 prevTick, int24 nextTick) internal {\n    if (tick == TickMath.MIN_TICK || tick == TickMath.MAX_TICK) return;\n    if (!(prevTick < tick && nextTick > tick)) revert IAlgebraPoolErrors.tickInvalidLinks();\n    (self[tick].prevTick, self[tick].nextTick) = (prevTick, nextTick);\n\n    self[prevTick].nextTick = tick;\n    self[nextTick].prevTick = tick;\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\n/// @title Math library for computing sqrt prices from ticks and vice versa\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n/// prices between 2**-128 and 2**128\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\nlibrary TickMath {\n  /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\n  int24 internal constant MIN_TICK = -887272;\n  /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\n  int24 internal constant MAX_TICK = -MIN_TICK;\n\n  /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\n  uint160 internal constant MIN_SQRT_RATIO = 4295128739;\n  /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\n  uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n  /// @notice Calculates sqrt(1.0001^tick) * 2^96\n  /// @dev Throws if |tick| > max tick\n  /// @param tick The input tick for the above formula\n  /// @return price A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\n  /// at the given tick\n  function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 price) {\n    unchecked {\n      // get abs value\n      int24 absTickMask = tick >> (24 - 1);\n      uint256 absTick = uint24((tick + absTickMask) ^ absTickMask);\n      if (absTick > uint24(MAX_TICK)) revert IAlgebraPoolErrors.tickOutOfRange();\n\n      uint256 ratio = 0x100000000000000000000000000000000;\n      if (absTick & 0x1 != 0) ratio = 0xfffcb933bd6fad37aa2d162d1a594001;\n      if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;\n      if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\n      if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\n      if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;\n      if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\n      if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\n      if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\n      if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\n      if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\n      if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\n      if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\n      if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\n      if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\n      if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\n      if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;\n      if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\n      if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;\n      if (absTick >= 0x40000) {\n        if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;\n        if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;\n      }\n\n      if (tick > 0) {\n        assembly {\n          ratio := div(not(0), ratio)\n        }\n      }\n\n      // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\n      // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\n      // we round up in the division so getTickAtSqrtRatio of the output price is always consistent\n      price = uint160((ratio + 0xFFFFFFFF) >> 32);\n    }\n  }\n\n  /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\n  /// @dev Throws in case price < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\n  /// ever return.\n  /// @param price The sqrt ratio for which to compute the tick as a Q64.96\n  /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio\n  function getTickAtSqrtRatio(uint160 price) internal pure returns (int24 tick) {\n    unchecked {\n      // second inequality must be >= because the price can never reach the price at the max tick\n      if (price < MIN_SQRT_RATIO || price >= MAX_SQRT_RATIO) revert IAlgebraPoolErrors.priceOutOfRange();\n      uint256 ratio = uint256(price) << 32;\n\n      uint256 r = ratio;\n      uint256 msb;\n\n      assembly {\n        let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(5, gt(r, 0xFFFFFFFF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(4, gt(r, 0xFFFF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(3, gt(r, 0xFF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(2, gt(r, 0xF))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := shl(1, gt(r, 0x3))\n        msb := or(msb, f)\n        r := shr(f, r)\n      }\n      assembly {\n        let f := gt(r, 0x1)\n        msb := or(msb, f)\n      }\n\n      if (msb >= 128) r = ratio >> (msb - 127);\n      else r = ratio << (127 - msb);\n\n      int256 log_2 = (int256(msb) - 128) << 64;\n\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(63, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(62, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(61, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(60, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(59, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(58, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(57, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(56, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(55, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(54, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(53, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(52, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(51, f))\n        r := shr(f, r)\n      }\n      assembly {\n        r := shr(127, mul(r, r))\n        let f := shr(128, r)\n        log_2 := or(log_2, shl(50, f))\n      }\n\n      int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number\n\n      int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);\n      int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);\n\n      tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= price ? tickHi : tickLow;\n    }\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport './SafeCast.sol';\nimport './FullMath.sol';\nimport './Constants.sol';\n\n/// @title Functions based on Q64.96 sqrt price and liquidity\n/// @notice Contains the math that uses square root of price as a Q64.96 and liquidity to compute deltas\nlibrary TokenDeltaMath {\n  using SafeCast for uint256;\n\n  /// @notice Gets the token0 delta between two prices\n  /// @dev Calculates liquidity / sqrt(lower) - liquidity / sqrt(upper)\n  /// @param priceLower A Q64.96 sqrt price\n  /// @param priceUpper Another Q64.96 sqrt price\n  /// @param liquidity The amount of usable liquidity\n  /// @param roundUp Whether to round the amount up or down\n  /// @return token0Delta Amount of token0 required to cover a position of size liquidity between the two passed prices\n  function getToken0Delta(uint160 priceLower, uint160 priceUpper, uint128 liquidity, bool roundUp) internal pure returns (uint256 token0Delta) {\n    unchecked {\n      uint256 priceDelta = priceUpper - priceLower;\n      require(priceDelta < priceUpper); // forbids underflow and 0 priceLower\n      uint256 liquidityShifted = uint256(liquidity) << Constants.RESOLUTION;\n\n      token0Delta = roundUp\n        ? FullMath.unsafeDivRoundingUp(FullMath.mulDivRoundingUp(priceDelta, liquidityShifted, priceUpper), priceLower) // denominator always > 0\n        : FullMath.mulDiv(priceDelta, liquidityShifted, priceUpper) / priceLower;\n    }\n  }\n\n  /// @notice Gets the token1 delta between two prices\n  /// @dev Calculates liquidity * (sqrt(upper) - sqrt(lower))\n  /// @param priceLower A Q64.96 sqrt price\n  /// @param priceUpper Another Q64.96 sqrt price\n  /// @param liquidity The amount of usable liquidity\n  /// @param roundUp Whether to round the amount up, or down\n  /// @return token1Delta Amount of token1 required to cover a position of size liquidity between the two passed prices\n  function getToken1Delta(uint160 priceLower, uint160 priceUpper, uint128 liquidity, bool roundUp) internal pure returns (uint256 token1Delta) {\n    unchecked {\n      require(priceUpper >= priceLower);\n      uint256 priceDelta = priceUpper - priceLower;\n      token1Delta = roundUp ? FullMath.mulDivRoundingUp(priceDelta, liquidity, Constants.Q96) : FullMath.mulDiv(priceDelta, liquidity, Constants.Q96);\n    }\n  }\n\n  /// @notice Helper that gets signed token0 delta\n  /// @param priceLower A Q64.96 sqrt price\n  /// @param priceUpper Another Q64.96 sqrt price\n  /// @param liquidity The change in liquidity for which to compute the token0 delta\n  /// @return token0Delta Amount of token0 corresponding to the passed liquidityDelta between the two prices\n  function getToken0Delta(uint160 priceLower, uint160 priceUpper, int128 liquidity) internal pure returns (int256 token0Delta) {\n    unchecked {\n      token0Delta = liquidity >= 0\n        ? getToken0Delta(priceLower, priceUpper, uint128(liquidity), true).toInt256()\n        : -getToken0Delta(priceLower, priceUpper, uint128(-liquidity), false).toInt256();\n    }\n  }\n\n  /// @notice Helper that gets signed token1 delta\n  /// @param priceLower A Q64.96 sqrt price\n  /// @param priceUpper Another Q64.96 sqrt price\n  /// @param liquidity The change in liquidity for which to compute the token1 delta\n  /// @return token1Delta Amount of token1 corresponding to the passed liquidityDelta between the two prices\n  function getToken1Delta(uint160 priceLower, uint160 priceUpper, int128 liquidity) internal pure returns (int256 token1Delta) {\n    unchecked {\n      token1Delta = liquidity >= 0\n        ? getToken1Delta(priceLower, priceUpper, uint128(liquidity), true).toInt256()\n        : -getToken1Delta(priceLower, priceUpper, uint128(-liquidity), false).toInt256();\n    }\n  }\n}\n"},"contracts/FeeDiscountPlugin.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\r\npragma solidity =0.8.20;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';\r\n\r\nimport '@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol';\r\n\r\nimport './interfaces/IFeeDiscountPlugin.sol';\r\nimport './interfaces/IFeeDiscountRegistry.sol';\r\n\r\n\r\n/// @title Algebra Integral 1.2 fee discount plugin\r\nabstract contract FeeDiscountPlugin is BaseAbstractPlugin, IFeeDiscountPlugin {\r\n  using Plugins for uint8;\r\n\r\n  uint8 private constant defaultPluginConfig = uint8(Plugins.BEFORE_SWAP_FLAG);\r\n  uint16 private constant FEE_DISCOUNT_DENOMINATOR = 1000;\r\n\r\n  address public override feeDiscountRegistry;\r\n\r\n  constructor(address _feeDiscountRegistry) {\r\n    feeDiscountRegistry = _feeDiscountRegistry;\r\n  }\r\n\r\n  function _applyFeeDiscount(address user, address pool, uint24 fee) internal returns (uint24 updatedFee) {\r\n    uint24 feeDiscount = IFeeDiscountRegistry(feeDiscountRegistry).feeDiscounts(user, pool);\r\n    updatedFee = uint24((uint256(fee) * (FEE_DISCOUNT_DENOMINATOR - feeDiscount)) / FEE_DISCOUNT_DENOMINATOR);\r\n  }\r\n\r\n  function setFeeDiscountRegistry(address _feeDiscountRegistry) external override {\r\n    _authorize();\r\n    feeDiscountRegistry = _feeDiscountRegistry;\r\n    emit FeeDiscountRegistry(_feeDiscountRegistry);\r\n  }\r\n}\r\n"},"contracts/FeeDiscountRegistry.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';\nimport './interfaces/IFeeDiscountRegistry.sol';\n\ncontract FeeDiscountRegistry is IFeeDiscountRegistry {\n  address public immutable override algebraFactory;\n  bytes32 public constant override FEE_DISCOUNT_MANAGER = keccak256('FEE_DISCOUNT_MANAGER');\n  uint16 public constant override FEE_DISCOUNT_DENOMINATOR = 1000;\n\n  // user => pool => feeDiscount\n  mapping(address => mapping(address => uint16)) public override feeDiscounts;\n\n  constructor(address _algebraFactory) {\n    algebraFactory = _algebraFactory;\n  }\n\n  function setFeeDiscount(address user, address[] memory pools, uint16[] memory newDiscounts) external override {\n    require(IAlgebraFactory(algebraFactory).hasRoleOrOwner(FEE_DISCOUNT_MANAGER, msg.sender), 'Unauthorized');\n    require(pools.length == newDiscounts.length, 'ArraysLengthMismatch');\n\n    for (uint i = 0; i < pools.length; i++) {\n      require(newDiscounts[i] <= FEE_DISCOUNT_DENOMINATOR, 'fee discount execeeds 100%');\n      feeDiscounts[user][pools[i]] = newDiscounts[i];\n      emit FeeDiscount(user, pools[i], newDiscounts[i]);\n    }\n  }\n}\n"},"contracts/interfaces/IFeeDiscountPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\ninterface IFeeDiscountPlugin {\n  function setFeeDiscountRegistry(address registry) external;\n\n  function feeDiscountRegistry() external view returns (address);\n\n  event FeeDiscountRegistry(address registry);\n}\n"},"contracts/interfaces/IFeeDiscountRegistry.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\ninterface IFeeDiscountRegistry {\n  event FeeDiscount(address user, address pool, uint16 newDiscount);\n\n  function feeDiscounts(address user, address pool) external returns (uint16 feeDiscount);\n  function setFeeDiscount(address user, address[] memory pools, uint16[] memory newDiscounts) external;\n\n  function algebraFactory() external view returns (address);\n  function FEE_DISCOUNT_MANAGER() external pure returns (bytes32);\n  function FEE_DISCOUNT_DENOMINATOR() external pure returns (uint16);\n}\n"},"contracts/test/MockFactory.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\r\npragma solidity =0.8.20;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol';\r\n\r\n/// @title Mock of Algebra factory for plugins testing\r\ncontract MockFactory {\r\n  bytes32 public constant POOLS_ADMINISTRATOR_ROLE = keccak256('POOLS_ADMINISTRATOR');\r\n\r\n  address public owner;\r\n\r\n  mapping(address => mapping(bytes32 => bool)) public hasRole;\r\n\r\n  mapping(address => mapping(address => address)) public poolByPair;\r\n\r\n  constructor() {\r\n    owner = msg.sender;\r\n  }\r\n\r\n  function hasRoleOrOwner(bytes32 role, address account) public view returns (bool) {\r\n    return (owner == account || hasRole[account][role]);\r\n  }\r\n\r\n  function grantRole(bytes32 role, address account) external {\r\n    hasRole[account][role] = true;\r\n  }\r\n\r\n  function revokeRole(bytes32 role, address account) external {\r\n    hasRole[account][role] = false;\r\n  }\r\n\r\n  function stubPool(address token0, address token1, address pool) public {\r\n    poolByPair[token0][token1] = pool;\r\n    poolByPair[token1][token0] = pool;\r\n  }\r\n\r\n  function beforeCreatePoolHook(address pluginFactory, address pool) external {\r\n    IAlgebraPluginFactory(pluginFactory).beforeCreatePoolHook(pool, address(0), address(0), address(0), address(0), '0x');\r\n  }\r\n}\r\n"},"contracts/test/MockPool.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\r\npragma solidity =0.8.20;\r\npragma abicoder v1;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/Constants.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol';\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol';\r\nimport '@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol';\r\n\r\n/// @title Mock of Algebra concentrated liquidity pool for plugins testing\r\ncontract MockPool is IAlgebraPoolActions, IAlgebraPoolPermissionedActions, IAlgebraPoolState {\r\n  struct GlobalState {\r\n    uint160 price; // The square root of the current price in Q64.96 format\r\n    int24 tick; // The current tick\r\n    uint16 fee; // The current fee in hundredths of a bip, i.e. 1e-6\r\n    uint8 pluginConfig;\r\n    uint16 communityFee; // The community fee represented as a percent of all collected fee in thousandths (1e-3)\r\n    bool unlocked; // True if the contract is unlocked, otherwise - false\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  uint256 public override totalFeeGrowth0Token;\r\n  /// @inheritdoc IAlgebraPoolState\r\n  uint256 public override totalFeeGrowth1Token;\r\n  /// @inheritdoc IAlgebraPoolState\r\n  GlobalState public override globalState;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  int24 public override nextTickGlobal;\r\n  /// @inheritdoc IAlgebraPoolState\r\n  int24 public override prevTickGlobal;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  uint128 public override liquidity;\r\n  /// @inheritdoc IAlgebraPoolState\r\n  int24 public override tickSpacing;\r\n  /// @inheritdoc IAlgebraPoolState\r\n  uint32 public override lastFeeTransferTimestamp;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  uint32 public override tickTreeRoot; // The root bitmap of search tree\r\n  /// @inheritdoc IAlgebraPoolState\r\n  mapping(int16 => uint256) public override tickTreeSecondLayer; // The second layer of search tree\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  address public override plugin;\r\n\r\n  address public override communityVault;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  mapping(int24 => TickManagement.Tick) public override ticks;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  mapping(int16 => uint256) public override tickTable;\r\n\r\n  struct Position {\r\n    uint256 liquidity; // The amount of liquidity concentrated in the range\r\n    uint256 innerFeeGrowth0Token; // The last updated fee growth per unit of liquidity\r\n    uint256 innerFeeGrowth1Token;\r\n    uint128 fees0; // The amount of token0 owed to a LP\r\n    uint128 fees1; // The amount of token1 owed to a LP\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  mapping(bytes32 => Position) public override positions;\r\n\r\n  address owner;\r\n  uint24 public overrideFee;\r\n  uint24 public pluginFee;\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function getCommunityFeePending() external pure override returns (uint128, uint128) {\r\n    revert('not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function getPluginFeePending() external pure override returns (uint128, uint128) {\r\n    revert('not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function fee() external pure returns (uint16) {\r\n    revert('not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function safelyGetStateOfAMM() external pure override returns (uint160, int24, uint16, uint8, uint128, int24, int24) {\r\n    revert('not implemented');\r\n  }\r\n\r\n  constructor() {\r\n    globalState.fee = Constants.INIT_DEFAULT_FEE;\r\n    globalState.unlocked = true;\r\n    owner = msg.sender;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function getReserves() external pure override returns (uint128, uint128) {\r\n    revert('not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolState\r\n  function isUnlocked() external view override returns (bool unlocked) {\r\n    return globalState.unlocked;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function initialize(uint160 initialPrice) external override {\r\n    int24 tick = TickMath.getTickAtSqrtRatio(initialPrice); // getTickAtSqrtRatio checks validity of initialPrice inside\r\n\r\n    if (plugin != address(0)) {\r\n      IAlgebraPlugin(plugin).beforeInitialize(msg.sender, initialPrice);\r\n    }\r\n\r\n    tickSpacing = 60;\r\n\r\n    uint8 pluginConfig = globalState.pluginConfig;\r\n\r\n    globalState.price = initialPrice;\r\n    globalState.tick = tick;\r\n\r\n    if (pluginConfig & Plugins.AFTER_INIT_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).afterInitialize(msg.sender, initialPrice, tick);\r\n    }\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function mint(\r\n    address,\r\n    address recipient,\r\n    int24 bottomTick,\r\n    int24 topTick,\r\n    uint128 liquidityDesired,\r\n    bytes calldata data\r\n  ) external override returns (uint256, uint256, uint128) {\r\n    if (globalState.pluginConfig & Plugins.BEFORE_POSITION_MODIFY_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).beforeModifyPosition(msg.sender, recipient, bottomTick, topTick, int128(liquidityDesired), data);\r\n    }\r\n\r\n    if (globalState.pluginConfig & Plugins.AFTER_POSITION_MODIFY_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).afterModifyPosition(msg.sender, recipient, bottomTick, topTick, int128(liquidityDesired), 0, 0, data);\r\n    }\r\n    return (0, 0, 0);\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function burn(int24 bottomTick, int24 topTick, uint128 liquidityDesired, bytes calldata data) external override returns (uint256, uint256) {\r\n    if (globalState.pluginConfig & Plugins.BEFORE_POSITION_MODIFY_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).beforeModifyPosition(msg.sender, msg.sender, bottomTick, topTick, -int128(liquidityDesired), data);\r\n    }\r\n\r\n    if (globalState.pluginConfig & Plugins.AFTER_POSITION_MODIFY_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).afterModifyPosition(msg.sender, msg.sender, bottomTick, topTick, -int128(liquidityDesired), 0, 0, data);\r\n    }\r\n    return (0, 0);\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function collect(address, int24, int24, uint128, uint128) external pure override returns (uint128, uint128) {\r\n    revert('Not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function swap(address, bool, int256, uint160, bytes calldata) external pure override returns (int256, int256) {\r\n    revert('Not implemented');\r\n  }\r\n\r\n  function swapToTick(int24 targetTick) external {\r\n    IAlgebraPlugin _plugin = IAlgebraPlugin(plugin);\r\n    if (globalState.pluginConfig & Plugins.BEFORE_SWAP_FLAG != 0) {\r\n      (, overrideFee, pluginFee) = _plugin.beforeSwap(msg.sender, msg.sender, true, 0, 0, false, '');\r\n    }\r\n\r\n    globalState.price = TickMath.getSqrtRatioAtTick(targetTick);\r\n    globalState.tick = targetTick;\r\n\r\n    if (globalState.pluginConfig & Plugins.AFTER_SWAP_FLAG != 0) {\r\n      _plugin.afterSwap(msg.sender, msg.sender, true, 0, 0, 0, 0, '');\r\n    }\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function swapWithPaymentInAdvance(address, address, bool, int256, uint160, bytes calldata) external pure override returns (int256, int256) {\r\n    revert('Not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolActions\r\n  function flash(address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external override {\r\n    uint8 pluginConfig = globalState.pluginConfig;\r\n    if (pluginConfig & Plugins.BEFORE_FLASH_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).beforeFlash(msg.sender, recipient, amount0, amount1, data);\r\n    }\r\n\r\n    if (pluginConfig & Plugins.AFTER_FLASH_FLAG != 0) {\r\n      IAlgebraPlugin(plugin).afterFlash(msg.sender, recipient, amount0, amount1, 0, 0, data);\r\n    }\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function setCommunityFee(uint16 newCommunityFee) external override {\r\n    if (newCommunityFee > Constants.MAX_COMMUNITY_FEE || newCommunityFee == globalState.communityFee)\r\n      revert IAlgebraPoolErrors.invalidNewCommunityFee();\r\n    globalState.communityFee = newCommunityFee;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function setTickSpacing(int24 newTickSpacing) external override {\r\n    if (newTickSpacing <= 0 || newTickSpacing > Constants.MAX_TICK_SPACING || tickSpacing == newTickSpacing)\r\n      revert IAlgebraPoolErrors.invalidNewTickSpacing();\r\n    tickSpacing = newTickSpacing;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function setPlugin(address newPluginAddress) external override {\r\n    require(msg.sender == owner);\r\n    plugin = newPluginAddress;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function setPluginConfig(uint8 newConfig) external override {\r\n    require(msg.sender == owner || msg.sender == plugin);\r\n    globalState.pluginConfig = newConfig;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function setFee(uint16 newFee) external override {\r\n    require(msg.sender == owner || msg.sender == plugin);\r\n    bool isDynamicFeeEnabled = globalState.pluginConfig & uint8(Plugins.DYNAMIC_FEE) != 0;\r\n\r\n    if (msg.sender == plugin) {\r\n      require(isDynamicFeeEnabled);\r\n    } else {\r\n      require(!isDynamicFeeEnabled && msg.sender == owner);\r\n    }\r\n\r\n    globalState.fee = newFee;\r\n  }\r\n\r\n  function setCommunityVault(address newCommunityVault) external override {\r\n    communityVault = newCommunityVault;\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function sync() external pure override {\r\n    revert('Not implemented');\r\n  }\r\n\r\n  /// @inheritdoc IAlgebraPoolPermissionedActions\r\n  function skim() external pure override {\r\n    revert('Not implemented');\r\n  }\r\n}\r\n"},"contracts/test/TestFeeDiscountPlugin.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\r\npragma solidity =0.8.20;\r\n\r\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\r\nimport '@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol';\r\n\r\nimport '../FeeDiscountPlugin.sol';\r\n\r\n/// @title Algebra Integral 1.2 limit order plugin\r\ncontract TestFeeDiscountPlugin is FeeDiscountPlugin {\r\n  using Plugins for uint8;\r\n\r\n  uint24 fee;\r\n  /// @inheritdoc IAlgebraPlugin\r\n  uint8 public constant override defaultPluginConfig = uint8(Plugins.AFTER_INIT_FLAG | Plugins.BEFORE_SWAP_FLAG);\r\n\r\n  constructor(address _pool, address _factory, address _pluginFactory, address registry) BaseAbstractPlugin(_pool, _factory, _pluginFactory) FeeDiscountPlugin(registry){}\r\n\r\n  // ###### HOOKS ######\r\n\r\n  function beforeInitialize(address, uint160) external override onlyPool returns (bytes4) {\r\n    _updatePluginConfigInPool(defaultPluginConfig);\r\n    return IAlgebraPlugin.beforeInitialize.selector;\r\n  }\r\n\r\n  function afterInitialize(address, uint160, int24) external override view onlyPool returns (bytes4) {\r\n    return IAlgebraPlugin.afterInitialize.selector;\r\n  }\r\n\r\n  function beforeSwap(address, address, bool, int256, uint160, bool, bytes calldata) external override onlyPool returns (bytes4, uint24, uint24) {\r\n    fee = _applyFeeDiscount(tx.origin, msg.sender, fee);\r\n    return (IAlgebraPlugin.beforeSwap.selector, fee, 0);\r\n  }\r\n\r\n\r\n  function setFee(uint24 _newFee) external {\r\n    fee = _newFee;\r\n  }\r\n\r\n}\r\n"}},"settings":{"evmVersion":"paris","optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"none"},"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}}}},"output":{"sources":{"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol","exportedSymbols":{"AbstractPlugin":[434],"IAbstractPlugin":[495],"IAlgebraFactory":[779],"IAlgebraPlugin":[967],"IAlgebraPluginFactory":[999],"IAlgebraPool":[801],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolEvents":[1359],"IAlgebraPoolImmutables":[1387],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619],"IAlgebraVaultFactory":[1647],"Plugins":[2162],"SafeTransfer":[2299],"Timestamp":[512]},"id":435,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity","^","0.8",".20"],"nodeType":"PragmaDirective","src":"46:24:0"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","file":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","id":2,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":513,"src":"74:74:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":3,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":2163,"src":"150:70:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","id":4,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":2300,"src":"222:75:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","id":5,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":780,"src":"301:79:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","id":6,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":1620,"src":"382:86:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","id":7,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":802,"src":"470:76:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol","file":"./interfaces/IAbstractPlugin.sol","id":8,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":435,"sourceUnit":496,"src":"550:42:0","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":10,"name":"IAbstractPlugin","nameLocations":["780:15:0"],"nodeType":"IdentifierPath","referencedDeclaration":495,"src":"780:15:0"},"id":11,"nodeType":"InheritanceSpecifier","src":"780:15:0"},{"baseName":{"id":12,"name":"Timestamp","nameLocations":["797:9:0"],"nodeType":"IdentifierPath","referencedDeclaration":512,"src":"797:9:0"},"id":13,"nodeType":"InheritanceSpecifier","src":"797:9:0"}],"canonicalName":"AbstractPlugin","contractDependencies":[],"contractKind":"contract","documentation":{"id":9,"nodeType":"StructuredDocumentation","src":"596:148:0","text":"@title Algebra Integral 1.2.1 plugin base\n @notice This contract simplifies development process of plugins by providing base functionality"},"fullyImplemented":false,"id":434,"linearizedBaseContracts":[434,512,495,967],"name":"AbstractPlugin","nameLocation":"762:14:0","nodeType":"ContractDefinition","nodes":[{"global":false,"id":16,"libraryName":{"id":14,"name":"Plugins","nameLocations":["818:7:0"],"nodeType":"IdentifierPath","referencedDeclaration":2162,"src":"818:7:0"},"nodeType":"UsingForDirective","src":"812:24:0","typeName":{"id":15,"name":"uint8","nodeType":"ElementaryTypeName","src":"830:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"constant":true,"documentation":{"id":17,"nodeType":"StructuredDocumentation","src":"842:50:0","text":"@dev The role can be granted in AlgebraFactory"},"functionSelector":"31b25d1a","id":22,"mutability":"constant","name":"ALGEBRA_BASE_PLUGIN_MANAGER","nameLocation":"920:27:0","nodeType":"VariableDeclaration","scope":434,"src":"896:94:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":18,"name":"bytes32","nodeType":"ElementaryTypeName","src":"896:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"arguments":[{"hexValue":"414c47454252415f424153455f504c5547494e5f4d414e41474552","id":20,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"960:29:0","typeDescriptions":{"typeIdentifier":"t_stringliteral_8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f5","typeString":"literal_string \"ALGEBRA_BASE_PLUGIN_MANAGER\""},"value":"ALGEBRA_BASE_PLUGIN_MANAGER"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f5","typeString":"literal_string \"ALGEBRA_BASE_PLUGIN_MANAGER\""}],"id":19,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-8,"src":"950:9:0","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":21,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"950:40:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"public"},{"constant":true,"id":25,"mutability":"constant","name":"defaultPluginConfig","nameLocation":"1020:19:0","nodeType":"VariableDeclaration","scope":434,"src":"997:46:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":23,"name":"uint8","nodeType":"ElementaryTypeName","src":"997:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"value":{"hexValue":"30","id":24,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1042:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"visibility":"private"},{"constant":false,"functionSelector":"16f0115b","id":27,"mutability":"immutable","name":"pool","nameLocation":"1075:4:0","nodeType":"VariableDeclaration","scope":434,"src":"1050:29:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":26,"name":"address","nodeType":"ElementaryTypeName","src":"1050:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"constant":false,"id":29,"mutability":"immutable","name":"pluginFactory","nameLocation":"1111:13:0","nodeType":"VariableDeclaration","scope":434,"src":"1084:40:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":28,"name":"address","nodeType":"ElementaryTypeName","src":"1084:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"body":{"id":35,"nodeType":"Block","src":"1151:39:0","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":31,"name":"_checkIfFromPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":64,"src":"1158:16:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":32,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1158:18:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":33,"nodeType":"ExpressionStatement","src":"1158:18:0"},{"id":34,"nodeType":"PlaceholderStatement","src":"1183:1:0"}]},"id":36,"name":"onlyPool","nameLocation":"1140:8:0","nodeType":"ModifierDefinition","parameters":{"id":30,"nodeType":"ParameterList","parameters":[],"src":"1148:2:0"},"src":"1131:59:0","virtual":false,"visibility":"internal"},{"body":{"id":51,"nodeType":"Block","src":"1247:60:0","statements":[{"expression":{"id":49,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":43,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"1255:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":44,"name":"pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":29,"src":"1261:13:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":45,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"1254:21:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_address_$_t_address_$","typeString":"tuple(address,address)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"id":46,"name":"_pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":38,"src":"1279:5:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":47,"name":"_pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":40,"src":"1286:14:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":48,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1278:23:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_address_$_t_address_$","typeString":"tuple(address,address)"}},"src":"1254:47:0","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":50,"nodeType":"ExpressionStatement","src":"1254:47:0"}]},"id":52,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":41,"nodeType":"ParameterList","parameters":[{"constant":false,"id":38,"mutability":"mutable","name":"_pool","nameLocation":"1216:5:0","nodeType":"VariableDeclaration","scope":52,"src":"1208:13:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":37,"name":"address","nodeType":"ElementaryTypeName","src":"1208:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":40,"mutability":"mutable","name":"_pluginFactory","nameLocation":"1231:14:0","nodeType":"VariableDeclaration","scope":52,"src":"1223:22:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":39,"name":"address","nodeType":"ElementaryTypeName","src":"1223:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1207:39:0"},"returnParameters":{"id":42,"nodeType":"ParameterList","parameters":[],"src":"1247:0:0"},"scope":434,"src":"1196:111:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":63,"nodeType":"Block","src":"1355:67:0","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":59,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":56,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"1370:3:0","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":57,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1374:6:0","memberName":"sender","nodeType":"MemberAccess","src":"1370:10:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":58,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"1384:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1370:18:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4f6e6c7920706f6f6c2063616e2063616c6c2074686973","id":60,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1390:25:0","typeDescriptions":{"typeIdentifier":"t_stringliteral_b7deb07899b60a5f738285d4979109597e20f4e85555ea89670e2ec5bd1854eb","typeString":"literal_string \"Only pool can call this\""},"value":"Only pool can call this"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_b7deb07899b60a5f738285d4979109597e20f4e85555ea89670e2ec5bd1854eb","typeString":"literal_string \"Only pool can call this\""}],"id":55,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1362:7:0","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":61,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1362:54:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":62,"nodeType":"ExpressionStatement","src":"1362:54:0"}]},"id":64,"implemented":true,"kind":"function","modifiers":[],"name":"_checkIfFromPool","nameLocation":"1322:16:0","nodeType":"FunctionDefinition","parameters":{"id":53,"nodeType":"ParameterList","parameters":[],"src":"1338:2:0"},"returnParameters":{"id":54,"nodeType":"ParameterList","parameters":[],"src":"1355:0:0"},"scope":434,"src":"1313:109:0","stateMutability":"view","virtual":false,"visibility":"internal"},{"id":67,"implemented":false,"kind":"function","modifiers":[],"name":"_authorize","nameLocation":"1437:10:0","nodeType":"FunctionDefinition","parameters":{"id":65,"nodeType":"ParameterList","parameters":[],"src":"1447:2:0"},"returnParameters":{"id":66,"nodeType":"ParameterList","parameters":[],"src":"1471:0:0"},"scope":434,"src":"1428:44:0","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":90,"nodeType":"Block","src":"1585:89:0","statements":[{"expression":{"id":88,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":78,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":70,"src":"1593:5:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":79,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":72,"src":"1600:4:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":80,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":74,"src":"1606:3:0","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"id":81,"name":"pluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":76,"src":"1611:12:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},null,null],"id":82,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"1592:36:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$__$__$","typeString":"tuple(uint160,int24,uint16,uint8,,)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":84,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"1649:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":83,"name":"IAlgebraPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1619,"src":"1631:17:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolState_$1619_$","typeString":"type(contract IAlgebraPoolState)"}},"id":85,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1631:23:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPoolState_$1619","typeString":"contract IAlgebraPoolState"}},"id":86,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1655:11:0","memberName":"globalState","nodeType":"MemberAccess","referencedDeclaration":1478,"src":"1631:35:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$_t_uint16_$_t_bool_$","typeString":"function () view external returns (uint160,int24,uint16,uint8,uint16,bool)"}},"id":87,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1631:37:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$_t_uint16_$_t_bool_$","typeString":"tuple(uint160,int24,uint16,uint8,uint16,bool)"}},"src":"1592:76:0","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":89,"nodeType":"ExpressionStatement","src":"1592:76:0"}]},"id":91,"implemented":true,"kind":"function","modifiers":[],"name":"_getPoolState","nameLocation":"1487:13:0","nodeType":"FunctionDefinition","parameters":{"id":68,"nodeType":"ParameterList","parameters":[],"src":"1500:2:0"},"returnParameters":{"id":77,"nodeType":"ParameterList","parameters":[{"constant":false,"id":70,"mutability":"mutable","name":"price","nameLocation":"1534:5:0","nodeType":"VariableDeclaration","scope":91,"src":"1526:13:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":69,"name":"uint160","nodeType":"ElementaryTypeName","src":"1526:7:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":72,"mutability":"mutable","name":"tick","nameLocation":"1547:4:0","nodeType":"VariableDeclaration","scope":91,"src":"1541:10:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":71,"name":"int24","nodeType":"ElementaryTypeName","src":"1541:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":74,"mutability":"mutable","name":"fee","nameLocation":"1560:3:0","nodeType":"VariableDeclaration","scope":91,"src":"1553:10:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":73,"name":"uint16","nodeType":"ElementaryTypeName","src":"1553:6:0","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":76,"mutability":"mutable","name":"pluginConfig","nameLocation":"1571:12:0","nodeType":"VariableDeclaration","scope":91,"src":"1565:18:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":75,"name":"uint8","nodeType":"ElementaryTypeName","src":"1565:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"1525:59:0"},"scope":434,"src":"1478:196:0","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":102,"nodeType":"Block","src":"1747:47:0","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":97,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"1774:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":96,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":801,"src":"1761:12:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$801_$","typeString":"type(contract IAlgebraPool)"}},"id":98,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1761:18:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$801","typeString":"contract IAlgebraPool"}},"id":99,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1780:6:0","memberName":"plugin","nodeType":"MemberAccess","referencedDeclaration":1524,"src":"1761:25:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_address_$","typeString":"function () view external returns (address)"}},"id":100,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1761:27:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":95,"id":101,"nodeType":"Return","src":"1754:34:0"}]},"id":103,"implemented":true,"kind":"function","modifiers":[],"name":"_getPluginInPool","nameLocation":"1689:16:0","nodeType":"FunctionDefinition","parameters":{"id":92,"nodeType":"ParameterList","parameters":[],"src":"1705:2:0"},"returnParameters":{"id":95,"nodeType":"ParameterList","parameters":[{"constant":false,"id":94,"mutability":"mutable","name":"plugin","nameLocation":"1739:6:0","nodeType":"VariableDeclaration","scope":103,"src":"1731:14:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":93,"name":"address","nodeType":"ElementaryTypeName","src":"1731:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1730:16:0"},"scope":434,"src":"1680:114:0","stateMutability":"view","virtual":false,"visibility":"internal"},{"baseFunctions":[494],"body":{"id":125,"nodeType":"Block","src":"1929:83:0","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":114,"name":"_authorize","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"1936:10:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":115,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1936:12:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":116,"nodeType":"ExpressionStatement","src":"1936:12:0"},{"expression":{"arguments":[{"id":120,"name":"token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":106,"src":"1981:5:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":121,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":110,"src":"1988:9:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":122,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":108,"src":"1999:6:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"id":117,"name":"SafeTransfer","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2299,"src":"1955:12:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_SafeTransfer_$2299_$","typeString":"type(library SafeTransfer)"}},"id":119,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1968:12:0","memberName":"safeTransfer","nodeType":"MemberAccess","referencedDeclaration":2298,"src":"1955:25:0","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$","typeString":"function (address,address,uint256)"}},"id":123,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1955:51:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":124,"nodeType":"ExpressionStatement","src":"1955:51:0"}]},"documentation":{"id":104,"nodeType":"StructuredDocumentation","src":"1800:31:0","text":"@inheritdoc IAbstractPlugin"},"functionSelector":"e72c652d","id":126,"implemented":true,"kind":"function","modifiers":[],"name":"collectPluginFee","nameLocation":"1844:16:0","nodeType":"FunctionDefinition","overrides":{"id":112,"nodeType":"OverrideSpecifier","overrides":[],"src":"1920:8:0"},"parameters":{"id":111,"nodeType":"ParameterList","parameters":[{"constant":false,"id":106,"mutability":"mutable","name":"token","nameLocation":"1869:5:0","nodeType":"VariableDeclaration","scope":126,"src":"1861:13:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":105,"name":"address","nodeType":"ElementaryTypeName","src":"1861:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":108,"mutability":"mutable","name":"amount","nameLocation":"1884:6:0","nodeType":"VariableDeclaration","scope":126,"src":"1876:14:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":107,"name":"uint256","nodeType":"ElementaryTypeName","src":"1876:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":110,"mutability":"mutable","name":"recipient","nameLocation":"1900:9:0","nodeType":"VariableDeclaration","scope":126,"src":"1892:17:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":109,"name":"address","nodeType":"ElementaryTypeName","src":"1892:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1860:50:0"},"returnParameters":{"id":113,"nodeType":"ParameterList","parameters":[],"src":"1929:0:0"},"scope":434,"src":"1835:177:0","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[820],"body":{"id":143,"nodeType":"Block","src":"2144:59:0","statements":[{"expression":{"expression":{"expression":{"id":139,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"2158:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":140,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2173:15:0","memberName":"handlePluginFee","nodeType":"MemberAccess","referencedDeclaration":820,"src":"2158:30:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_uint256_$_t_uint256_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.handlePluginFee(uint256,uint256) returns (bytes4)"}},"id":141,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2189:8:0","memberName":"selector","nodeType":"MemberAccess","src":"2158:39:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":138,"id":142,"nodeType":"Return","src":"2151:46:0"}]},"documentation":{"id":127,"nodeType":"StructuredDocumentation","src":"2018:30:0","text":"@inheritdoc IAlgebraPlugin"},"functionSelector":"aa6b14bb","id":144,"implemented":true,"kind":"function","modifiers":[{"id":135,"kind":"modifierInvocation","modifierName":{"id":134,"name":"onlyPool","nameLocations":["2118:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"2118:8:0"},"nodeType":"ModifierInvocation","src":"2118:8:0"}],"name":"handlePluginFee","nameLocation":"2061:15:0","nodeType":"FunctionDefinition","overrides":{"id":133,"nodeType":"OverrideSpecifier","overrides":[],"src":"2109:8:0"},"parameters":{"id":132,"nodeType":"ParameterList","parameters":[{"constant":false,"id":129,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":144,"src":"2077:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":128,"name":"uint256","nodeType":"ElementaryTypeName","src":"2077:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":131,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":144,"src":"2086:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":130,"name":"uint256","nodeType":"ElementaryTypeName","src":"2086:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2076:18:0"},"returnParameters":{"id":138,"nodeType":"ParameterList","parameters":[{"constant":false,"id":137,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":144,"src":"2136:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":136,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2136:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2135:8:0"},"scope":434,"src":"2052:151:0","stateMutability":"view","virtual":false,"visibility":"external"},{"baseFunctions":[830],"body":{"id":160,"nodeType":"Block","src":"2333:60:0","statements":[{"expression":{"expression":{"expression":{"id":156,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"2347:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":157,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2362:16:0","memberName":"beforeInitialize","nodeType":"MemberAccess","referencedDeclaration":830,"src":"2347:31:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeInitialize(address,uint160) returns (bytes4)"}},"id":158,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2379:8:0","memberName":"selector","nodeType":"MemberAccess","src":"2347:40:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":155,"id":159,"nodeType":"Return","src":"2340:47:0"}]},"functionSelector":"636fd804","id":161,"implemented":true,"kind":"function","modifiers":[{"id":152,"kind":"modifierInvocation","modifierName":{"id":151,"name":"onlyPool","nameLocations":["2307:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"2307:8:0"},"nodeType":"ModifierInvocation","src":"2307:8:0"}],"name":"beforeInitialize","nameLocation":"2246:16:0","nodeType":"FunctionDefinition","overrides":{"id":150,"nodeType":"OverrideSpecifier","overrides":[],"src":"2298:8:0"},"parameters":{"id":149,"nodeType":"ParameterList","parameters":[{"constant":false,"id":146,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":161,"src":"2263:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":145,"name":"address","nodeType":"ElementaryTypeName","src":"2263:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":148,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":161,"src":"2272:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":147,"name":"uint160","nodeType":"ElementaryTypeName","src":"2272:7:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"2262:18:0"},"returnParameters":{"id":155,"nodeType":"ParameterList","parameters":[{"constant":false,"id":154,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":161,"src":"2325:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":153,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2325:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2324:8:0"},"scope":434,"src":"2237:156:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[842],"body":{"id":179,"nodeType":"Block","src":"2501:59:0","statements":[{"expression":{"expression":{"expression":{"id":175,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"2515:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":176,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2530:15:0","memberName":"afterInitialize","nodeType":"MemberAccess","referencedDeclaration":842,"src":"2515:30:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$_t_int24_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterInitialize(address,uint160,int24) returns (bytes4)"}},"id":177,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2546:8:0","memberName":"selector","nodeType":"MemberAccess","src":"2515:39:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":174,"id":178,"nodeType":"Return","src":"2508:46:0"}]},"functionSelector":"82dd6522","id":180,"implemented":true,"kind":"function","modifiers":[{"id":171,"kind":"modifierInvocation","modifierName":{"id":170,"name":"onlyPool","nameLocations":["2475:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"2475:8:0"},"nodeType":"ModifierInvocation","src":"2475:8:0"}],"name":"afterInitialize","nameLocation":"2408:15:0","nodeType":"FunctionDefinition","overrides":{"id":169,"nodeType":"OverrideSpecifier","overrides":[],"src":"2466:8:0"},"parameters":{"id":168,"nodeType":"ParameterList","parameters":[{"constant":false,"id":163,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":180,"src":"2424:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":162,"name":"address","nodeType":"ElementaryTypeName","src":"2424:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":165,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":180,"src":"2433:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":164,"name":"uint160","nodeType":"ElementaryTypeName","src":"2433:7:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":167,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":180,"src":"2442:5:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":166,"name":"int24","nodeType":"ElementaryTypeName","src":"2442:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"2423:25:0"},"returnParameters":{"id":174,"nodeType":"ParameterList","parameters":[{"constant":false,"id":173,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":180,"src":"2493:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":172,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2493:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2492:8:0"},"scope":434,"src":"2399:161:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[862],"body":{"id":208,"nodeType":"Block","src":"2712:69:0","statements":[{"expression":{"components":[{"expression":{"expression":{"id":202,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"2727:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":203,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2742:20:0","memberName":"beforeModifyPosition","nodeType":"MemberAccess","referencedDeclaration":862,"src":"2727:35:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeModifyPosition(address,address,int24,int24,int128,bytes calldata) returns (bytes4,uint24)"}},"id":204,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2763:8:0","memberName":"selector","nodeType":"MemberAccess","src":"2727:44:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"hexValue":"30","id":205,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2773:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":206,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"2726:49:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,int_const 0)"}},"functionReturnParameters":201,"id":207,"nodeType":"Return","src":"2719:56:0"}]},"functionSelector":"5e2411b2","id":209,"implemented":true,"kind":"function","modifiers":[{"id":196,"kind":"modifierInvocation","modifierName":{"id":195,"name":"onlyPool","nameLocations":["2678:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"2678:8:0"},"nodeType":"ModifierInvocation","src":"2678:8:0"}],"name":"beforeModifyPosition","nameLocation":"2575:20:0","nodeType":"FunctionDefinition","overrides":{"id":194,"nodeType":"OverrideSpecifier","overrides":[],"src":"2669:8:0"},"parameters":{"id":193,"nodeType":"ParameterList","parameters":[{"constant":false,"id":182,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2596:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":181,"name":"address","nodeType":"ElementaryTypeName","src":"2596:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":184,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2605:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":183,"name":"address","nodeType":"ElementaryTypeName","src":"2605:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":186,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2614:5:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":185,"name":"int24","nodeType":"ElementaryTypeName","src":"2614:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":188,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2621:5:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":187,"name":"int24","nodeType":"ElementaryTypeName","src":"2621:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":190,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2628:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":189,"name":"int128","nodeType":"ElementaryTypeName","src":"2628:6:0","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":192,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2636:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":191,"name":"bytes","nodeType":"ElementaryTypeName","src":"2636:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"2595:56:0"},"returnParameters":{"id":201,"nodeType":"ParameterList","parameters":[{"constant":false,"id":198,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2696:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":197,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2696:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":200,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":209,"src":"2704:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":199,"name":"uint24","nodeType":"ElementaryTypeName","src":"2704:6:0","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2695:16:0"},"scope":434,"src":"2566:215:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[884],"body":{"id":237,"nodeType":"Block","src":"2987:63:0","statements":[{"expression":{"expression":{"expression":{"id":233,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"3001:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":234,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3016:19:0","memberName":"afterModifyPosition","nodeType":"MemberAccess","referencedDeclaration":884,"src":"3001:34:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":235,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3036:8:0","memberName":"selector","nodeType":"MemberAccess","src":"3001:43:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":232,"id":236,"nodeType":"Return","src":"2994:50:0"}]},"functionSelector":"d6852010","id":238,"implemented":true,"kind":"function","modifiers":[{"id":229,"kind":"modifierInvocation","modifierName":{"id":228,"name":"onlyPool","nameLocations":["2961:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"2961:8:0"},"nodeType":"ModifierInvocation","src":"2961:8:0"}],"name":"afterModifyPosition","nameLocation":"2796:19:0","nodeType":"FunctionDefinition","overrides":{"id":227,"nodeType":"OverrideSpecifier","overrides":[],"src":"2952:8:0"},"parameters":{"id":226,"nodeType":"ParameterList","parameters":[{"constant":false,"id":211,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2822:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":210,"name":"address","nodeType":"ElementaryTypeName","src":"2822:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":213,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2836:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":212,"name":"address","nodeType":"ElementaryTypeName","src":"2836:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":215,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2850:5:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":214,"name":"int24","nodeType":"ElementaryTypeName","src":"2850:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":217,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2862:5:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":216,"name":"int24","nodeType":"ElementaryTypeName","src":"2862:5:0","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":219,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2874:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":218,"name":"int128","nodeType":"ElementaryTypeName","src":"2874:6:0","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":221,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2887:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":220,"name":"uint256","nodeType":"ElementaryTypeName","src":"2887:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":223,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2901:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":222,"name":"uint256","nodeType":"ElementaryTypeName","src":"2901:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":225,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2915:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":224,"name":"bytes","nodeType":"ElementaryTypeName","src":"2915:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"2815:119:0"},"returnParameters":{"id":232,"nodeType":"ParameterList","parameters":[{"constant":false,"id":231,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":238,"src":"2979:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":230,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2979:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2978:8:0"},"scope":434,"src":"2787:263:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[908],"body":{"id":271,"nodeType":"Block","src":"3247:62:0","statements":[{"expression":{"components":[{"expression":{"expression":{"id":264,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"3262:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":265,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3277:10:0","memberName":"beforeSwap","nodeType":"MemberAccess","referencedDeclaration":908,"src":"3262:25:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_bool_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeSwap(address,address,bool,int256,uint160,bool,bytes calldata) returns (bytes4,uint24,uint24)"}},"id":266,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3288:8:0","memberName":"selector","nodeType":"MemberAccess","src":"3262:34:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"hexValue":"30","id":267,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3298:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":268,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3301:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":269,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"3261:42:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_rational_0_by_1_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,int_const 0,int_const 0)"}},"functionReturnParameters":263,"id":270,"nodeType":"Return","src":"3254:49:0"}]},"functionSelector":"029c1cb7","id":272,"implemented":true,"kind":"function","modifiers":[{"id":256,"kind":"modifierInvocation","modifierName":{"id":255,"name":"onlyPool","nameLocations":["3205:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"3205:8:0"},"nodeType":"ModifierInvocation","src":"3205:8:0"}],"name":"beforeSwap","nameLocation":"3065:10:0","nodeType":"FunctionDefinition","overrides":{"id":254,"nodeType":"OverrideSpecifier","overrides":[],"src":"3196:8:0"},"parameters":{"id":253,"nodeType":"ParameterList","parameters":[{"constant":false,"id":240,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3082:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":239,"name":"address","nodeType":"ElementaryTypeName","src":"3082:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":242,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3096:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":241,"name":"address","nodeType":"ElementaryTypeName","src":"3096:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":244,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3110:4:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":243,"name":"bool","nodeType":"ElementaryTypeName","src":"3110:4:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":246,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3121:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":245,"name":"int256","nodeType":"ElementaryTypeName","src":"3121:6:0","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":248,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3134:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":247,"name":"uint160","nodeType":"ElementaryTypeName","src":"3134:7:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":250,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3148:4:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":249,"name":"bool","nodeType":"ElementaryTypeName","src":"3148:4:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":252,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3159:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":251,"name":"bytes","nodeType":"ElementaryTypeName","src":"3159:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3075:103:0"},"returnParameters":{"id":263,"nodeType":"ParameterList","parameters":[{"constant":false,"id":258,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3223:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":257,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3223:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":260,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3231:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":259,"name":"uint24","nodeType":"ElementaryTypeName","src":"3231:6:0","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":262,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":272,"src":"3239:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":261,"name":"uint24","nodeType":"ElementaryTypeName","src":"3239:6:0","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"3222:24:0"},"scope":434,"src":"3056:253:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[930],"body":{"id":300,"nodeType":"Block","src":"3459:53:0","statements":[{"expression":{"expression":{"expression":{"id":296,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"3473:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":297,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3488:9:0","memberName":"afterSwap","nodeType":"MemberAccess","referencedDeclaration":930,"src":"3473:24:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_int256_$_t_int256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterSwap(address,address,bool,int256,uint160,int256,int256,bytes calldata) returns (bytes4)"}},"id":298,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3498:8:0","memberName":"selector","nodeType":"MemberAccess","src":"3473:33:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":295,"id":299,"nodeType":"Return","src":"3466:40:0"}]},"functionSelector":"9cb5a963","id":301,"implemented":true,"kind":"function","modifiers":[{"id":292,"kind":"modifierInvocation","modifierName":{"id":291,"name":"onlyPool","nameLocations":["3433:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"3433:8:0"},"nodeType":"ModifierInvocation","src":"3433:8:0"}],"name":"afterSwap","nameLocation":"3324:9:0","nodeType":"FunctionDefinition","overrides":{"id":290,"nodeType":"OverrideSpecifier","overrides":[],"src":"3424:8:0"},"parameters":{"id":289,"nodeType":"ParameterList","parameters":[{"constant":false,"id":274,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3334:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":273,"name":"address","nodeType":"ElementaryTypeName","src":"3334:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":276,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3343:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":275,"name":"address","nodeType":"ElementaryTypeName","src":"3343:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":278,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3352:4:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":277,"name":"bool","nodeType":"ElementaryTypeName","src":"3352:4:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":280,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3358:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":279,"name":"int256","nodeType":"ElementaryTypeName","src":"3358:6:0","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":282,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3366:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":281,"name":"uint160","nodeType":"ElementaryTypeName","src":"3366:7:0","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":284,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3375:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":283,"name":"int256","nodeType":"ElementaryTypeName","src":"3375:6:0","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":286,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3383:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":285,"name":"int256","nodeType":"ElementaryTypeName","src":"3383:6:0","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":288,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3391:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":287,"name":"bytes","nodeType":"ElementaryTypeName","src":"3391:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3333:73:0"},"returnParameters":{"id":295,"nodeType":"ParameterList","parameters":[{"constant":false,"id":294,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":301,"src":"3451:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":293,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3451:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3450:8:0"},"scope":434,"src":"3315:197:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[946],"body":{"id":323,"nodeType":"Block","src":"3643:55:0","statements":[{"expression":{"expression":{"expression":{"id":319,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"3657:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":320,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3672:11:0","memberName":"beforeFlash","nodeType":"MemberAccess","referencedDeclaration":946,"src":"3657:26:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeFlash(address,address,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":321,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3684:8:0","memberName":"selector","nodeType":"MemberAccess","src":"3657:35:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":318,"id":322,"nodeType":"Return","src":"3650:42:0"}]},"functionSelector":"8de0a8ee","id":324,"implemented":true,"kind":"function","modifiers":[{"id":315,"kind":"modifierInvocation","modifierName":{"id":314,"name":"onlyPool","nameLocations":["3617:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"3617:8:0"},"nodeType":"ModifierInvocation","src":"3617:8:0"}],"name":"beforeFlash","nameLocation":"3527:11:0","nodeType":"FunctionDefinition","overrides":{"id":313,"nodeType":"OverrideSpecifier","overrides":[],"src":"3608:8:0"},"parameters":{"id":312,"nodeType":"ParameterList","parameters":[{"constant":false,"id":303,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3539:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":302,"name":"address","nodeType":"ElementaryTypeName","src":"3539:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":305,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3548:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":304,"name":"address","nodeType":"ElementaryTypeName","src":"3548:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":307,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3557:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":306,"name":"uint256","nodeType":"ElementaryTypeName","src":"3557:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":309,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3566:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":308,"name":"uint256","nodeType":"ElementaryTypeName","src":"3566:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":311,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3575:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":310,"name":"bytes","nodeType":"ElementaryTypeName","src":"3575:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3538:52:0"},"returnParameters":{"id":318,"nodeType":"ParameterList","parameters":[{"constant":false,"id":317,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":324,"src":"3635:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":316,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3635:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3634:8:0"},"scope":434,"src":"3518:180:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[966],"body":{"id":350,"nodeType":"Block","src":"3846:54:0","statements":[{"expression":{"expression":{"expression":{"id":346,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"3860:14:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":347,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3875:10:0","memberName":"afterFlash","nodeType":"MemberAccess","referencedDeclaration":966,"src":"3860:25:0","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterFlash(address,address,uint256,uint256,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":348,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3886:8:0","memberName":"selector","nodeType":"MemberAccess","src":"3860:34:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":345,"id":349,"nodeType":"Return","src":"3853:41:0"}]},"functionSelector":"343d37ff","id":351,"implemented":true,"kind":"function","modifiers":[{"id":342,"kind":"modifierInvocation","modifierName":{"id":341,"name":"onlyPool","nameLocations":["3820:8:0"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"3820:8:0"},"nodeType":"ModifierInvocation","src":"3820:8:0"}],"name":"afterFlash","nameLocation":"3713:10:0","nodeType":"FunctionDefinition","overrides":{"id":340,"nodeType":"OverrideSpecifier","overrides":[],"src":"3811:8:0"},"parameters":{"id":339,"nodeType":"ParameterList","parameters":[{"constant":false,"id":326,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3724:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":325,"name":"address","nodeType":"ElementaryTypeName","src":"3724:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":328,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3733:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":327,"name":"address","nodeType":"ElementaryTypeName","src":"3733:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":330,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3742:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":329,"name":"uint256","nodeType":"ElementaryTypeName","src":"3742:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":332,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3751:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":331,"name":"uint256","nodeType":"ElementaryTypeName","src":"3751:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":334,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3760:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":333,"name":"uint256","nodeType":"ElementaryTypeName","src":"3760:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":336,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3769:7:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":335,"name":"uint256","nodeType":"ElementaryTypeName","src":"3769:7:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":338,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3778:14:0","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":337,"name":"bytes","nodeType":"ElementaryTypeName","src":"3778:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3723:70:0"},"returnParameters":{"id":345,"nodeType":"ParameterList","parameters":[{"constant":false,"id":344,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":351,"src":"3838:6:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":343,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3838:6:0","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3837:8:0"},"scope":434,"src":"3704:196:0","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"body":{"id":373,"nodeType":"Block","src":"3973:182:0","statements":[{"assignments":[null,null,null,357],"declarations":[null,null,null,{"constant":false,"id":357,"mutability":"mutable","name":"currentPluginConfig","nameLocation":"3993:19:0","nodeType":"VariableDeclaration","scope":373,"src":"3987:25:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":356,"name":"uint8","nodeType":"ElementaryTypeName","src":"3987:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":360,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":358,"name":"_getPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":91,"src":"4016:13:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"function () view returns (uint160,int24,uint16,uint8)"}},"id":359,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4016:15:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"tuple(uint160,int24,uint16,uint8)"}},"nodeType":"VariableDeclarationStatement","src":"3980:51:0"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":363,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":361,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":357,"src":"4042:19:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":362,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":353,"src":"4065:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4042:38:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":372,"nodeType":"IfStatement","src":"4038:112:0","trueBody":{"id":371,"nodeType":"Block","src":"4082:68:0","statements":[{"expression":{"arguments":[{"id":368,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":353,"src":"4126:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"expression":{"arguments":[{"id":365,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"4104:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":364,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":801,"src":"4091:12:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$801_$","typeString":"type(contract IAlgebraPool)"}},"id":366,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4091:18:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$801","typeString":"contract IAlgebraPool"}},"id":367,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4110:15:0","memberName":"setPluginConfig","nodeType":"MemberAccess","referencedDeclaration":1414,"src":"4091:34:0","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8) external"}},"id":369,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4091:51:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":370,"nodeType":"ExpressionStatement","src":"4091:51:0"}]}}]},"id":374,"implemented":true,"kind":"function","modifiers":[],"name":"_updatePluginConfigInPool","nameLocation":"3915:25:0","nodeType":"FunctionDefinition","parameters":{"id":354,"nodeType":"ParameterList","parameters":[{"constant":false,"id":353,"mutability":"mutable","name":"newPluginConfig","nameLocation":"3947:15:0","nodeType":"VariableDeclaration","scope":374,"src":"3941:21:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":352,"name":"uint8","nodeType":"ElementaryTypeName","src":"3941:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"3940:23:0"},"returnParameters":{"id":355,"nodeType":"ParameterList","parameters":[],"src":"3973:0:0"},"scope":434,"src":"3906:249:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":403,"nodeType":"Block","src":"4213:242:0","statements":[{"assignments":[null,null,null,380],"declarations":[null,null,null,{"constant":false,"id":380,"mutability":"mutable","name":"currentPluginConfig","nameLocation":"4233:19:0","nodeType":"VariableDeclaration","scope":403,"src":"4227:25:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":379,"name":"uint8","nodeType":"ElementaryTypeName","src":"4227:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":383,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":381,"name":"_getPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":91,"src":"4256:13:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"function () view returns (uint160,int24,uint16,uint8)"}},"id":382,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4256:15:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"tuple(uint160,int24,uint16,uint8)"}},"nodeType":"VariableDeclarationStatement","src":"4220:51:0"},{"assignments":[385],"declarations":[{"constant":false,"id":385,"mutability":"mutable","name":"newPluginConfig","nameLocation":"4284:15:0","nodeType":"VariableDeclaration","scope":403,"src":"4278:21:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":384,"name":"uint8","nodeType":"ElementaryTypeName","src":"4278:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":390,"initialValue":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":389,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":386,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":380,"src":"4302:19:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"id":388,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"~","prefix":true,"src":"4324:7:0","subExpression":{"id":387,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":376,"src":"4325:6:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4302:29:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"VariableDeclarationStatement","src":"4278:53:0"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":393,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":391,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":380,"src":"4342:19:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":392,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":385,"src":"4365:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4342:38:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":402,"nodeType":"IfStatement","src":"4338:112:0","trueBody":{"id":401,"nodeType":"Block","src":"4382:68:0","statements":[{"expression":{"arguments":[{"id":398,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":385,"src":"4426:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"expression":{"arguments":[{"id":395,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"4404:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":394,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":801,"src":"4391:12:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$801_$","typeString":"type(contract IAlgebraPool)"}},"id":396,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4391:18:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$801","typeString":"contract IAlgebraPool"}},"id":397,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4410:15:0","memberName":"setPluginConfig","nodeType":"MemberAccess","referencedDeclaration":1414,"src":"4391:34:0","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8) external"}},"id":399,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4391:51:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":400,"nodeType":"ExpressionStatement","src":"4391:51:0"}]}}]},"id":404,"implemented":true,"kind":"function","modifiers":[],"name":"_disablePluginFlags","nameLocation":"4170:19:0","nodeType":"FunctionDefinition","parameters":{"id":377,"nodeType":"ParameterList","parameters":[{"constant":false,"id":376,"mutability":"mutable","name":"config","nameLocation":"4196:6:0","nodeType":"VariableDeclaration","scope":404,"src":"4190:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":375,"name":"uint8","nodeType":"ElementaryTypeName","src":"4190:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"4189:14:0"},"returnParameters":{"id":378,"nodeType":"ParameterList","parameters":[],"src":"4213:0:0"},"scope":434,"src":"4161:294:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":432,"nodeType":"Block","src":"4512:241:0","statements":[{"assignments":[null,null,null,410],"declarations":[null,null,null,{"constant":false,"id":410,"mutability":"mutable","name":"currentPluginConfig","nameLocation":"4532:19:0","nodeType":"VariableDeclaration","scope":432,"src":"4526:25:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":409,"name":"uint8","nodeType":"ElementaryTypeName","src":"4526:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":413,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":411,"name":"_getPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":91,"src":"4555:13:0","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"function () view returns (uint160,int24,uint16,uint8)"}},"id":412,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4555:15:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"tuple(uint160,int24,uint16,uint8)"}},"nodeType":"VariableDeclarationStatement","src":"4519:51:0"},{"assignments":[415],"declarations":[{"constant":false,"id":415,"mutability":"mutable","name":"newPluginConfig","nameLocation":"4583:15:0","nodeType":"VariableDeclaration","scope":432,"src":"4577:21:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":414,"name":"uint8","nodeType":"ElementaryTypeName","src":"4577:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":419,"initialValue":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":418,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":416,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":410,"src":"4601:19:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"|","rightExpression":{"id":417,"name":"config","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":406,"src":"4623:6:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4601:28:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"VariableDeclarationStatement","src":"4577:52:0"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":422,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":420,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":410,"src":"4640:19:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":421,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":415,"src":"4663:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4640:38:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":431,"nodeType":"IfStatement","src":"4636:112:0","trueBody":{"id":430,"nodeType":"Block","src":"4680:68:0","statements":[{"expression":{"arguments":[{"id":427,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":415,"src":"4724:15:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"expression":{"arguments":[{"id":424,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":27,"src":"4702:4:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":423,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":801,"src":"4689:12:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$801_$","typeString":"type(contract IAlgebraPool)"}},"id":425,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4689:18:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$801","typeString":"contract IAlgebraPool"}},"id":426,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4708:15:0","memberName":"setPluginConfig","nodeType":"MemberAccess","referencedDeclaration":1414,"src":"4689:34:0","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8) external"}},"id":428,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4689:51:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":429,"nodeType":"ExpressionStatement","src":"4689:51:0"}]}}]},"id":433,"implemented":true,"kind":"function","modifiers":[],"name":"_enablePluginFlags","nameLocation":"4470:18:0","nodeType":"FunctionDefinition","parameters":{"id":407,"nodeType":"ParameterList","parameters":[{"constant":false,"id":406,"mutability":"mutable","name":"config","nameLocation":"4495:6:0","nodeType":"VariableDeclaration","scope":433,"src":"4489:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":405,"name":"uint8","nodeType":"ElementaryTypeName","src":"4489:5:0","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"4488:14:0"},"returnParameters":{"id":408,"nodeType":"ParameterList","parameters":[],"src":"4512:0:0"},"scope":434,"src":"4461:292:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":435,"src":"744:4012:0","usedErrors":[1210],"usedEvents":[]}],"src":"46:4712:0"},"id":0},"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol","exportedSymbols":{"AbstractPlugin":[434],"BaseAbstractPlugin":[477],"IAbstractPlugin":[495],"IAlgebraFactory":[779],"IAlgebraPlugin":[967],"IAlgebraPluginFactory":[999],"IAlgebraPool":[801],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolEvents":[1359],"IAlgebraPoolImmutables":[1387],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619],"IAlgebraVaultFactory":[1647],"Plugins":[2162],"SafeTransfer":[2299],"Timestamp":[512]},"id":478,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":436,"literals":["solidity","^","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:1"},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol","file":"./AbstractPlugin.sol","id":437,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":478,"sourceUnit":435,"src":"63:30:1","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":439,"name":"AbstractPlugin","nameLocations":["265:14:1"],"nodeType":"IdentifierPath","referencedDeclaration":434,"src":"265:14:1"},"id":440,"nodeType":"InheritanceSpecifier","src":"265:14:1"}],"canonicalName":"BaseAbstractPlugin","contractDependencies":[],"contractKind":"contract","documentation":{"id":438,"nodeType":"StructuredDocumentation","src":"95:130:1","text":"@title Algebra's internal Integral 1.2.1 abstract plugin for `Base` plugins\n @notice This contract inherits AbstractPlugin"},"fullyImplemented":false,"id":477,"linearizedBaseContracts":[477,434,512,495,967],"name":"BaseAbstractPlugin","nameLocation":"243:18:1","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":442,"mutability":"immutable","name":"factory","nameLocation":"311:7:1","nodeType":"VariableDeclaration","scope":477,"src":"284:34:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":441,"name":"address","nodeType":"ElementaryTypeName","src":"284:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"body":{"id":459,"nodeType":"Block","src":"430:29:1","statements":[{"expression":{"id":457,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":455,"name":"factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":442,"src":"436:7:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":456,"name":"_factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":446,"src":"446:8:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"436:18:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":458,"nodeType":"ExpressionStatement","src":"436:18:1"}]},"id":460,"implemented":true,"kind":"constructor","modifiers":[{"arguments":[{"id":451,"name":"_pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":444,"src":"407:5:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":452,"name":"_pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":448,"src":"414:14:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":453,"kind":"baseConstructorSpecifier","modifierName":{"id":450,"name":"AbstractPlugin","nameLocations":["392:14:1"],"nodeType":"IdentifierPath","referencedDeclaration":434,"src":"392:14:1"},"nodeType":"ModifierInvocation","src":"392:37:1"}],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":449,"nodeType":"ParameterList","parameters":[{"constant":false,"id":444,"mutability":"mutable","name":"_pool","nameLocation":"343:5:1","nodeType":"VariableDeclaration","scope":460,"src":"335:13:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":443,"name":"address","nodeType":"ElementaryTypeName","src":"335:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":446,"mutability":"mutable","name":"_factory","nameLocation":"358:8:1","nodeType":"VariableDeclaration","scope":460,"src":"350:16:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":445,"name":"address","nodeType":"ElementaryTypeName","src":"350:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":448,"mutability":"mutable","name":"_pluginFactory","nameLocation":"376:14:1","nodeType":"VariableDeclaration","scope":460,"src":"368:22:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":447,"name":"address","nodeType":"ElementaryTypeName","src":"368:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"334:57:1"},"returnParameters":{"id":454,"nodeType":"ParameterList","parameters":[],"src":"430:0:1"},"scope":477,"src":"323:136:1","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"baseFunctions":[67],"body":{"id":475,"nodeType":"Block","src":"516:100:1","statements":[{"expression":{"arguments":[{"arguments":[{"id":469,"name":"ALGEBRA_BASE_PLUGIN_MANAGER","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":22,"src":"570:27:1","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"expression":{"id":470,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"599:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":471,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"603:6:1","memberName":"sender","nodeType":"MemberAccess","src":"599:10:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"id":466,"name":"factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":442,"src":"546:7:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":465,"name":"IAlgebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":779,"src":"530:15:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraFactory_$779_$","typeString":"type(contract IAlgebraFactory)"}},"id":467,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"530:24:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraFactory_$779","typeString":"contract IAlgebraFactory"}},"id":468,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"555:14:1","memberName":"hasRoleOrOwner","nodeType":"MemberAccess","referencedDeclaration":602,"src":"530:39:1","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$_t_address_$returns$_t_bool_$","typeString":"function (bytes32,address) view external returns (bool)"}},"id":472,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"530:80:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":464,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"522:7:1","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":473,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"522:89:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":474,"nodeType":"ExpressionStatement","src":"522:89:1"}]},"id":476,"implemented":true,"kind":"function","modifiers":[],"name":"_authorize","nameLocation":"472:10:1","nodeType":"FunctionDefinition","overrides":{"id":462,"nodeType":"OverrideSpecifier","overrides":[],"src":"507:8:1"},"parameters":{"id":461,"nodeType":"ParameterList","parameters":[],"src":"482:2:1"},"returnParameters":{"id":463,"nodeType":"ParameterList","parameters":[],"src":"516:0:1"},"scope":477,"src":"463:153:1","stateMutability":"view","virtual":true,"visibility":"internal"}],"scope":478,"src":"225:393:1","usedErrors":[1210],"usedEvents":[]}],"src":"37:582:1"},"id":1},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol","exportedSymbols":{"IAbstractPlugin":[495],"IAlgebraPlugin":[967]},"id":496,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":479,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"46:24:2"},{"id":480,"literals":["abicoder","v2"],"nodeType":"PragmaDirective","src":"72:19:2"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","id":481,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":496,"sourceUnit":968,"src":"95:85:2","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":483,"name":"IAlgebraPlugin","nameLocations":["258:14:2"],"nodeType":"IdentifierPath","referencedDeclaration":967,"src":"258:14:2"},"id":484,"nodeType":"InheritanceSpecifier","src":"258:14:2"}],"canonicalName":"IAbstractPlugin","contractDependencies":[],"contractKind":"interface","documentation":{"id":482,"nodeType":"StructuredDocumentation","src":"184:45:2","text":"@title The interface for the BasePlugin"},"fullyImplemented":false,"id":495,"linearizedBaseContracts":[495,967],"name":"IAbstractPlugin","nameLocation":"239:15:2","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":485,"nodeType":"StructuredDocumentation","src":"278:146:2","text":"@notice Claim plugin fee\n @param token The token address\n @param amount Amount of tokens\n @param recipient Recipient address"},"functionSelector":"e72c652d","id":494,"implemented":false,"kind":"function","modifiers":[],"name":"collectPluginFee","nameLocation":"437:16:2","nodeType":"FunctionDefinition","parameters":{"id":492,"nodeType":"ParameterList","parameters":[{"constant":false,"id":487,"mutability":"mutable","name":"token","nameLocation":"462:5:2","nodeType":"VariableDeclaration","scope":494,"src":"454:13:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":486,"name":"address","nodeType":"ElementaryTypeName","src":"454:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":489,"mutability":"mutable","name":"amount","nameLocation":"477:6:2","nodeType":"VariableDeclaration","scope":494,"src":"469:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":488,"name":"uint256","nodeType":"ElementaryTypeName","src":"469:7:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":491,"mutability":"mutable","name":"recipient","nameLocation":"493:9:2","nodeType":"VariableDeclaration","scope":494,"src":"485:17:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":490,"name":"address","nodeType":"ElementaryTypeName","src":"485:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"453:50:2"},"returnParameters":{"id":493,"nodeType":"ParameterList","parameters":[],"src":"512:0:2"},"scope":495,"src":"428:85:2","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":496,"src":"229:287:2","usedErrors":[],"usedEvents":[]}],"src":"46:472:2"},"id":2},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","exportedSymbols":{"Timestamp":[512]},"id":513,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":497,"literals":["solidity",">=","0.8",".0","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:3"},{"abstract":true,"baseContracts":[],"canonicalName":"Timestamp","contractDependencies":[],"contractKind":"contract","documentation":{"id":498,"nodeType":"StructuredDocumentation","src":"78:219:3","text":"@title Abstract contract with modified blockTimestamp functionality\n @notice Allows the pool and other contracts to get a timestamp truncated to 32 bits\n @dev Can be overridden in tests to make testing easier"},"fullyImplemented":true,"id":512,"linearizedBaseContracts":[512],"name":"Timestamp","nameLocation":"315:9:3","nodeType":"ContractDefinition","nodes":[{"body":{"id":510,"nodeType":"Block","src":"507:66:3","statements":[{"expression":{"arguments":[{"expression":{"id":506,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"527:5:3","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":507,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"533:9:3","memberName":"timestamp","nodeType":"MemberAccess","src":"527:15:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":505,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"520:6:3","typeDescriptions":{"typeIdentifier":"t_type$_t_uint32_$","typeString":"type(uint32)"},"typeName":{"id":504,"name":"uint32","nodeType":"ElementaryTypeName","src":"520:6:3","typeDescriptions":{}}},"id":508,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"520:23:3","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"functionReturnParameters":503,"id":509,"nodeType":"Return","src":"513:30:3"}]},"documentation":{"id":499,"nodeType":"StructuredDocumentation","src":"329:109:3","text":"@dev This function is created for testing by overriding it.\n @return A timestamp converted to uint32"},"id":511,"implemented":true,"kind":"function","modifiers":[],"name":"_blockTimestamp","nameLocation":"450:15:3","nodeType":"FunctionDefinition","parameters":{"id":500,"nodeType":"ParameterList","parameters":[],"src":"465:2:3"},"returnParameters":{"id":503,"nodeType":"ParameterList","parameters":[{"constant":false,"id":502,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":511,"src":"499:6:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":501,"name":"uint32","nodeType":"ElementaryTypeName","src":"499:6:3","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"498:8:3"},"scope":512,"src":"441:132:3","stateMutability":"view","virtual":true,"visibility":"internal"}],"scope":513,"src":"297:278:3","usedErrors":[],"usedEvents":[]}],"src":"45:531:3"},"id":3},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","exportedSymbols":{"IAlgebraFactory":[779],"IAlgebraPluginFactory":[999],"IAlgebraVaultFactory":[1647]},"id":780,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":514,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:4"},{"id":515,"literals":["abicoder","v2"],"nodeType":"PragmaDirective","src":"70:19:4"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","file":"./plugin/IAlgebraPluginFactory.sol","id":516,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":780,"sourceUnit":1000,"src":"91:44:4","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol","file":"./vault/IAlgebraVaultFactory.sol","id":517,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":780,"sourceUnit":1648,"src":"136:42:4","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":518,"nodeType":"StructuredDocumentation","src":"180:183:4","text":"@title The interface for the Algebra Factory\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":779,"linearizedBaseContracts":[779],"name":"IAlgebraFactory","nameLocation":"373:15:4","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":519,"nodeType":"StructuredDocumentation","src":"393:207:4","text":"@notice Emitted when a process of ownership renounce is started\n @param timestamp The timestamp of event\n @param finishTimestamp The timestamp when ownership renounce will be possible to finish"},"eventSelector":"cd60f5d54996130c21c3f063279b39230bcbafc12f763a1ac1dfaec2e9b61d29","id":525,"name":"RenounceOwnershipStart","nameLocation":"609:22:4","nodeType":"EventDefinition","parameters":{"id":524,"nodeType":"ParameterList","parameters":[{"constant":false,"id":521,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"640:9:4","nodeType":"VariableDeclaration","scope":525,"src":"632:17:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":520,"name":"uint256","nodeType":"ElementaryTypeName","src":"632:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":523,"indexed":false,"mutability":"mutable","name":"finishTimestamp","nameLocation":"659:15:4","nodeType":"VariableDeclaration","scope":525,"src":"651:23:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":522,"name":"uint256","nodeType":"ElementaryTypeName","src":"651:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"631:44:4"},"src":"603:73:4"},{"anonymous":false,"documentation":{"id":526,"nodeType":"StructuredDocumentation","src":"680:112:4","text":"@notice Emitted when a process of ownership renounce cancelled\n @param timestamp The timestamp of event"},"eventSelector":"a2492902a0a1d28dc73e6ab22e473239ef077bb7bc8174dc7dab9fc0818e7135","id":530,"name":"RenounceOwnershipStop","nameLocation":"801:21:4","nodeType":"EventDefinition","parameters":{"id":529,"nodeType":"ParameterList","parameters":[{"constant":false,"id":528,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"831:9:4","nodeType":"VariableDeclaration","scope":530,"src":"823:17:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":527,"name":"uint256","nodeType":"ElementaryTypeName","src":"823:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"822:19:4"},"src":"795:47:4"},{"anonymous":false,"documentation":{"id":531,"nodeType":"StructuredDocumentation","src":"846:128:4","text":"@notice Emitted when a process of ownership renounce finished\n @param timestamp The timestamp of ownership renouncement"},"eventSelector":"a24203c457ce43a097fa0c491fc9cf5e0a893af87a5e0a9785f29491deb11e23","id":535,"name":"RenounceOwnershipFinish","nameLocation":"983:23:4","nodeType":"EventDefinition","parameters":{"id":534,"nodeType":"ParameterList","parameters":[{"constant":false,"id":533,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"1015:9:4","nodeType":"VariableDeclaration","scope":535,"src":"1007:17:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":532,"name":"uint256","nodeType":"ElementaryTypeName","src":"1007:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1006:19:4"},"src":"977:49:4"},{"anonymous":false,"documentation":{"id":536,"nodeType":"StructuredDocumentation","src":"1030:233:4","text":"@notice Emitted when a pool is created\n @param token0 The first token of the pool by address sort order\n @param token1 The second token of the pool by address sort order\n @param pool The address of the created pool"},"eventSelector":"91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db","id":544,"name":"Pool","nameLocation":"1272:4:4","nodeType":"EventDefinition","parameters":{"id":543,"nodeType":"ParameterList","parameters":[{"constant":false,"id":538,"indexed":true,"mutability":"mutable","name":"token0","nameLocation":"1293:6:4","nodeType":"VariableDeclaration","scope":544,"src":"1277:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":537,"name":"address","nodeType":"ElementaryTypeName","src":"1277:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":540,"indexed":true,"mutability":"mutable","name":"token1","nameLocation":"1317:6:4","nodeType":"VariableDeclaration","scope":544,"src":"1301:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":539,"name":"address","nodeType":"ElementaryTypeName","src":"1301:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":542,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"1333:4:4","nodeType":"VariableDeclaration","scope":544,"src":"1325:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":541,"name":"address","nodeType":"ElementaryTypeName","src":"1325:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1276:62:4"},"src":"1266:73:4"},{"anonymous":false,"documentation":{"id":545,"nodeType":"StructuredDocumentation","src":"1343:298:4","text":"@notice Emitted when a pool is created\n @param deployer The corresponding custom deployer contract\n @param token0 The first token of the pool by address sort order\n @param token1 The second token of the pool by address sort order\n @param pool The address of the created pool"},"eventSelector":"8a5f030f5fc13b04a1e4ef7c47177e3d76b0e80e1d9be9843db37caa5b7b9b8f","id":555,"name":"CustomPool","nameLocation":"1650:10:4","nodeType":"EventDefinition","parameters":{"id":554,"nodeType":"ParameterList","parameters":[{"constant":false,"id":547,"indexed":true,"mutability":"mutable","name":"deployer","nameLocation":"1677:8:4","nodeType":"VariableDeclaration","scope":555,"src":"1661:24:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":546,"name":"address","nodeType":"ElementaryTypeName","src":"1661:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":549,"indexed":true,"mutability":"mutable","name":"token0","nameLocation":"1703:6:4","nodeType":"VariableDeclaration","scope":555,"src":"1687:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":548,"name":"address","nodeType":"ElementaryTypeName","src":"1687:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":551,"indexed":true,"mutability":"mutable","name":"token1","nameLocation":"1727:6:4","nodeType":"VariableDeclaration","scope":555,"src":"1711:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":550,"name":"address","nodeType":"ElementaryTypeName","src":"1711:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":553,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"1743:4:4","nodeType":"VariableDeclaration","scope":555,"src":"1735:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":552,"name":"address","nodeType":"ElementaryTypeName","src":"1735:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1660:88:4"},"src":"1644:105:4"},{"anonymous":false,"documentation":{"id":556,"nodeType":"StructuredDocumentation","src":"1753:133:4","text":"@notice Emitted when the default community fee is changed\n @param newDefaultCommunityFee The new default community fee value"},"eventSelector":"6b5c342391f543846fce47a925e7eba910f7bec232b08633308ca93fdd0fdf0d","id":560,"name":"DefaultCommunityFee","nameLocation":"1895:19:4","nodeType":"EventDefinition","parameters":{"id":559,"nodeType":"ParameterList","parameters":[{"constant":false,"id":558,"indexed":false,"mutability":"mutable","name":"newDefaultCommunityFee","nameLocation":"1922:22:4","nodeType":"VariableDeclaration","scope":560,"src":"1915:29:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":557,"name":"uint16","nodeType":"ElementaryTypeName","src":"1915:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"1914:31:4"},"src":"1889:57:4"},{"anonymous":false,"documentation":{"id":561,"nodeType":"StructuredDocumentation","src":"1950:128:4","text":"@notice Emitted when the default tickspacing is changed\n @param newDefaultTickspacing The new default tickspacing value"},"eventSelector":"7d7979096f943139ebee59f01c077a0f0766d06c40c86d596f23ed2561547cce","id":565,"name":"DefaultTickspacing","nameLocation":"2087:18:4","nodeType":"EventDefinition","parameters":{"id":564,"nodeType":"ParameterList","parameters":[{"constant":false,"id":563,"indexed":false,"mutability":"mutable","name":"newDefaultTickspacing","nameLocation":"2112:21:4","nodeType":"VariableDeclaration","scope":565,"src":"2106:27:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":562,"name":"int24","nodeType":"ElementaryTypeName","src":"2106:5:4","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"2105:29:4"},"src":"2081:54:4"},{"anonymous":false,"documentation":{"id":566,"nodeType":"StructuredDocumentation","src":"2139:104:4","text":"@notice Emitted when the default fee is changed\n @param newDefaultFee The new default fee value"},"eventSelector":"ddc0c6f0b581e0d51bfe90ff138e4a548f94515c4dbcb12f5e98fdf0f7503983","id":570,"name":"DefaultFee","nameLocation":"2252:10:4","nodeType":"EventDefinition","parameters":{"id":569,"nodeType":"ParameterList","parameters":[{"constant":false,"id":568,"indexed":false,"mutability":"mutable","name":"newDefaultFee","nameLocation":"2270:13:4","nodeType":"VariableDeclaration","scope":570,"src":"2263:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":567,"name":"uint16","nodeType":"ElementaryTypeName","src":"2263:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"2262:22:4"},"src":"2246:39:4"},{"anonymous":false,"documentation":{"id":571,"nodeType":"StructuredDocumentation","src":"2289:146:4","text":"@notice Emitted when the defaultPluginFactory address is changed\n @param defaultPluginFactoryAddress The new defaultPluginFactory address"},"eventSelector":"5e38e259ec1f8a38b98fc65a27e266bb9cc87c76eb8c96c957450d1cff4591ef","id":575,"name":"DefaultPluginFactory","nameLocation":"2444:20:4","nodeType":"EventDefinition","parameters":{"id":574,"nodeType":"ParameterList","parameters":[{"constant":false,"id":573,"indexed":false,"mutability":"mutable","name":"defaultPluginFactoryAddress","nameLocation":"2473:27:4","nodeType":"VariableDeclaration","scope":575,"src":"2465:35:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":572,"name":"address","nodeType":"ElementaryTypeName","src":"2465:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2464:37:4"},"src":"2438:64:4"},{"anonymous":false,"documentation":{"id":576,"nodeType":"StructuredDocumentation","src":"2506:118:4","text":"@notice Emitted when the vaultFactory address is changed\n @param newVaultFactory The new vaultFactory address"},"eventSelector":"a006ea05a14783821b0248e75d2342cd1681b07509e10a0f08487b080c29dea8","id":580,"name":"VaultFactory","nameLocation":"2633:12:4","nodeType":"EventDefinition","parameters":{"id":579,"nodeType":"ParameterList","parameters":[{"constant":false,"id":578,"indexed":false,"mutability":"mutable","name":"newVaultFactory","nameLocation":"2654:15:4","nodeType":"VariableDeclaration","scope":580,"src":"2646:23:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":577,"name":"address","nodeType":"ElementaryTypeName","src":"2646:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2645:25:4"},"src":"2627:44:4"},{"documentation":{"id":581,"nodeType":"StructuredDocumentation","src":"2675:120:4","text":"@notice role that can change communityFee and tickspacing in pools\n @return The hash corresponding to this role"},"functionSelector":"b500a48b","id":586,"implemented":false,"kind":"function","modifiers":[],"name":"POOLS_ADMINISTRATOR_ROLE","nameLocation":"2807:24:4","nodeType":"FunctionDefinition","parameters":{"id":582,"nodeType":"ParameterList","parameters":[],"src":"2831:2:4"},"returnParameters":{"id":585,"nodeType":"ParameterList","parameters":[{"constant":false,"id":584,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":586,"src":"2857:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":583,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2857:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"2856:9:4"},"scope":779,"src":"2798:68:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":587,"nodeType":"StructuredDocumentation","src":"2870:108:4","text":"@notice role that can call `createCustomPool` function\n @return The hash corresponding to this role"},"functionSelector":"07810754","id":592,"implemented":false,"kind":"function","modifiers":[],"name":"CUSTOM_POOL_DEPLOYER","nameLocation":"2990:20:4","nodeType":"FunctionDefinition","parameters":{"id":588,"nodeType":"ParameterList","parameters":[],"src":"3010:2:4"},"returnParameters":{"id":591,"nodeType":"ParameterList","parameters":[{"constant":false,"id":590,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":592,"src":"3036:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":589,"name":"bytes32","nodeType":"ElementaryTypeName","src":"3036:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"3035:9:4"},"scope":779,"src":"2981:64:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":593,"nodeType":"StructuredDocumentation","src":"3049:280:4","text":"@notice Returns `true` if `account` has been granted `role` or `account` is owner.\n @param role The hash corresponding to the role\n @param account The address for which the role is checked\n @return bool Whether the address has this role or the owner role or not"},"functionSelector":"e8ae2b69","id":602,"implemented":false,"kind":"function","modifiers":[],"name":"hasRoleOrOwner","nameLocation":"3341:14:4","nodeType":"FunctionDefinition","parameters":{"id":598,"nodeType":"ParameterList","parameters":[{"constant":false,"id":595,"mutability":"mutable","name":"role","nameLocation":"3364:4:4","nodeType":"VariableDeclaration","scope":602,"src":"3356:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":594,"name":"bytes32","nodeType":"ElementaryTypeName","src":"3356:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"},{"constant":false,"id":597,"mutability":"mutable","name":"account","nameLocation":"3378:7:4","nodeType":"VariableDeclaration","scope":602,"src":"3370:15:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":596,"name":"address","nodeType":"ElementaryTypeName","src":"3370:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3355:31:4"},"returnParameters":{"id":601,"nodeType":"ParameterList","parameters":[{"constant":false,"id":600,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":602,"src":"3410:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":599,"name":"bool","nodeType":"ElementaryTypeName","src":"3410:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"3409:6:4"},"scope":779,"src":"3332:84:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":603,"nodeType":"StructuredDocumentation","src":"3420:186:4","text":"@notice Returns the current owner of the factory\n @dev Can be changed by the current owner via transferOwnership(address newOwner)\n @return The address of the factory owner"},"functionSelector":"8da5cb5b","id":608,"implemented":false,"kind":"function","modifiers":[],"name":"owner","nameLocation":"3618:5:4","nodeType":"FunctionDefinition","parameters":{"id":604,"nodeType":"ParameterList","parameters":[],"src":"3623:2:4"},"returnParameters":{"id":607,"nodeType":"ParameterList","parameters":[{"constant":false,"id":606,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":608,"src":"3649:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":605,"name":"address","nodeType":"ElementaryTypeName","src":"3649:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3648:9:4"},"scope":779,"src":"3609:49:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":609,"nodeType":"StructuredDocumentation","src":"3662:97:4","text":"@notice Returns the current poolDeployerAddress\n @return The address of the poolDeployer"},"functionSelector":"3119049a","id":614,"implemented":false,"kind":"function","modifiers":[],"name":"poolDeployer","nameLocation":"3771:12:4","nodeType":"FunctionDefinition","parameters":{"id":610,"nodeType":"ParameterList","parameters":[],"src":"3783:2:4"},"returnParameters":{"id":613,"nodeType":"ParameterList","parameters":[{"constant":false,"id":612,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":614,"src":"3809:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":611,"name":"address","nodeType":"ElementaryTypeName","src":"3809:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3808:9:4"},"scope":779,"src":"3762:56:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":615,"nodeType":"StructuredDocumentation","src":"3822:109:4","text":"@notice Returns the default community fee\n @return Fee which will be set at the creation of the pool"},"functionSelector":"2f8a39dd","id":620,"implemented":false,"kind":"function","modifiers":[],"name":"defaultCommunityFee","nameLocation":"3943:19:4","nodeType":"FunctionDefinition","parameters":{"id":616,"nodeType":"ParameterList","parameters":[],"src":"3962:2:4"},"returnParameters":{"id":619,"nodeType":"ParameterList","parameters":[{"constant":false,"id":618,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":620,"src":"3988:6:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":617,"name":"uint16","nodeType":"ElementaryTypeName","src":"3988:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"3987:8:4"},"scope":779,"src":"3934:62:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":621,"nodeType":"StructuredDocumentation","src":"4000:99:4","text":"@notice Returns the default fee\n @return Fee which will be set at the creation of the pool"},"functionSelector":"5a6c72d0","id":626,"implemented":false,"kind":"function","modifiers":[],"name":"defaultFee","nameLocation":"4111:10:4","nodeType":"FunctionDefinition","parameters":{"id":622,"nodeType":"ParameterList","parameters":[],"src":"4121:2:4"},"returnParameters":{"id":625,"nodeType":"ParameterList","parameters":[{"constant":false,"id":624,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":626,"src":"4147:6:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":623,"name":"uint16","nodeType":"ElementaryTypeName","src":"4147:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"4146:8:4"},"scope":779,"src":"4102:53:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":627,"nodeType":"StructuredDocumentation","src":"4159:115:4","text":"@notice Returns the default tickspacing\n @return Tickspacing which will be set at the creation of the pool"},"functionSelector":"29bc3446","id":632,"implemented":false,"kind":"function","modifiers":[],"name":"defaultTickspacing","nameLocation":"4286:18:4","nodeType":"FunctionDefinition","parameters":{"id":628,"nodeType":"ParameterList","parameters":[],"src":"4304:2:4"},"returnParameters":{"id":631,"nodeType":"ParameterList","parameters":[{"constant":false,"id":630,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":632,"src":"4330:5:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":629,"name":"int24","nodeType":"ElementaryTypeName","src":"4330:5:4","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"4329:7:4"},"scope":779,"src":"4277:60:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":633,"nodeType":"StructuredDocumentation","src":"4341:183:4","text":"@notice Return the current pluginFactory address\n @dev This contract is used to automatically set a plugin address in new liquidity pools\n @return Algebra plugin factory"},"functionSelector":"d0ad2792","id":639,"implemented":false,"kind":"function","modifiers":[],"name":"defaultPluginFactory","nameLocation":"4536:20:4","nodeType":"FunctionDefinition","parameters":{"id":634,"nodeType":"ParameterList","parameters":[],"src":"4556:2:4"},"returnParameters":{"id":638,"nodeType":"ParameterList","parameters":[{"constant":false,"id":637,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":639,"src":"4582:21:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPluginFactory_$999","typeString":"contract IAlgebraPluginFactory"},"typeName":{"id":636,"nodeType":"UserDefinedTypeName","pathNode":{"id":635,"name":"IAlgebraPluginFactory","nameLocations":["4582:21:4"],"nodeType":"IdentifierPath","referencedDeclaration":999,"src":"4582:21:4"},"referencedDeclaration":999,"src":"4582:21:4","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPluginFactory_$999","typeString":"contract IAlgebraPluginFactory"}},"visibility":"internal"}],"src":"4581:23:4"},"scope":779,"src":"4527:78:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":640,"nodeType":"StructuredDocumentation","src":"4609:180:4","text":"@notice Return the current vaultFactory address\n @dev This contract is used to automatically set a vault address in new liquidity pools\n @return Algebra vault factory"},"functionSelector":"d8a06f73","id":646,"implemented":false,"kind":"function","modifiers":[],"name":"vaultFactory","nameLocation":"4801:12:4","nodeType":"FunctionDefinition","parameters":{"id":641,"nodeType":"ParameterList","parameters":[],"src":"4813:2:4"},"returnParameters":{"id":645,"nodeType":"ParameterList","parameters":[{"constant":false,"id":644,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":646,"src":"4839:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraVaultFactory_$1647","typeString":"contract IAlgebraVaultFactory"},"typeName":{"id":643,"nodeType":"UserDefinedTypeName","pathNode":{"id":642,"name":"IAlgebraVaultFactory","nameLocations":["4839:20:4"],"nodeType":"IdentifierPath","referencedDeclaration":1647,"src":"4839:20:4"},"referencedDeclaration":1647,"src":"4839:20:4","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraVaultFactory_$1647","typeString":"contract IAlgebraVaultFactory"}},"visibility":"internal"}],"src":"4838:22:4"},"scope":779,"src":"4792:69:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":647,"nodeType":"StructuredDocumentation","src":"4865:302:4","text":"@notice Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\n @return communityFee which will be set at the creation of the pool\n @return tickSpacing which will be set at the creation of the pool\n @return fee which will be set at the creation of the pool"},"functionSelector":"25b355d6","id":656,"implemented":false,"kind":"function","modifiers":[],"name":"defaultConfigurationForPool","nameLocation":"5179:27:4","nodeType":"FunctionDefinition","parameters":{"id":648,"nodeType":"ParameterList","parameters":[],"src":"5206:2:4"},"returnParameters":{"id":655,"nodeType":"ParameterList","parameters":[{"constant":false,"id":650,"mutability":"mutable","name":"communityFee","nameLocation":"5239:12:4","nodeType":"VariableDeclaration","scope":656,"src":"5232:19:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":649,"name":"uint16","nodeType":"ElementaryTypeName","src":"5232:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":652,"mutability":"mutable","name":"tickSpacing","nameLocation":"5259:11:4","nodeType":"VariableDeclaration","scope":656,"src":"5253:17:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":651,"name":"int24","nodeType":"ElementaryTypeName","src":"5253:5:4","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":654,"mutability":"mutable","name":"fee","nameLocation":"5279:3:4","nodeType":"VariableDeclaration","scope":656,"src":"5272:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":653,"name":"uint16","nodeType":"ElementaryTypeName","src":"5272:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"5231:52:4"},"scope":779,"src":"5170:114:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":657,"nodeType":"StructuredDocumentation","src":"5288:277:4","text":"@notice Deterministically computes the pool address given the token0 and token1\n @dev The method does not check if such a pool has been created\n @param token0 first token\n @param token1 second token\n @return pool The contract address of the Algebra pool"},"functionSelector":"d8ed2241","id":666,"implemented":false,"kind":"function","modifiers":[],"name":"computePoolAddress","nameLocation":"5577:18:4","nodeType":"FunctionDefinition","parameters":{"id":662,"nodeType":"ParameterList","parameters":[{"constant":false,"id":659,"mutability":"mutable","name":"token0","nameLocation":"5604:6:4","nodeType":"VariableDeclaration","scope":666,"src":"5596:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":658,"name":"address","nodeType":"ElementaryTypeName","src":"5596:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":661,"mutability":"mutable","name":"token1","nameLocation":"5620:6:4","nodeType":"VariableDeclaration","scope":666,"src":"5612:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":660,"name":"address","nodeType":"ElementaryTypeName","src":"5612:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5595:32:4"},"returnParameters":{"id":665,"nodeType":"ParameterList","parameters":[{"constant":false,"id":664,"mutability":"mutable","name":"pool","nameLocation":"5659:4:4","nodeType":"VariableDeclaration","scope":666,"src":"5651:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":663,"name":"address","nodeType":"ElementaryTypeName","src":"5651:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5650:14:4"},"scope":779,"src":"5568:97:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":667,"nodeType":"StructuredDocumentation","src":"5669:372:4","text":"@notice Deterministically computes the custom pool address given the customDeployer, token0 and token1\n @dev The method does not check if such a pool has been created\n @param customDeployer the address of custom plugin deployer\n @param token0 first token\n @param token1 second token\n @return customPool The contract address of the Algebra pool"},"functionSelector":"1ba89df4","id":678,"implemented":false,"kind":"function","modifiers":[],"name":"computeCustomPoolAddress","nameLocation":"6053:24:4","nodeType":"FunctionDefinition","parameters":{"id":674,"nodeType":"ParameterList","parameters":[{"constant":false,"id":669,"mutability":"mutable","name":"customDeployer","nameLocation":"6086:14:4","nodeType":"VariableDeclaration","scope":678,"src":"6078:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":668,"name":"address","nodeType":"ElementaryTypeName","src":"6078:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":671,"mutability":"mutable","name":"token0","nameLocation":"6110:6:4","nodeType":"VariableDeclaration","scope":678,"src":"6102:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":670,"name":"address","nodeType":"ElementaryTypeName","src":"6102:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":673,"mutability":"mutable","name":"token1","nameLocation":"6126:6:4","nodeType":"VariableDeclaration","scope":678,"src":"6118:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":672,"name":"address","nodeType":"ElementaryTypeName","src":"6118:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6077:56:4"},"returnParameters":{"id":677,"nodeType":"ParameterList","parameters":[{"constant":false,"id":676,"mutability":"mutable","name":"customPool","nameLocation":"6165:10:4","nodeType":"VariableDeclaration","scope":678,"src":"6157:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":675,"name":"address","nodeType":"ElementaryTypeName","src":"6157:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6156:20:4"},"scope":779,"src":"6044:133:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":679,"nodeType":"StructuredDocumentation","src":"6181:352:4","text":"@notice Returns the pool address for a given pair of tokens, or address 0 if it does not exist\n @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n @param tokenA The contract address of either token0 or token1\n @param tokenB The contract address of the other token\n @return pool The pool address"},"functionSelector":"d9a641e1","id":688,"implemented":false,"kind":"function","modifiers":[],"name":"poolByPair","nameLocation":"6545:10:4","nodeType":"FunctionDefinition","parameters":{"id":684,"nodeType":"ParameterList","parameters":[{"constant":false,"id":681,"mutability":"mutable","name":"tokenA","nameLocation":"6564:6:4","nodeType":"VariableDeclaration","scope":688,"src":"6556:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":680,"name":"address","nodeType":"ElementaryTypeName","src":"6556:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":683,"mutability":"mutable","name":"tokenB","nameLocation":"6580:6:4","nodeType":"VariableDeclaration","scope":688,"src":"6572:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":682,"name":"address","nodeType":"ElementaryTypeName","src":"6572:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6555:32:4"},"returnParameters":{"id":687,"nodeType":"ParameterList","parameters":[{"constant":false,"id":686,"mutability":"mutable","name":"pool","nameLocation":"6619:4:4","nodeType":"VariableDeclaration","scope":688,"src":"6611:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":685,"name":"address","nodeType":"ElementaryTypeName","src":"6611:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6610:14:4"},"scope":779,"src":"6536:89:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":689,"nodeType":"StructuredDocumentation","src":"6629:452:4","text":"@notice Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\n @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n @param customDeployer The address of custom plugin deployer\n @param tokenA The contract address of either token0 or token1\n @param tokenB The contract address of the other token\n @return customPool The pool address"},"functionSelector":"23da36cc","id":700,"implemented":false,"kind":"function","modifiers":[],"name":"customPoolByPair","nameLocation":"7093:16:4","nodeType":"FunctionDefinition","parameters":{"id":696,"nodeType":"ParameterList","parameters":[{"constant":false,"id":691,"mutability":"mutable","name":"customDeployer","nameLocation":"7118:14:4","nodeType":"VariableDeclaration","scope":700,"src":"7110:22:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":690,"name":"address","nodeType":"ElementaryTypeName","src":"7110:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":693,"mutability":"mutable","name":"tokenA","nameLocation":"7142:6:4","nodeType":"VariableDeclaration","scope":700,"src":"7134:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":692,"name":"address","nodeType":"ElementaryTypeName","src":"7134:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":695,"mutability":"mutable","name":"tokenB","nameLocation":"7158:6:4","nodeType":"VariableDeclaration","scope":700,"src":"7150:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":694,"name":"address","nodeType":"ElementaryTypeName","src":"7150:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"7109:56:4"},"returnParameters":{"id":699,"nodeType":"ParameterList","parameters":[{"constant":false,"id":698,"mutability":"mutable","name":"customPool","nameLocation":"7197:10:4","nodeType":"VariableDeclaration","scope":700,"src":"7189:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":697,"name":"address","nodeType":"ElementaryTypeName","src":"7189:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"7188:20:4"},"scope":779,"src":"7084:125:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":701,"nodeType":"StructuredDocumentation","src":"7213:197:4","text":"@notice returns keccak256 of AlgebraPool init bytecode.\n @dev the hash value changes with any change in the pool bytecode\n @return Keccak256 hash of AlgebraPool contract init bytecode"},"functionSelector":"dc6fd8ab","id":706,"implemented":false,"kind":"function","modifiers":[],"name":"POOL_INIT_CODE_HASH","nameLocation":"7422:19:4","nodeType":"FunctionDefinition","parameters":{"id":702,"nodeType":"ParameterList","parameters":[],"src":"7441:2:4"},"returnParameters":{"id":705,"nodeType":"ParameterList","parameters":[{"constant":false,"id":704,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":706,"src":"7467:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":703,"name":"bytes32","nodeType":"ElementaryTypeName","src":"7467:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"7466:9:4"},"scope":779,"src":"7413:63:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":707,"nodeType":"StructuredDocumentation","src":"7480:85:4","text":"@return timestamp The timestamp of the beginning of the renounceOwnership process"},"functionSelector":"084bfff9","id":712,"implemented":false,"kind":"function","modifiers":[],"name":"renounceOwnershipStartTimestamp","nameLocation":"7577:31:4","nodeType":"FunctionDefinition","parameters":{"id":708,"nodeType":"ParameterList","parameters":[],"src":"7608:2:4"},"returnParameters":{"id":711,"nodeType":"ParameterList","parameters":[{"constant":false,"id":710,"mutability":"mutable","name":"timestamp","nameLocation":"7642:9:4","nodeType":"VariableDeclaration","scope":712,"src":"7634:17:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":709,"name":"uint256","nodeType":"ElementaryTypeName","src":"7634:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"7633:19:4"},"scope":779,"src":"7568:85:4","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":713,"nodeType":"StructuredDocumentation","src":"7657:463:4","text":"@notice Creates a pool for the given two tokens\n @param tokenA One of the two tokens in the desired pool\n @param tokenB The other of the two tokens in the desired pool\n @param data Data for plugin creation\n @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n The call will revert if the pool already exists or the token arguments are invalid.\n @return pool The address of the newly created pool"},"functionSelector":"321935c6","id":724,"implemented":false,"kind":"function","modifiers":[],"name":"createPool","nameLocation":"8132:10:4","nodeType":"FunctionDefinition","parameters":{"id":720,"nodeType":"ParameterList","parameters":[{"constant":false,"id":715,"mutability":"mutable","name":"tokenA","nameLocation":"8151:6:4","nodeType":"VariableDeclaration","scope":724,"src":"8143:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":714,"name":"address","nodeType":"ElementaryTypeName","src":"8143:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":717,"mutability":"mutable","name":"tokenB","nameLocation":"8167:6:4","nodeType":"VariableDeclaration","scope":724,"src":"8159:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":716,"name":"address","nodeType":"ElementaryTypeName","src":"8159:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":719,"mutability":"mutable","name":"data","nameLocation":"8190:4:4","nodeType":"VariableDeclaration","scope":724,"src":"8175:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":718,"name":"bytes","nodeType":"ElementaryTypeName","src":"8175:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"8142:53:4"},"returnParameters":{"id":723,"nodeType":"ParameterList","parameters":[{"constant":false,"id":722,"mutability":"mutable","name":"pool","nameLocation":"8222:4:4","nodeType":"VariableDeclaration","scope":724,"src":"8214:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":721,"name":"address","nodeType":"ElementaryTypeName","src":"8214:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"8213:14:4"},"scope":779,"src":"8123:105:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":725,"nodeType":"StructuredDocumentation","src":"8232:669:4","text":"@notice Creates a custom pool for the given two tokens using `deployer` contract\n @param deployer The address of plugin deployer, also used for custom pool address calculation\n @param creator The initiator of custom pool creation\n @param tokenA One of the two tokens in the desired pool\n @param tokenB The other of the two tokens in the desired pool\n @param data The additional data bytes\n @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n The call will revert if the pool already exists or the token arguments are invalid.\n @return customPool The address of the newly created custom pool"},"functionSelector":"dbbf3db4","id":740,"implemented":false,"kind":"function","modifiers":[],"name":"createCustomPool","nameLocation":"8913:16:4","nodeType":"FunctionDefinition","parameters":{"id":736,"nodeType":"ParameterList","parameters":[{"constant":false,"id":727,"mutability":"mutable","name":"deployer","nameLocation":"8943:8:4","nodeType":"VariableDeclaration","scope":740,"src":"8935:16:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":726,"name":"address","nodeType":"ElementaryTypeName","src":"8935:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":729,"mutability":"mutable","name":"creator","nameLocation":"8965:7:4","nodeType":"VariableDeclaration","scope":740,"src":"8957:15:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":728,"name":"address","nodeType":"ElementaryTypeName","src":"8957:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":731,"mutability":"mutable","name":"tokenA","nameLocation":"8986:6:4","nodeType":"VariableDeclaration","scope":740,"src":"8978:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":730,"name":"address","nodeType":"ElementaryTypeName","src":"8978:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":733,"mutability":"mutable","name":"tokenB","nameLocation":"9006:6:4","nodeType":"VariableDeclaration","scope":740,"src":"8998:14:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":732,"name":"address","nodeType":"ElementaryTypeName","src":"8998:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":735,"mutability":"mutable","name":"data","nameLocation":"9033:4:4","nodeType":"VariableDeclaration","scope":740,"src":"9018:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":734,"name":"bytes","nodeType":"ElementaryTypeName","src":"9018:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"8929:112:4"},"returnParameters":{"id":739,"nodeType":"ParameterList","parameters":[{"constant":false,"id":738,"mutability":"mutable","name":"customPool","nameLocation":"9068:10:4","nodeType":"VariableDeclaration","scope":740,"src":"9060:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":737,"name":"address","nodeType":"ElementaryTypeName","src":"9060:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"9059:20:4"},"scope":779,"src":"8904:176:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":741,"nodeType":"StructuredDocumentation","src":"9084:142:4","text":"@dev updates default community fee for new pools\n @param newDefaultCommunityFee The new community fee, _must_ be <= MAX_COMMUNITY_FEE"},"functionSelector":"8d5a8711","id":746,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultCommunityFee","nameLocation":"9238:22:4","nodeType":"FunctionDefinition","parameters":{"id":744,"nodeType":"ParameterList","parameters":[{"constant":false,"id":743,"mutability":"mutable","name":"newDefaultCommunityFee","nameLocation":"9268:22:4","nodeType":"VariableDeclaration","scope":746,"src":"9261:29:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":742,"name":"uint16","nodeType":"ElementaryTypeName","src":"9261:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"9260:31:4"},"returnParameters":{"id":745,"nodeType":"ParameterList","parameters":[],"src":"9300:0:4"},"scope":779,"src":"9229:72:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":747,"nodeType":"StructuredDocumentation","src":"9305:112:4","text":"@dev updates default fee for new pools\n @param newDefaultFee The new  fee, _must_ be <= MAX_DEFAULT_FEE"},"functionSelector":"77326584","id":752,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultFee","nameLocation":"9429:13:4","nodeType":"FunctionDefinition","parameters":{"id":750,"nodeType":"ParameterList","parameters":[{"constant":false,"id":749,"mutability":"mutable","name":"newDefaultFee","nameLocation":"9450:13:4","nodeType":"VariableDeclaration","scope":752,"src":"9443:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":748,"name":"uint16","nodeType":"ElementaryTypeName","src":"9443:6:4","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"9442:22:4"},"returnParameters":{"id":751,"nodeType":"ParameterList","parameters":[],"src":"9473:0:4"},"scope":779,"src":"9420:54:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":753,"nodeType":"StructuredDocumentation","src":"9478:160:4","text":"@dev updates default tickspacing for new pools\n @param newDefaultTickspacing The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING"},"functionSelector":"f09489ac","id":758,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultTickspacing","nameLocation":"9650:21:4","nodeType":"FunctionDefinition","parameters":{"id":756,"nodeType":"ParameterList","parameters":[{"constant":false,"id":755,"mutability":"mutable","name":"newDefaultTickspacing","nameLocation":"9678:21:4","nodeType":"VariableDeclaration","scope":758,"src":"9672:27:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":754,"name":"int24","nodeType":"ElementaryTypeName","src":"9672:5:4","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"9671:29:4"},"returnParameters":{"id":757,"nodeType":"ParameterList","parameters":[],"src":"9709:0:4"},"scope":779,"src":"9641:69:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":759,"nodeType":"StructuredDocumentation","src":"9714:105:4","text":"@dev updates pluginFactory address\n @param newDefaultPluginFactory address of new plugin factory"},"functionSelector":"2939dd97","id":764,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultPluginFactory","nameLocation":"9831:23:4","nodeType":"FunctionDefinition","parameters":{"id":762,"nodeType":"ParameterList","parameters":[{"constant":false,"id":761,"mutability":"mutable","name":"newDefaultPluginFactory","nameLocation":"9863:23:4","nodeType":"VariableDeclaration","scope":764,"src":"9855:31:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":760,"name":"address","nodeType":"ElementaryTypeName","src":"9855:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"9854:33:4"},"returnParameters":{"id":763,"nodeType":"ParameterList","parameters":[],"src":"9896:0:4"},"scope":779,"src":"9822:75:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":765,"nodeType":"StructuredDocumentation","src":"9901:95:4","text":"@dev updates vaultFactory address\n @param newVaultFactory address of new vault factory"},"functionSelector":"3ea7fbdb","id":770,"implemented":false,"kind":"function","modifiers":[],"name":"setVaultFactory","nameLocation":"10008:15:4","nodeType":"FunctionDefinition","parameters":{"id":768,"nodeType":"ParameterList","parameters":[{"constant":false,"id":767,"mutability":"mutable","name":"newVaultFactory","nameLocation":"10032:15:4","nodeType":"VariableDeclaration","scope":770,"src":"10024:23:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":766,"name":"address","nodeType":"ElementaryTypeName","src":"10024:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"10023:25:4"},"returnParameters":{"id":769,"nodeType":"ParameterList","parameters":[],"src":"10057:0:4"},"scope":779,"src":"9999:59:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":771,"nodeType":"StructuredDocumentation","src":"10062:149:4","text":"@notice Starts process of renounceOwnership. After that, a certain period\n of time must pass before the ownership renounce can be completed."},"functionSelector":"469388c4","id":774,"implemented":false,"kind":"function","modifiers":[],"name":"startRenounceOwnership","nameLocation":"10223:22:4","nodeType":"FunctionDefinition","parameters":{"id":772,"nodeType":"ParameterList","parameters":[],"src":"10245:2:4"},"returnParameters":{"id":773,"nodeType":"ParameterList","parameters":[],"src":"10256:0:4"},"scope":779,"src":"10214:43:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":775,"nodeType":"StructuredDocumentation","src":"10261:65:4","text":"@notice Stops process of renounceOwnership and removes timer."},"functionSelector":"238a1d74","id":778,"implemented":false,"kind":"function","modifiers":[],"name":"stopRenounceOwnership","nameLocation":"10338:21:4","nodeType":"FunctionDefinition","parameters":{"id":776,"nodeType":"ParameterList","parameters":[],"src":"10359:2:4"},"returnParameters":{"id":777,"nodeType":"ParameterList","parameters":[],"src":"10370:0:4"},"scope":779,"src":"10329:42:4","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":780,"src":"363:10010:4","usedErrors":[],"usedEvents":[525,530,535,544,555,560,565,570,575,580]}],"src":"45:10329:4"},"id":4},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","exportedSymbols":{"IAlgebraPool":[801],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolEvents":[1359],"IAlgebraPoolImmutables":[1387],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619]},"id":802,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":781,"literals":["solidity",">=","0.8",".4"],"nodeType":"PragmaDirective","src":"45:24:5"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol","file":"./pool/IAlgebraPoolImmutables.sol","id":782,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1388,"src":"71:43:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"./pool/IAlgebraPoolState.sol","id":783,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1620,"src":"115:38:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","file":"./pool/IAlgebraPoolActions.sol","id":784,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1116,"src":"154:40:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","file":"./pool/IAlgebraPoolPermissionedActions.sol","id":785,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1436,"src":"195:52:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol","file":"./pool/IAlgebraPoolEvents.sol","id":786,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1360,"src":"248:39:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"./pool/IAlgebraPoolErrors.sol","id":787,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":802,"sourceUnit":1218,"src":"288:39:5","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":789,"name":"IAlgebraPoolImmutables","nameLocations":["759:22:5"],"nodeType":"IdentifierPath","referencedDeclaration":1387,"src":"759:22:5"},"id":790,"nodeType":"InheritanceSpecifier","src":"759:22:5"},{"baseName":{"id":791,"name":"IAlgebraPoolState","nameLocations":["785:17:5"],"nodeType":"IdentifierPath","referencedDeclaration":1619,"src":"785:17:5"},"id":792,"nodeType":"InheritanceSpecifier","src":"785:17:5"},{"baseName":{"id":793,"name":"IAlgebraPoolActions","nameLocations":["806:19:5"],"nodeType":"IdentifierPath","referencedDeclaration":1115,"src":"806:19:5"},"id":794,"nodeType":"InheritanceSpecifier","src":"806:19:5"},{"baseName":{"id":795,"name":"IAlgebraPoolPermissionedActions","nameLocations":["829:31:5"],"nodeType":"IdentifierPath","referencedDeclaration":1435,"src":"829:31:5"},"id":796,"nodeType":"InheritanceSpecifier","src":"829:31:5"},{"baseName":{"id":797,"name":"IAlgebraPoolEvents","nameLocations":["864:18:5"],"nodeType":"IdentifierPath","referencedDeclaration":1359,"src":"864:18:5"},"id":798,"nodeType":"InheritanceSpecifier","src":"864:18:5"},{"baseName":{"id":799,"name":"IAlgebraPoolErrors","nameLocations":["886:18:5"],"nodeType":"IdentifierPath","referencedDeclaration":1217,"src":"886:18:5"},"id":800,"nodeType":"InheritanceSpecifier","src":"886:18:5"}],"canonicalName":"IAlgebraPool","contractDependencies":[],"contractKind":"interface","documentation":{"id":788,"nodeType":"StructuredDocumentation","src":"329:402:5","text":"@title The interface for a Algebra Pool\n @dev The pool interface is broken up into many smaller pieces.\n This interface includes custom error definitions and cannot be used in older versions of Solidity.\n For older versions of Solidity use #IAlgebraPoolLegacy\n Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":801,"linearizedBaseContracts":[801,1217,1359,1435,1115,1619,1387],"name":"IAlgebraPool","nameLocation":"741:12:5","nodeType":"ContractDefinition","nodes":[],"scope":802,"src":"731:217:5","usedErrors":[1121,1124,1127,1130,1133,1136,1139,1142,1145,1148,1151,1154,1157,1160,1163,1166,1169,1172,1175,1178,1183,1186,1189,1192,1195,1198,1201,1204,1207,1210,1213,1216],"usedEvents":[1227,1244,1259,1276,1297,1312,1319,1324,1329,1334,1339,1344,1349,1358]}],"src":"45:904:5"},"id":5},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","exportedSymbols":{"IAlgebraPlugin":[967]},"id":968,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":803,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:6"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPlugin","contractDependencies":[],"contractKind":"interface","documentation":{"id":804,"nodeType":"StructuredDocumentation","src":"71:145:6","text":"@title The Algebra plugin interface\n @dev The plugin will be called by the pool using hook methods depending on the current pool settings"},"fullyImplemented":false,"id":967,"linearizedBaseContracts":[967],"name":"IAlgebraPlugin","nameLocation":"226:14:6","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":805,"nodeType":"StructuredDocumentation","src":"245:202:6","text":"@notice Returns plugin config\n @return config Each bit of the config is responsible for enabling/disabling the hooks.\n The last bit indicates whether the plugin contains dynamic fees logic"},"functionSelector":"689ea370","id":810,"implemented":false,"kind":"function","modifiers":[],"name":"defaultPluginConfig","nameLocation":"459:19:6","nodeType":"FunctionDefinition","parameters":{"id":806,"nodeType":"ParameterList","parameters":[],"src":"478:2:6"},"returnParameters":{"id":809,"nodeType":"ParameterList","parameters":[{"constant":false,"id":808,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":810,"src":"504:5:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":807,"name":"uint8","nodeType":"ElementaryTypeName","src":"504:5:6","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"503:7:6"},"scope":967,"src":"450:61:6","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":811,"nodeType":"StructuredDocumentation","src":"515:216:6","text":"@notice Handle plugin fee transfer on plugin contract\n @param pluginFee0 Fee0 amount transferred to plugin\n @param pluginFee1 Fee1 amount transferred to plugin\n @return bytes4 The function selector"},"functionSelector":"aa6b14bb","id":820,"implemented":false,"kind":"function","modifiers":[],"name":"handlePluginFee","nameLocation":"743:15:6","nodeType":"FunctionDefinition","parameters":{"id":816,"nodeType":"ParameterList","parameters":[{"constant":false,"id":813,"mutability":"mutable","name":"pluginFee0","nameLocation":"767:10:6","nodeType":"VariableDeclaration","scope":820,"src":"759:18:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":812,"name":"uint256","nodeType":"ElementaryTypeName","src":"759:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":815,"mutability":"mutable","name":"pluginFee1","nameLocation":"787:10:6","nodeType":"VariableDeclaration","scope":820,"src":"779:18:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":814,"name":"uint256","nodeType":"ElementaryTypeName","src":"779:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"758:40:6"},"returnParameters":{"id":819,"nodeType":"ParameterList","parameters":[{"constant":false,"id":818,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":820,"src":"817:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":817,"name":"bytes4","nodeType":"ElementaryTypeName","src":"817:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"816:8:6"},"scope":967,"src":"734:91:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":821,"nodeType":"StructuredDocumentation","src":"829:258:6","text":"@notice The hook called before the state of a pool is initialized\n @param sender The initial msg.sender for the initialize call\n @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n @return bytes4 The function selector for the hook"},"functionSelector":"636fd804","id":830,"implemented":false,"kind":"function","modifiers":[],"name":"beforeInitialize","nameLocation":"1099:16:6","nodeType":"FunctionDefinition","parameters":{"id":826,"nodeType":"ParameterList","parameters":[{"constant":false,"id":823,"mutability":"mutable","name":"sender","nameLocation":"1124:6:6","nodeType":"VariableDeclaration","scope":830,"src":"1116:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":822,"name":"address","nodeType":"ElementaryTypeName","src":"1116:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":825,"mutability":"mutable","name":"sqrtPriceX96","nameLocation":"1140:12:6","nodeType":"VariableDeclaration","scope":830,"src":"1132:20:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":824,"name":"uint160","nodeType":"ElementaryTypeName","src":"1132:7:6","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"1115:38:6"},"returnParameters":{"id":829,"nodeType":"ParameterList","parameters":[{"constant":false,"id":828,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":830,"src":"1172:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":827,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1172:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1171:8:6"},"scope":967,"src":"1090:90:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":831,"nodeType":"StructuredDocumentation","src":"1184:333:6","text":"@notice The hook called after the state of a pool is initialized\n @param sender The initial msg.sender for the initialize call\n @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n @param tick The current tick after the state of a pool is initialized\n @return bytes4 The function selector for the hook"},"functionSelector":"82dd6522","id":842,"implemented":false,"kind":"function","modifiers":[],"name":"afterInitialize","nameLocation":"1529:15:6","nodeType":"FunctionDefinition","parameters":{"id":838,"nodeType":"ParameterList","parameters":[{"constant":false,"id":833,"mutability":"mutable","name":"sender","nameLocation":"1553:6:6","nodeType":"VariableDeclaration","scope":842,"src":"1545:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":832,"name":"address","nodeType":"ElementaryTypeName","src":"1545:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":835,"mutability":"mutable","name":"sqrtPriceX96","nameLocation":"1569:12:6","nodeType":"VariableDeclaration","scope":842,"src":"1561:20:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":834,"name":"uint160","nodeType":"ElementaryTypeName","src":"1561:7:6","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":837,"mutability":"mutable","name":"tick","nameLocation":"1589:4:6","nodeType":"VariableDeclaration","scope":842,"src":"1583:10:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":836,"name":"int24","nodeType":"ElementaryTypeName","src":"1583:5:6","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1544:50:6"},"returnParameters":{"id":841,"nodeType":"ParameterList","parameters":[{"constant":false,"id":840,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":842,"src":"1613:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":839,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1613:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1612:8:6"},"scope":967,"src":"1520:101:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":843,"nodeType":"StructuredDocumentation","src":"1625:575:6","text":"@notice The hook called before a position is modified\n @param sender The initial msg.sender for the modify position call\n @param recipient Address to which the liquidity will be assigned in case of a mint or\n to which tokens will be sent in case of a burn\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n @param data Data that passed through the callback\n @return selector The function selector for the hook"},"functionSelector":"5e2411b2","id":862,"implemented":false,"kind":"function","modifiers":[],"name":"beforeModifyPosition","nameLocation":"2212:20:6","nodeType":"FunctionDefinition","parameters":{"id":856,"nodeType":"ParameterList","parameters":[{"constant":false,"id":845,"mutability":"mutable","name":"sender","nameLocation":"2246:6:6","nodeType":"VariableDeclaration","scope":862,"src":"2238:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":844,"name":"address","nodeType":"ElementaryTypeName","src":"2238:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":847,"mutability":"mutable","name":"recipient","nameLocation":"2266:9:6","nodeType":"VariableDeclaration","scope":862,"src":"2258:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":846,"name":"address","nodeType":"ElementaryTypeName","src":"2258:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":849,"mutability":"mutable","name":"bottomTick","nameLocation":"2287:10:6","nodeType":"VariableDeclaration","scope":862,"src":"2281:16:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":848,"name":"int24","nodeType":"ElementaryTypeName","src":"2281:5:6","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":851,"mutability":"mutable","name":"topTick","nameLocation":"2309:7:6","nodeType":"VariableDeclaration","scope":862,"src":"2303:13:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":850,"name":"int24","nodeType":"ElementaryTypeName","src":"2303:5:6","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":853,"mutability":"mutable","name":"desiredLiquidityDelta","nameLocation":"2329:21:6","nodeType":"VariableDeclaration","scope":862,"src":"2322:28:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":852,"name":"int128","nodeType":"ElementaryTypeName","src":"2322:6:6","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":855,"mutability":"mutable","name":"data","nameLocation":"2371:4:6","nodeType":"VariableDeclaration","scope":862,"src":"2356:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":854,"name":"bytes","nodeType":"ElementaryTypeName","src":"2356:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"2232:147:6"},"returnParameters":{"id":861,"nodeType":"ParameterList","parameters":[{"constant":false,"id":858,"mutability":"mutable","name":"selector","nameLocation":"2405:8:6","nodeType":"VariableDeclaration","scope":862,"src":"2398:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":857,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2398:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":860,"mutability":"mutable","name":"pluginFee","nameLocation":"2422:9:6","nodeType":"VariableDeclaration","scope":862,"src":"2415:16:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":859,"name":"uint24","nodeType":"ElementaryTypeName","src":"2415:6:6","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2397:35:6"},"scope":967,"src":"2203:230:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":863,"nodeType":"StructuredDocumentation","src":"2437:740:6","text":"@notice The hook called after a position is modified\n @param sender The initial msg.sender for the modify position call\n @param recipient Address to which the liquidity will be assigned in case of a mint or\n to which tokens will be sent in case of a burn\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n @param amount0 The amount of token0 sent to the recipient or was paid to mint\n @param amount1 The amount of token0 sent to the recipient or was paid to mint\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"d6852010","id":884,"implemented":false,"kind":"function","modifiers":[],"name":"afterModifyPosition","nameLocation":"3189:19:6","nodeType":"FunctionDefinition","parameters":{"id":880,"nodeType":"ParameterList","parameters":[{"constant":false,"id":865,"mutability":"mutable","name":"sender","nameLocation":"3222:6:6","nodeType":"VariableDeclaration","scope":884,"src":"3214:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":864,"name":"address","nodeType":"ElementaryTypeName","src":"3214:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":867,"mutability":"mutable","name":"recipient","nameLocation":"3242:9:6","nodeType":"VariableDeclaration","scope":884,"src":"3234:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":866,"name":"address","nodeType":"ElementaryTypeName","src":"3234:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":869,"mutability":"mutable","name":"bottomTick","nameLocation":"3263:10:6","nodeType":"VariableDeclaration","scope":884,"src":"3257:16:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":868,"name":"int24","nodeType":"ElementaryTypeName","src":"3257:5:6","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":871,"mutability":"mutable","name":"topTick","nameLocation":"3285:7:6","nodeType":"VariableDeclaration","scope":884,"src":"3279:13:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":870,"name":"int24","nodeType":"ElementaryTypeName","src":"3279:5:6","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":873,"mutability":"mutable","name":"desiredLiquidityDelta","nameLocation":"3305:21:6","nodeType":"VariableDeclaration","scope":884,"src":"3298:28:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":872,"name":"int128","nodeType":"ElementaryTypeName","src":"3298:6:6","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":875,"mutability":"mutable","name":"amount0","nameLocation":"3340:7:6","nodeType":"VariableDeclaration","scope":884,"src":"3332:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":874,"name":"uint256","nodeType":"ElementaryTypeName","src":"3332:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":877,"mutability":"mutable","name":"amount1","nameLocation":"3361:7:6","nodeType":"VariableDeclaration","scope":884,"src":"3353:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":876,"name":"uint256","nodeType":"ElementaryTypeName","src":"3353:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":879,"mutability":"mutable","name":"data","nameLocation":"3389:4:6","nodeType":"VariableDeclaration","scope":884,"src":"3374:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":878,"name":"bytes","nodeType":"ElementaryTypeName","src":"3374:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3208:189:6"},"returnParameters":{"id":883,"nodeType":"ParameterList","parameters":[{"constant":false,"id":882,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":884,"src":"3416:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":881,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3416:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3415:8:6"},"scope":967,"src":"3180:244:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":885,"nodeType":"StructuredDocumentation","src":"3428:856:6","text":"@notice The hook called before a swap\n @param sender The initial msg.sender for the swap call\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param withPaymentInAdvance The flag indicating whether the `swapWithPaymentInAdvance` method was called\n @param data Data that passed through the callback\n @return selector The function selector for the hook"},"functionSelector":"029c1cb7","id":908,"implemented":false,"kind":"function","modifiers":[],"name":"beforeSwap","nameLocation":"4296:10:6","nodeType":"FunctionDefinition","parameters":{"id":900,"nodeType":"ParameterList","parameters":[{"constant":false,"id":887,"mutability":"mutable","name":"sender","nameLocation":"4320:6:6","nodeType":"VariableDeclaration","scope":908,"src":"4312:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":886,"name":"address","nodeType":"ElementaryTypeName","src":"4312:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":889,"mutability":"mutable","name":"recipient","nameLocation":"4340:9:6","nodeType":"VariableDeclaration","scope":908,"src":"4332:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":888,"name":"address","nodeType":"ElementaryTypeName","src":"4332:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":891,"mutability":"mutable","name":"zeroToOne","nameLocation":"4360:9:6","nodeType":"VariableDeclaration","scope":908,"src":"4355:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":890,"name":"bool","nodeType":"ElementaryTypeName","src":"4355:4:6","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":893,"mutability":"mutable","name":"amountRequired","nameLocation":"4382:14:6","nodeType":"VariableDeclaration","scope":908,"src":"4375:21:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":892,"name":"int256","nodeType":"ElementaryTypeName","src":"4375:6:6","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":895,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"4410:14:6","nodeType":"VariableDeclaration","scope":908,"src":"4402:22:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":894,"name":"uint160","nodeType":"ElementaryTypeName","src":"4402:7:6","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":897,"mutability":"mutable","name":"withPaymentInAdvance","nameLocation":"4435:20:6","nodeType":"VariableDeclaration","scope":908,"src":"4430:25:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":896,"name":"bool","nodeType":"ElementaryTypeName","src":"4430:4:6","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":899,"mutability":"mutable","name":"data","nameLocation":"4476:4:6","nodeType":"VariableDeclaration","scope":908,"src":"4461:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":898,"name":"bytes","nodeType":"ElementaryTypeName","src":"4461:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4306:178:6"},"returnParameters":{"id":907,"nodeType":"ParameterList","parameters":[{"constant":false,"id":902,"mutability":"mutable","name":"selector","nameLocation":"4510:8:6","nodeType":"VariableDeclaration","scope":908,"src":"4503:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":901,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4503:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":904,"mutability":"mutable","name":"feeOverride","nameLocation":"4527:11:6","nodeType":"VariableDeclaration","scope":908,"src":"4520:18:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":903,"name":"uint24","nodeType":"ElementaryTypeName","src":"4520:6:6","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":906,"mutability":"mutable","name":"pluginFee","nameLocation":"4547:9:6","nodeType":"VariableDeclaration","scope":908,"src":"4540:16:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":905,"name":"uint24","nodeType":"ElementaryTypeName","src":"4540:6:6","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"4502:55:6"},"scope":967,"src":"4287:271:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":909,"nodeType":"StructuredDocumentation","src":"4562:966:6","text":"@notice The hook called after a swap\n @param sender The initial msg.sender for the swap call\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @param amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"9cb5a963","id":930,"implemented":false,"kind":"function","modifiers":[],"name":"afterSwap","nameLocation":"5540:9:6","nodeType":"FunctionDefinition","parameters":{"id":926,"nodeType":"ParameterList","parameters":[{"constant":false,"id":911,"mutability":"mutable","name":"sender","nameLocation":"5563:6:6","nodeType":"VariableDeclaration","scope":930,"src":"5555:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":910,"name":"address","nodeType":"ElementaryTypeName","src":"5555:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":913,"mutability":"mutable","name":"recipient","nameLocation":"5583:9:6","nodeType":"VariableDeclaration","scope":930,"src":"5575:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":912,"name":"address","nodeType":"ElementaryTypeName","src":"5575:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":915,"mutability":"mutable","name":"zeroToOne","nameLocation":"5603:9:6","nodeType":"VariableDeclaration","scope":930,"src":"5598:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":914,"name":"bool","nodeType":"ElementaryTypeName","src":"5598:4:6","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":917,"mutability":"mutable","name":"amountRequired","nameLocation":"5625:14:6","nodeType":"VariableDeclaration","scope":930,"src":"5618:21:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":916,"name":"int256","nodeType":"ElementaryTypeName","src":"5618:6:6","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":919,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"5653:14:6","nodeType":"VariableDeclaration","scope":930,"src":"5645:22:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":918,"name":"uint160","nodeType":"ElementaryTypeName","src":"5645:7:6","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":921,"mutability":"mutable","name":"amount0","nameLocation":"5680:7:6","nodeType":"VariableDeclaration","scope":930,"src":"5673:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":920,"name":"int256","nodeType":"ElementaryTypeName","src":"5673:6:6","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":923,"mutability":"mutable","name":"amount1","nameLocation":"5700:7:6","nodeType":"VariableDeclaration","scope":930,"src":"5693:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":922,"name":"int256","nodeType":"ElementaryTypeName","src":"5693:6:6","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":925,"mutability":"mutable","name":"data","nameLocation":"5728:4:6","nodeType":"VariableDeclaration","scope":930,"src":"5713:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":924,"name":"bytes","nodeType":"ElementaryTypeName","src":"5713:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5549:187:6"},"returnParameters":{"id":929,"nodeType":"ParameterList","parameters":[{"constant":false,"id":928,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":930,"src":"5755:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":927,"name":"bytes4","nodeType":"ElementaryTypeName","src":"5755:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"5754:8:6"},"scope":967,"src":"5531:232:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":931,"nodeType":"StructuredDocumentation","src":"5767:434:6","text":"@notice The hook called before flash\n @param sender The initial msg.sender for the flash call\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 being requested for flash\n @param amount1 The amount of token1 being requested for flash\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"8de0a8ee","id":946,"implemented":false,"kind":"function","modifiers":[],"name":"beforeFlash","nameLocation":"6213:11:6","nodeType":"FunctionDefinition","parameters":{"id":942,"nodeType":"ParameterList","parameters":[{"constant":false,"id":933,"mutability":"mutable","name":"sender","nameLocation":"6233:6:6","nodeType":"VariableDeclaration","scope":946,"src":"6225:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":932,"name":"address","nodeType":"ElementaryTypeName","src":"6225:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":935,"mutability":"mutable","name":"recipient","nameLocation":"6249:9:6","nodeType":"VariableDeclaration","scope":946,"src":"6241:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":934,"name":"address","nodeType":"ElementaryTypeName","src":"6241:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":937,"mutability":"mutable","name":"amount0","nameLocation":"6268:7:6","nodeType":"VariableDeclaration","scope":946,"src":"6260:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":936,"name":"uint256","nodeType":"ElementaryTypeName","src":"6260:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":939,"mutability":"mutable","name":"amount1","nameLocation":"6285:7:6","nodeType":"VariableDeclaration","scope":946,"src":"6277:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":938,"name":"uint256","nodeType":"ElementaryTypeName","src":"6277:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":941,"mutability":"mutable","name":"data","nameLocation":"6309:4:6","nodeType":"VariableDeclaration","scope":946,"src":"6294:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":940,"name":"bytes","nodeType":"ElementaryTypeName","src":"6294:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6224:90:6"},"returnParameters":{"id":945,"nodeType":"ParameterList","parameters":[{"constant":false,"id":944,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":946,"src":"6333:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":943,"name":"bytes4","nodeType":"ElementaryTypeName","src":"6333:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"6332:8:6"},"scope":967,"src":"6204:137:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":947,"nodeType":"StructuredDocumentation","src":"6345:555:6","text":"@notice The hook called after flash\n @param sender The initial msg.sender for the flash call\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 being requested for flash\n @param amount1 The amount of token1 being requested for flash\n @param paid0 The amount of token0 being paid for flash\n @param paid1 The amount of token1 being paid for flash\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"343d37ff","id":966,"implemented":false,"kind":"function","modifiers":[],"name":"afterFlash","nameLocation":"6912:10:6","nodeType":"FunctionDefinition","parameters":{"id":962,"nodeType":"ParameterList","parameters":[{"constant":false,"id":949,"mutability":"mutable","name":"sender","nameLocation":"6936:6:6","nodeType":"VariableDeclaration","scope":966,"src":"6928:14:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":948,"name":"address","nodeType":"ElementaryTypeName","src":"6928:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":951,"mutability":"mutable","name":"recipient","nameLocation":"6956:9:6","nodeType":"VariableDeclaration","scope":966,"src":"6948:17:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":950,"name":"address","nodeType":"ElementaryTypeName","src":"6948:7:6","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":953,"mutability":"mutable","name":"amount0","nameLocation":"6979:7:6","nodeType":"VariableDeclaration","scope":966,"src":"6971:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":952,"name":"uint256","nodeType":"ElementaryTypeName","src":"6971:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":955,"mutability":"mutable","name":"amount1","nameLocation":"7000:7:6","nodeType":"VariableDeclaration","scope":966,"src":"6992:15:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":954,"name":"uint256","nodeType":"ElementaryTypeName","src":"6992:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":957,"mutability":"mutable","name":"paid0","nameLocation":"7021:5:6","nodeType":"VariableDeclaration","scope":966,"src":"7013:13:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":956,"name":"uint256","nodeType":"ElementaryTypeName","src":"7013:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":959,"mutability":"mutable","name":"paid1","nameLocation":"7040:5:6","nodeType":"VariableDeclaration","scope":966,"src":"7032:13:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":958,"name":"uint256","nodeType":"ElementaryTypeName","src":"7032:7:6","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":961,"mutability":"mutable","name":"data","nameLocation":"7066:4:6","nodeType":"VariableDeclaration","scope":966,"src":"7051:19:6","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":960,"name":"bytes","nodeType":"ElementaryTypeName","src":"7051:5:6","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6922:152:6"},"returnParameters":{"id":965,"nodeType":"ParameterList","parameters":[{"constant":false,"id":964,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":966,"src":"7093:6:6","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":963,"name":"bytes4","nodeType":"ElementaryTypeName","src":"7093:6:6","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"7092:8:6"},"scope":967,"src":"6903:198:6","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":968,"src":"216:6887:6","usedErrors":[],"usedEvents":[]}],"src":"45:7059:6"},"id":6},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","exportedSymbols":{"IAlgebraPluginFactory":[999]},"id":1000,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":969,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:7"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPluginFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":970,"nodeType":"StructuredDocumentation","src":"71:249:7","text":"@title An interface for a contract that is capable of deploying Algebra plugins\n @dev Such a factory can be used for automatic plugin creation for new pools.\n Also a factory be used as an entry point for custom (additional) pools creation"},"fullyImplemented":false,"id":999,"linearizedBaseContracts":[999],"name":"IAlgebraPluginFactory","nameLocation":"330:21:7","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":971,"nodeType":"StructuredDocumentation","src":"356:364:7","text":"@notice Deploys new plugin contract for pool\n @param pool The address of the new pool\n @param creator The address that initiated the pool creation\n @param deployer The address of new plugin deployer contract (0 if not used)\n @param token0 First token of the pool\n @param token1 Second token of the pool\n @return New plugin address"},"functionSelector":"1d0338d9","id":988,"implemented":false,"kind":"function","modifiers":[],"name":"beforeCreatePoolHook","nameLocation":"732:20:7","nodeType":"FunctionDefinition","parameters":{"id":984,"nodeType":"ParameterList","parameters":[{"constant":false,"id":973,"mutability":"mutable","name":"pool","nameLocation":"766:4:7","nodeType":"VariableDeclaration","scope":988,"src":"758:12:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":972,"name":"address","nodeType":"ElementaryTypeName","src":"758:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":975,"mutability":"mutable","name":"creator","nameLocation":"784:7:7","nodeType":"VariableDeclaration","scope":988,"src":"776:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":974,"name":"address","nodeType":"ElementaryTypeName","src":"776:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":977,"mutability":"mutable","name":"deployer","nameLocation":"805:8:7","nodeType":"VariableDeclaration","scope":988,"src":"797:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":976,"name":"address","nodeType":"ElementaryTypeName","src":"797:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":979,"mutability":"mutable","name":"token0","nameLocation":"827:6:7","nodeType":"VariableDeclaration","scope":988,"src":"819:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":978,"name":"address","nodeType":"ElementaryTypeName","src":"819:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":981,"mutability":"mutable","name":"token1","nameLocation":"847:6:7","nodeType":"VariableDeclaration","scope":988,"src":"839:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":980,"name":"address","nodeType":"ElementaryTypeName","src":"839:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":983,"mutability":"mutable","name":"data","nameLocation":"874:4:7","nodeType":"VariableDeclaration","scope":988,"src":"859:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":982,"name":"bytes","nodeType":"ElementaryTypeName","src":"859:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"752:130:7"},"returnParameters":{"id":987,"nodeType":"ParameterList","parameters":[{"constant":false,"id":986,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":988,"src":"901:7:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":985,"name":"address","nodeType":"ElementaryTypeName","src":"901:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"900:9:7"},"scope":999,"src":"723:187:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":989,"nodeType":"StructuredDocumentation","src":"914:211:7","text":"@notice Called after the pool is created\n @param plugin The plugin address\n @param pool The address of the new pool\n @param deployer The address of new plugin deployer contract (0 if not used)"},"functionSelector":"8d5ef8d1","id":998,"implemented":false,"kind":"function","modifiers":[],"name":"afterCreatePoolHook","nameLocation":"1137:19:7","nodeType":"FunctionDefinition","parameters":{"id":996,"nodeType":"ParameterList","parameters":[{"constant":false,"id":991,"mutability":"mutable","name":"plugin","nameLocation":"1165:6:7","nodeType":"VariableDeclaration","scope":998,"src":"1157:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":990,"name":"address","nodeType":"ElementaryTypeName","src":"1157:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":993,"mutability":"mutable","name":"pool","nameLocation":"1181:4:7","nodeType":"VariableDeclaration","scope":998,"src":"1173:12:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":992,"name":"address","nodeType":"ElementaryTypeName","src":"1173:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":995,"mutability":"mutable","name":"deployer","nameLocation":"1195:8:7","nodeType":"VariableDeclaration","scope":998,"src":"1187:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":994,"name":"address","nodeType":"ElementaryTypeName","src":"1187:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1156:48:7"},"returnParameters":{"id":997,"nodeType":"ParameterList","parameters":[],"src":"1213:0:7"},"scope":999,"src":"1128:86:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1000,"src":"320:896:7","usedErrors":[],"usedEvents":[]}],"src":"45:1172:7"},"id":7},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","exportedSymbols":{"IAlgebraPoolActions":[1115]},"id":1116,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1001,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:8"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolActions","contractDependencies":[],"contractKind":"interface","documentation":{"id":1002,"nodeType":"StructuredDocumentation","src":"71:173:8","text":"@title Permissionless pool actions\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1115,"linearizedBaseContracts":[1115],"name":"IAlgebraPoolActions","nameLocation":"254:19:8","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1003,"nodeType":"StructuredDocumentation","src":"278:304:8","text":"@notice Sets the initial price for the pool\n @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\n @dev Initialization should be done in one transaction with pool creation to avoid front-running\n @param initialPrice The initial sqrt price of the pool as a Q64.96"},"functionSelector":"f637731d","id":1008,"implemented":false,"kind":"function","modifiers":[],"name":"initialize","nameLocation":"594:10:8","nodeType":"FunctionDefinition","parameters":{"id":1006,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1005,"mutability":"mutable","name":"initialPrice","nameLocation":"613:12:8","nodeType":"VariableDeclaration","scope":1008,"src":"605:20:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1004,"name":"uint160","nodeType":"ElementaryTypeName","src":"605:7:8","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"604:22:8"},"returnParameters":{"id":1007,"nodeType":"ParameterList","parameters":[],"src":"635:0:8"},"scope":1115,"src":"585:51:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1009,"nodeType":"StructuredDocumentation","src":"640:1184:8","text":"@notice Adds liquidity for the given recipient/bottomTick/topTick position\n @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback\n in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\n on bottomTick, topTick, the amount of liquidity, and the current price.\n @param leftoversRecipient The address which will receive potential surplus of paid tokens\n @param recipient The address for which the liquidity will be created\n @param bottomTick The lower tick of the position in which to add liquidity\n @param topTick The upper tick of the position in which to add liquidity\n @param liquidityDesired The desired amount of liquidity to mint\n @param data Any data that should be passed through to the callback\n @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\n @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\n @return liquidityActual The actual minted amount of liquidity"},"functionSelector":"aafe29c0","id":1030,"implemented":false,"kind":"function","modifiers":[],"name":"mint","nameLocation":"1836:4:8","nodeType":"FunctionDefinition","parameters":{"id":1022,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1011,"mutability":"mutable","name":"leftoversRecipient","nameLocation":"1854:18:8","nodeType":"VariableDeclaration","scope":1030,"src":"1846:26:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1010,"name":"address","nodeType":"ElementaryTypeName","src":"1846:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1013,"mutability":"mutable","name":"recipient","nameLocation":"1886:9:8","nodeType":"VariableDeclaration","scope":1030,"src":"1878:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1012,"name":"address","nodeType":"ElementaryTypeName","src":"1878:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1015,"mutability":"mutable","name":"bottomTick","nameLocation":"1907:10:8","nodeType":"VariableDeclaration","scope":1030,"src":"1901:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1014,"name":"int24","nodeType":"ElementaryTypeName","src":"1901:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1017,"mutability":"mutable","name":"topTick","nameLocation":"1929:7:8","nodeType":"VariableDeclaration","scope":1030,"src":"1923:13:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1016,"name":"int24","nodeType":"ElementaryTypeName","src":"1923:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1019,"mutability":"mutable","name":"liquidityDesired","nameLocation":"1950:16:8","nodeType":"VariableDeclaration","scope":1030,"src":"1942:24:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1018,"name":"uint128","nodeType":"ElementaryTypeName","src":"1942:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1021,"mutability":"mutable","name":"data","nameLocation":"1987:4:8","nodeType":"VariableDeclaration","scope":1030,"src":"1972:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1020,"name":"bytes","nodeType":"ElementaryTypeName","src":"1972:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"1840:155:8"},"returnParameters":{"id":1029,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1024,"mutability":"mutable","name":"amount0","nameLocation":"2022:7:8","nodeType":"VariableDeclaration","scope":1030,"src":"2014:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1023,"name":"uint256","nodeType":"ElementaryTypeName","src":"2014:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1026,"mutability":"mutable","name":"amount1","nameLocation":"2039:7:8","nodeType":"VariableDeclaration","scope":1030,"src":"2031:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1025,"name":"uint256","nodeType":"ElementaryTypeName","src":"2031:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1028,"mutability":"mutable","name":"liquidityActual","nameLocation":"2056:15:8","nodeType":"VariableDeclaration","scope":1030,"src":"2048:23:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1027,"name":"uint128","nodeType":"ElementaryTypeName","src":"2048:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"2013:59:8"},"scope":1115,"src":"1827:246:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1031,"nodeType":"StructuredDocumentation","src":"2077:1030:8","text":"@notice Collects tokens owed to a position\n @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\n Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\n amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\n actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\n @param recipient The address which should receive the fees collected\n @param bottomTick The lower tick of the position for which to collect fees\n @param topTick The upper tick of the position for which to collect fees\n @param amount0Requested How much token0 should be withdrawn from the fees owed\n @param amount1Requested How much token1 should be withdrawn from the fees owed\n @return amount0 The amount of fees collected in token0\n @return amount1 The amount of fees collected in token1"},"functionSelector":"4f1eb3d8","id":1048,"implemented":false,"kind":"function","modifiers":[],"name":"collect","nameLocation":"3119:7:8","nodeType":"FunctionDefinition","parameters":{"id":1042,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1033,"mutability":"mutable","name":"recipient","nameLocation":"3140:9:8","nodeType":"VariableDeclaration","scope":1048,"src":"3132:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1032,"name":"address","nodeType":"ElementaryTypeName","src":"3132:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1035,"mutability":"mutable","name":"bottomTick","nameLocation":"3161:10:8","nodeType":"VariableDeclaration","scope":1048,"src":"3155:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1034,"name":"int24","nodeType":"ElementaryTypeName","src":"3155:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1037,"mutability":"mutable","name":"topTick","nameLocation":"3183:7:8","nodeType":"VariableDeclaration","scope":1048,"src":"3177:13:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1036,"name":"int24","nodeType":"ElementaryTypeName","src":"3177:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1039,"mutability":"mutable","name":"amount0Requested","nameLocation":"3204:16:8","nodeType":"VariableDeclaration","scope":1048,"src":"3196:24:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1038,"name":"uint128","nodeType":"ElementaryTypeName","src":"3196:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1041,"mutability":"mutable","name":"amount1Requested","nameLocation":"3234:16:8","nodeType":"VariableDeclaration","scope":1048,"src":"3226:24:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1040,"name":"uint128","nodeType":"ElementaryTypeName","src":"3226:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3126:128:8"},"returnParameters":{"id":1047,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1044,"mutability":"mutable","name":"amount0","nameLocation":"3281:7:8","nodeType":"VariableDeclaration","scope":1048,"src":"3273:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1043,"name":"uint128","nodeType":"ElementaryTypeName","src":"3273:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1046,"mutability":"mutable","name":"amount1","nameLocation":"3298:7:8","nodeType":"VariableDeclaration","scope":1048,"src":"3290:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1045,"name":"uint128","nodeType":"ElementaryTypeName","src":"3290:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3272:34:8"},"scope":1115,"src":"3110:197:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1049,"nodeType":"StructuredDocumentation","src":"3311:687:8","text":"@notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\n @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\n @dev Fees must be collected separately via a call to #collect\n @param bottomTick The lower tick of the position for which to burn liquidity\n @param topTick The upper tick of the position for which to burn liquidity\n @param amount How much liquidity to burn\n @param data Any data that should be passed through to the plugin\n @return amount0 The amount of token0 sent to the recipient\n @return amount1 The amount of token1 sent to the recipient"},"functionSelector":"3b3bc70e","id":1064,"implemented":false,"kind":"function","modifiers":[],"name":"burn","nameLocation":"4010:4:8","nodeType":"FunctionDefinition","parameters":{"id":1058,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1051,"mutability":"mutable","name":"bottomTick","nameLocation":"4021:10:8","nodeType":"VariableDeclaration","scope":1064,"src":"4015:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1050,"name":"int24","nodeType":"ElementaryTypeName","src":"4015:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1053,"mutability":"mutable","name":"topTick","nameLocation":"4039:7:8","nodeType":"VariableDeclaration","scope":1064,"src":"4033:13:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1052,"name":"int24","nodeType":"ElementaryTypeName","src":"4033:5:8","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1055,"mutability":"mutable","name":"amount","nameLocation":"4056:6:8","nodeType":"VariableDeclaration","scope":1064,"src":"4048:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1054,"name":"uint128","nodeType":"ElementaryTypeName","src":"4048:7:8","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1057,"mutability":"mutable","name":"data","nameLocation":"4079:4:8","nodeType":"VariableDeclaration","scope":1064,"src":"4064:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1056,"name":"bytes","nodeType":"ElementaryTypeName","src":"4064:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4014:70:8"},"returnParameters":{"id":1063,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1060,"mutability":"mutable","name":"amount0","nameLocation":"4111:7:8","nodeType":"VariableDeclaration","scope":1064,"src":"4103:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1059,"name":"uint256","nodeType":"ElementaryTypeName","src":"4103:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1062,"mutability":"mutable","name":"amount1","nameLocation":"4128:7:8","nodeType":"VariableDeclaration","scope":1064,"src":"4120:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1061,"name":"uint256","nodeType":"ElementaryTypeName","src":"4120:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4102:34:8"},"scope":1115,"src":"4001:136:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1065,"nodeType":"StructuredDocumentation","src":"4141:1055:8","text":"@notice Swap token0 for token1, or token1 for token0\n @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive"},"functionSelector":"128acb08","id":1082,"implemented":false,"kind":"function","modifiers":[],"name":"swap","nameLocation":"5208:4:8","nodeType":"FunctionDefinition","parameters":{"id":1076,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1067,"mutability":"mutable","name":"recipient","nameLocation":"5226:9:8","nodeType":"VariableDeclaration","scope":1082,"src":"5218:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1066,"name":"address","nodeType":"ElementaryTypeName","src":"5218:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1069,"mutability":"mutable","name":"zeroToOne","nameLocation":"5246:9:8","nodeType":"VariableDeclaration","scope":1082,"src":"5241:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1068,"name":"bool","nodeType":"ElementaryTypeName","src":"5241:4:8","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":1071,"mutability":"mutable","name":"amountRequired","nameLocation":"5268:14:8","nodeType":"VariableDeclaration","scope":1082,"src":"5261:21:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1070,"name":"int256","nodeType":"ElementaryTypeName","src":"5261:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1073,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"5296:14:8","nodeType":"VariableDeclaration","scope":1082,"src":"5288:22:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1072,"name":"uint160","nodeType":"ElementaryTypeName","src":"5288:7:8","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1075,"mutability":"mutable","name":"data","nameLocation":"5331:4:8","nodeType":"VariableDeclaration","scope":1082,"src":"5316:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1074,"name":"bytes","nodeType":"ElementaryTypeName","src":"5316:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5212:127:8"},"returnParameters":{"id":1081,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1078,"mutability":"mutable","name":"amount0","nameLocation":"5365:7:8","nodeType":"VariableDeclaration","scope":1082,"src":"5358:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1077,"name":"int256","nodeType":"ElementaryTypeName","src":"5358:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1080,"mutability":"mutable","name":"amount1","nameLocation":"5381:7:8","nodeType":"VariableDeclaration","scope":1082,"src":"5374:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1079,"name":"int256","nodeType":"ElementaryTypeName","src":"5374:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"5357:32:8"},"scope":1115,"src":"5199:191:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1083,"nodeType":"StructuredDocumentation","src":"5394:1257:8","text":"@notice Swap token0 for token1, or token1 for token0 with prepayment\n @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n caller must send tokens in callback before swap calculation\n the actually sent amount of tokens is used for further calculations\n @param leftoversRecipient The address which will receive potential surplus of paid tokens\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountToSell The amount of the swap, only positive (exact input) amount allowed\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive"},"functionSelector":"9e4e0227","id":1102,"implemented":false,"kind":"function","modifiers":[],"name":"swapWithPaymentInAdvance","nameLocation":"6663:24:8","nodeType":"FunctionDefinition","parameters":{"id":1096,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1085,"mutability":"mutable","name":"leftoversRecipient","nameLocation":"6701:18:8","nodeType":"VariableDeclaration","scope":1102,"src":"6693:26:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1084,"name":"address","nodeType":"ElementaryTypeName","src":"6693:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1087,"mutability":"mutable","name":"recipient","nameLocation":"6733:9:8","nodeType":"VariableDeclaration","scope":1102,"src":"6725:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1086,"name":"address","nodeType":"ElementaryTypeName","src":"6725:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1089,"mutability":"mutable","name":"zeroToOne","nameLocation":"6753:9:8","nodeType":"VariableDeclaration","scope":1102,"src":"6748:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1088,"name":"bool","nodeType":"ElementaryTypeName","src":"6748:4:8","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":1091,"mutability":"mutable","name":"amountToSell","nameLocation":"6775:12:8","nodeType":"VariableDeclaration","scope":1102,"src":"6768:19:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1090,"name":"int256","nodeType":"ElementaryTypeName","src":"6768:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1093,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"6801:14:8","nodeType":"VariableDeclaration","scope":1102,"src":"6793:22:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1092,"name":"uint160","nodeType":"ElementaryTypeName","src":"6793:7:8","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1095,"mutability":"mutable","name":"data","nameLocation":"6836:4:8","nodeType":"VariableDeclaration","scope":1102,"src":"6821:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1094,"name":"bytes","nodeType":"ElementaryTypeName","src":"6821:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6687:157:8"},"returnParameters":{"id":1101,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1098,"mutability":"mutable","name":"amount0","nameLocation":"6870:7:8","nodeType":"VariableDeclaration","scope":1102,"src":"6863:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1097,"name":"int256","nodeType":"ElementaryTypeName","src":"6863:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1100,"mutability":"mutable","name":"amount1","nameLocation":"6886:7:8","nodeType":"VariableDeclaration","scope":1102,"src":"6879:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1099,"name":"int256","nodeType":"ElementaryTypeName","src":"6879:6:8","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"6862:32:8"},"scope":1115,"src":"6654:241:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1103,"nodeType":"StructuredDocumentation","src":"6899:701:8","text":"@notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\n @dev The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallback\n @dev All excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee.\n If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 to send\n @param amount1 The amount of token1 to send\n @param data Any data to be passed through to the callback"},"functionSelector":"490e6cbc","id":1114,"implemented":false,"kind":"function","modifiers":[],"name":"flash","nameLocation":"7612:5:8","nodeType":"FunctionDefinition","parameters":{"id":1112,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1105,"mutability":"mutable","name":"recipient","nameLocation":"7626:9:8","nodeType":"VariableDeclaration","scope":1114,"src":"7618:17:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1104,"name":"address","nodeType":"ElementaryTypeName","src":"7618:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1107,"mutability":"mutable","name":"amount0","nameLocation":"7645:7:8","nodeType":"VariableDeclaration","scope":1114,"src":"7637:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1106,"name":"uint256","nodeType":"ElementaryTypeName","src":"7637:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1109,"mutability":"mutable","name":"amount1","nameLocation":"7662:7:8","nodeType":"VariableDeclaration","scope":1114,"src":"7654:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1108,"name":"uint256","nodeType":"ElementaryTypeName","src":"7654:7:8","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1111,"mutability":"mutable","name":"data","nameLocation":"7686:4:8","nodeType":"VariableDeclaration","scope":1114,"src":"7671:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1110,"name":"bytes","nodeType":"ElementaryTypeName","src":"7671:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7617:74:8"},"returnParameters":{"id":1113,"nodeType":"ParameterList","parameters":[],"src":"7700:0:8"},"scope":1115,"src":"7603:98:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1116,"src":"244:7459:8","usedErrors":[],"usedEvents":[]}],"src":"45:7659:8"},"id":8},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","exportedSymbols":{"IAlgebraPoolErrors":[1217]},"id":1218,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1117,"literals":["solidity",">=","0.8",".4"],"nodeType":"PragmaDirective","src":"45:24:9"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolErrors","contractDependencies":[],"contractKind":"interface","documentation":{"id":1118,"nodeType":"StructuredDocumentation","src":"71:209:9","text":"@title Errors emitted by a pool\n @notice Contains custom errors emitted by the pool\n @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidity"},"fullyImplemented":true,"id":1217,"linearizedBaseContracts":[1217],"name":"IAlgebraPoolErrors","nameLocation":"290:18:9","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1119,"nodeType":"StructuredDocumentation","src":"343:43:9","text":"@notice Emitted by the reentrancy guard"},"errorSelector":"cf309012","id":1121,"name":"locked","nameLocation":"395:6:9","nodeType":"ErrorDefinition","parameters":{"id":1120,"nodeType":"ParameterList","parameters":[],"src":"401:2:9"},"src":"389:15:9"},{"documentation":{"id":1122,"nodeType":"StructuredDocumentation","src":"408:48:9","text":"@notice Emitted if arithmetic error occurred"},"errorSelector":"8995290f","id":1124,"name":"arithmeticError","nameLocation":"465:15:9","nodeType":"ErrorDefinition","parameters":{"id":1123,"nodeType":"ParameterList","parameters":[],"src":"480:2:9"},"src":"459:24:9"},{"documentation":{"id":1125,"nodeType":"StructuredDocumentation","src":"487:70:9","text":"@notice Emitted if an attempt is made to initialize the pool twice"},"errorSelector":"52669adc","id":1127,"name":"alreadyInitialized","nameLocation":"566:18:9","nodeType":"ErrorDefinition","parameters":{"id":1126,"nodeType":"ParameterList","parameters":[],"src":"584:2:9"},"src":"560:27:9"},{"documentation":{"id":1128,"nodeType":"StructuredDocumentation","src":"591:79:9","text":"@notice Emitted if an attempt is made to mint or swap in uninitialized pool"},"errorSelector":"812eb655","id":1130,"name":"notInitialized","nameLocation":"679:14:9","nodeType":"ErrorDefinition","parameters":{"id":1129,"nodeType":"ParameterList","parameters":[],"src":"693:2:9"},"src":"673:23:9"},{"documentation":{"id":1131,"nodeType":"StructuredDocumentation","src":"700:69:9","text":"@notice Emitted if 0 is passed as amountRequired to swap function"},"errorSelector":"79db9840","id":1133,"name":"zeroAmountRequired","nameLocation":"778:18:9","nodeType":"ErrorDefinition","parameters":{"id":1132,"nodeType":"ParameterList","parameters":[],"src":"796:2:9"},"src":"772:27:9"},{"documentation":{"id":1134,"nodeType":"StructuredDocumentation","src":"803:82:9","text":"@notice Emitted if invalid amount is passed as amountRequired to swap function"},"errorSelector":"69967402","id":1136,"name":"invalidAmountRequired","nameLocation":"894:21:9","nodeType":"ErrorDefinition","parameters":{"id":1135,"nodeType":"ParameterList","parameters":[],"src":"915:2:9"},"src":"888:30:9"},{"documentation":{"id":1137,"nodeType":"StructuredDocumentation","src":"922:69:9","text":"@notice Emitted if plugin fee param greater than fee/override fee"},"errorSelector":"15b2afa9","id":1139,"name":"incorrectPluginFee","nameLocation":"1000:18:9","nodeType":"ErrorDefinition","parameters":{"id":1138,"nodeType":"ParameterList","parameters":[],"src":"1018:2:9"},"src":"994:27:9"},{"documentation":{"id":1140,"nodeType":"StructuredDocumentation","src":"1025:73:9","text":"@notice Emitted if the pool received fewer tokens than it should have"},"errorSelector":"fb5b5414","id":1142,"name":"insufficientInputAmount","nameLocation":"1107:23:9","nodeType":"ErrorDefinition","parameters":{"id":1141,"nodeType":"ParameterList","parameters":[],"src":"1130:2:9"},"src":"1101:32:9"},{"documentation":{"id":1143,"nodeType":"StructuredDocumentation","src":"1137:66:9","text":"@notice Emitted if there was an attempt to mint zero liquidity"},"errorSelector":"e6ace6df","id":1145,"name":"zeroLiquidityDesired","nameLocation":"1212:20:9","nodeType":"ErrorDefinition","parameters":{"id":1144,"nodeType":"ParameterList","parameters":[],"src":"1232:2:9"},"src":"1206:29:9"},{"documentation":{"id":1146,"nodeType":"StructuredDocumentation","src":"1238:105:9","text":"@notice Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)"},"errorSelector":"beba2a6c","id":1148,"name":"zeroLiquidityActual","nameLocation":"1352:19:9","nodeType":"ErrorDefinition","parameters":{"id":1147,"nodeType":"ParameterList","parameters":[],"src":"1371:2:9"},"src":"1346:28:9"},{"documentation":{"id":1149,"nodeType":"StructuredDocumentation","src":"1378:86:9","text":"@notice Emitted if the pool received fewer tokens0 after flash than it should have"},"errorSelector":"6dbca1fe","id":1151,"name":"flashInsufficientPaid0","nameLocation":"1473:22:9","nodeType":"ErrorDefinition","parameters":{"id":1150,"nodeType":"ParameterList","parameters":[],"src":"1495:2:9"},"src":"1467:31:9"},{"documentation":{"id":1152,"nodeType":"StructuredDocumentation","src":"1501:86:9","text":"@notice Emitted if the pool received fewer tokens1 after flash than it should have"},"errorSelector":"c998149f","id":1154,"name":"flashInsufficientPaid1","nameLocation":"1596:22:9","nodeType":"ErrorDefinition","parameters":{"id":1153,"nodeType":"ParameterList","parameters":[],"src":"1618:2:9"},"src":"1590:31:9"},{"documentation":{"id":1155,"nodeType":"StructuredDocumentation","src":"1625:56:9","text":"@notice Emitted if limitSqrtPrice param is incorrect"},"errorSelector":"16626723","id":1157,"name":"invalidLimitSqrtPrice","nameLocation":"1690:21:9","nodeType":"ErrorDefinition","parameters":{"id":1156,"nodeType":"ParameterList","parameters":[],"src":"1711:2:9"},"src":"1684:30:9"},{"documentation":{"id":1158,"nodeType":"StructuredDocumentation","src":"1718:49:9","text":"@notice Tick must be divisible by tickspacing"},"errorSelector":"5f6e14f3","id":1160,"name":"tickIsNotSpaced","nameLocation":"1776:15:9","nodeType":"ErrorDefinition","parameters":{"id":1159,"nodeType":"ParameterList","parameters":[],"src":"1791:2:9"},"src":"1770:24:9"},{"documentation":{"id":1161,"nodeType":"StructuredDocumentation","src":"1798:104:9","text":"@notice Emitted if a method is called that is accessible only to the factory owner or dedicated role"},"errorSelector":"932984d2","id":1163,"name":"notAllowed","nameLocation":"1911:10:9","nodeType":"ErrorDefinition","parameters":{"id":1162,"nodeType":"ParameterList","parameters":[],"src":"1921:2:9"},"src":"1905:19:9"},{"documentation":{"id":1164,"nodeType":"StructuredDocumentation","src":"1928:65:9","text":"@notice Emitted if new tick spacing exceeds max allowed value"},"errorSelector":"afe09f44","id":1166,"name":"invalidNewTickSpacing","nameLocation":"2002:21:9","nodeType":"ErrorDefinition","parameters":{"id":1165,"nodeType":"ParameterList","parameters":[],"src":"2023:2:9"},"src":"1996:30:9"},{"documentation":{"id":1167,"nodeType":"StructuredDocumentation","src":"2029:66:9","text":"@notice Emitted if new community fee exceeds max allowed value"},"errorSelector":"a709b9af","id":1169,"name":"invalidNewCommunityFee","nameLocation":"2104:22:9","nodeType":"ErrorDefinition","parameters":{"id":1168,"nodeType":"ParameterList","parameters":[],"src":"2126:2:9"},"src":"2098:31:9"},{"documentation":{"id":1170,"nodeType":"StructuredDocumentation","src":"2133:102:9","text":"@notice Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled"},"errorSelector":"d39b8e0e","id":1172,"name":"dynamicFeeActive","nameLocation":"2244:16:9","nodeType":"ErrorDefinition","parameters":{"id":1171,"nodeType":"ParameterList","parameters":[],"src":"2260:2:9"},"src":"2238:25:9"},{"documentation":{"id":1173,"nodeType":"StructuredDocumentation","src":"2266:104:9","text":"@notice Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled"},"errorSelector":"3a4528ef","id":1175,"name":"dynamicFeeDisabled","nameLocation":"2379:18:9","nodeType":"ErrorDefinition","parameters":{"id":1174,"nodeType":"ParameterList","parameters":[],"src":"2397:2:9"},"src":"2373:27:9"},{"documentation":{"id":1176,"nodeType":"StructuredDocumentation","src":"2403:109:9","text":"@notice Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected"},"errorSelector":"9e727ce3","id":1178,"name":"pluginIsNotConnected","nameLocation":"2521:20:9","nodeType":"ErrorDefinition","parameters":{"id":1177,"nodeType":"ParameterList","parameters":[],"src":"2541:2:9"},"src":"2515:29:9"},{"documentation":{"id":1179,"nodeType":"StructuredDocumentation","src":"2547:124:9","text":"@notice Emitted if a plugin returns invalid selector after hook call\n @param expectedSelector The expected selector"},"errorSelector":"d3f5153b","id":1183,"name":"invalidHookResponse","nameLocation":"2680:19:9","nodeType":"ErrorDefinition","parameters":{"id":1182,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1181,"mutability":"mutable","name":"expectedSelector","nameLocation":"2707:16:9","nodeType":"VariableDeclaration","scope":1183,"src":"2700:23:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1180,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2700:6:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2699:25:9"},"src":"2674:51:9"},{"documentation":{"id":1184,"nodeType":"StructuredDocumentation","src":"2768:43:9","text":"@notice Emitted if liquidity underflows"},"errorSelector":"1301f748","id":1186,"name":"liquiditySub","nameLocation":"2820:12:9","nodeType":"ErrorDefinition","parameters":{"id":1185,"nodeType":"ParameterList","parameters":[],"src":"2832:2:9"},"src":"2814:21:9"},{"documentation":{"id":1187,"nodeType":"StructuredDocumentation","src":"2838:42:9","text":"@notice Emitted if liquidity overflows"},"errorSelector":"997402f2","id":1189,"name":"liquidityAdd","nameLocation":"2889:12:9","nodeType":"ErrorDefinition","parameters":{"id":1188,"nodeType":"ParameterList","parameters":[],"src":"2901:2:9"},"src":"2883:21:9"},{"documentation":{"id":1190,"nodeType":"StructuredDocumentation","src":"2948:78:9","text":"@notice Emitted if the topTick param not greater then the bottomTick param"},"errorSelector":"d9a841a7","id":1192,"name":"topTickLowerOrEqBottomTick","nameLocation":"3035:26:9","nodeType":"ErrorDefinition","parameters":{"id":1191,"nodeType":"ParameterList","parameters":[],"src":"3061:2:9"},"src":"3029:35:9"},{"documentation":{"id":1193,"nodeType":"StructuredDocumentation","src":"3067:75:9","text":"@notice Emitted if the bottomTick param is lower than min allowed value"},"errorSelector":"746b1fc4","id":1195,"name":"bottomTickLowerThanMIN","nameLocation":"3151:22:9","nodeType":"ErrorDefinition","parameters":{"id":1194,"nodeType":"ParameterList","parameters":[],"src":"3173:2:9"},"src":"3145:31:9"},{"documentation":{"id":1196,"nodeType":"StructuredDocumentation","src":"3179:74:9","text":"@notice Emitted if the topTick param is greater than max allowed value"},"errorSelector":"1445443d","id":1198,"name":"topTickAboveMAX","nameLocation":"3262:15:9","nodeType":"ErrorDefinition","parameters":{"id":1197,"nodeType":"ParameterList","parameters":[],"src":"3277:2:9"},"src":"3256:24:9"},{"documentation":{"id":1199,"nodeType":"StructuredDocumentation","src":"3283:98:9","text":"@notice Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK"},"errorSelector":"25b8364a","id":1201,"name":"liquidityOverflow","nameLocation":"3390:17:9","nodeType":"ErrorDefinition","parameters":{"id":1200,"nodeType":"ParameterList","parameters":[],"src":"3407:2:9"},"src":"3384:26:9"},{"documentation":{"id":1202,"nodeType":"StructuredDocumentation","src":"3413:80:9","text":"@notice Emitted if an attempt is made to interact with an uninitialized tick"},"errorSelector":"0d6e0949","id":1204,"name":"tickIsNotInitialized","nameLocation":"3502:20:9","nodeType":"ErrorDefinition","parameters":{"id":1203,"nodeType":"ParameterList","parameters":[],"src":"3522:2:9"},"src":"3496:29:9"},{"documentation":{"id":1205,"nodeType":"StructuredDocumentation","src":"3528:140:9","text":"@notice Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks"},"errorSelector":"e45ac17d","id":1207,"name":"tickInvalidLinks","nameLocation":"3677:16:9","nodeType":"ErrorDefinition","parameters":{"id":1206,"nodeType":"ParameterList","parameters":[],"src":"3693:2:9"},"src":"3671:25:9"},{"documentation":{"id":1208,"nodeType":"StructuredDocumentation","src":"3738:55:9","text":"@notice Emitted if token transfer failed internally"},"errorSelector":"e465903e","id":1210,"name":"transferFailed","nameLocation":"3802:14:9","nodeType":"ErrorDefinition","parameters":{"id":1209,"nodeType":"ParameterList","parameters":[],"src":"3816:2:9"},"src":"3796:23:9"},{"documentation":{"id":1211,"nodeType":"StructuredDocumentation","src":"3857:94:9","text":"@notice Emitted if tick is greater than the maximum or less than the minimum allowed value"},"errorSelector":"3c10250f","id":1213,"name":"tickOutOfRange","nameLocation":"3960:14:9","nodeType":"ErrorDefinition","parameters":{"id":1212,"nodeType":"ParameterList","parameters":[],"src":"3974:2:9"},"src":"3954:23:9"},{"documentation":{"id":1214,"nodeType":"StructuredDocumentation","src":"3980:95:9","text":"@notice Emitted if price is greater than the maximum or less than the minimum allowed value"},"errorSelector":"55cf1e23","id":1216,"name":"priceOutOfRange","nameLocation":"4084:15:9","nodeType":"ErrorDefinition","parameters":{"id":1215,"nodeType":"ParameterList","parameters":[],"src":"4099:2:9"},"src":"4078:24:9"}],"scope":1218,"src":"280:3824:9","usedErrors":[1121,1124,1127,1130,1133,1136,1139,1142,1145,1148,1151,1154,1157,1160,1163,1166,1169,1172,1175,1178,1183,1186,1189,1192,1195,1198,1201,1204,1207,1210,1213,1216],"usedEvents":[]}],"src":"45:4060:9"},"id":9},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol","exportedSymbols":{"IAlgebraPoolEvents":[1359]},"id":1360,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1219,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:10"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolEvents","contractDependencies":[],"contractKind":"interface","documentation":{"id":1220,"nodeType":"StructuredDocumentation","src":"71:170:10","text":"@title Events emitted by a pool\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":true,"id":1359,"linearizedBaseContracts":[1359],"name":"IAlgebraPoolEvents","nameLocation":"251:18:10","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":1221,"nodeType":"StructuredDocumentation","src":"274:332:10","text":"@notice Emitted exactly once by a pool when #initialize is first called on the pool\n @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize\n @param price The initial sqrt price of the pool, as a Q64.96\n @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool"},"eventSelector":"98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95","id":1227,"name":"Initialize","nameLocation":"615:10:10","nodeType":"EventDefinition","parameters":{"id":1226,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1223,"indexed":false,"mutability":"mutable","name":"price","nameLocation":"634:5:10","nodeType":"VariableDeclaration","scope":1227,"src":"626:13:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1222,"name":"uint160","nodeType":"ElementaryTypeName","src":"626:7:10","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1225,"indexed":false,"mutability":"mutable","name":"tick","nameLocation":"647:4:10","nodeType":"VariableDeclaration","scope":1227,"src":"641:10:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1224,"name":"int24","nodeType":"ElementaryTypeName","src":"641:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"625:27:10"},"src":"609:44:10"},{"anonymous":false,"documentation":{"id":1228,"nodeType":"StructuredDocumentation","src":"657:545:10","text":"@notice Emitted when liquidity is minted for a given position\n @param sender The address that minted the liquidity\n @param owner The owner of the position and recipient of any minted liquidity\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param liquidityAmount The amount of liquidity minted to the position range\n @param amount0 How much token0 was required for the minted liquidity\n @param amount1 How much token1 was required for the minted liquidity"},"eventSelector":"7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde","id":1244,"name":"Mint","nameLocation":"1211:4:10","nodeType":"EventDefinition","parameters":{"id":1243,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1230,"indexed":false,"mutability":"mutable","name":"sender","nameLocation":"1229:6:10","nodeType":"VariableDeclaration","scope":1244,"src":"1221:14:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1229,"name":"address","nodeType":"ElementaryTypeName","src":"1221:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1232,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"1257:5:10","nodeType":"VariableDeclaration","scope":1244,"src":"1241:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1231,"name":"address","nodeType":"ElementaryTypeName","src":"1241:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1234,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"1282:10:10","nodeType":"VariableDeclaration","scope":1244,"src":"1268:24:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1233,"name":"int24","nodeType":"ElementaryTypeName","src":"1268:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1236,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"1312:7:10","nodeType":"VariableDeclaration","scope":1244,"src":"1298:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1235,"name":"int24","nodeType":"ElementaryTypeName","src":"1298:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1238,"indexed":false,"mutability":"mutable","name":"liquidityAmount","nameLocation":"1333:15:10","nodeType":"VariableDeclaration","scope":1244,"src":"1325:23:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1237,"name":"uint128","nodeType":"ElementaryTypeName","src":"1325:7:10","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1240,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"1362:7:10","nodeType":"VariableDeclaration","scope":1244,"src":"1354:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1239,"name":"uint256","nodeType":"ElementaryTypeName","src":"1354:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1242,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"1383:7:10","nodeType":"VariableDeclaration","scope":1244,"src":"1375:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1241,"name":"uint256","nodeType":"ElementaryTypeName","src":"1375:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1215:179:10"},"src":"1205:190:10"},{"anonymous":false,"documentation":{"id":1245,"nodeType":"StructuredDocumentation","src":"1399:419:10","text":"@notice Emitted when fees are collected by the owner of a position\n @param owner The owner of the position for which fees are collected\n @param recipient The address that received fees\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param amount0 The amount of token0 fees collected\n @param amount1 The amount of token1 fees collected"},"eventSelector":"70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0","id":1259,"name":"Collect","nameLocation":"1827:7:10","nodeType":"EventDefinition","parameters":{"id":1258,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1247,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"1851:5:10","nodeType":"VariableDeclaration","scope":1259,"src":"1835:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1246,"name":"address","nodeType":"ElementaryTypeName","src":"1835:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1249,"indexed":false,"mutability":"mutable","name":"recipient","nameLocation":"1866:9:10","nodeType":"VariableDeclaration","scope":1259,"src":"1858:17:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1248,"name":"address","nodeType":"ElementaryTypeName","src":"1858:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1251,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"1891:10:10","nodeType":"VariableDeclaration","scope":1259,"src":"1877:24:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1250,"name":"int24","nodeType":"ElementaryTypeName","src":"1877:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1253,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"1917:7:10","nodeType":"VariableDeclaration","scope":1259,"src":"1903:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1252,"name":"int24","nodeType":"ElementaryTypeName","src":"1903:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1255,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"1934:7:10","nodeType":"VariableDeclaration","scope":1259,"src":"1926:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1254,"name":"uint128","nodeType":"ElementaryTypeName","src":"1926:7:10","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1257,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"1951:7:10","nodeType":"VariableDeclaration","scope":1259,"src":"1943:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1256,"name":"uint128","nodeType":"ElementaryTypeName","src":"1943:7:10","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"1834:125:10"},"src":"1821:139:10"},{"anonymous":false,"documentation":{"id":1260,"nodeType":"StructuredDocumentation","src":"1964:573:10","text":"@notice Emitted when a position's liquidity is removed\n @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\n @param owner The owner of the position for which liquidity is removed\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param liquidityAmount The amount of liquidity to remove\n @param amount0 The amount of token0 withdrawn\n @param amount1 The amount of token1 withdrawn\n @param pluginFee The fee to be sent to the plugin"},"eventSelector":"932214d4a69c27c086643126ed97c32681da179064c678836c173f99bd13ca01","id":1276,"name":"Burn","nameLocation":"2546:4:10","nodeType":"EventDefinition","parameters":{"id":1275,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1262,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"2572:5:10","nodeType":"VariableDeclaration","scope":1276,"src":"2556:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1261,"name":"address","nodeType":"ElementaryTypeName","src":"2556:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1264,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"2597:10:10","nodeType":"VariableDeclaration","scope":1276,"src":"2583:24:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1263,"name":"int24","nodeType":"ElementaryTypeName","src":"2583:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1266,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"2627:7:10","nodeType":"VariableDeclaration","scope":1276,"src":"2613:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1265,"name":"int24","nodeType":"ElementaryTypeName","src":"2613:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1268,"indexed":false,"mutability":"mutable","name":"liquidityAmount","nameLocation":"2648:15:10","nodeType":"VariableDeclaration","scope":1276,"src":"2640:23:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1267,"name":"uint128","nodeType":"ElementaryTypeName","src":"2640:7:10","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1270,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"2677:7:10","nodeType":"VariableDeclaration","scope":1276,"src":"2669:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1269,"name":"uint256","nodeType":"ElementaryTypeName","src":"2669:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1272,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"2698:7:10","nodeType":"VariableDeclaration","scope":1276,"src":"2690:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1271,"name":"uint256","nodeType":"ElementaryTypeName","src":"2690:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1274,"indexed":false,"mutability":"mutable","name":"pluginFee","nameLocation":"2718:9:10","nodeType":"VariableDeclaration","scope":1276,"src":"2711:16:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1273,"name":"uint24","nodeType":"ElementaryTypeName","src":"2711:6:10","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2550:181:10"},"src":"2540:192:10"},{"anonymous":false,"documentation":{"id":1277,"nodeType":"StructuredDocumentation","src":"2736:695:10","text":"@notice Emitted by the pool for any swaps between token0 and token1\n @param sender The address that initiated the swap call, and that received the callback\n @param recipient The address that received the output of the swap\n @param amount0 The delta of the token0 balance of the pool\n @param amount1 The delta of the token1 balance of the pool\n @param price The sqrt(price) of the pool after the swap, as a Q64.96\n @param liquidity The liquidity of the pool after the swap\n @param tick The log base 1.0001 of price of the pool after the swap\n @param overrideFee The fee to be applied to the trade\n @param pluginFee The fee to be sent to the plugin"},"eventSelector":"121cb44ee54098b1a04743c487e7460d8dd429b27f88b1f4d4767396e1a59f79","id":1297,"name":"Swap","nameLocation":"3440:4:10","nodeType":"EventDefinition","parameters":{"id":1296,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1279,"indexed":true,"mutability":"mutable","name":"sender","nameLocation":"3466:6:10","nodeType":"VariableDeclaration","scope":1297,"src":"3450:22:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1278,"name":"address","nodeType":"ElementaryTypeName","src":"3450:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1281,"indexed":true,"mutability":"mutable","name":"recipient","nameLocation":"3494:9:10","nodeType":"VariableDeclaration","scope":1297,"src":"3478:25:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1280,"name":"address","nodeType":"ElementaryTypeName","src":"3478:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1283,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"3516:7:10","nodeType":"VariableDeclaration","scope":1297,"src":"3509:14:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1282,"name":"int256","nodeType":"ElementaryTypeName","src":"3509:6:10","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1285,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"3536:7:10","nodeType":"VariableDeclaration","scope":1297,"src":"3529:14:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1284,"name":"int256","nodeType":"ElementaryTypeName","src":"3529:6:10","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1287,"indexed":false,"mutability":"mutable","name":"price","nameLocation":"3557:5:10","nodeType":"VariableDeclaration","scope":1297,"src":"3549:13:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1286,"name":"uint160","nodeType":"ElementaryTypeName","src":"3549:7:10","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1289,"indexed":false,"mutability":"mutable","name":"liquidity","nameLocation":"3576:9:10","nodeType":"VariableDeclaration","scope":1297,"src":"3568:17:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1288,"name":"uint128","nodeType":"ElementaryTypeName","src":"3568:7:10","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1291,"indexed":false,"mutability":"mutable","name":"tick","nameLocation":"3597:4:10","nodeType":"VariableDeclaration","scope":1297,"src":"3591:10:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1290,"name":"int24","nodeType":"ElementaryTypeName","src":"3591:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1293,"indexed":false,"mutability":"mutable","name":"overrideFee","nameLocation":"3614:11:10","nodeType":"VariableDeclaration","scope":1297,"src":"3607:18:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1292,"name":"uint24","nodeType":"ElementaryTypeName","src":"3607:6:10","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":1295,"indexed":false,"mutability":"mutable","name":"pluginFee","nameLocation":"3638:9:10","nodeType":"VariableDeclaration","scope":1297,"src":"3631:16:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1294,"name":"uint24","nodeType":"ElementaryTypeName","src":"3631:6:10","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"3444:207:10"},"src":"3434:218:10"},{"anonymous":false,"documentation":{"id":1298,"nodeType":"StructuredDocumentation","src":"3656:550:10","text":"@notice Emitted by the pool for any flashes of token0/token1\n @param sender The address that initiated the swap call, and that received the callback\n @param recipient The address that received the tokens from flash\n @param amount0 The amount of token0 that was flashed\n @param amount1 The amount of token1 that was flashed\n @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\n @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee"},"eventSelector":"bdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633","id":1312,"name":"Flash","nameLocation":"4215:5:10","nodeType":"EventDefinition","parameters":{"id":1311,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1300,"indexed":true,"mutability":"mutable","name":"sender","nameLocation":"4237:6:10","nodeType":"VariableDeclaration","scope":1312,"src":"4221:22:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1299,"name":"address","nodeType":"ElementaryTypeName","src":"4221:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1302,"indexed":true,"mutability":"mutable","name":"recipient","nameLocation":"4261:9:10","nodeType":"VariableDeclaration","scope":1312,"src":"4245:25:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1301,"name":"address","nodeType":"ElementaryTypeName","src":"4245:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1304,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"4280:7:10","nodeType":"VariableDeclaration","scope":1312,"src":"4272:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1303,"name":"uint256","nodeType":"ElementaryTypeName","src":"4272:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1306,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"4297:7:10","nodeType":"VariableDeclaration","scope":1312,"src":"4289:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1305,"name":"uint256","nodeType":"ElementaryTypeName","src":"4289:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1308,"indexed":false,"mutability":"mutable","name":"paid0","nameLocation":"4314:5:10","nodeType":"VariableDeclaration","scope":1312,"src":"4306:13:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1307,"name":"uint256","nodeType":"ElementaryTypeName","src":"4306:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1310,"indexed":false,"mutability":"mutable","name":"paid1","nameLocation":"4329:5:10","nodeType":"VariableDeclaration","scope":1312,"src":"4321:13:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1309,"name":"uint256","nodeType":"ElementaryTypeName","src":"4321:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4220:115:10"},"src":"4209:127:10"},{"anonymous":false,"documentation":{"id":1313,"nodeType":"StructuredDocumentation","src":"4340:319:10","text":"@notice Emitted when the pool has higher balances than expected.\n Any excess of tokens will be distributed between liquidity providers as fee.\n @dev Fees after flash also will trigger this event due to mechanics of flash.\n @param amount0 The excess of token0\n @param amount1 The excess of token1"},"eventSelector":"ef10ebb00f0dbc72ad4602e94abbbda6f3d40632714f70e9c8fa30d5d44289c9","id":1319,"name":"ExcessTokens","nameLocation":"4668:12:10","nodeType":"EventDefinition","parameters":{"id":1318,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1315,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"4689:7:10","nodeType":"VariableDeclaration","scope":1319,"src":"4681:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1314,"name":"uint256","nodeType":"ElementaryTypeName","src":"4681:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1317,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"4706:7:10","nodeType":"VariableDeclaration","scope":1319,"src":"4698:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1316,"name":"uint256","nodeType":"ElementaryTypeName","src":"4698:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4680:34:10"},"src":"4662:53:10"},{"anonymous":false,"documentation":{"id":1320,"nodeType":"StructuredDocumentation","src":"4719:155:10","text":"@notice Emitted when the community fee is changed by the pool\n @param communityFeeNew The updated value of the community fee in thousandths (1e-3)"},"eventSelector":"3647dccc990d4941b0b05b32527ef493a98d6187b20639ca2f9743f3b55ca5e1","id":1324,"name":"CommunityFee","nameLocation":"4883:12:10","nodeType":"EventDefinition","parameters":{"id":1323,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1322,"indexed":false,"mutability":"mutable","name":"communityFeeNew","nameLocation":"4903:15:10","nodeType":"VariableDeclaration","scope":1324,"src":"4896:22:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1321,"name":"uint16","nodeType":"ElementaryTypeName","src":"4896:6:10","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"4895:24:10"},"src":"4877:43:10"},{"anonymous":false,"documentation":{"id":1325,"nodeType":"StructuredDocumentation","src":"4924:119:10","text":"@notice Emitted when the tick spacing changes\n @param newTickSpacing The updated value of the new tick spacing"},"eventSelector":"01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645","id":1329,"name":"TickSpacing","nameLocation":"5052:11:10","nodeType":"EventDefinition","parameters":{"id":1328,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1327,"indexed":false,"mutability":"mutable","name":"newTickSpacing","nameLocation":"5070:14:10","nodeType":"VariableDeclaration","scope":1329,"src":"5064:20:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1326,"name":"int24","nodeType":"ElementaryTypeName","src":"5064:5:10","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"5063:22:10"},"src":"5046:40:10"},{"anonymous":false,"documentation":{"id":1330,"nodeType":"StructuredDocumentation","src":"5090:100:10","text":"@notice Emitted when the plugin address changes\n @param newPluginAddress New plugin address"},"eventSelector":"27a3944eff2135a57675f17e72501038982b73620d01f794c72e93d61a3932a2","id":1334,"name":"Plugin","nameLocation":"5199:6:10","nodeType":"EventDefinition","parameters":{"id":1333,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1332,"indexed":false,"mutability":"mutable","name":"newPluginAddress","nameLocation":"5214:16:10","nodeType":"VariableDeclaration","scope":1334,"src":"5206:24:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1331,"name":"address","nodeType":"ElementaryTypeName","src":"5206:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5205:26:10"},"src":"5193:39:10"},{"anonymous":false,"documentation":{"id":1335,"nodeType":"StructuredDocumentation","src":"5236:97:10","text":"@notice Emitted when the plugin config changes\n @param newPluginConfig New plugin config"},"eventSelector":"3a6271b36c1b44bd6a0a0d56230602dc6919b7c17af57254306fadf5fee69dc3","id":1339,"name":"PluginConfig","nameLocation":"5342:12:10","nodeType":"EventDefinition","parameters":{"id":1338,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1337,"indexed":false,"mutability":"mutable","name":"newPluginConfig","nameLocation":"5361:15:10","nodeType":"VariableDeclaration","scope":1339,"src":"5355:21:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1336,"name":"uint8","nodeType":"ElementaryTypeName","src":"5355:5:10","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"5354:23:10"},"src":"5336:42:10"},{"anonymous":false,"documentation":{"id":1340,"nodeType":"StructuredDocumentation","src":"5382:123:10","text":"@notice Emitted when the fee changes inside the pool\n @param fee The current fee in hundredths of a bip, i.e. 1e-6"},"eventSelector":"598b9f043c813aa6be3426ca60d1c65d17256312890be5118dab55b0775ebe2a","id":1344,"name":"Fee","nameLocation":"5514:3:10","nodeType":"EventDefinition","parameters":{"id":1343,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1342,"indexed":false,"mutability":"mutable","name":"fee","nameLocation":"5525:3:10","nodeType":"VariableDeclaration","scope":1344,"src":"5518:10:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1341,"name":"uint16","nodeType":"ElementaryTypeName","src":"5518:6:10","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"5517:12:10"},"src":"5508:22:10"},{"anonymous":false,"documentation":{"id":1345,"nodeType":"StructuredDocumentation","src":"5534:111:10","text":"@notice Emitted when the community vault address changes\n @param newCommunityVault New community vault"},"eventSelector":"b0b573c1f636e1f8bd9b415ba6c04d6dd49100bc25493fc6305b65ec0e581df3","id":1349,"name":"CommunityVault","nameLocation":"5654:14:10","nodeType":"EventDefinition","parameters":{"id":1348,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1347,"indexed":false,"mutability":"mutable","name":"newCommunityVault","nameLocation":"5677:17:10","nodeType":"VariableDeclaration","scope":1349,"src":"5669:25:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1346,"name":"address","nodeType":"ElementaryTypeName","src":"5669:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5668:27:10"},"src":"5648:48:10"},{"anonymous":false,"documentation":{"id":1350,"nodeType":"StructuredDocumentation","src":"5700:198:10","text":"@notice Emitted when the plugin does skim the excess of tokens\n @param to THe receiver of tokens (plugin)\n @param amount0 The amount of token0\n @param amount1 The amount of token1"},"eventSelector":"b94331e4420f16b156f53c397a8adcd09481283ee7830f7b688b22858e9db80b","id":1358,"name":"Skim","nameLocation":"5907:4:10","nodeType":"EventDefinition","parameters":{"id":1357,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1352,"indexed":true,"mutability":"mutable","name":"to","nameLocation":"5928:2:10","nodeType":"VariableDeclaration","scope":1358,"src":"5912:18:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1351,"name":"address","nodeType":"ElementaryTypeName","src":"5912:7:10","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1354,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"5940:7:10","nodeType":"VariableDeclaration","scope":1358,"src":"5932:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1353,"name":"uint256","nodeType":"ElementaryTypeName","src":"5932:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1356,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"5957:7:10","nodeType":"VariableDeclaration","scope":1358,"src":"5949:15:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1355,"name":"uint256","nodeType":"ElementaryTypeName","src":"5949:7:10","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"5911:54:10"},"src":"5901:65:10"}],"scope":1360,"src":"241:5727:10","usedErrors":[],"usedEvents":[1227,1244,1259,1276,1297,1312,1319,1324,1329,1334,1339,1344,1349,1358]}],"src":"45:5924:10"},"id":10},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol","exportedSymbols":{"IAlgebraPoolImmutables":[1387]},"id":1388,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1361,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:11"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolImmutables","contractDependencies":[],"contractKind":"interface","documentation":{"id":1362,"nodeType":"StructuredDocumentation","src":"71:175:11","text":"@title Pool state that never changes\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1387,"linearizedBaseContracts":[1387],"name":"IAlgebraPoolImmutables","nameLocation":"256:22:11","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1363,"nodeType":"StructuredDocumentation","src":"283:127:11","text":"@notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface\n @return The contract address"},"functionSelector":"c45a0155","id":1368,"implemented":false,"kind":"function","modifiers":[],"name":"factory","nameLocation":"422:7:11","nodeType":"FunctionDefinition","parameters":{"id":1364,"nodeType":"ParameterList","parameters":[],"src":"429:2:11"},"returnParameters":{"id":1367,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1366,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1368,"src":"455:7:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1365,"name":"address","nodeType":"ElementaryTypeName","src":"455:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"454:9:11"},"scope":1387,"src":"413:51:11","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1369,"nodeType":"StructuredDocumentation","src":"468:111:11","text":"@notice The first of the two tokens of the pool, sorted by address\n @return The token contract address"},"functionSelector":"0dfe1681","id":1374,"implemented":false,"kind":"function","modifiers":[],"name":"token0","nameLocation":"591:6:11","nodeType":"FunctionDefinition","parameters":{"id":1370,"nodeType":"ParameterList","parameters":[],"src":"597:2:11"},"returnParameters":{"id":1373,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1372,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1374,"src":"623:7:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1371,"name":"address","nodeType":"ElementaryTypeName","src":"623:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"622:9:11"},"scope":1387,"src":"582:50:11","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1375,"nodeType":"StructuredDocumentation","src":"636:112:11","text":"@notice The second of the two tokens of the pool, sorted by address\n @return The token contract address"},"functionSelector":"d21220a7","id":1380,"implemented":false,"kind":"function","modifiers":[],"name":"token1","nameLocation":"760:6:11","nodeType":"FunctionDefinition","parameters":{"id":1376,"nodeType":"ParameterList","parameters":[],"src":"766:2:11"},"returnParameters":{"id":1379,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1378,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1380,"src":"792:7:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1377,"name":"address","nodeType":"ElementaryTypeName","src":"792:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"791:9:11"},"scope":1387,"src":"751:50:11","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1381,"nodeType":"StructuredDocumentation","src":"805:357:11","text":"@notice The maximum amount of position liquidity that can use any tick in the range\n @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n @return The max amount of liquidity per tick"},"functionSelector":"70cf754a","id":1386,"implemented":false,"kind":"function","modifiers":[],"name":"maxLiquidityPerTick","nameLocation":"1174:19:11","nodeType":"FunctionDefinition","parameters":{"id":1382,"nodeType":"ParameterList","parameters":[],"src":"1193:2:11"},"returnParameters":{"id":1385,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1384,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1386,"src":"1219:7:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1383,"name":"uint128","nodeType":"ElementaryTypeName","src":"1219:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"1218:9:11"},"scope":1387,"src":"1165:63:11","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":1388,"src":"246:984:11","usedErrors":[],"usedEvents":[]}],"src":"45:1186:11"},"id":11},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","exportedSymbols":{"IAlgebraPoolPermissionedActions":[1435]},"id":1436,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1389,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:12"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolPermissionedActions","contractDependencies":[],"contractKind":"interface","documentation":{"id":1390,"nodeType":"StructuredDocumentation","src":"71:255:12","text":"@title Permissioned pool actions\n @notice Contains pool methods that may only be called by permissioned addresses\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1435,"linearizedBaseContracts":[1435],"name":"IAlgebraPoolPermissionedActions","nameLocation":"336:31:12","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1391,"nodeType":"StructuredDocumentation","src":"372:185:12","text":"@notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newCommunityFee The new community fee percent in thousandths (1e-3)"},"functionSelector":"240a875a","id":1396,"implemented":false,"kind":"function","modifiers":[],"name":"setCommunityFee","nameLocation":"569:15:12","nodeType":"FunctionDefinition","parameters":{"id":1394,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1393,"mutability":"mutable","name":"newCommunityFee","nameLocation":"592:15:12","nodeType":"VariableDeclaration","scope":1396,"src":"585:22:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1392,"name":"uint16","nodeType":"ElementaryTypeName","src":"585:6:12","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"584:24:12"},"returnParameters":{"id":1395,"nodeType":"ParameterList","parameters":[],"src":"617:0:12"},"scope":1435,"src":"560:58:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1397,"nodeType":"StructuredDocumentation","src":"622:151:12","text":"@notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newTickSpacing The new tick spacing value"},"functionSelector":"f085a610","id":1402,"implemented":false,"kind":"function","modifiers":[],"name":"setTickSpacing","nameLocation":"785:14:12","nodeType":"FunctionDefinition","parameters":{"id":1400,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1399,"mutability":"mutable","name":"newTickSpacing","nameLocation":"806:14:12","nodeType":"VariableDeclaration","scope":1402,"src":"800:20:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1398,"name":"int24","nodeType":"ElementaryTypeName","src":"800:5:12","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"799:22:12"},"returnParameters":{"id":1401,"nodeType":"ParameterList","parameters":[],"src":"830:0:12"},"scope":1435,"src":"776:55:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1403,"nodeType":"StructuredDocumentation","src":"835:144:12","text":"@notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newPluginAddress The new plugin address"},"functionSelector":"cc1f97cf","id":1408,"implemented":false,"kind":"function","modifiers":[],"name":"setPlugin","nameLocation":"991:9:12","nodeType":"FunctionDefinition","parameters":{"id":1406,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1405,"mutability":"mutable","name":"newPluginAddress","nameLocation":"1009:16:12","nodeType":"VariableDeclaration","scope":1408,"src":"1001:24:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1404,"name":"address","nodeType":"ElementaryTypeName","src":"1001:7:12","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1000:26:12"},"returnParameters":{"id":1407,"nodeType":"ParameterList","parameters":[],"src":"1035:0:12"},"scope":1435,"src":"982:54:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1409,"nodeType":"StructuredDocumentation","src":"1040:211:12","text":"@notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newConfig In the new configuration of the plugin,\n each bit of which is responsible for a particular hook."},"functionSelector":"bca57f81","id":1414,"implemented":false,"kind":"function","modifiers":[],"name":"setPluginConfig","nameLocation":"1263:15:12","nodeType":"FunctionDefinition","parameters":{"id":1412,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1411,"mutability":"mutable","name":"newConfig","nameLocation":"1285:9:12","nodeType":"VariableDeclaration","scope":1414,"src":"1279:15:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1410,"name":"uint8","nodeType":"ElementaryTypeName","src":"1279:5:12","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"1278:17:12"},"returnParameters":{"id":1413,"nodeType":"ParameterList","parameters":[],"src":"1304:0:12"},"scope":1435,"src":"1254:51:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1415,"nodeType":"StructuredDocumentation","src":"1309:356:12","text":"@notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @dev Community fee vault receives collected community fees.\n **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\n @param newCommunityVault The address of new community fee vault"},"functionSelector":"d8544cf3","id":1420,"implemented":false,"kind":"function","modifiers":[],"name":"setCommunityVault","nameLocation":"1677:17:12","nodeType":"FunctionDefinition","parameters":{"id":1418,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1417,"mutability":"mutable","name":"newCommunityVault","nameLocation":"1703:17:12","nodeType":"VariableDeclaration","scope":1420,"src":"1695:25:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1416,"name":"address","nodeType":"ElementaryTypeName","src":"1695:7:12","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1694:27:12"},"returnParameters":{"id":1419,"nodeType":"ParameterList","parameters":[],"src":"1730:0:12"},"scope":1435,"src":"1668:63:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1421,"nodeType":"StructuredDocumentation","src":"1735:171:12","text":"@notice Set new pool fee. Can be called by owner if dynamic fee is disabled.\n Called by the plugin if dynamic fee is enabled\n @param newFee The new fee value"},"functionSelector":"8e005553","id":1426,"implemented":false,"kind":"function","modifiers":[],"name":"setFee","nameLocation":"1918:6:12","nodeType":"FunctionDefinition","parameters":{"id":1424,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1423,"mutability":"mutable","name":"newFee","nameLocation":"1932:6:12","nodeType":"VariableDeclaration","scope":1426,"src":"1925:13:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1422,"name":"uint16","nodeType":"ElementaryTypeName","src":"1925:6:12","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"1924:15:12"},"returnParameters":{"id":1425,"nodeType":"ParameterList","parameters":[],"src":"1948:0:12"},"scope":1435,"src":"1909:40:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1427,"nodeType":"StructuredDocumentation","src":"1953:148:12","text":"@notice Forces balances to match reserves. Excessive tokens will be distributed between active LPs\n @dev Only plugin can call this function"},"functionSelector":"fff6cae9","id":1430,"implemented":false,"kind":"function","modifiers":[],"name":"sync","nameLocation":"2113:4:12","nodeType":"FunctionDefinition","parameters":{"id":1428,"nodeType":"ParameterList","parameters":[],"src":"2117:2:12"},"returnParameters":{"id":1429,"nodeType":"ParameterList","parameters":[],"src":"2128:0:12"},"scope":1435,"src":"2104:25:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1431,"nodeType":"StructuredDocumentation","src":"2133:136:12","text":"@notice Forces balances to match reserves. Excessive tokens will be sent to msg.sender\n @dev Only plugin can call this function"},"functionSelector":"1dd19cb4","id":1434,"implemented":false,"kind":"function","modifiers":[],"name":"skim","nameLocation":"2281:4:12","nodeType":"FunctionDefinition","parameters":{"id":1432,"nodeType":"ParameterList","parameters":[],"src":"2285:2:12"},"returnParameters":{"id":1433,"nodeType":"ParameterList","parameters":[],"src":"2296:0:12"},"scope":1435,"src":"2272:25:12","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1436,"src":"326:1973:12","usedErrors":[],"usedEvents":[]}],"src":"45:2255:12"},"id":12},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","exportedSymbols":{"IAlgebraPoolState":[1619]},"id":1620,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1437,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:13"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolState","contractDependencies":[],"contractKind":"interface","documentation":{"id":1438,"nodeType":"StructuredDocumentation","src":"71:404:13","text":"@title Pool state that can change\n @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility\n of manipulation (including read-only reentrancy).\n This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1619,"linearizedBaseContracts":[1619],"name":"IAlgebraPoolState","nameLocation":"485:17:13","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1439,"nodeType":"StructuredDocumentation","src":"507:1108:13","text":"@notice Safely get most important state values of Algebra Integral AMM\n @dev Several values exposed as a single method to save gas when accessed externally.\n **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\n @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n @return activeLiquidity  The currently in-range liquidity available to the pool\n @return nextTick The next initialized tick after current global tick\n @return previousTick The previous initialized tick before (or at) current global tick"},"functionSelector":"97ce1c51","id":1456,"implemented":false,"kind":"function","modifiers":[],"name":"safelyGetStateOfAMM","nameLocation":"1627:19:13","nodeType":"FunctionDefinition","parameters":{"id":1440,"nodeType":"ParameterList","parameters":[],"src":"1646:2:13"},"returnParameters":{"id":1455,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1442,"mutability":"mutable","name":"sqrtPrice","nameLocation":"1692:9:13","nodeType":"VariableDeclaration","scope":1456,"src":"1684:17:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1441,"name":"uint160","nodeType":"ElementaryTypeName","src":"1684:7:13","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1444,"mutability":"mutable","name":"tick","nameLocation":"1709:4:13","nodeType":"VariableDeclaration","scope":1456,"src":"1703:10:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1443,"name":"int24","nodeType":"ElementaryTypeName","src":"1703:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1446,"mutability":"mutable","name":"lastFee","nameLocation":"1722:7:13","nodeType":"VariableDeclaration","scope":1456,"src":"1715:14:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1445,"name":"uint16","nodeType":"ElementaryTypeName","src":"1715:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1448,"mutability":"mutable","name":"pluginConfig","nameLocation":"1737:12:13","nodeType":"VariableDeclaration","scope":1456,"src":"1731:18:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1447,"name":"uint8","nodeType":"ElementaryTypeName","src":"1731:5:13","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":1450,"mutability":"mutable","name":"activeLiquidity","nameLocation":"1759:15:13","nodeType":"VariableDeclaration","scope":1456,"src":"1751:23:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1449,"name":"uint128","nodeType":"ElementaryTypeName","src":"1751:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1452,"mutability":"mutable","name":"nextTick","nameLocation":"1782:8:13","nodeType":"VariableDeclaration","scope":1456,"src":"1776:14:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1451,"name":"int24","nodeType":"ElementaryTypeName","src":"1776:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1454,"mutability":"mutable","name":"previousTick","nameLocation":"1798:12:13","nodeType":"VariableDeclaration","scope":1456,"src":"1792:18:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1453,"name":"int24","nodeType":"ElementaryTypeName","src":"1792:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1683:128:13"},"scope":1619,"src":"1618:194:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1457,"nodeType":"StructuredDocumentation","src":"1816:282:13","text":"@notice Allows to easily get current reentrancy lock status\n @dev can be used to prevent read-only reentrancy.\n This method just returns `globalState.unlocked` value\n @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false"},"functionSelector":"8380edb7","id":1462,"implemented":false,"kind":"function","modifiers":[],"name":"isUnlocked","nameLocation":"2110:10:13","nodeType":"FunctionDefinition","parameters":{"id":1458,"nodeType":"ParameterList","parameters":[],"src":"2120:2:13"},"returnParameters":{"id":1461,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1460,"mutability":"mutable","name":"unlocked","nameLocation":"2151:8:13","nodeType":"VariableDeclaration","scope":1462,"src":"2146:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1459,"name":"bool","nodeType":"ElementaryTypeName","src":"2146:4:13","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"2145:15:13"},"scope":1619,"src":"2101:60:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1463,"nodeType":"StructuredDocumentation","src":"2303:1160:13","text":"@notice The globalState structure in the pool stores many values but requires only one slot\n and is exposed as a single method to save gas when accessed externally.\n @dev **important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\n @return price The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n @return tick The current tick of the pool, i.e. according to the last tick transition that was run\n This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n @return communityFee The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\n @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false"},"functionSelector":"e76c01e4","id":1478,"implemented":false,"kind":"function","modifiers":[],"name":"globalState","nameLocation":"3475:11:13","nodeType":"FunctionDefinition","parameters":{"id":1464,"nodeType":"ParameterList","parameters":[],"src":"3486:2:13"},"returnParameters":{"id":1477,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1466,"mutability":"mutable","name":"price","nameLocation":"3520:5:13","nodeType":"VariableDeclaration","scope":1478,"src":"3512:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1465,"name":"uint160","nodeType":"ElementaryTypeName","src":"3512:7:13","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1468,"mutability":"mutable","name":"tick","nameLocation":"3533:4:13","nodeType":"VariableDeclaration","scope":1478,"src":"3527:10:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1467,"name":"int24","nodeType":"ElementaryTypeName","src":"3527:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1470,"mutability":"mutable","name":"lastFee","nameLocation":"3546:7:13","nodeType":"VariableDeclaration","scope":1478,"src":"3539:14:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1469,"name":"uint16","nodeType":"ElementaryTypeName","src":"3539:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1472,"mutability":"mutable","name":"pluginConfig","nameLocation":"3561:12:13","nodeType":"VariableDeclaration","scope":1478,"src":"3555:18:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1471,"name":"uint8","nodeType":"ElementaryTypeName","src":"3555:5:13","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":1474,"mutability":"mutable","name":"communityFee","nameLocation":"3582:12:13","nodeType":"VariableDeclaration","scope":1478,"src":"3575:19:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1473,"name":"uint16","nodeType":"ElementaryTypeName","src":"3575:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1476,"mutability":"mutable","name":"unlocked","nameLocation":"3601:8:13","nodeType":"VariableDeclaration","scope":1478,"src":"3596:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1475,"name":"bool","nodeType":"ElementaryTypeName","src":"3596:4:13","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"3511:99:13"},"scope":1619,"src":"3466:145:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1479,"nodeType":"StructuredDocumentation","src":"3615:893:13","text":"@notice Look up information about a specific tick in the pool\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @param tick The tick to look up\n @return liquidityTotal The total amount of position liquidity that uses the pool either as tick lower or tick upper\n @return liquidityDelta How much liquidity changes when the pool price crosses the tick\n @return prevTick The previous tick in tick list\n @return nextTick The next tick in tick list\n @return outerFeeGrowth0Token The fee growth on the other side of the tick from the current tick in token0\n @return outerFeeGrowth1Token The fee growth on the other side of the tick from the current tick in token1\n In addition, these values are only relative and must be used only in comparison to previous snapshots for\n a specific position."},"functionSelector":"f30dba93","id":1496,"implemented":false,"kind":"function","modifiers":[],"name":"ticks","nameLocation":"4520:5:13","nodeType":"FunctionDefinition","parameters":{"id":1482,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1481,"mutability":"mutable","name":"tick","nameLocation":"4537:4:13","nodeType":"VariableDeclaration","scope":1496,"src":"4531:10:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1480,"name":"int24","nodeType":"ElementaryTypeName","src":"4531:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"4525:20:13"},"returnParameters":{"id":1495,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1484,"mutability":"mutable","name":"liquidityTotal","nameLocation":"4596:14:13","nodeType":"VariableDeclaration","scope":1496,"src":"4588:22:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1483,"name":"uint256","nodeType":"ElementaryTypeName","src":"4588:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1486,"mutability":"mutable","name":"liquidityDelta","nameLocation":"4625:14:13","nodeType":"VariableDeclaration","scope":1496,"src":"4618:21:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":1485,"name":"int128","nodeType":"ElementaryTypeName","src":"4618:6:13","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":1488,"mutability":"mutable","name":"prevTick","nameLocation":"4653:8:13","nodeType":"VariableDeclaration","scope":1496,"src":"4647:14:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1487,"name":"int24","nodeType":"ElementaryTypeName","src":"4647:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1490,"mutability":"mutable","name":"nextTick","nameLocation":"4675:8:13","nodeType":"VariableDeclaration","scope":1496,"src":"4669:14:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1489,"name":"int24","nodeType":"ElementaryTypeName","src":"4669:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1492,"mutability":"mutable","name":"outerFeeGrowth0Token","nameLocation":"4699:20:13","nodeType":"VariableDeclaration","scope":1496,"src":"4691:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1491,"name":"uint256","nodeType":"ElementaryTypeName","src":"4691:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1494,"mutability":"mutable","name":"outerFeeGrowth1Token","nameLocation":"4735:20:13","nodeType":"VariableDeclaration","scope":1496,"src":"4727:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1493,"name":"uint256","nodeType":"ElementaryTypeName","src":"4727:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4580:181:13"},"scope":1619,"src":"4511:251:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1497,"nodeType":"StructuredDocumentation","src":"4766:120:13","text":"@notice The timestamp of the last sending of tokens to vault/plugin\n @return The timestamp truncated to 32 bits"},"functionSelector":"77f8c3a9","id":1502,"implemented":false,"kind":"function","modifiers":[],"name":"lastFeeTransferTimestamp","nameLocation":"4898:24:13","nodeType":"FunctionDefinition","parameters":{"id":1498,"nodeType":"ParameterList","parameters":[],"src":"4922:2:13"},"returnParameters":{"id":1501,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1500,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1502,"src":"4948:6:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":1499,"name":"uint32","nodeType":"ElementaryTypeName","src":"4948:6:13","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"4947:8:13"},"scope":1619,"src":"4889:67:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1503,"nodeType":"StructuredDocumentation","src":"4960:328:13","text":"@notice The amounts of token0 and token1 that will be sent to the vault\n @dev Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\n @return communityFeePending0 The amount of token0 that will be sent to the vault\n @return communityFeePending1 The amount of token1 that will be sent to the vault"},"functionSelector":"7bd78025","id":1510,"implemented":false,"kind":"function","modifiers":[],"name":"getCommunityFeePending","nameLocation":"5300:22:13","nodeType":"FunctionDefinition","parameters":{"id":1504,"nodeType":"ParameterList","parameters":[],"src":"5322:2:13"},"returnParameters":{"id":1509,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1506,"mutability":"mutable","name":"communityFeePending0","nameLocation":"5356:20:13","nodeType":"VariableDeclaration","scope":1510,"src":"5348:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1505,"name":"uint128","nodeType":"ElementaryTypeName","src":"5348:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1508,"mutability":"mutable","name":"communityFeePending1","nameLocation":"5386:20:13","nodeType":"VariableDeclaration","scope":1510,"src":"5378:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1507,"name":"uint128","nodeType":"ElementaryTypeName","src":"5378:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"5347:60:13"},"scope":1619,"src":"5291:117:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1511,"nodeType":"StructuredDocumentation","src":"5412:324:13","text":"@notice The amounts of token0 and token1 that will be sent to the plugin\n @dev Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\n @return pluginFeePending0 The amount of token0 that will be sent to the plugin\n @return pluginFeePending1 The amount of token1 that will be sent to the plugin"},"functionSelector":"a1eded87","id":1518,"implemented":false,"kind":"function","modifiers":[],"name":"getPluginFeePending","nameLocation":"5748:19:13","nodeType":"FunctionDefinition","parameters":{"id":1512,"nodeType":"ParameterList","parameters":[],"src":"5767:2:13"},"returnParameters":{"id":1517,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1514,"mutability":"mutable","name":"pluginFeePending0","nameLocation":"5801:17:13","nodeType":"VariableDeclaration","scope":1518,"src":"5793:25:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1513,"name":"uint128","nodeType":"ElementaryTypeName","src":"5793:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1516,"mutability":"mutable","name":"pluginFeePending1","nameLocation":"5828:17:13","nodeType":"VariableDeclaration","scope":1518,"src":"5820:25:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1515,"name":"uint128","nodeType":"ElementaryTypeName","src":"5820:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"5792:54:13"},"scope":1619,"src":"5739:108:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1519,"nodeType":"StructuredDocumentation","src":"5851:164:13","text":"@notice Returns the address of currently used plugin\n @dev The plugin is subject to change\n @return pluginAddress The address of currently used plugin"},"functionSelector":"ef01df4f","id":1524,"implemented":false,"kind":"function","modifiers":[],"name":"plugin","nameLocation":"6027:6:13","nodeType":"FunctionDefinition","parameters":{"id":1520,"nodeType":"ParameterList","parameters":[],"src":"6033:2:13"},"returnParameters":{"id":1523,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1522,"mutability":"mutable","name":"pluginAddress","nameLocation":"6067:13:13","nodeType":"VariableDeclaration","scope":1524,"src":"6059:21:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1521,"name":"address","nodeType":"ElementaryTypeName","src":"6059:7:13","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6058:23:13"},"scope":1619,"src":"6018:64:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1525,"nodeType":"StructuredDocumentation","src":"6086:127:13","text":"@notice The contract to which community fees are transferred\n @return communityVaultAddress The communityVault address"},"functionSelector":"53e97868","id":1530,"implemented":false,"kind":"function","modifiers":[],"name":"communityVault","nameLocation":"6225:14:13","nodeType":"FunctionDefinition","parameters":{"id":1526,"nodeType":"ParameterList","parameters":[],"src":"6239:2:13"},"returnParameters":{"id":1529,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1528,"mutability":"mutable","name":"communityVaultAddress","nameLocation":"6273:21:13","nodeType":"VariableDeclaration","scope":1530,"src":"6265:29:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1527,"name":"address","nodeType":"ElementaryTypeName","src":"6265:7:13","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6264:31:13"},"scope":1619,"src":"6216:80:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1531,"nodeType":"StructuredDocumentation","src":"6300:212:13","text":"@notice Returns 256 packed tick initialized boolean values. See TickTree for more information\n @param wordPosition Index of 256-bits word with ticks\n @return The 256-bits word with packed ticks info"},"functionSelector":"c677e3e0","id":1538,"implemented":false,"kind":"function","modifiers":[],"name":"tickTable","nameLocation":"6524:9:13","nodeType":"FunctionDefinition","parameters":{"id":1534,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1533,"mutability":"mutable","name":"wordPosition","nameLocation":"6540:12:13","nodeType":"VariableDeclaration","scope":1538,"src":"6534:18:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"},"typeName":{"id":1532,"name":"int16","nodeType":"ElementaryTypeName","src":"6534:5:13","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"visibility":"internal"}],"src":"6533:20:13"},"returnParameters":{"id":1537,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1536,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1538,"src":"6577:7:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1535,"name":"uint256","nodeType":"ElementaryTypeName","src":"6577:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6576:9:13"},"scope":1619,"src":"6515:71:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1539,"nodeType":"StructuredDocumentation","src":"6590:218:13","text":"@notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\n @dev This value can overflow the uint256\n @return The fee growth accumulator for token0"},"functionSelector":"6378ae44","id":1544,"implemented":false,"kind":"function","modifiers":[],"name":"totalFeeGrowth0Token","nameLocation":"6820:20:13","nodeType":"FunctionDefinition","parameters":{"id":1540,"nodeType":"ParameterList","parameters":[],"src":"6840:2:13"},"returnParameters":{"id":1543,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1542,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1544,"src":"6866:7:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1541,"name":"uint256","nodeType":"ElementaryTypeName","src":"6866:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6865:9:13"},"scope":1619,"src":"6811:64:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1545,"nodeType":"StructuredDocumentation","src":"6879:218:13","text":"@notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\n @dev This value can overflow the uint256\n @return The fee growth accumulator for token1"},"functionSelector":"ecdecf42","id":1550,"implemented":false,"kind":"function","modifiers":[],"name":"totalFeeGrowth1Token","nameLocation":"7109:20:13","nodeType":"FunctionDefinition","parameters":{"id":1546,"nodeType":"ParameterList","parameters":[],"src":"7129:2:13"},"returnParameters":{"id":1549,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1548,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1550,"src":"7155:7:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1547,"name":"uint256","nodeType":"ElementaryTypeName","src":"7155:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"7154:9:13"},"scope":1619,"src":"7100:64:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1551,"nodeType":"StructuredDocumentation","src":"7168:524:13","text":"@notice The current pool fee value\n @dev In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee.\n If the plugin implements complex fee logic, this method may return an incorrect value or revert.\n In this case, see the plugin implementation and related documentation.\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return currentFee The current pool fee value in hundredths of a bip, i.e. 1e-6"},"functionSelector":"ddca3f43","id":1556,"implemented":false,"kind":"function","modifiers":[],"name":"fee","nameLocation":"7704:3:13","nodeType":"FunctionDefinition","parameters":{"id":1552,"nodeType":"ParameterList","parameters":[],"src":"7707:2:13"},"returnParameters":{"id":1555,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1554,"mutability":"mutable","name":"currentFee","nameLocation":"7740:10:13","nodeType":"VariableDeclaration","scope":1556,"src":"7733:17:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1553,"name":"uint16","nodeType":"ElementaryTypeName","src":"7733:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"7732:19:13"},"scope":1619,"src":"7695:57:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1557,"nodeType":"StructuredDocumentation","src":"7756:382:13","text":"@notice The tracked token0 and token1 reserves of pool\n @dev If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee.\n If the balance exceeds uint128, the excess will be sent to the communityVault.\n @return reserve0 The last known reserve of token0\n @return reserve1 The last known reserve of token1"},"functionSelector":"0902f1ac","id":1564,"implemented":false,"kind":"function","modifiers":[],"name":"getReserves","nameLocation":"8150:11:13","nodeType":"FunctionDefinition","parameters":{"id":1558,"nodeType":"ParameterList","parameters":[],"src":"8161:2:13"},"returnParameters":{"id":1563,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1560,"mutability":"mutable","name":"reserve0","nameLocation":"8195:8:13","nodeType":"VariableDeclaration","scope":1564,"src":"8187:16:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1559,"name":"uint128","nodeType":"ElementaryTypeName","src":"8187:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1562,"mutability":"mutable","name":"reserve1","nameLocation":"8213:8:13","nodeType":"VariableDeclaration","scope":1564,"src":"8205:16:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1561,"name":"uint128","nodeType":"ElementaryTypeName","src":"8205:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"8186:36:13"},"scope":1619,"src":"8141:82:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1565,"nodeType":"StructuredDocumentation","src":"8227:779:13","text":"@notice Returns the information about a position by the position's key\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @param key The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\n @return liquidity The amount of liquidity in the position\n @return innerFeeGrowth0Token Fee growth of token0 inside the tick range as of the last mint/burn/poke\n @return innerFeeGrowth1Token Fee growth of token1 inside the tick range as of the last mint/burn/poke\n @return fees0 The computed amount of token0 owed to the position as of the last mint/burn/poke\n @return fees1 The computed amount of token1 owed to the position as of the last mint/burn/poke"},"functionSelector":"514ea4bf","id":1580,"implemented":false,"kind":"function","modifiers":[],"name":"positions","nameLocation":"9018:9:13","nodeType":"FunctionDefinition","parameters":{"id":1568,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1567,"mutability":"mutable","name":"key","nameLocation":"9041:3:13","nodeType":"VariableDeclaration","scope":1580,"src":"9033:11:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1566,"name":"bytes32","nodeType":"ElementaryTypeName","src":"9033:7:13","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"9027:21:13"},"returnParameters":{"id":1579,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1570,"mutability":"mutable","name":"liquidity","nameLocation":"9080:9:13","nodeType":"VariableDeclaration","scope":1580,"src":"9072:17:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1569,"name":"uint256","nodeType":"ElementaryTypeName","src":"9072:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1572,"mutability":"mutable","name":"innerFeeGrowth0Token","nameLocation":"9099:20:13","nodeType":"VariableDeclaration","scope":1580,"src":"9091:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1571,"name":"uint256","nodeType":"ElementaryTypeName","src":"9091:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1574,"mutability":"mutable","name":"innerFeeGrowth1Token","nameLocation":"9129:20:13","nodeType":"VariableDeclaration","scope":1580,"src":"9121:28:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1573,"name":"uint256","nodeType":"ElementaryTypeName","src":"9121:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1576,"mutability":"mutable","name":"fees0","nameLocation":"9159:5:13","nodeType":"VariableDeclaration","scope":1580,"src":"9151:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1575,"name":"uint128","nodeType":"ElementaryTypeName","src":"9151:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1578,"mutability":"mutable","name":"fees1","nameLocation":"9174:5:13","nodeType":"VariableDeclaration","scope":1580,"src":"9166:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1577,"name":"uint128","nodeType":"ElementaryTypeName","src":"9166:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"9071:109:13"},"scope":1619,"src":"9009:172:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1581,"nodeType":"StructuredDocumentation","src":"9185:355:13","text":"@notice The currently in range liquidity available to the pool\n @dev This value has no relationship to the total liquidity across all ticks.\n Returned value cannot exceed type(uint128).max\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The current in range liquidity"},"functionSelector":"1a686502","id":1586,"implemented":false,"kind":"function","modifiers":[],"name":"liquidity","nameLocation":"9552:9:13","nodeType":"FunctionDefinition","parameters":{"id":1582,"nodeType":"ParameterList","parameters":[],"src":"9561:2:13"},"returnParameters":{"id":1585,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1584,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1586,"src":"9587:7:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1583,"name":"uint128","nodeType":"ElementaryTypeName","src":"9587:7:13","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"9586:9:13"},"scope":1619,"src":"9543:53:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1587,"nodeType":"StructuredDocumentation","src":"9600:436:13","text":"@notice The current tick spacing\n @dev Ticks can only be initialized by new mints at multiples of this value\n e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ...\n However, tickspacing can be changed after the ticks have been initialized.\n This value is an int24 to avoid casting even though it is always positive.\n @return The current tick spacing"},"functionSelector":"d0c93a7c","id":1592,"implemented":false,"kind":"function","modifiers":[],"name":"tickSpacing","nameLocation":"10048:11:13","nodeType":"FunctionDefinition","parameters":{"id":1588,"nodeType":"ParameterList","parameters":[],"src":"10059:2:13"},"returnParameters":{"id":1591,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1590,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1592,"src":"10085:5:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1589,"name":"int24","nodeType":"ElementaryTypeName","src":"10085:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10084:7:13"},"scope":1619,"src":"10039:53:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1593,"nodeType":"StructuredDocumentation","src":"10096:228:13","text":"@notice The previous initialized tick before (or at) current global tick\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The previous initialized tick"},"functionSelector":"050a4d21","id":1598,"implemented":false,"kind":"function","modifiers":[],"name":"prevTickGlobal","nameLocation":"10336:14:13","nodeType":"FunctionDefinition","parameters":{"id":1594,"nodeType":"ParameterList","parameters":[],"src":"10350:2:13"},"returnParameters":{"id":1597,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1596,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1598,"src":"10376:5:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1595,"name":"int24","nodeType":"ElementaryTypeName","src":"10376:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10375:7:13"},"scope":1619,"src":"10327:56:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1599,"nodeType":"StructuredDocumentation","src":"10387:211:13","text":"@notice The next initialized tick after current global tick\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The next initialized tick"},"functionSelector":"d5c35a7e","id":1604,"implemented":false,"kind":"function","modifiers":[],"name":"nextTickGlobal","nameLocation":"10610:14:13","nodeType":"FunctionDefinition","parameters":{"id":1600,"nodeType":"ParameterList","parameters":[],"src":"10624:2:13"},"returnParameters":{"id":1603,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1602,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1604,"src":"10650:5:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1601,"name":"int24","nodeType":"ElementaryTypeName","src":"10650:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10649:7:13"},"scope":1619,"src":"10601:56:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1605,"nodeType":"StructuredDocumentation","src":"10661:315:13","text":"@notice The root of tick search tree\n @dev Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit.\n **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The root of tick search tree as bitmap"},"functionSelector":"578b9a36","id":1610,"implemented":false,"kind":"function","modifiers":[],"name":"tickTreeRoot","nameLocation":"10988:12:13","nodeType":"FunctionDefinition","parameters":{"id":1606,"nodeType":"ParameterList","parameters":[],"src":"11000:2:13"},"returnParameters":{"id":1609,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1608,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1610,"src":"11026:6:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":1607,"name":"uint32","nodeType":"ElementaryTypeName","src":"11026:6:13","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"11025:8:13"},"scope":1619,"src":"10979:55:13","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1611,"nodeType":"StructuredDocumentation","src":"11038:347:13","text":"@notice The second layer of tick search tree\n @dev Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit.\n **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The node of tick search tree second layer"},"functionSelector":"d8619037","id":1618,"implemented":false,"kind":"function","modifiers":[],"name":"tickTreeSecondLayer","nameLocation":"11397:19:13","nodeType":"FunctionDefinition","parameters":{"id":1614,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1613,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1618,"src":"11417:5:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"},"typeName":{"id":1612,"name":"int16","nodeType":"ElementaryTypeName","src":"11417:5:13","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"visibility":"internal"}],"src":"11416:7:13"},"returnParameters":{"id":1617,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1616,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1618,"src":"11447:7:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1615,"name":"uint256","nodeType":"ElementaryTypeName","src":"11447:7:13","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"11446:9:13"},"scope":1619,"src":"11388:68:13","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":1620,"src":"475:10983:13","usedErrors":[],"usedEvents":[]}],"src":"45:11414:13"},"id":13},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol","exportedSymbols":{"IAlgebraVaultFactory":[1647]},"id":1648,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1621,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:14"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraVaultFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":1622,"nodeType":"StructuredDocumentation","src":"71:158:14","text":"@title The interface for the Algebra Vault Factory\n @notice This contract can be used for automatic vaults creation\n @dev Version: Algebra Integral"},"fullyImplemented":false,"id":1647,"linearizedBaseContracts":[1647],"name":"IAlgebraVaultFactory","nameLocation":"239:20:14","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1623,"nodeType":"StructuredDocumentation","src":"264:189:14","text":"@notice returns address of the community fee vault for the pool\n @param pool the address of Algebra Integral pool\n @return communityFeeVault the address of community fee vault"},"functionSelector":"7570e389","id":1630,"implemented":false,"kind":"function","modifiers":[],"name":"getVaultForPool","nameLocation":"465:15:14","nodeType":"FunctionDefinition","parameters":{"id":1626,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1625,"mutability":"mutable","name":"pool","nameLocation":"489:4:14","nodeType":"VariableDeclaration","scope":1630,"src":"481:12:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1624,"name":"address","nodeType":"ElementaryTypeName","src":"481:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"480:14:14"},"returnParameters":{"id":1629,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1628,"mutability":"mutable","name":"communityFeeVault","nameLocation":"526:17:14","nodeType":"VariableDeclaration","scope":1630,"src":"518:25:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1627,"name":"address","nodeType":"ElementaryTypeName","src":"518:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"517:27:14"},"scope":1647,"src":"456:89:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1631,"nodeType":"StructuredDocumentation","src":"549:188:14","text":"@notice creates the community fee vault for the pool if needed\n @param pool the address of Algebra Integral pool\n @return communityFeeVault the address of community fee vault"},"functionSelector":"b8a1d3c6","id":1646,"implemented":false,"kind":"function","modifiers":[],"name":"createVaultForPool","nameLocation":"749:18:14","nodeType":"FunctionDefinition","parameters":{"id":1642,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1633,"mutability":"mutable","name":"pool","nameLocation":"781:4:14","nodeType":"VariableDeclaration","scope":1646,"src":"773:12:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1632,"name":"address","nodeType":"ElementaryTypeName","src":"773:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1635,"mutability":"mutable","name":"creator","nameLocation":"799:7:14","nodeType":"VariableDeclaration","scope":1646,"src":"791:15:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1634,"name":"address","nodeType":"ElementaryTypeName","src":"791:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1637,"mutability":"mutable","name":"deployer","nameLocation":"820:8:14","nodeType":"VariableDeclaration","scope":1646,"src":"812:16:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1636,"name":"address","nodeType":"ElementaryTypeName","src":"812:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1639,"mutability":"mutable","name":"token0","nameLocation":"842:6:14","nodeType":"VariableDeclaration","scope":1646,"src":"834:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1638,"name":"address","nodeType":"ElementaryTypeName","src":"834:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1641,"mutability":"mutable","name":"token1","nameLocation":"862:6:14","nodeType":"VariableDeclaration","scope":1646,"src":"854:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1640,"name":"address","nodeType":"ElementaryTypeName","src":"854:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"767:105:14"},"returnParameters":{"id":1645,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1644,"mutability":"mutable","name":"communityFeeVault","nameLocation":"899:17:14","nodeType":"VariableDeclaration","scope":1646,"src":"891:25:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1643,"name":"address","nodeType":"ElementaryTypeName","src":"891:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"890:27:14"},"scope":1647,"src":"740:178:14","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1648,"src":"229:691:14","usedErrors":[],"usedEvents":[]}],"src":"45:876:14"},"id":14},"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol","exportedSymbols":{"Constants":[1702]},"id":1703,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1649,"literals":["solidity",">=","0.5",".0","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:15"},{"abstract":false,"baseContracts":[],"canonicalName":"Constants","contractDependencies":[],"contractKind":"library","documentation":{"id":1650,"nodeType":"StructuredDocumentation","src":"78:166:15","text":"@title Contains common constants for Algebra contracts\n @dev Constants moved to the library, not the base contract, to further emphasize their constant nature"},"fullyImplemented":true,"id":1702,"linearizedBaseContracts":[1702],"name":"Constants","nameLocation":"252:9:15","nodeType":"ContractDefinition","nodes":[{"constant":true,"id":1653,"mutability":"constant","name":"RESOLUTION","nameLocation":"290:10:15","nodeType":"VariableDeclaration","scope":1702,"src":"266:39:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1651,"name":"uint8","nodeType":"ElementaryTypeName","src":"266:5:15","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"value":{"hexValue":"3936","id":1652,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"303:2:15","typeDescriptions":{"typeIdentifier":"t_rational_96_by_1","typeString":"int_const 96"},"value":"96"},"visibility":"internal"},{"constant":true,"id":1658,"mutability":"constant","name":"Q96","nameLocation":"335:3:15","nodeType":"VariableDeclaration","scope":1702,"src":"309:39:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1654,"name":"uint256","nodeType":"ElementaryTypeName","src":"309:7:15","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_79228162514264337593543950336_by_1","typeString":"int_const 79228162514264337593543950336"},"id":1657,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1655,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"341:1:15","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"3936","id":1656,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"346:2:15","typeDescriptions":{"typeIdentifier":"t_rational_96_by_1","typeString":"int_const 96"},"value":"96"},"src":"341:7:15","typeDescriptions":{"typeIdentifier":"t_rational_79228162514264337593543950336_by_1","typeString":"int_const 79228162514264337593543950336"}},"visibility":"internal"},{"constant":true,"id":1663,"mutability":"constant","name":"Q128","nameLocation":"378:4:15","nodeType":"VariableDeclaration","scope":1702,"src":"352:41:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1659,"name":"uint256","nodeType":"ElementaryTypeName","src":"352:7:15","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_340282366920938463463374607431768211456_by_1","typeString":"int_const 3402...(31 digits omitted)...1456"},"id":1662,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1660,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"385:1:15","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"313238","id":1661,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"390:3:15","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"385:8:15","typeDescriptions":{"typeIdentifier":"t_rational_340282366920938463463374607431768211456_by_1","typeString":"int_const 3402...(31 digits omitted)...1456"}},"visibility":"internal"},{"constant":true,"id":1666,"mutability":"constant","name":"FEE_DENOMINATOR","nameLocation":"423:15:15","nodeType":"VariableDeclaration","scope":1702,"src":"398:46:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1664,"name":"uint24","nodeType":"ElementaryTypeName","src":"398:6:15","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"value":{"hexValue":"316536","id":1665,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"441:3:15","typeDescriptions":{"typeIdentifier":"t_rational_1000000_by_1","typeString":"int_const 1000000"},"value":"1e6"},"visibility":"internal"},{"constant":true,"id":1669,"mutability":"constant","name":"FLASH_FEE","nameLocation":"473:9:15","nodeType":"VariableDeclaration","scope":1702,"src":"448:43:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1667,"name":"uint16","nodeType":"ElementaryTypeName","src":"448:6:15","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"302e30316534","id":1668,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"485:6:15","typeDescriptions":{"typeIdentifier":"t_rational_100_by_1","typeString":"int_const 100"},"value":"0.01e4"},"visibility":"internal"},{"constant":true,"id":1672,"mutability":"constant","name":"INIT_DEFAULT_FEE","nameLocation":"573:16:15","nodeType":"VariableDeclaration","scope":1702,"src":"548:50:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1670,"name":"uint16","nodeType":"ElementaryTypeName","src":"548:6:15","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"302e30356534","id":1671,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"592:6:15","typeDescriptions":{"typeIdentifier":"t_rational_500_by_1","typeString":"int_const 500"},"value":"0.05e4"},"visibility":"internal"},{"constant":true,"id":1675,"mutability":"constant","name":"MAX_DEFAULT_FEE","nameLocation":"684:15:15","nodeType":"VariableDeclaration","scope":1702,"src":"659:46:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1673,"name":"uint16","nodeType":"ElementaryTypeName","src":"659:6:15","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"356534","id":1674,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"702:3:15","typeDescriptions":{"typeIdentifier":"t_rational_50000_by_1","typeString":"int_const 50000"},"value":"5e4"},"visibility":"internal"},{"constant":true,"id":1678,"mutability":"constant","name":"INIT_DEFAULT_TICK_SPACING","nameLocation":"787:25:15","nodeType":"VariableDeclaration","scope":1702,"src":"763:54:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1676,"name":"int24","nodeType":"ElementaryTypeName","src":"763:5:15","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"value":{"hexValue":"3630","id":1677,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"815:2:15","typeDescriptions":{"typeIdentifier":"t_rational_60_by_1","typeString":"int_const 60"},"value":"60"},"visibility":"internal"},{"constant":true,"id":1681,"mutability":"constant","name":"MAX_TICK_SPACING","nameLocation":"845:16:15","nodeType":"VariableDeclaration","scope":1702,"src":"821:46:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1679,"name":"int24","nodeType":"ElementaryTypeName","src":"821:5:15","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"value":{"hexValue":"353030","id":1680,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"864:3:15","typeDescriptions":{"typeIdentifier":"t_rational_500_by_1","typeString":"int_const 500"},"value":"500"},"visibility":"internal"},{"constant":true,"id":1684,"mutability":"constant","name":"MIN_TICK_SPACING","nameLocation":"895:16:15","nodeType":"VariableDeclaration","scope":1702,"src":"871:44:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1682,"name":"int24","nodeType":"ElementaryTypeName","src":"871:5:15","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"value":{"hexValue":"31","id":1683,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"914:1:15","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"visibility":"internal"},{"constant":true,"id":1687,"mutability":"constant","name":"FEE_TRANSFER_FREQUENCY","nameLocation":"1028:22:15","nodeType":"VariableDeclaration","scope":1702,"src":"1003:57:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":1685,"name":"uint32","nodeType":"ElementaryTypeName","src":"1003:6:15","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"value":{"hexValue":"38","id":1686,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1053:7:15","subdenomination":"hours","typeDescriptions":{"typeIdentifier":"t_rational_28800_by_1","typeString":"int_const 28800"},"value":"8"},"visibility":"internal"},{"constant":true,"id":1690,"mutability":"constant","name":"MAX_LIQUIDITY_PER_TICK","nameLocation":"1133:22:15","nodeType":"VariableDeclaration","scope":1702,"src":"1107:84:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1688,"name":"uint128","nodeType":"ElementaryTypeName","src":"1107:7:15","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"value":{"hexValue":"313931373537363338353337353237363438343930373532383936313938353533","id":1689,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1158:33:15","typeDescriptions":{"typeIdentifier":"t_rational_191757638537527648490752896198553_by_1","typeString":"int_const 1917...(25 digits omitted)...8553"},"value":"191757638537527648490752896198553"},"visibility":"internal"},{"constant":true,"id":1693,"mutability":"constant","name":"MAX_COMMUNITY_FEE","nameLocation":"1221:17:15","nodeType":"VariableDeclaration","scope":1702,"src":"1196:48:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1691,"name":"uint16","nodeType":"ElementaryTypeName","src":"1196:6:15","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"316533","id":1692,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1241:3:15","typeDescriptions":{"typeIdentifier":"t_rational_1000_by_1","typeString":"int_const 1000"},"value":"1e3"},"visibility":"internal"},{"constant":true,"id":1696,"mutability":"constant","name":"COMMUNITY_FEE_DENOMINATOR","nameLocation":"1282:25:15","nodeType":"VariableDeclaration","scope":1702,"src":"1256:57:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1694,"name":"uint256","nodeType":"ElementaryTypeName","src":"1256:7:15","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"316533","id":1695,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1310:3:15","typeDescriptions":{"typeIdentifier":"t_rational_1000_by_1","typeString":"int_const 1000"},"value":"1e3"},"visibility":"internal"},{"constant":true,"id":1701,"mutability":"constant","name":"POOLS_ADMINISTRATOR_ROLE","nameLocation":"1387:24:15","nodeType":"VariableDeclaration","scope":1702,"src":"1361:85:15","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1697,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1361:7:15","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"arguments":[{"hexValue":"504f4f4c535f41444d494e4953545241544f52","id":1699,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1424:21:15","typeDescriptions":{"typeIdentifier":"t_stringliteral_b73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad3442","typeString":"literal_string \"POOLS_ADMINISTRATOR\""},"value":"POOLS_ADMINISTRATOR"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_b73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad3442","typeString":"literal_string \"POOLS_ADMINISTRATOR\""}],"id":1698,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-8,"src":"1414:9:15","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1700,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1414:32:15","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"scope":1703,"src":"244:1205:15","usedErrors":[],"usedEvents":[]}],"src":"45:1405:15"},"id":15},"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol","exportedSymbols":{"FullMath":[1909]},"id":1910,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":1704,"literals":["solidity","^","0.8",".0"],"nodeType":"PragmaDirective","src":"32:23:16"},{"abstract":false,"baseContracts":[],"canonicalName":"FullMath","contractDependencies":[],"contractKind":"library","documentation":{"id":1705,"nodeType":"StructuredDocumentation","src":"57:297:16","text":"@title Contains 512-bit math functions\n @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\n @dev Handles \"phantom overflow\" i.e., allows multiplication and division where an intermediate value overflows 256 bits"},"fullyImplemented":true,"id":1909,"linearizedBaseContracts":[1909],"name":"FullMath","nameLocation":"362:8:16","nodeType":"ContractDefinition","nodes":[{"body":{"id":1826,"nodeType":"Block","src":"825:3390:16","statements":[{"id":1825,"nodeType":"UncheckedBlock","src":"831:3380:16","statements":[{"assignments":[1718],"declarations":[{"constant":false,"id":1718,"mutability":"mutable","name":"prod0","nameLocation":"1150:5:16","nodeType":"VariableDeclaration","scope":1825,"src":"1142:13:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1717,"name":"uint256","nodeType":"ElementaryTypeName","src":"1142:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1722,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1721,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1719,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1708,"src":"1158:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1720,"name":"b","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1710,"src":"1162:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"1158:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"1142:21:16"},{"assignments":[1724],"declarations":[{"constant":false,"id":1724,"mutability":"mutable","name":"prod1","nameLocation":"1224:5:16","nodeType":"VariableDeclaration","scope":1825,"src":"1216:13:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1723,"name":"uint256","nodeType":"ElementaryTypeName","src":"1216:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1725,"nodeType":"VariableDeclarationStatement","src":"1216:13:16"},{"AST":{"nodeType":"YulBlock","src":"1290:100:16","statements":[{"nodeType":"YulVariableDeclaration","src":"1300:30:16","value":{"arguments":[{"name":"a","nodeType":"YulIdentifier","src":"1317:1:16"},{"name":"b","nodeType":"YulIdentifier","src":"1320:1:16"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1327:1:16","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"1323:3:16"},"nodeType":"YulFunctionCall","src":"1323:6:16"}],"functionName":{"name":"mulmod","nodeType":"YulIdentifier","src":"1310:6:16"},"nodeType":"YulFunctionCall","src":"1310:20:16"},"variables":[{"name":"mm","nodeType":"YulTypedName","src":"1304:2:16","type":""}]},{"nodeType":"YulAssignment","src":"1339:43:16","value":{"arguments":[{"arguments":[{"name":"mm","nodeType":"YulIdentifier","src":"1356:2:16"},{"name":"prod0","nodeType":"YulIdentifier","src":"1360:5:16"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1352:3:16"},"nodeType":"YulFunctionCall","src":"1352:14:16"},{"arguments":[{"name":"mm","nodeType":"YulIdentifier","src":"1371:2:16"},{"name":"prod0","nodeType":"YulIdentifier","src":"1375:5:16"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"1368:2:16"},"nodeType":"YulFunctionCall","src":"1368:13:16"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1348:3:16"},"nodeType":"YulFunctionCall","src":"1348:34:16"},"variableNames":[{"name":"prod1","nodeType":"YulIdentifier","src":"1339:5:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1708,"isOffset":false,"isSlot":false,"src":"1317:1:16","valueSize":1},{"declaration":1710,"isOffset":false,"isSlot":false,"src":"1320:1:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"1360:5:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"1375:5:16","valueSize":1},{"declaration":1724,"isOffset":false,"isSlot":false,"src":"1339:5:16","valueSize":1}],"id":1726,"nodeType":"InlineAssembly","src":"1281:109:16"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1730,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1728,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"1497:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"id":1729,"name":"prod1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1724,"src":"1511:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"1497:19:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1727,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1489:7:16","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":1731,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1489:28:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1732,"nodeType":"ExpressionStatement","src":"1489:28:16"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1735,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1733,"name":"prod1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1724,"src":"1586:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":1734,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1595:1:16","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1586:10:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1740,"nodeType":"IfStatement","src":"1582:121:16","trueBody":{"id":1739,"nodeType":"Block","src":"1598:105:16","statements":[{"AST":{"nodeType":"YulBlock","src":"1617:55:16","statements":[{"nodeType":"YulAssignment","src":"1629:33:16","value":{"arguments":[{"name":"prod0","nodeType":"YulIdentifier","src":"1643:5:16"},{"name":"denominator","nodeType":"YulIdentifier","src":"1650:11:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"1639:3:16"},"nodeType":"YulFunctionCall","src":"1639:23:16"},"variableNames":[{"name":"result","nodeType":"YulIdentifier","src":"1629:6:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1712,"isOffset":false,"isSlot":false,"src":"1650:11:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"1643:5:16","valueSize":1},{"declaration":1715,"isOffset":false,"isSlot":false,"src":"1629:6:16","valueSize":1}],"id":1736,"nodeType":"InlineAssembly","src":"1608:64:16"},{"expression":{"id":1737,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1715,"src":"1688:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1716,"id":1738,"nodeType":"Return","src":"1681:13:16"}]}},{"AST":{"nodeType":"YulBlock","src":"2032:149:16","statements":[{"nodeType":"YulVariableDeclaration","src":"2042:42:16","value":{"arguments":[{"name":"a","nodeType":"YulIdentifier","src":"2066:1:16"},{"name":"b","nodeType":"YulIdentifier","src":"2069:1:16"},{"name":"denominator","nodeType":"YulIdentifier","src":"2072:11:16"}],"functionName":{"name":"mulmod","nodeType":"YulIdentifier","src":"2059:6:16"},"nodeType":"YulFunctionCall","src":"2059:25:16"},"variables":[{"name":"remainder","nodeType":"YulTypedName","src":"2046:9:16","type":""}]},{"nodeType":"YulAssignment","src":"2093:41:16","value":{"arguments":[{"name":"prod1","nodeType":"YulIdentifier","src":"2106:5:16"},{"arguments":[{"name":"remainder","nodeType":"YulIdentifier","src":"2116:9:16"},{"name":"prod0","nodeType":"YulIdentifier","src":"2127:5:16"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"2113:2:16"},"nodeType":"YulFunctionCall","src":"2113:20:16"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2102:3:16"},"nodeType":"YulFunctionCall","src":"2102:32:16"},"variableNames":[{"name":"prod1","nodeType":"YulIdentifier","src":"2093:5:16"}]},{"nodeType":"YulAssignment","src":"2143:30:16","value":{"arguments":[{"name":"prod0","nodeType":"YulIdentifier","src":"2156:5:16"},{"name":"remainder","nodeType":"YulIdentifier","src":"2163:9:16"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2152:3:16"},"nodeType":"YulFunctionCall","src":"2152:21:16"},"variableNames":[{"name":"prod0","nodeType":"YulIdentifier","src":"2143:5:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1708,"isOffset":false,"isSlot":false,"src":"2066:1:16","valueSize":1},{"declaration":1710,"isOffset":false,"isSlot":false,"src":"2069:1:16","valueSize":1},{"declaration":1712,"isOffset":false,"isSlot":false,"src":"2072:11:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"2127:5:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"2143:5:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"2156:5:16","valueSize":1},{"declaration":1724,"isOffset":false,"isSlot":false,"src":"2093:5:16","valueSize":1},{"declaration":1724,"isOffset":false,"isSlot":false,"src":"2106:5:16","valueSize":1}],"id":1741,"nodeType":"InlineAssembly","src":"2023:158:16"},{"assignments":[1743],"declarations":[{"constant":false,"id":1743,"mutability":"mutable","name":"twos","nameLocation":"2330:4:16","nodeType":"VariableDeclaration","scope":1825,"src":"2322:12:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1742,"name":"uint256","nodeType":"ElementaryTypeName","src":"2322:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1750,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1749,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1746,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"30","id":1744,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2338:1:16","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":1745,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"2342:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2338:15:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1747,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2337:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"id":1748,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"2357:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2337:31:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"2322:46:16"},{"AST":{"nodeType":"YulBlock","src":"2429:55:16","statements":[{"nodeType":"YulAssignment","src":"2439:37:16","value":{"arguments":[{"name":"denominator","nodeType":"YulIdentifier","src":"2458:11:16"},{"name":"twos","nodeType":"YulIdentifier","src":"2471:4:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"2454:3:16"},"nodeType":"YulFunctionCall","src":"2454:22:16"},"variableNames":[{"name":"denominator","nodeType":"YulIdentifier","src":"2439:11:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1712,"isOffset":false,"isSlot":false,"src":"2439:11:16","valueSize":1},{"declaration":1712,"isOffset":false,"isSlot":false,"src":"2458:11:16","valueSize":1},{"declaration":1743,"isOffset":false,"isSlot":false,"src":"2471:4:16","valueSize":1}],"id":1751,"nodeType":"InlineAssembly","src":"2420:64:16"},{"AST":{"nodeType":"YulBlock","src":"2553:43:16","statements":[{"nodeType":"YulAssignment","src":"2563:25:16","value":{"arguments":[{"name":"prod0","nodeType":"YulIdentifier","src":"2576:5:16"},{"name":"twos","nodeType":"YulIdentifier","src":"2583:4:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"2572:3:16"},"nodeType":"YulFunctionCall","src":"2572:16:16"},"variableNames":[{"name":"prod0","nodeType":"YulIdentifier","src":"2563:5:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1718,"isOffset":false,"isSlot":false,"src":"2563:5:16","valueSize":1},{"declaration":1718,"isOffset":false,"isSlot":false,"src":"2576:5:16","valueSize":1},{"declaration":1743,"isOffset":false,"isSlot":false,"src":"2583:4:16","valueSize":1}],"id":1752,"nodeType":"InlineAssembly","src":"2544:52:16"},{"AST":{"nodeType":"YulBlock","src":"2776:57:16","statements":[{"nodeType":"YulAssignment","src":"2786:39:16","value":{"arguments":[{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2806:1:16","type":"","value":"0"},{"name":"twos","nodeType":"YulIdentifier","src":"2809:4:16"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2802:3:16"},"nodeType":"YulFunctionCall","src":"2802:12:16"},{"name":"twos","nodeType":"YulIdentifier","src":"2816:4:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"2798:3:16"},"nodeType":"YulFunctionCall","src":"2798:23:16"},{"kind":"number","nodeType":"YulLiteral","src":"2823:1:16","type":"","value":"1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2794:3:16"},"nodeType":"YulFunctionCall","src":"2794:31:16"},"variableNames":[{"name":"twos","nodeType":"YulIdentifier","src":"2786:4:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1743,"isOffset":false,"isSlot":false,"src":"2786:4:16","valueSize":1},{"declaration":1743,"isOffset":false,"isSlot":false,"src":"2809:4:16","valueSize":1},{"declaration":1743,"isOffset":false,"isSlot":false,"src":"2816:4:16","valueSize":1}],"id":1753,"nodeType":"InlineAssembly","src":"2767:66:16"},{"expression":{"id":1758,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1754,"name":"prod0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1718,"src":"2840:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"|=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1757,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1755,"name":"prod1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1724,"src":"2849:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1756,"name":"twos","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1743,"src":"2857:4:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2849:12:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2840:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1759,"nodeType":"ExpressionStatement","src":"2840:21:16"},{"assignments":[1761],"declarations":[{"constant":false,"id":1761,"mutability":"mutable","name":"inv","nameLocation":"3191:3:16","nodeType":"VariableDeclaration","scope":1825,"src":"3183:11:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1760,"name":"uint256","nodeType":"ElementaryTypeName","src":"3183:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":1768,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1767,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1764,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"33","id":1762,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3198:1:16","typeDescriptions":{"typeIdentifier":"t_rational_3_by_1","typeString":"int_const 3"},"value":"3"},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1763,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3202:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3198:15:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1765,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3197:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"^","rightExpression":{"hexValue":"32","id":1766,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3217:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"src":"3197:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"3183:35:16"},{"expression":{"id":1775,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1769,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3425:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1774,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1770,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3432:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1773,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1771,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3436:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1772,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3450:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3436:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3432:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3425:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1776,"nodeType":"ExpressionStatement","src":"3425:28:16"},{"expression":{"id":1783,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1777,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3481:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1782,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1778,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3488:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1781,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1779,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3492:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1780,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3506:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3492:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3488:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3481:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1784,"nodeType":"ExpressionStatement","src":"3481:28:16"},{"expression":{"id":1791,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1785,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3538:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1790,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1786,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3545:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1789,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1787,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3549:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1788,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3563:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3549:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3545:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3538:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1792,"nodeType":"ExpressionStatement","src":"3538:28:16"},{"expression":{"id":1799,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1793,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3595:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1798,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1794,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3602:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1797,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1795,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3606:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1796,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3620:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3606:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3602:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3595:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1800,"nodeType":"ExpressionStatement","src":"3595:28:16"},{"expression":{"id":1807,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1801,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3652:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1806,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1802,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3659:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1805,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1803,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3663:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1804,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3677:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3663:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3659:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3652:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1808,"nodeType":"ExpressionStatement","src":"3652:28:16"},{"expression":{"id":1815,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1809,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3710:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"*=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1814,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"32","id":1810,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3717:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1813,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1811,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1712,"src":"3721:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1812,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"3735:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3721:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3717:21:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3710:28:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1816,"nodeType":"ExpressionStatement","src":"3710:28:16"},{"expression":{"id":1821,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1817,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1715,"src":"4163:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1820,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1818,"name":"prod0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1718,"src":"4172:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1819,"name":"inv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1761,"src":"4180:3:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4172:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4163:20:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1822,"nodeType":"ExpressionStatement","src":"4163:20:16"},{"expression":{"id":1823,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1715,"src":"4198:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"functionReturnParameters":1716,"id":1824,"nodeType":"Return","src":"4191:13:16"}]}]},"documentation":{"id":1706,"nodeType":"StructuredDocumentation","src":"375:349:16","text":"@notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n @param a The multiplicand\n @param b The multiplier\n @param denominator The divisor\n @return result The 256-bit result\n @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv"},"id":1827,"implemented":true,"kind":"function","modifiers":[],"name":"mulDiv","nameLocation":"736:6:16","nodeType":"FunctionDefinition","parameters":{"id":1713,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1708,"mutability":"mutable","name":"a","nameLocation":"751:1:16","nodeType":"VariableDeclaration","scope":1827,"src":"743:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1707,"name":"uint256","nodeType":"ElementaryTypeName","src":"743:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1710,"mutability":"mutable","name":"b","nameLocation":"762:1:16","nodeType":"VariableDeclaration","scope":1827,"src":"754:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1709,"name":"uint256","nodeType":"ElementaryTypeName","src":"754:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1712,"mutability":"mutable","name":"denominator","nameLocation":"773:11:16","nodeType":"VariableDeclaration","scope":1827,"src":"765:19:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1711,"name":"uint256","nodeType":"ElementaryTypeName","src":"765:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"742:43:16"},"returnParameters":{"id":1716,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1715,"mutability":"mutable","name":"result","nameLocation":"817:6:16","nodeType":"VariableDeclaration","scope":1827,"src":"809:14:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1714,"name":"uint256","nodeType":"ElementaryTypeName","src":"809:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"808:16:16"},"scope":1909,"src":"727:3488:16","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":1895,"nodeType":"Block","src":"4593:413:16","statements":[{"id":1894,"nodeType":"UncheckedBlock","src":"4599:403:16","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1853,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1841,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1839,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1830,"src":"4621:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":1840,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4626:1:16","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4621:6:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1851,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1849,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":1846,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1842,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1837,"src":"4633:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1845,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1843,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1830,"src":"4642:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"id":1844,"name":"b","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1832,"src":"4646:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4642:5:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4633:14:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":1847,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4632:16:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":1848,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1830,"src":"4651:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4632:20:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":1850,"name":"b","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1832,"src":"4656:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4632:25:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1852,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4631:27:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4621:37:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1892,"nodeType":"Block","src":"4821:175:16","statements":[{"expression":{"id":1868,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1862,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1837,"src":"4831:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":1864,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1830,"src":"4847:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1865,"name":"b","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1832,"src":"4850:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1866,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1834,"src":"4853:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1863,"name":"mulDiv","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1827,"src":"4840:6:16","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":1867,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4840:25:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4831:34:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1869,"nodeType":"ExpressionStatement","src":"4831:34:16"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1876,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":1871,"name":"a","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1830,"src":"4886:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1872,"name":"b","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1832,"src":"4889:1:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":1873,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1834,"src":"4892:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":1870,"name":"mulmod","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-16,"src":"4879:6:16","typeDescriptions":{"typeIdentifier":"t_function_mulmod_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":1874,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4879:25:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1875,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4907:1:16","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4879:29:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1891,"nodeType":"IfStatement","src":"4875:113:16","trueBody":{"id":1890,"nodeType":"Block","src":"4910:78:16","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1884,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1878,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1837,"src":"4930:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"expression":{"arguments":[{"id":1881,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4944:7:16","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":1880,"name":"uint256","nodeType":"ElementaryTypeName","src":"4944:7:16","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"}],"id":1879,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"4939:4:16","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":1882,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4939:13:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint256","typeString":"type(uint256)"}},"id":1883,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4953:3:16","memberName":"max","nodeType":"MemberAccess","src":"4939:17:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4930:26:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1877,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4922:7:16","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":1885,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4922:35:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1886,"nodeType":"ExpressionStatement","src":"4922:35:16"},{"expression":{"id":1888,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"4969:8:16","subExpression":{"id":1887,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1837,"src":"4969:6:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1889,"nodeType":"ExpressionStatement","src":"4969:8:16"}]}}]},"id":1893,"nodeType":"IfStatement","src":"4617:379:16","trueBody":{"id":1861,"nodeType":"Block","src":"4660:155:16","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1857,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1855,"name":"denominator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1834,"src":"4678:11:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1856,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4692:1:16","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4678:15:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1854,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4670:7:16","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":1858,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4670:24:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1859,"nodeType":"ExpressionStatement","src":"4670:24:16"},{"AST":{"nodeType":"YulBlock","src":"4713:94:16","statements":[{"nodeType":"YulAssignment","src":"4725:72:16","value":{"arguments":[{"arguments":[{"name":"result","nodeType":"YulIdentifier","src":"4743:6:16"},{"name":"denominator","nodeType":"YulIdentifier","src":"4751:11:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"4739:3:16"},"nodeType":"YulFunctionCall","src":"4739:24:16"},{"arguments":[{"arguments":[{"name":"result","nodeType":"YulIdentifier","src":"4772:6:16"},{"name":"denominator","nodeType":"YulIdentifier","src":"4780:11:16"}],"functionName":{"name":"mod","nodeType":"YulIdentifier","src":"4768:3:16"},"nodeType":"YulFunctionCall","src":"4768:24:16"},{"kind":"number","nodeType":"YulLiteral","src":"4794:1:16","type":"","value":"0"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"4765:2:16"},"nodeType":"YulFunctionCall","src":"4765:31:16"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4735:3:16"},"nodeType":"YulFunctionCall","src":"4735:62:16"},"variableNames":[{"name":"result","nodeType":"YulIdentifier","src":"4725:6:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1834,"isOffset":false,"isSlot":false,"src":"4751:11:16","valueSize":1},{"declaration":1834,"isOffset":false,"isSlot":false,"src":"4780:11:16","valueSize":1},{"declaration":1837,"isOffset":false,"isSlot":false,"src":"4725:6:16","valueSize":1},{"declaration":1837,"isOffset":false,"isSlot":false,"src":"4743:6:16","valueSize":1},{"declaration":1837,"isOffset":false,"isSlot":false,"src":"4772:6:16","valueSize":1}],"id":1860,"nodeType":"InlineAssembly","src":"4704:103:16"}]}}]}]},"documentation":{"id":1828,"nodeType":"StructuredDocumentation","src":"4219:263:16","text":"@notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n @param a The multiplicand\n @param b The multiplier\n @param denominator The divisor\n @return result The 256-bit result"},"id":1896,"implemented":true,"kind":"function","modifiers":[],"name":"mulDivRoundingUp","nameLocation":"4494:16:16","nodeType":"FunctionDefinition","parameters":{"id":1835,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1830,"mutability":"mutable","name":"a","nameLocation":"4519:1:16","nodeType":"VariableDeclaration","scope":1896,"src":"4511:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1829,"name":"uint256","nodeType":"ElementaryTypeName","src":"4511:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1832,"mutability":"mutable","name":"b","nameLocation":"4530:1:16","nodeType":"VariableDeclaration","scope":1896,"src":"4522:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1831,"name":"uint256","nodeType":"ElementaryTypeName","src":"4522:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1834,"mutability":"mutable","name":"denominator","nameLocation":"4541:11:16","nodeType":"VariableDeclaration","scope":1896,"src":"4533:19:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1833,"name":"uint256","nodeType":"ElementaryTypeName","src":"4533:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4510:43:16"},"returnParameters":{"id":1838,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1837,"mutability":"mutable","name":"result","nameLocation":"4585:6:16","nodeType":"VariableDeclaration","scope":1896,"src":"4577:14:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1836,"name":"uint256","nodeType":"ElementaryTypeName","src":"4577:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4576:16:16"},"scope":1909,"src":"4485:521:16","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":1907,"nodeType":"Block","src":"5308:70:16","statements":[{"AST":{"nodeType":"YulBlock","src":"5323:51:16","statements":[{"nodeType":"YulAssignment","src":"5331:37:16","value":{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"5344:1:16"},{"name":"y","nodeType":"YulIdentifier","src":"5347:1:16"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"5340:3:16"},"nodeType":"YulFunctionCall","src":"5340:9:16"},{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"5358:1:16"},{"name":"y","nodeType":"YulIdentifier","src":"5361:1:16"}],"functionName":{"name":"mod","nodeType":"YulIdentifier","src":"5354:3:16"},"nodeType":"YulFunctionCall","src":"5354:9:16"},{"kind":"number","nodeType":"YulLiteral","src":"5365:1:16","type":"","value":"0"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5351:2:16"},"nodeType":"YulFunctionCall","src":"5351:16:16"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5336:3:16"},"nodeType":"YulFunctionCall","src":"5336:32:16"},"variableNames":[{"name":"z","nodeType":"YulIdentifier","src":"5331:1:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1899,"isOffset":false,"isSlot":false,"src":"5344:1:16","valueSize":1},{"declaration":1899,"isOffset":false,"isSlot":false,"src":"5358:1:16","valueSize":1},{"declaration":1901,"isOffset":false,"isSlot":false,"src":"5347:1:16","valueSize":1},{"declaration":1901,"isOffset":false,"isSlot":false,"src":"5361:1:16","valueSize":1},{"declaration":1904,"isOffset":false,"isSlot":false,"src":"5331:1:16","valueSize":1}],"id":1906,"nodeType":"InlineAssembly","src":"5314:60:16"}]},"documentation":{"id":1897,"nodeType":"StructuredDocumentation","src":"5010:210:16","text":"@notice Returns ceil(x / y)\n @dev division by 0 has unspecified behavior, and must be checked externally\n @param x The dividend\n @param y The divisor\n @return z The quotient, ceil(x / y)"},"id":1908,"implemented":true,"kind":"function","modifiers":[],"name":"unsafeDivRoundingUp","nameLocation":"5232:19:16","nodeType":"FunctionDefinition","parameters":{"id":1902,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1899,"mutability":"mutable","name":"x","nameLocation":"5260:1:16","nodeType":"VariableDeclaration","scope":1908,"src":"5252:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1898,"name":"uint256","nodeType":"ElementaryTypeName","src":"5252:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1901,"mutability":"mutable","name":"y","nameLocation":"5271:1:16","nodeType":"VariableDeclaration","scope":1908,"src":"5263:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1900,"name":"uint256","nodeType":"ElementaryTypeName","src":"5263:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"5251:22:16"},"returnParameters":{"id":1905,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1904,"mutability":"mutable","name":"z","nameLocation":"5305:1:16","nodeType":"VariableDeclaration","scope":1908,"src":"5297:9:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1903,"name":"uint256","nodeType":"ElementaryTypeName","src":"5297:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"5296:11:16"},"scope":1909,"src":"5223:155:16","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":1910,"src":"354:5026:16","usedErrors":[],"usedEvents":[]}],"src":"32:5349:16"},"id":16},"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol","exportedSymbols":{"Constants":[1702],"FullMath":[1909],"IAlgebraPoolErrors":[1217],"LiquidityMath":[2090],"SafeCast":[2271],"TickMath":[3371],"TokenDeltaMath":[3579]},"id":2091,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1911,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:17"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":1912,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2091,"sourceUnit":1218,"src":"78:51:17","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol","file":"./TickMath.sol","id":1913,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2091,"sourceUnit":3372,"src":"130:24:17","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol","file":"./TokenDeltaMath.sol","id":1914,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2091,"sourceUnit":3580,"src":"155:30:17","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"LiquidityMath","contractDependencies":[],"contractKind":"library","documentation":{"id":1915,"nodeType":"StructuredDocumentation","src":"187:171:17","text":"@title Math library for liquidity\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/blob/main/contracts/libraries"},"fullyImplemented":true,"id":2090,"linearizedBaseContracts":[2090],"name":"LiquidityMath","nameLocation":"366:13:17","nodeType":"ContractDefinition","nodes":[{"body":{"id":1967,"nodeType":"Block","src":"695:231:17","statements":[{"id":1966,"nodeType":"UncheckedBlock","src":"701:221:17","statements":[{"condition":{"commonType":{"typeIdentifier":"t_int128","typeString":"int128"},"id":1927,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1925,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1920,"src":"723:1:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"hexValue":"30","id":1926,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"727:1:17","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"723:5:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1964,"nodeType":"Block","src":"827:89:17","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint128","typeString":"uint128"},"id":1957,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":1954,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1947,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1923,"src":"842:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint128","typeString":"uint128"},"id":1953,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1948,"name":"x","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1918,"src":"846:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"BinaryOperation","operator":"+","rightExpression":{"arguments":[{"id":1951,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1920,"src":"858:1:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":1950,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"850:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":1949,"name":"uint128","nodeType":"ElementaryTypeName","src":"850:7:17","typeDescriptions":{}}},"id":1952,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"850:10:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"846:14:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"842:18:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"id":1955,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"841:20:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":1956,"name":"x","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1918,"src":"864:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"841:24:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1963,"nodeType":"IfStatement","src":"837:70:17","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":1958,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"874:18:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":1960,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"893:12:17","memberName":"liquidityAdd","nodeType":"MemberAccess","referencedDeclaration":1189,"src":"874:31:17","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":1961,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"874:33:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1962,"nodeType":"RevertStatement","src":"867:40:17"}}]},"id":1965,"nodeType":"IfStatement","src":"719:197:17","trueBody":{"id":1946,"nodeType":"Block","src":"730:91:17","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint128","typeString":"uint128"},"id":1939,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":1936,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1928,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1923,"src":"745:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint128","typeString":"uint128"},"id":1935,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1929,"name":"x","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1918,"src":"749:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"arguments":[{"id":1933,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"761:2:17","subExpression":{"id":1932,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1920,"src":"762:1:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":1931,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"753:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":1930,"name":"uint128","nodeType":"ElementaryTypeName","src":"753:7:17","typeDescriptions":{}}},"id":1934,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"753:11:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"749:15:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"745:19:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"id":1937,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"744:21:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":1938,"name":"x","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1918,"src":"769:1:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"744:26:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1945,"nodeType":"IfStatement","src":"740:72:17","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":1940,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"779:18:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":1942,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"798:12:17","memberName":"liquiditySub","nodeType":"MemberAccess","referencedDeclaration":1186,"src":"779:31:17","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":1943,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"779:33:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1944,"nodeType":"RevertStatement","src":"772:40:17"}}]}}]}]},"documentation":{"id":1916,"nodeType":"StructuredDocumentation","src":"384:235:17","text":"@notice Add a signed liquidity delta to liquidity and revert if it overflows or underflows\n @param x The liquidity before change\n @param y The delta by which liquidity should be changed\n @return z The liquidity delta"},"id":1968,"implemented":true,"kind":"function","modifiers":[],"name":"addDelta","nameLocation":"631:8:17","nodeType":"FunctionDefinition","parameters":{"id":1921,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1918,"mutability":"mutable","name":"x","nameLocation":"648:1:17","nodeType":"VariableDeclaration","scope":1968,"src":"640:9:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1917,"name":"uint128","nodeType":"ElementaryTypeName","src":"640:7:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1920,"mutability":"mutable","name":"y","nameLocation":"658:1:17","nodeType":"VariableDeclaration","scope":1968,"src":"651:8:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":1919,"name":"int128","nodeType":"ElementaryTypeName","src":"651:6:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"639:21:17"},"returnParameters":{"id":1924,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1923,"mutability":"mutable","name":"z","nameLocation":"692:1:17","nodeType":"VariableDeclaration","scope":1968,"src":"684:9:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1922,"name":"uint128","nodeType":"ElementaryTypeName","src":"684:7:17","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"683:11:17"},"scope":2090,"src":"622:304:17","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2088,"nodeType":"Block","src":"1169:1095:17","statements":[{"assignments":[1988],"declarations":[{"constant":false,"id":1988,"mutability":"mutable","name":"priceAtBottomTick","nameLocation":"1183:17:17","nodeType":"VariableDeclaration","scope":2088,"src":"1175:25:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1987,"name":"uint160","nodeType":"ElementaryTypeName","src":"1175:7:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"id":1993,"initialValue":{"arguments":[{"id":1991,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1970,"src":"1231:10:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"expression":{"id":1989,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"1203:8:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":1990,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1212:18:17","memberName":"getSqrtRatioAtTick","nodeType":"MemberAccess","referencedDeclaration":3229,"src":"1203:27:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_int24_$returns$_t_uint160_$","typeString":"function (int24) pure returns (uint160)"}},"id":1992,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1203:39:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"VariableDeclarationStatement","src":"1175:67:17"},{"assignments":[1995],"declarations":[{"constant":false,"id":1995,"mutability":"mutable","name":"priceAtTopTick","nameLocation":"1256:14:17","nodeType":"VariableDeclaration","scope":2088,"src":"1248:22:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1994,"name":"uint160","nodeType":"ElementaryTypeName","src":"1248:7:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"id":2000,"initialValue":{"arguments":[{"id":1998,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1972,"src":"1301:7:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"expression":{"id":1996,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"1273:8:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":1997,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1282:18:17","memberName":"getSqrtRatioAtTick","nodeType":"MemberAccess","referencedDeclaration":3229,"src":"1273:27:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_int24_$returns$_t_uint160_$","typeString":"function (int24) pure returns (uint160)"}},"id":1999,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1273:36:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"VariableDeclarationStatement","src":"1248:61:17"},{"assignments":[2002],"declarations":[{"constant":false,"id":2002,"mutability":"mutable","name":"amount0Int","nameLocation":"1323:10:17","nodeType":"VariableDeclaration","scope":2088,"src":"1316:17:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":2001,"name":"int256","nodeType":"ElementaryTypeName","src":"1316:6:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"id":2003,"nodeType":"VariableDeclarationStatement","src":"1316:17:17"},{"assignments":[2005],"declarations":[{"constant":false,"id":2005,"mutability":"mutable","name":"amount1Int","nameLocation":"1346:10:17","nodeType":"VariableDeclaration","scope":2088,"src":"1339:17:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":2004,"name":"int256","nodeType":"ElementaryTypeName","src":"1339:6:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"id":2006,"nodeType":"VariableDeclarationStatement","src":"1339:17:17"},{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2009,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2007,"name":"currentTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1976,"src":"1366:11:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":2008,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1970,"src":"1380:10:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1366:24:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2022,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2020,"name":"currentTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1976,"src":"1612:11:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":2021,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1972,"src":"1626:7:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1612:21:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2055,"nodeType":"Block","src":"1888:210:17","statements":[{"expression":{"id":2053,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2046,"name":"amount1Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2005,"src":"1998:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2049,"name":"priceAtBottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1988,"src":"2041:17:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2050,"name":"priceAtTopTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1995,"src":"2060:14:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2051,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"2076:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_int128","typeString":"int128"}],"expression":{"id":2047,"name":"TokenDeltaMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3579,"src":"2011:14:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TokenDeltaMath_$3579_$","typeString":"type(library TokenDeltaMath)"}},"id":2048,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2026:14:17","memberName":"getToken1Delta","nodeType":"MemberAccess","referencedDeclaration":3578,"src":"2011:29:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_int128_$returns$_t_int256_$","typeString":"function (uint160,uint160,int128) pure returns (int256)"}},"id":2052,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2011:80:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1998:93:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":2054,"nodeType":"ExpressionStatement","src":"1998:93:17"}]},"id":2056,"nodeType":"IfStatement","src":"1608:490:17","trueBody":{"id":2045,"nodeType":"Block","src":"1635:247:17","statements":[{"expression":{"id":2030,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2023,"name":"amount0Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2002,"src":"1643:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2026,"name":"currentPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1978,"src":"1686:12:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2027,"name":"priceAtTopTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1995,"src":"1700:14:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2028,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"1716:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_int128","typeString":"int128"}],"expression":{"id":2024,"name":"TokenDeltaMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3579,"src":"1656:14:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TokenDeltaMath_$3579_$","typeString":"type(library TokenDeltaMath)"}},"id":2025,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1671:14:17","memberName":"getToken0Delta","nodeType":"MemberAccess","referencedDeclaration":3533,"src":"1656:29:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_int128_$returns$_t_int256_$","typeString":"function (uint160,uint160,int128) pure returns (int256)"}},"id":2029,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1656:75:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1643:88:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":2031,"nodeType":"ExpressionStatement","src":"1643:88:17"},{"expression":{"id":2039,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2032,"name":"amount1Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2005,"src":"1739:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2035,"name":"priceAtBottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1988,"src":"1782:17:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2036,"name":"currentPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1978,"src":"1801:12:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2037,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"1815:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_int128","typeString":"int128"}],"expression":{"id":2033,"name":"TokenDeltaMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3579,"src":"1752:14:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TokenDeltaMath_$3579_$","typeString":"type(library TokenDeltaMath)"}},"id":2034,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1767:14:17","memberName":"getToken1Delta","nodeType":"MemberAccess","referencedDeclaration":3578,"src":"1752:29:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_int128_$returns$_t_int256_$","typeString":"function (uint160,uint160,int128) pure returns (int256)"}},"id":2038,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1752:78:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1739:91:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":2040,"nodeType":"ExpressionStatement","src":"1739:91:17"},{"expression":{"id":2043,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2041,"name":"globalLiquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1985,"src":"1838:20:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2042,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"1861:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"1838:37:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"id":2044,"nodeType":"ExpressionStatement","src":"1838:37:17"}]}},"id":2057,"nodeType":"IfStatement","src":"1362:736:17","trueBody":{"id":2019,"nodeType":"Block","src":"1392:210:17","statements":[{"expression":{"id":2017,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2010,"name":"amount0Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2002,"src":"1502:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2013,"name":"priceAtBottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1988,"src":"1545:17:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2014,"name":"priceAtTopTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1995,"src":"1564:14:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":2015,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"1580:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_int128","typeString":"int128"}],"expression":{"id":2011,"name":"TokenDeltaMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3579,"src":"1515:14:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TokenDeltaMath_$3579_$","typeString":"type(library TokenDeltaMath)"}},"id":2012,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1530:14:17","memberName":"getToken0Delta","nodeType":"MemberAccess","referencedDeclaration":3533,"src":"1515:29:17","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_int128_$returns$_t_int256_$","typeString":"function (uint160,uint160,int128) pure returns (int256)"}},"id":2016,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1515:80:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1502:93:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":2018,"nodeType":"ExpressionStatement","src":"1502:93:17"}]}},{"id":2087,"nodeType":"UncheckedBlock","src":"2104:156:17","statements":[{"expression":{"id":2085,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":2058,"name":"amount0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1981,"src":"2123:7:17","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":2059,"name":"amount1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1983,"src":"2132:7:17","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2060,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"2122:18:17","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"commonType":{"typeIdentifier":"t_int128","typeString":"int128"},"id":2063,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2061,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1974,"src":"2143:14:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"hexValue":"30","id":2062,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2160:1:17","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2143:18:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"components":[{"arguments":[{"id":2077,"name":"amount0Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2002,"src":"2220:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2076,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2212:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":2075,"name":"uint256","nodeType":"ElementaryTypeName","src":"2212:7:17","typeDescriptions":{}}},"id":2078,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2212:19:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"arguments":[{"id":2081,"name":"amount1Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2005,"src":"2241:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2080,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2233:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":2079,"name":"uint256","nodeType":"ElementaryTypeName","src":"2233:7:17","typeDescriptions":{}}},"id":2082,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2233:19:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2083,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2211:42:17","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"id":2084,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"2143:110:17","trueExpression":{"components":[{"arguments":[{"id":2067,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"2173:11:17","subExpression":{"id":2066,"name":"amount0Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2002,"src":"2174:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2065,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2165:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":2064,"name":"uint256","nodeType":"ElementaryTypeName","src":"2165:7:17","typeDescriptions":{}}},"id":2068,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2165:20:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"arguments":[{"id":2072,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"2195:11:17","subExpression":{"id":2071,"name":"amount1Int","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2005,"src":"2196:10:17","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2070,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2187:7:17","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":2069,"name":"uint256","nodeType":"ElementaryTypeName","src":"2187:7:17","typeDescriptions":{}}},"id":2073,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2187:20:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2074,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2164:44:17","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"src":"2122:131:17","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2086,"nodeType":"ExpressionStatement","src":"2122:131:17"}]}]},"id":2089,"implemented":true,"kind":"function","modifiers":[],"name":"getAmountsForLiquidity","nameLocation":"939:22:17","nodeType":"FunctionDefinition","parameters":{"id":1979,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1970,"mutability":"mutable","name":"bottomTick","nameLocation":"973:10:17","nodeType":"VariableDeclaration","scope":2089,"src":"967:16:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1969,"name":"int24","nodeType":"ElementaryTypeName","src":"967:5:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1972,"mutability":"mutable","name":"topTick","nameLocation":"995:7:17","nodeType":"VariableDeclaration","scope":2089,"src":"989:13:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1971,"name":"int24","nodeType":"ElementaryTypeName","src":"989:5:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1974,"mutability":"mutable","name":"liquidityDelta","nameLocation":"1015:14:17","nodeType":"VariableDeclaration","scope":2089,"src":"1008:21:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":1973,"name":"int128","nodeType":"ElementaryTypeName","src":"1008:6:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":1976,"mutability":"mutable","name":"currentTick","nameLocation":"1041:11:17","nodeType":"VariableDeclaration","scope":2089,"src":"1035:17:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1975,"name":"int24","nodeType":"ElementaryTypeName","src":"1035:5:17","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1978,"mutability":"mutable","name":"currentPrice","nameLocation":"1066:12:17","nodeType":"VariableDeclaration","scope":2089,"src":"1058:20:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1977,"name":"uint160","nodeType":"ElementaryTypeName","src":"1058:7:17","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"961:121:17"},"returnParameters":{"id":1986,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1981,"mutability":"mutable","name":"amount0","nameLocation":"1114:7:17","nodeType":"VariableDeclaration","scope":2089,"src":"1106:15:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1980,"name":"uint256","nodeType":"ElementaryTypeName","src":"1106:7:17","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1983,"mutability":"mutable","name":"amount1","nameLocation":"1131:7:17","nodeType":"VariableDeclaration","scope":2089,"src":"1123:15:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1982,"name":"uint256","nodeType":"ElementaryTypeName","src":"1123:7:17","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1985,"mutability":"mutable","name":"globalLiquidityDelta","nameLocation":"1147:20:17","nodeType":"VariableDeclaration","scope":2089,"src":"1140:27:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":1984,"name":"int128","nodeType":"ElementaryTypeName","src":"1140:6:17","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"1105:63:17"},"scope":2090,"src":"930:1334:17","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":2091,"src":"358:1908:17","usedErrors":[],"usedEvents":[]}],"src":"45:2222:17"},"id":17},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","exportedSymbols":{"IAlgebraPoolErrors":[1217],"Plugins":[2162]},"id":2163,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2092,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:18"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":2093,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2163,"sourceUnit":1218,"src":"78:51:18","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"Plugins","contractDependencies":[],"contractKind":"library","documentation":{"id":2094,"nodeType":"StructuredDocumentation","src":"131:180:18","text":"@title Contains logic and constants for interacting with the plugin through hooks\n @dev Allows pool to check which hooks are enabled, as well as control the return selector"},"fullyImplemented":true,"id":2162,"linearizedBaseContracts":[2162],"name":"Plugins","nameLocation":"319:7:18","nodeType":"ContractDefinition","nodes":[{"body":{"id":2104,"nodeType":"Block","src":"415:70:18","statements":[{"AST":{"nodeType":"YulBlock","src":"430:51:18","statements":[{"nodeType":"YulAssignment","src":"438:37:18","value":{"arguments":[{"arguments":[{"name":"pluginConfig","nodeType":"YulIdentifier","src":"452:12:18"},{"name":"flag","nodeType":"YulIdentifier","src":"466:4:18"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"448:3:18"},"nodeType":"YulFunctionCall","src":"448:23:18"},{"kind":"number","nodeType":"YulLiteral","src":"473:1:18","type":"","value":"0"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"445:2:18"},"nodeType":"YulFunctionCall","src":"445:30:18"},"variableNames":[{"name":"res","nodeType":"YulIdentifier","src":"438:3:18"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":2098,"isOffset":false,"isSlot":false,"src":"466:4:18","valueSize":1},{"declaration":2096,"isOffset":false,"isSlot":false,"src":"452:12:18","valueSize":1},{"declaration":2101,"isOffset":false,"isSlot":false,"src":"438:3:18","valueSize":1}],"id":2103,"nodeType":"InlineAssembly","src":"421:60:18"}]},"id":2105,"implemented":true,"kind":"function","modifiers":[],"name":"hasFlag","nameLocation":"340:7:18","nodeType":"FunctionDefinition","parameters":{"id":2099,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2096,"mutability":"mutable","name":"pluginConfig","nameLocation":"354:12:18","nodeType":"VariableDeclaration","scope":2105,"src":"348:18:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":2095,"name":"uint8","nodeType":"ElementaryTypeName","src":"348:5:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":2098,"mutability":"mutable","name":"flag","nameLocation":"376:4:18","nodeType":"VariableDeclaration","scope":2105,"src":"368:12:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2097,"name":"uint256","nodeType":"ElementaryTypeName","src":"368:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"347:34:18"},"returnParameters":{"id":2102,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2101,"mutability":"mutable","name":"res","nameLocation":"410:3:18","nodeType":"VariableDeclaration","scope":2105,"src":"405:8:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2100,"name":"bool","nodeType":"ElementaryTypeName","src":"405:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"404:10:18"},"scope":2162,"src":"331:154:18","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2122,"nodeType":"Block","src":"567:108:18","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"id":2114,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2112,"name":"selector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2107,"src":"577:8:18","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":2113,"name":"expectedSelector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2109,"src":"589:16:18","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"src":"577:28:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2121,"nodeType":"IfStatement","src":"573:97:18","trueBody":{"errorCall":{"arguments":[{"id":2118,"name":"expectedSelector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2109,"src":"653:16:18","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes4","typeString":"bytes4"}],"expression":{"id":2115,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"614:18:18","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2117,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"633:19:18","memberName":"invalidHookResponse","nodeType":"MemberAccess","referencedDeclaration":1183,"src":"614:38:18","typeDescriptions":{"typeIdentifier":"t_function_error_pure$_t_bytes4_$returns$__$","typeString":"function (bytes4) pure"}},"id":2119,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"614:56:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2120,"nodeType":"RevertStatement","src":"607:63:18"}}]},"id":2123,"implemented":true,"kind":"function","modifiers":[],"name":"shouldReturn","nameLocation":"498:12:18","nodeType":"FunctionDefinition","parameters":{"id":2110,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2107,"mutability":"mutable","name":"selector","nameLocation":"518:8:18","nodeType":"VariableDeclaration","scope":2123,"src":"511:15:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":2106,"name":"bytes4","nodeType":"ElementaryTypeName","src":"511:6:18","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":2109,"mutability":"mutable","name":"expectedSelector","nameLocation":"535:16:18","nodeType":"VariableDeclaration","scope":2123,"src":"528:23:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":2108,"name":"bytes4","nodeType":"ElementaryTypeName","src":"528:6:18","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"510:42:18"},"returnParameters":{"id":2111,"nodeType":"ParameterList","parameters":[],"src":"567:0:18"},"scope":2162,"src":"489:186:18","stateMutability":"pure","virtual":false,"visibility":"internal"},{"constant":true,"id":2126,"mutability":"constant","name":"BEFORE_SWAP_FLAG","nameLocation":"705:16:18","nodeType":"VariableDeclaration","scope":2162,"src":"679:46:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2124,"name":"uint256","nodeType":"ElementaryTypeName","src":"679:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"31","id":2125,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"724:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"visibility":"internal"},{"constant":true,"id":2131,"mutability":"constant","name":"AFTER_SWAP_FLAG","nameLocation":"755:15:18","nodeType":"VariableDeclaration","scope":2162,"src":"729:50:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2127,"name":"uint256","nodeType":"ElementaryTypeName","src":"729:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"id":2130,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2128,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"773:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"31","id":2129,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"778:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"773:6:18","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"}},"visibility":"internal"},{"constant":true,"id":2136,"mutability":"constant","name":"BEFORE_POSITION_MODIFY_FLAG","nameLocation":"809:27:18","nodeType":"VariableDeclaration","scope":2162,"src":"783:62:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2132,"name":"uint256","nodeType":"ElementaryTypeName","src":"783:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"},"id":2135,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2133,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"839:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"32","id":2134,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"844:1:18","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"src":"839:6:18","typeDescriptions":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"}},"visibility":"internal"},{"constant":true,"id":2141,"mutability":"constant","name":"AFTER_POSITION_MODIFY_FLAG","nameLocation":"875:26:18","nodeType":"VariableDeclaration","scope":2162,"src":"849:61:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2137,"name":"uint256","nodeType":"ElementaryTypeName","src":"849:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_8_by_1","typeString":"int_const 8"},"id":2140,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2138,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"904:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"33","id":2139,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"909:1:18","typeDescriptions":{"typeIdentifier":"t_rational_3_by_1","typeString":"int_const 3"},"value":"3"},"src":"904:6:18","typeDescriptions":{"typeIdentifier":"t_rational_8_by_1","typeString":"int_const 8"}},"visibility":"internal"},{"constant":true,"id":2146,"mutability":"constant","name":"BEFORE_FLASH_FLAG","nameLocation":"940:17:18","nodeType":"VariableDeclaration","scope":2162,"src":"914:52:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2142,"name":"uint256","nodeType":"ElementaryTypeName","src":"914:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_16_by_1","typeString":"int_const 16"},"id":2145,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2143,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"960:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"34","id":2144,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"965:1:18","typeDescriptions":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"},"value":"4"},"src":"960:6:18","typeDescriptions":{"typeIdentifier":"t_rational_16_by_1","typeString":"int_const 16"}},"visibility":"internal"},{"constant":true,"id":2151,"mutability":"constant","name":"AFTER_FLASH_FLAG","nameLocation":"996:16:18","nodeType":"VariableDeclaration","scope":2162,"src":"970:51:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2147,"name":"uint256","nodeType":"ElementaryTypeName","src":"970:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"id":2150,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2148,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1015:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"35","id":2149,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1020:1:18","typeDescriptions":{"typeIdentifier":"t_rational_5_by_1","typeString":"int_const 5"},"value":"5"},"src":"1015:6:18","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"}},"visibility":"internal"},{"constant":true,"id":2156,"mutability":"constant","name":"AFTER_INIT_FLAG","nameLocation":"1051:15:18","nodeType":"VariableDeclaration","scope":2162,"src":"1025:50:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2152,"name":"uint256","nodeType":"ElementaryTypeName","src":"1025:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"},"id":2155,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2153,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1069:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"36","id":2154,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1074:1:18","typeDescriptions":{"typeIdentifier":"t_rational_6_by_1","typeString":"int_const 6"},"value":"6"},"src":"1069:6:18","typeDescriptions":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"}},"visibility":"internal"},{"constant":true,"id":2161,"mutability":"constant","name":"DYNAMIC_FEE","nameLocation":"1105:11:18","nodeType":"VariableDeclaration","scope":2162,"src":"1079:46:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2157,"name":"uint256","nodeType":"ElementaryTypeName","src":"1079:7:18","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"id":2160,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":2158,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1119:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"37","id":2159,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1124:1:18","typeDescriptions":{"typeIdentifier":"t_rational_7_by_1","typeString":"int_const 7"},"value":"7"},"src":"1119:6:18","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"}},"visibility":"internal"}],"scope":2163,"src":"311:817:18","usedErrors":[],"usedEvents":[]}],"src":"45:1084:18"},"id":18},"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol","exportedSymbols":{"SafeCast":[2271]},"id":2272,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2164,"literals":["solidity",">=","0.5",".0","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:19"},{"abstract":false,"baseContracts":[],"canonicalName":"SafeCast","contractDependencies":[],"contractKind":"library","documentation":{"id":2165,"nodeType":"StructuredDocumentation","src":"78:227:19","text":"@title Safe casting methods\n @notice Contains methods for safely casting between types\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/blob/main/contracts/libraries"},"fullyImplemented":true,"id":2271,"linearizedBaseContracts":[2271],"name":"SafeCast","nameLocation":"313:8:19","nodeType":"ContractDefinition","nodes":[{"body":{"id":2185,"nodeType":"Block","src":"553:41:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2182,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":2179,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2174,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2171,"src":"568:1:19","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2177,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2168,"src":"580:1:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2176,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"572:7:19","typeDescriptions":{"typeIdentifier":"t_type$_t_uint160_$","typeString":"type(uint160)"},"typeName":{"id":2175,"name":"uint160","nodeType":"ElementaryTypeName","src":"572:7:19","typeDescriptions":{}}},"id":2178,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"572:10:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"568:14:19","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"id":2180,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"567:16:19","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":2181,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2168,"src":"587:1:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"567:21:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":2173,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"559:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":2183,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"559:30:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2184,"nodeType":"ExpressionStatement","src":"559:30:19"}]},"documentation":{"id":2166,"nodeType":"StructuredDocumentation","src":"326:160:19","text":"@notice Cast a uint256 to a uint160, revert on overflow\n @param y The uint256 to be downcasted\n @return z The downcasted integer, now type uint160"},"id":2186,"implemented":true,"kind":"function","modifiers":[],"name":"toUint160","nameLocation":"498:9:19","nodeType":"FunctionDefinition","parameters":{"id":2169,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2168,"mutability":"mutable","name":"y","nameLocation":"516:1:19","nodeType":"VariableDeclaration","scope":2186,"src":"508:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2167,"name":"uint256","nodeType":"ElementaryTypeName","src":"508:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"507:11:19"},"returnParameters":{"id":2172,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2171,"mutability":"mutable","name":"z","nameLocation":"550:1:19","nodeType":"VariableDeclaration","scope":2186,"src":"542:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2170,"name":"uint160","nodeType":"ElementaryTypeName","src":"542:7:19","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"541:11:19"},"scope":2271,"src":"489:105:19","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2206,"nodeType":"Block","src":"825:41:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2203,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":2200,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2195,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2192,"src":"840:1:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2198,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2189,"src":"852:1:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2197,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"844:7:19","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":2196,"name":"uint128","nodeType":"ElementaryTypeName","src":"844:7:19","typeDescriptions":{}}},"id":2199,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"844:10:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"840:14:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"id":2201,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"839:16:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":2202,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2189,"src":"859:1:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"839:21:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":2194,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"831:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":2204,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"831:30:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2205,"nodeType":"ExpressionStatement","src":"831:30:19"}]},"documentation":{"id":2187,"nodeType":"StructuredDocumentation","src":"598:160:19","text":"@notice Cast a uint256 to a uint128, revert on overflow\n @param y The uint256 to be downcasted\n @return z The downcasted integer, now type uint128"},"id":2207,"implemented":true,"kind":"function","modifiers":[],"name":"toUint128","nameLocation":"770:9:19","nodeType":"FunctionDefinition","parameters":{"id":2190,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2189,"mutability":"mutable","name":"y","nameLocation":"788:1:19","nodeType":"VariableDeclaration","scope":2207,"src":"780:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2188,"name":"uint256","nodeType":"ElementaryTypeName","src":"780:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"779:11:19"},"returnParameters":{"id":2193,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2192,"mutability":"mutable","name":"z","nameLocation":"822:1:19","nodeType":"VariableDeclaration","scope":2207,"src":"814:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":2191,"name":"uint128","nodeType":"ElementaryTypeName","src":"814:7:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"813:11:19"},"scope":2271,"src":"761:105:19","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2227,"nodeType":"Block","src":"1103:40:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":2224,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":2221,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2216,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2213,"src":"1118:1:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2219,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2210,"src":"1129:1:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2218,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1122:6:19","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":2217,"name":"int128","nodeType":"ElementaryTypeName","src":"1122:6:19","typeDescriptions":{}}},"id":2220,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1122:9:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"1118:13:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"id":2222,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1117:15:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":2223,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2210,"src":"1136:1:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1117:20:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":2215,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1109:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":2225,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1109:29:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2226,"nodeType":"ExpressionStatement","src":"1109:29:19"}]},"documentation":{"id":2208,"nodeType":"StructuredDocumentation","src":"870:169:19","text":"@notice Cast a int256 to a int128, revert on overflow or underflow\n @param y The int256 to be downcasted\n @return z The downcasted integer, now type int128"},"id":2228,"implemented":true,"kind":"function","modifiers":[],"name":"toInt128","nameLocation":"1051:8:19","nodeType":"FunctionDefinition","parameters":{"id":2211,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2210,"mutability":"mutable","name":"y","nameLocation":"1067:1:19","nodeType":"VariableDeclaration","scope":2228,"src":"1060:8:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":2209,"name":"int256","nodeType":"ElementaryTypeName","src":"1060:6:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"1059:10:19"},"returnParameters":{"id":2214,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2213,"mutability":"mutable","name":"z","nameLocation":"1100:1:19","nodeType":"VariableDeclaration","scope":2228,"src":"1093:8:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2212,"name":"int128","nodeType":"ElementaryTypeName","src":"1093:6:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"1092:10:19"},"scope":2271,"src":"1042:101:19","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2248,"nodeType":"Block","src":"1370:40:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_int128","typeString":"int128"},"id":2245,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":2242,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2237,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2234,"src":"1385:1:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2240,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2231,"src":"1396:1:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":2239,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1389:6:19","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":2238,"name":"int128","nodeType":"ElementaryTypeName","src":"1389:6:19","typeDescriptions":{}}},"id":2241,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1389:9:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"1385:13:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"id":2243,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1384:15:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"30","id":2244,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1403:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1384:20:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":2236,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1376:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":2246,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1376:29:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2247,"nodeType":"ExpressionStatement","src":"1376:29:19"}]},"documentation":{"id":2229,"nodeType":"StructuredDocumentation","src":"1147:158:19","text":"@notice Cast a uint128 to a int128, revert on overflow\n @param y The uint128 to be downcasted\n @return z The downcasted integer, now type int128"},"id":2249,"implemented":true,"kind":"function","modifiers":[],"name":"toInt128","nameLocation":"1317:8:19","nodeType":"FunctionDefinition","parameters":{"id":2232,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2231,"mutability":"mutable","name":"y","nameLocation":"1334:1:19","nodeType":"VariableDeclaration","scope":2249,"src":"1326:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":2230,"name":"uint128","nodeType":"ElementaryTypeName","src":"1326:7:19","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"1325:11:19"},"returnParameters":{"id":2235,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2234,"mutability":"mutable","name":"z","nameLocation":"1367:1:19","nodeType":"VariableDeclaration","scope":2249,"src":"1360:8:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2233,"name":"int128","nodeType":"ElementaryTypeName","src":"1360:6:19","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"1359:10:19"},"scope":2271,"src":"1308:102:19","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2269,"nodeType":"Block","src":"1629:40:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":2266,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"id":2263,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2258,"name":"z","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2255,"src":"1644:1:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":2261,"name":"y","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2252,"src":"1655:1:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2260,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1648:6:19","typeDescriptions":{"typeIdentifier":"t_type$_t_int256_$","typeString":"type(int256)"},"typeName":{"id":2259,"name":"int256","nodeType":"ElementaryTypeName","src":"1648:6:19","typeDescriptions":{}}},"id":2262,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1648:9:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"1644:13:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"id":2264,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1643:15:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"30","id":2265,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1662:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1643:20:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":2257,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1635:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":2267,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1635:29:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2268,"nodeType":"ExpressionStatement","src":"1635:29:19"}]},"documentation":{"id":2250,"nodeType":"StructuredDocumentation","src":"1414:150:19","text":"@notice Cast a uint256 to a int256, revert on overflow\n @param y The uint256 to be casted\n @return z The casted integer, now type int256"},"id":2270,"implemented":true,"kind":"function","modifiers":[],"name":"toInt256","nameLocation":"1576:8:19","nodeType":"FunctionDefinition","parameters":{"id":2253,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2252,"mutability":"mutable","name":"y","nameLocation":"1593:1:19","nodeType":"VariableDeclaration","scope":2270,"src":"1585:9:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2251,"name":"uint256","nodeType":"ElementaryTypeName","src":"1585:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1584:11:19"},"returnParameters":{"id":2256,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2255,"mutability":"mutable","name":"z","nameLocation":"1626:1:19","nodeType":"VariableDeclaration","scope":2270,"src":"1619:8:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":2254,"name":"int256","nodeType":"ElementaryTypeName","src":"1619:6:19","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"1618:10:19"},"scope":2271,"src":"1567:102:19","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":2272,"src":"305:1366:19","usedErrors":[],"usedEvents":[]}],"src":"45:1627:19"},"id":19},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","exportedSymbols":{"IAlgebraPoolErrors":[1217],"SafeTransfer":[2299]},"id":2300,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":2273,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"32:31:20"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":2274,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2300,"sourceUnit":1218,"src":"65:51:20","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"SafeTransfer","contractDependencies":[],"contractKind":"library","documentation":{"id":2275,"nodeType":"StructuredDocumentation","src":"118:403:20","text":"@title SafeTransfer\n @notice Safe ERC20 transfer library that gracefully handles missing return values.\n @dev Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.sol\n @dev Please note that this library does not check if the token has a code! That responsibility is delegated to the caller."},"fullyImplemented":true,"id":2299,"linearizedBaseContracts":[2299],"name":"SafeTransfer","nameLocation":"529:12:20","nodeType":"ContractDefinition","nodes":[{"body":{"id":2297,"nodeType":"Block","src":"939:893:20","statements":[{"assignments":[2286],"declarations":[{"constant":false,"id":2286,"mutability":"mutable","name":"success","nameLocation":"950:7:20","nodeType":"VariableDeclaration","scope":2297,"src":"945:12:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2285,"name":"bool","nodeType":"ElementaryTypeName","src":"945:4:20","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":2287,"nodeType":"VariableDeclarationStatement","src":"945:12:20"},{"AST":{"nodeType":"YulBlock","src":"972:793:20","statements":[{"nodeType":"YulVariableDeclaration","src":"980:36:20","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1011:4:20","type":"","value":"0x40"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1005:5:20"},"nodeType":"YulFunctionCall","src":"1005:11:20"},"variables":[{"name":"freeMemoryPointer","nodeType":"YulTypedName","src":"984:17:20","type":""}]},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1067:4:20","type":"","value":"0x00"},{"kind":"number","nodeType":"YulLiteral","src":"1073:66:20","type":"","value":"0xa9059cbb00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1060:6:20"},"nodeType":"YulFunctionCall","src":"1060:80:20"},"nodeType":"YulExpressionStatement","src":"1060:80:20"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1194:4:20","type":"","value":"0x04"},{"arguments":[{"name":"to","nodeType":"YulIdentifier","src":"1204:2:20"},{"kind":"number","nodeType":"YulLiteral","src":"1208:42:20","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1200:3:20"},"nodeType":"YulFunctionCall","src":"1200:51:20"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1187:6:20"},"nodeType":"YulFunctionCall","src":"1187:65:20"},"nodeType":"YulExpressionStatement","src":"1187:65:20"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1297:4:20","type":"","value":"0x24"},{"name":"amount","nodeType":"YulIdentifier","src":"1303:6:20"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1290:6:20"},"nodeType":"YulFunctionCall","src":"1290:20:20"},"nodeType":"YulExpressionStatement","src":"1290:20:20"},{"nodeType":"YulAssignment","src":"1388:50:20","value":{"arguments":[{"arguments":[],"functionName":{"name":"gas","nodeType":"YulIdentifier","src":"1404:3:20"},"nodeType":"YulFunctionCall","src":"1404:5:20"},{"name":"token","nodeType":"YulIdentifier","src":"1411:5:20"},{"kind":"number","nodeType":"YulLiteral","src":"1418:1:20","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1421:1:20","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1424:4:20","type":"","value":"0x44"},{"kind":"number","nodeType":"YulLiteral","src":"1430:1:20","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1433:4:20","type":"","value":"0x20"}],"functionName":{"name":"call","nodeType":"YulIdentifier","src":"1399:4:20"},"nodeType":"YulFunctionCall","src":"1399:39:20"},"variableNames":[{"name":"success","nodeType":"YulIdentifier","src":"1388:7:20"}]},{"nodeType":"YulAssignment","src":"1445:243:20","value":{"arguments":[{"arguments":[{"arguments":[{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1603:1:20","type":"","value":"0"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1597:5:20"},"nodeType":"YulFunctionCall","src":"1597:8:20"},{"kind":"number","nodeType":"YulLiteral","src":"1607:1:20","type":"","value":"1"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"1594:2:20"},"nodeType":"YulFunctionCall","src":"1594:15:20"},{"arguments":[{"arguments":[],"functionName":{"name":"returndatasize","nodeType":"YulIdentifier","src":"1614:14:20"},"nodeType":"YulFunctionCall","src":"1614:16:20"},{"kind":"number","nodeType":"YulLiteral","src":"1632:2:20","type":"","value":"32"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"1611:2:20"},"nodeType":"YulFunctionCall","src":"1611:24:20"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1590:3:20"},"nodeType":"YulFunctionCall","src":"1590:46:20"},{"arguments":[{"arguments":[],"functionName":{"name":"returndatasize","nodeType":"YulIdentifier","src":"1645:14:20"},"nodeType":"YulFunctionCall","src":"1645:16:20"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1638:6:20"},"nodeType":"YulFunctionCall","src":"1638:24:20"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"1587:2:20"},"nodeType":"YulFunctionCall","src":"1587:76:20"},{"name":"success","nodeType":"YulIdentifier","src":"1673:7:20"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1456:3:20"},"nodeType":"YulFunctionCall","src":"1456:232:20"},"variableNames":[{"name":"success","nodeType":"YulIdentifier","src":"1445:7:20"}]},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1702:4:20","type":"","value":"0x40"},{"name":"freeMemoryPointer","nodeType":"YulIdentifier","src":"1708:17:20"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1695:6:20"},"nodeType":"YulFunctionCall","src":"1695:31:20"},"nodeType":"YulExpressionStatement","src":"1695:31:20"}]},"evmVersion":"paris","externalReferences":[{"declaration":2282,"isOffset":false,"isSlot":false,"src":"1303:6:20","valueSize":1},{"declaration":2286,"isOffset":false,"isSlot":false,"src":"1388:7:20","valueSize":1},{"declaration":2286,"isOffset":false,"isSlot":false,"src":"1445:7:20","valueSize":1},{"declaration":2286,"isOffset":false,"isSlot":false,"src":"1673:7:20","valueSize":1},{"declaration":2280,"isOffset":false,"isSlot":false,"src":"1204:2:20","valueSize":1},{"declaration":2278,"isOffset":false,"isSlot":false,"src":"1411:5:20","valueSize":1}],"id":2288,"nodeType":"InlineAssembly","src":"963:802:20"},{"condition":{"id":2290,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"1775:8:20","subExpression":{"id":2289,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2286,"src":"1776:7:20","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2296,"nodeType":"IfStatement","src":"1771:56:20","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2291,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"1792:18:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2293,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1811:14:20","memberName":"transferFailed","nodeType":"MemberAccess","referencedDeclaration":1210,"src":"1792:33:20","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2294,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1792:35:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2295,"nodeType":"RevertStatement","src":"1785:42:20"}}]},"documentation":{"id":2276,"nodeType":"StructuredDocumentation","src":"546:316:20","text":"@notice Transfers tokens to a recipient\n @dev Calls transfer on token contract, errors with transferFailed() if transfer fails\n @param token The contract address of the token which will be transferred\n @param to The recipient of the transfer\n @param amount The amount of the token to transfer"},"id":2298,"implemented":true,"kind":"function","modifiers":[],"name":"safeTransfer","nameLocation":"874:12:20","nodeType":"FunctionDefinition","parameters":{"id":2283,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2278,"mutability":"mutable","name":"token","nameLocation":"895:5:20","nodeType":"VariableDeclaration","scope":2298,"src":"887:13:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2277,"name":"address","nodeType":"ElementaryTypeName","src":"887:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2280,"mutability":"mutable","name":"to","nameLocation":"910:2:20","nodeType":"VariableDeclaration","scope":2298,"src":"902:10:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2279,"name":"address","nodeType":"ElementaryTypeName","src":"902:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2282,"mutability":"mutable","name":"amount","nameLocation":"922:6:20","nodeType":"VariableDeclaration","scope":2298,"src":"914:14:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2281,"name":"uint256","nodeType":"ElementaryTypeName","src":"914:7:20","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"886:43:20"},"returnParameters":{"id":2284,"nodeType":"ParameterList","parameters":[],"src":"939:0:20"},"scope":2299,"src":"865:967:20","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":2300,"src":"521:1313:20","usedErrors":[],"usedEvents":[]}],"src":"32:1803:20"},"id":20},"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol","exportedSymbols":{"Constants":[1702],"FullMath":[1909],"IAlgebraPoolErrors":[1217],"LiquidityMath":[2090],"SafeCast":[2271],"TickManagement":[2842],"TickMath":[3371],"TokenDeltaMath":[3579]},"id":2843,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2301,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:21"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":2302,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2843,"sourceUnit":1218,"src":"63:51:21","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol","file":"./TickMath.sol","id":2303,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2843,"sourceUnit":3372,"src":"116:24:21","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol","file":"./LiquidityMath.sol","id":2304,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2843,"sourceUnit":2091,"src":"141:29:21","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol","file":"./Constants.sol","id":2305,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2843,"sourceUnit":1703,"src":"171:25:21","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"TickManagement","contractDependencies":[],"contractKind":"library","documentation":{"id":2306,"nodeType":"StructuredDocumentation","src":"198:197:21","text":"@title Library for managing and interacting with ticks\n @notice Contains functions for managing tick processes and relevant calculations\n @dev Ticks are organized as a doubly linked list"},"fullyImplemented":true,"id":2842,"linearizedBaseContracts":[2842],"name":"TickManagement","nameLocation":"403:14:21","nodeType":"ContractDefinition","nodes":[{"canonicalName":"TickManagement.Tick","id":2319,"members":[{"constant":false,"id":2308,"mutability":"mutable","name":"liquidityTotal","nameLocation":"502:14:21","nodeType":"VariableDeclaration","scope":2319,"src":"494:22:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2307,"name":"uint256","nodeType":"ElementaryTypeName","src":"494:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2310,"mutability":"mutable","name":"liquidityDelta","nameLocation":"587:14:21","nodeType":"VariableDeclaration","scope":2319,"src":"580:21:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2309,"name":"int128","nodeType":"ElementaryTypeName","src":"580:6:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":2312,"mutability":"mutable","name":"prevTick","nameLocation":"705:8:21","nodeType":"VariableDeclaration","scope":2319,"src":"699:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2311,"name":"int24","nodeType":"ElementaryTypeName","src":"699:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2314,"mutability":"mutable","name":"nextTick","nameLocation":"725:8:21","nodeType":"VariableDeclaration","scope":2319,"src":"719:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2313,"name":"int24","nodeType":"ElementaryTypeName","src":"719:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2316,"mutability":"mutable","name":"outerFeeGrowth0Token","nameLocation":"952:20:21","nodeType":"VariableDeclaration","scope":2319,"src":"944:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2315,"name":"uint256","nodeType":"ElementaryTypeName","src":"944:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2318,"mutability":"mutable","name":"outerFeeGrowth1Token","nameLocation":"986:20:21","nodeType":"VariableDeclaration","scope":2319,"src":"978:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2317,"name":"uint256","nodeType":"ElementaryTypeName","src":"978:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"name":"Tick","nameLocation":"483:4:21","nodeType":"StructDefinition","scope":2842,"src":"476:535:21","visibility":"public"},{"body":{"id":2355,"nodeType":"Block","src":"1094:266:21","statements":[{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2329,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2326,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2323,"src":"1104:7:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"expression":{"id":2327,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"1114:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2328,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1123:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"1114:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1104:27:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2335,"nodeType":"IfStatement","src":"1100:76:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2330,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"1140:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2332,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1159:15:21","memberName":"topTickAboveMAX","nodeType":"MemberAccess","referencedDeclaration":1198,"src":"1140:34:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2333,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1140:36:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2334,"nodeType":"RevertStatement","src":"1133:43:21"}},{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2338,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2336,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2323,"src":"1186:7:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<=","rightExpression":{"id":2337,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2321,"src":"1197:10:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1186:21:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2344,"nodeType":"IfStatement","src":"1182:81:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2339,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"1216:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2341,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1235:26:21","memberName":"topTickLowerOrEqBottomTick","nodeType":"MemberAccess","referencedDeclaration":1192,"src":"1216:45:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2342,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1216:47:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2343,"nodeType":"RevertStatement","src":"1209:54:21"}},{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2348,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2345,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2321,"src":"1273:10:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"expression":{"id":2346,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"1286:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2347,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1295:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"1286:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1273:30:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2354,"nodeType":"IfStatement","src":"1269:86:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2349,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"1312:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2351,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1331:22:21","memberName":"bottomTickLowerThanMIN","nodeType":"MemberAccess","referencedDeclaration":1195,"src":"1312:41:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2352,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1312:43:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2353,"nodeType":"RevertStatement","src":"1305:50:21"}}]},"id":2356,"implemented":true,"kind":"function","modifiers":[],"name":"checkTickRangeValidity","nameLocation":"1024:22:21","nodeType":"FunctionDefinition","parameters":{"id":2324,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2321,"mutability":"mutable","name":"bottomTick","nameLocation":"1053:10:21","nodeType":"VariableDeclaration","scope":2356,"src":"1047:16:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2320,"name":"int24","nodeType":"ElementaryTypeName","src":"1047:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2323,"mutability":"mutable","name":"topTick","nameLocation":"1071:7:21","nodeType":"VariableDeclaration","scope":2356,"src":"1065:13:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2322,"name":"int24","nodeType":"ElementaryTypeName","src":"1065:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1046:33:21"},"returnParameters":{"id":2325,"nodeType":"ParameterList","parameters":[],"src":"1094:0:21"},"scope":2842,"src":"1015:345:21","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2456,"nodeType":"Block","src":"2402:823:21","statements":[{"assignments":[2381],"declarations":[{"constant":false,"id":2381,"mutability":"mutable","name":"lower","nameLocation":"2421:5:21","nodeType":"VariableDeclaration","scope":2456,"src":"2408:18:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"},"typeName":{"id":2380,"nodeType":"UserDefinedTypeName","pathNode":{"id":2379,"name":"Tick","nameLocations":["2408:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"2408:4:21"},"referencedDeclaration":2319,"src":"2408:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}},"visibility":"internal"}],"id":2385,"initialValue":{"baseExpression":{"id":2382,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2362,"src":"2429:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2384,"indexExpression":{"id":2383,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2364,"src":"2434:10:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2429:16:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"nodeType":"VariableDeclarationStatement","src":"2408:37:21"},{"assignments":[2388],"declarations":[{"constant":false,"id":2388,"mutability":"mutable","name":"upper","nameLocation":"2464:5:21","nodeType":"VariableDeclaration","scope":2456,"src":"2451:18:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"},"typeName":{"id":2387,"nodeType":"UserDefinedTypeName","pathNode":{"id":2386,"name":"Tick","nameLocations":["2451:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"2451:4:21"},"referencedDeclaration":2319,"src":"2451:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}},"visibility":"internal"}],"id":2392,"initialValue":{"baseExpression":{"id":2389,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2362,"src":"2472:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2391,"indexExpression":{"id":2390,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2366,"src":"2477:7:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2472:13:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"nodeType":"VariableDeclarationStatement","src":"2451:34:21"},{"id":2455,"nodeType":"UncheckedBlock","src":"2492:729:21","statements":[{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2395,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2393,"name":"currentTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2368,"src":"2514:11:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":2394,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2366,"src":"2528:7:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"2514:21:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2453,"nodeType":"Block","src":"3030:185:21","statements":[{"expression":{"id":2443,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2437,"name":"innerFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2375,"src":"3040:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2442,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":2438,"name":"upper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2388,"src":"3063:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2439,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"3069:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"3063:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2440,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"3092:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2441,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"3098:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"3092:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3063:55:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3040:78:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2444,"nodeType":"ExpressionStatement","src":"3040:78:21"},{"expression":{"id":2451,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2445,"name":"innerFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2377,"src":"3128:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2450,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":2446,"name":"upper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2388,"src":"3151:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2447,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"3157:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"3151:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2448,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"3180:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2449,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"3186:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"3180:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3151:55:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3128:78:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2452,"nodeType":"ExpressionStatement","src":"3128:78:21"}]},"id":2454,"nodeType":"IfStatement","src":"2510:705:21","trueBody":{"id":2436,"nodeType":"Block","src":"2537:487:21","statements":[{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2398,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2396,"name":"currentTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2368,"src":"2551:11:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":2397,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2364,"src":"2566:10:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"2551:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2424,"nodeType":"Block","src":"2763:133:21","statements":[{"expression":{"id":2417,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2414,"name":"innerFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2375,"src":"2775:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"id":2415,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"2798:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2416,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2804:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"2798:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2775:49:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2418,"nodeType":"ExpressionStatement","src":"2775:49:21"},{"expression":{"id":2422,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2419,"name":"innerFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2377,"src":"2836:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"id":2420,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"2859:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2421,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2865:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"2859:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2836:49:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2423,"nodeType":"ExpressionStatement","src":"2836:49:21"}]},"id":2425,"nodeType":"IfStatement","src":"2547:349:21","trueBody":{"id":2413,"nodeType":"Block","src":"2578:179:21","statements":[{"expression":{"id":2404,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2399,"name":"innerFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2375,"src":"2590:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2403,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2400,"name":"totalFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2370,"src":"2613:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2401,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"2636:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2402,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2642:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"2636:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2613:49:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2590:72:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2405,"nodeType":"ExpressionStatement","src":"2590:72:21"},{"expression":{"id":2411,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2406,"name":"innerFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2377,"src":"2674:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2410,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2407,"name":"totalFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2372,"src":"2697:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2408,"name":"lower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2381,"src":"2720:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2409,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2726:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"2720:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2697:49:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2674:72:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2412,"nodeType":"ExpressionStatement","src":"2674:72:21"}]}},{"expression":{"id":2429,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2426,"name":"innerFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2375,"src":"2905:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"-=","rightHandSide":{"expression":{"id":2427,"name":"upper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2388,"src":"2929:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2428,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2935:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"2929:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2905:50:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2430,"nodeType":"ExpressionStatement","src":"2905:50:21"},{"expression":{"id":2434,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2431,"name":"innerFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2377,"src":"2965:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"-=","rightHandSide":{"expression":{"id":2432,"name":"upper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2388,"src":"2989:5:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2433,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2995:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"2989:26:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2965:50:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2435,"nodeType":"ExpressionStatement","src":"2965:50:21"}]}}]}]},"documentation":{"id":2357,"nodeType":"StructuredDocumentation","src":"1364:748:21","text":"@notice Retrieves fee growth data\n @param self The mapping containing all tick information for initialized ticks\n @param bottomTick The lower tick boundary of the position\n @param topTick The upper tick boundary of the position\n @param currentTick The current tick\n @param totalFeeGrowth0Token The all-time global fee growth, per unit of liquidity, in token0\n @param totalFeeGrowth1Token The all-time global fee growth, per unit of liquidity, in token1\n @return innerFeeGrowth0Token The all-time fee growth in token0, per unit of liquidity, inside the position's tick boundaries\n @return innerFeeGrowth1Token The all-time fee growth in token1, per unit of liquidity, inside the position's tick boundaries"},"id":2457,"implemented":true,"kind":"function","modifiers":[],"name":"getInnerFeeGrowth","nameLocation":"2124:17:21","nodeType":"FunctionDefinition","parameters":{"id":2373,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2362,"mutability":"mutable","name":"self","nameLocation":"2178:4:21","nodeType":"VariableDeclaration","scope":2457,"src":"2147:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2361,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2358,"name":"int24","nodeType":"ElementaryTypeName","src":"2155:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"2147:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2360,"nodeType":"UserDefinedTypeName","pathNode":{"id":2359,"name":"Tick","nameLocations":["2164:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"2164:4:21"},"referencedDeclaration":2319,"src":"2164:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"},{"constant":false,"id":2364,"mutability":"mutable","name":"bottomTick","nameLocation":"2194:10:21","nodeType":"VariableDeclaration","scope":2457,"src":"2188:16:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2363,"name":"int24","nodeType":"ElementaryTypeName","src":"2188:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2366,"mutability":"mutable","name":"topTick","nameLocation":"2216:7:21","nodeType":"VariableDeclaration","scope":2457,"src":"2210:13:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2365,"name":"int24","nodeType":"ElementaryTypeName","src":"2210:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2368,"mutability":"mutable","name":"currentTick","nameLocation":"2235:11:21","nodeType":"VariableDeclaration","scope":2457,"src":"2229:17:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2367,"name":"int24","nodeType":"ElementaryTypeName","src":"2229:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2370,"mutability":"mutable","name":"totalFeeGrowth0Token","nameLocation":"2260:20:21","nodeType":"VariableDeclaration","scope":2457,"src":"2252:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2369,"name":"uint256","nodeType":"ElementaryTypeName","src":"2252:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2372,"mutability":"mutable","name":"totalFeeGrowth1Token","nameLocation":"2294:20:21","nodeType":"VariableDeclaration","scope":2457,"src":"2286:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2371,"name":"uint256","nodeType":"ElementaryTypeName","src":"2286:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2141:177:21"},"returnParameters":{"id":2378,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2375,"mutability":"mutable","name":"innerFeeGrowth0Token","nameLocation":"2350:20:21","nodeType":"VariableDeclaration","scope":2457,"src":"2342:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2374,"name":"uint256","nodeType":"ElementaryTypeName","src":"2342:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2377,"mutability":"mutable","name":"innerFeeGrowth1Token","nameLocation":"2380:20:21","nodeType":"VariableDeclaration","scope":2457,"src":"2372:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2376,"name":"uint256","nodeType":"ElementaryTypeName","src":"2372:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2341:60:21"},"scope":2842,"src":"2115:1110:21","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":2581,"nodeType":"Block","src":"4306:1025:21","statements":[{"assignments":[2482],"declarations":[{"constant":false,"id":2482,"mutability":"mutable","name":"data","nameLocation":"4325:4:21","nodeType":"VariableDeclaration","scope":2581,"src":"4312:17:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"},"typeName":{"id":2481,"nodeType":"UserDefinedTypeName","pathNode":{"id":2480,"name":"Tick","nameLocations":["4312:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"4312:4:21"},"referencedDeclaration":2319,"src":"4312:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}},"visibility":"internal"}],"id":2486,"initialValue":{"baseExpression":{"id":2483,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2463,"src":"4332:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2485,"indexExpression":{"id":2484,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2465,"src":"4337:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4332:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"nodeType":"VariableDeclarationStatement","src":"4312:30:21"},{"assignments":[2488],"declarations":[{"constant":false,"id":2488,"mutability":"mutable","name":"liquidityTotalBefore","nameLocation":"4357:20:21","nodeType":"VariableDeclaration","scope":2581,"src":"4349:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2487,"name":"uint256","nodeType":"ElementaryTypeName","src":"4349:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":2491,"initialValue":{"expression":{"id":2489,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"4380:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2490,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"4385:14:21","memberName":"liquidityTotal","nodeType":"MemberAccess","referencedDeclaration":2308,"src":"4380:19:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"4349:50:21"},{"assignments":[2493],"declarations":[{"constant":false,"id":2493,"mutability":"mutable","name":"liquidityTotalAfter","nameLocation":"4413:19:21","nodeType":"VariableDeclaration","scope":2581,"src":"4405:27:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2492,"name":"uint256","nodeType":"ElementaryTypeName","src":"4405:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":2502,"initialValue":{"arguments":[{"arguments":[{"id":2498,"name":"liquidityTotalBefore","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2488,"src":"4466:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2497,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4458:7:21","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":2496,"name":"uint128","nodeType":"ElementaryTypeName","src":"4458:7:21","typeDescriptions":{}}},"id":2499,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4458:29:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"id":2500,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2469,"src":"4489:14:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_int128","typeString":"int128"}],"expression":{"id":2494,"name":"LiquidityMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2090,"src":"4435:13:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_LiquidityMath_$2090_$","typeString":"type(library LiquidityMath)"}},"id":2495,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4449:8:21","memberName":"addDelta","nodeType":"MemberAccess","referencedDeclaration":1968,"src":"4435:22:21","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint128_$_t_int128_$returns$_t_uint128_$","typeString":"function (uint128,int128) pure returns (uint128)"}},"id":2501,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4435:69:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"nodeType":"VariableDeclarationStatement","src":"4405:99:21"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2506,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2503,"name":"liquidityTotalAfter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2493,"src":"4514:19:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"expression":{"id":2504,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"4536:9:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":2505,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4546:22:21","memberName":"MAX_LIQUIDITY_PER_TICK","nodeType":"MemberAccess","referencedDeclaration":1690,"src":"4536:32:21","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"src":"4514:54:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2512,"nodeType":"IfStatement","src":"4510:105:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2507,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"4577:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2509,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4596:17:21","memberName":"liquidityOverflow","nodeType":"MemberAccess","referencedDeclaration":1201,"src":"4577:36:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2510,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4577:38:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2511,"nodeType":"RevertStatement","src":"4570:45:21"}},{"assignments":[2514],"declarations":[{"constant":false,"id":2514,"mutability":"mutable","name":"liquidityDeltaBefore","nameLocation":"4629:20:21","nodeType":"VariableDeclaration","scope":2581,"src":"4622:27:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2513,"name":"int128","nodeType":"ElementaryTypeName","src":"4622:6:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"id":2517,"initialValue":{"expression":{"id":2515,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"4652:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2516,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"4657:14:21","memberName":"liquidityDelta","nodeType":"MemberAccess","referencedDeclaration":2310,"src":"4652:19:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"VariableDeclarationStatement","src":"4622:49:21"},{"expression":{"id":2541,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":2518,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"4788:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2520,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"4793:14:21","memberName":"liquidityDelta","nodeType":"MemberAccess","referencedDeclaration":2310,"src":"4788:19:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"id":2521,"name":"upper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2475,"src":"4810:5:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":2538,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":2535,"name":"liquidityDeltaBefore","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2514,"src":"4888:20:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":2534,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4881:6:21","typeDescriptions":{"typeIdentifier":"t_type$_t_int256_$","typeString":"type(int256)"},"typeName":{"id":2533,"name":"int256","nodeType":"ElementaryTypeName","src":"4881:6:21","typeDescriptions":{}}},"id":2536,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4881:28:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"+","rightExpression":{"id":2537,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2469,"src":"4912:14:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"4881:45:21","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2532,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4874:6:21","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":2531,"name":"int128","nodeType":"ElementaryTypeName","src":"4874:6:21","typeDescriptions":{}}},"id":2539,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4874:53:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"id":2540,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"4810:117:21","trueExpression":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":2529,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":2526,"name":"liquidityDeltaBefore","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2514,"src":"4832:20:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":2525,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4825:6:21","typeDescriptions":{"typeIdentifier":"t_type$_t_int256_$","typeString":"type(int256)"},"typeName":{"id":2524,"name":"int256","nodeType":"ElementaryTypeName","src":"4825:6:21","typeDescriptions":{}}},"id":2527,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4825:28:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":2528,"name":"liquidityDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2469,"src":"4856:14:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"4825:45:21","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":2523,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4818:6:21","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":2522,"name":"int128","nodeType":"ElementaryTypeName","src":"4818:6:21","typeDescriptions":{}}},"id":2530,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4818:53:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"src":"4788:139:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"id":2542,"nodeType":"ExpressionStatement","src":"4788:139:21"},{"expression":{"id":2547,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":2543,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"4933:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2545,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"4938:14:21","memberName":"liquidityTotal","nodeType":"MemberAccess","referencedDeclaration":2308,"src":"4933:19:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2546,"name":"liquidityTotalAfter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2493,"src":"4955:19:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4933:41:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2548,"nodeType":"ExpressionStatement","src":"4933:41:21"},{"expression":{"id":2554,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2549,"name":"flipped","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2478,"src":"4981:7:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2552,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2550,"name":"liquidityTotalAfter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2493,"src":"4992:19:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":2551,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5015:1:21","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4992:24:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":2553,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4991:26:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4981:36:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2555,"nodeType":"ExpressionStatement","src":"4981:36:21"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2558,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2556,"name":"liquidityTotalBefore","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2488,"src":"5027:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":2557,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5051:1:21","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5027:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2580,"nodeType":"IfStatement","src":"5023:304:21","trueBody":{"id":2579,"nodeType":"Block","src":"5054:273:21","statements":[{"expression":{"id":2562,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2559,"name":"flipped","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2478,"src":"5062:7:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2561,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"5072:8:21","subExpression":{"id":2560,"name":"flipped","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2478,"src":"5073:7:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"5062:18:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2563,"nodeType":"ExpressionStatement","src":"5062:18:21"},{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2566,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2564,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2465,"src":"5198:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<=","rightExpression":{"id":2565,"name":"currentTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2467,"src":"5206:11:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"5198:19:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2578,"nodeType":"IfStatement","src":"5194:126:21","trueBody":{"expression":{"id":2576,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"id":2567,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"5220:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2569,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"5225:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"5220:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"expression":{"id":2570,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2482,"src":"5247:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2571,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"5252:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"5247:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2572,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"5219:54:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"id":2573,"name":"totalFeeGrowth0Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2471,"src":"5277:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":2574,"name":"totalFeeGrowth1Token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2473,"src":"5299:20:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2575,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"5276:44:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"src":"5219:101:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2577,"nodeType":"ExpressionStatement","src":"5219:101:21"}}]}}]},"documentation":{"id":2458,"nodeType":"StructuredDocumentation","src":"3229:831:21","text":"@notice Updates a tick and returns true if the tick was flipped from initialized to uninitialized, or vice versa\n @param self The mapping containing all tick information for initialized ticks\n @param tick The tick that will be updated\n @param currentTick The current tick\n @param liquidityDelta A new amount of liquidity to be added (subtracted) when tick is crossed from left to right (right to left)\n @param totalFeeGrowth0Token The all-time global fee growth, per unit of liquidity, in token0\n @param totalFeeGrowth1Token The all-time global fee growth, per unit of liquidity, in token1\n @param upper True for updating a position's upper tick, or false for updating a position's lower tick\n @return flipped Whether the tick was flipped from initialized to uninitialized, or vice versa"},"id":2582,"implemented":true,"kind":"function","modifiers":[],"name":"update","nameLocation":"4072:6:21","nodeType":"FunctionDefinition","parameters":{"id":2476,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2463,"mutability":"mutable","name":"self","nameLocation":"4115:4:21","nodeType":"VariableDeclaration","scope":2582,"src":"4084:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2462,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2459,"name":"int24","nodeType":"ElementaryTypeName","src":"4092:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"4084:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2461,"nodeType":"UserDefinedTypeName","pathNode":{"id":2460,"name":"Tick","nameLocations":["4101:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"4101:4:21"},"referencedDeclaration":2319,"src":"4101:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"},{"constant":false,"id":2465,"mutability":"mutable","name":"tick","nameLocation":"4131:4:21","nodeType":"VariableDeclaration","scope":2582,"src":"4125:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2464,"name":"int24","nodeType":"ElementaryTypeName","src":"4125:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2467,"mutability":"mutable","name":"currentTick","nameLocation":"4147:11:21","nodeType":"VariableDeclaration","scope":2582,"src":"4141:17:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2466,"name":"int24","nodeType":"ElementaryTypeName","src":"4141:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2469,"mutability":"mutable","name":"liquidityDelta","nameLocation":"4171:14:21","nodeType":"VariableDeclaration","scope":2582,"src":"4164:21:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2468,"name":"int128","nodeType":"ElementaryTypeName","src":"4164:6:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":2471,"mutability":"mutable","name":"totalFeeGrowth0Token","nameLocation":"4199:20:21","nodeType":"VariableDeclaration","scope":2582,"src":"4191:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2470,"name":"uint256","nodeType":"ElementaryTypeName","src":"4191:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2473,"mutability":"mutable","name":"totalFeeGrowth1Token","nameLocation":"4233:20:21","nodeType":"VariableDeclaration","scope":2582,"src":"4225:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2472,"name":"uint256","nodeType":"ElementaryTypeName","src":"4225:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2475,"mutability":"mutable","name":"upper","nameLocation":"4264:5:21","nodeType":"VariableDeclaration","scope":2582,"src":"4259:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2474,"name":"bool","nodeType":"ElementaryTypeName","src":"4259:4:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"4078:195:21"},"returnParameters":{"id":2479,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2478,"mutability":"mutable","name":"flipped","nameLocation":"4297:7:21","nodeType":"VariableDeclaration","scope":2582,"src":"4292:12:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2477,"name":"bool","nodeType":"ElementaryTypeName","src":"4292:4:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"4291:14:21"},"scope":2842,"src":"4063:1268:21","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2636,"nodeType":"Block","src":"6165:272:21","statements":[{"assignments":[2605],"declarations":[{"constant":false,"id":2605,"mutability":"mutable","name":"data","nameLocation":"6184:4:21","nodeType":"VariableDeclaration","scope":2636,"src":"6171:17:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"},"typeName":{"id":2604,"nodeType":"UserDefinedTypeName","pathNode":{"id":2603,"name":"Tick","nameLocations":["6171:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"6171:4:21"},"referencedDeclaration":2319,"src":"6171:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}},"visibility":"internal"}],"id":2609,"initialValue":{"baseExpression":{"id":2606,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2588,"src":"6191:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2608,"indexExpression":{"id":2607,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2590,"src":"6196:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6191:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"nodeType":"VariableDeclarationStatement","src":"6171:30:21"},{"id":2627,"nodeType":"UncheckedBlock","src":"6207:162:21","statements":[{"expression":{"id":2625,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"id":2610,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6226:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2612,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6231:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"6226:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"expression":{"id":2613,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6253:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2614,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6258:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"6253:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2615,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"6225:54:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2619,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2616,"name":"feeGrowth1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2594,"src":"6283:10:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2617,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6296:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2618,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6301:20:21","memberName":"outerFeeGrowth1Token","nodeType":"MemberAccess","referencedDeclaration":2318,"src":"6296:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"6283:38:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2623,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2620,"name":"feeGrowth0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2592,"src":"6323:10:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"expression":{"id":2621,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6336:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2622,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6341:20:21","memberName":"outerFeeGrowth0Token","nodeType":"MemberAccess","referencedDeclaration":2316,"src":"6336:25:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"6323:38:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2624,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"6282:80:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint256_$_t_uint256_$","typeString":"tuple(uint256,uint256)"}},"src":"6225:137:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2626,"nodeType":"ExpressionStatement","src":"6225:137:21"}]},{"expression":{"components":[{"expression":{"id":2628,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6382:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2629,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6387:14:21","memberName":"liquidityDelta","nodeType":"MemberAccess","referencedDeclaration":2310,"src":"6382:19:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},{"expression":{"id":2630,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6403:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2631,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6408:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"6403:13:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"id":2632,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2605,"src":"6418:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick storage pointer"}},"id":2633,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6423:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"6418:13:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2634,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"6381:51:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int128_$_t_int24_$_t_int24_$","typeString":"tuple(int128,int24,int24)"}},"functionReturnParameters":2602,"id":2635,"nodeType":"Return","src":"6374:58:21"}]},"documentation":{"id":2583,"nodeType":"StructuredDocumentation","src":"5335:630:21","text":"@notice Transitions to next tick as needed by price movement\n @param self The mapping containing all tick information for initialized ticks\n @param tick The destination tick of the transition\n @param feeGrowth0 The all-time global fee growth, per unit of liquidity, in token0\n @param feeGrowth1 The all-time global fee growth, per unit of liquidity, in token1\n @return liquidityDelta The amount of liquidity added (subtracted) when tick is crossed from left to right (right to left)\n @return prevTick The previous active tick before _tick_\n @return nextTick The next active tick after _tick_"},"id":2637,"implemented":true,"kind":"function","modifiers":[],"name":"cross","nameLocation":"5977:5:21","nodeType":"FunctionDefinition","parameters":{"id":2595,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2588,"mutability":"mutable","name":"self","nameLocation":"6019:4:21","nodeType":"VariableDeclaration","scope":2637,"src":"5988:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2587,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2584,"name":"int24","nodeType":"ElementaryTypeName","src":"5996:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"5988:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2586,"nodeType":"UserDefinedTypeName","pathNode":{"id":2585,"name":"Tick","nameLocations":["6005:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"6005:4:21"},"referencedDeclaration":2319,"src":"6005:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"},{"constant":false,"id":2590,"mutability":"mutable","name":"tick","nameLocation":"6035:4:21","nodeType":"VariableDeclaration","scope":2637,"src":"6029:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2589,"name":"int24","nodeType":"ElementaryTypeName","src":"6029:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2592,"mutability":"mutable","name":"feeGrowth0","nameLocation":"6053:10:21","nodeType":"VariableDeclaration","scope":2637,"src":"6045:18:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2591,"name":"uint256","nodeType":"ElementaryTypeName","src":"6045:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2594,"mutability":"mutable","name":"feeGrowth1","nameLocation":"6077:10:21","nodeType":"VariableDeclaration","scope":2637,"src":"6069:18:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2593,"name":"uint256","nodeType":"ElementaryTypeName","src":"6069:7:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"5982:109:21"},"returnParameters":{"id":2602,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2597,"mutability":"mutable","name":"liquidityDelta","nameLocation":"6117:14:21","nodeType":"VariableDeclaration","scope":2637,"src":"6110:21:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":2596,"name":"int128","nodeType":"ElementaryTypeName","src":"6110:6:21","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":2599,"mutability":"mutable","name":"prevTick","nameLocation":"6139:8:21","nodeType":"VariableDeclaration","scope":2637,"src":"6133:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2598,"name":"int24","nodeType":"ElementaryTypeName","src":"6133:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2601,"mutability":"mutable","name":"nextTick","nameLocation":"6155:8:21","nodeType":"VariableDeclaration","scope":2637,"src":"6149:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2600,"name":"int24","nodeType":"ElementaryTypeName","src":"6149:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"6109:55:21"},"scope":2842,"src":"5968:469:21","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2682,"nodeType":"Block","src":"6645:235:21","statements":[{"expression":{"id":2662,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"baseExpression":{"id":2646,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2643,"src":"6652:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2649,"indexExpression":{"expression":{"id":2647,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6657:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2648,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6666:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"6657:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6652:23:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2650,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6676:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"6652:32:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"baseExpression":{"id":2651,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2643,"src":"6686:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2654,"indexExpression":{"expression":{"id":2652,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6691:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2653,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6700:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"6691:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6686:23:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2655,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6710:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"6686:32:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2656,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"6651:68:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"expression":{"id":2657,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6723:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2658,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6732:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"6723:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"id":2659,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6742:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2660,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6751:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"6742:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2661,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"6722:38:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"src":"6651:109:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2663,"nodeType":"ExpressionStatement","src":"6651:109:21"},{"expression":{"id":2680,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"baseExpression":{"id":2664,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2643,"src":"6767:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2667,"indexExpression":{"expression":{"id":2665,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6772:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2666,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6781:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"6772:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6767:23:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2668,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6791:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"6767:32:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"baseExpression":{"id":2669,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2643,"src":"6801:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2672,"indexExpression":{"expression":{"id":2670,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6806:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2671,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6815:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"6806:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"6801:23:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2673,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6825:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"6801:32:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2674,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"6766:68:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"expression":{"id":2675,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6838:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2676,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6847:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"6838:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"id":2677,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6857:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2678,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6866:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"6857:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2679,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"6837:38:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"src":"6766:109:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2681,"nodeType":"ExpressionStatement","src":"6766:109:21"}]},"documentation":{"id":2638,"nodeType":"StructuredDocumentation","src":"6441:132:21","text":"@notice Used for initial setup of ticks list\n @param self The mapping containing all tick information for initialized ticks"},"id":2683,"implemented":true,"kind":"function","modifiers":[],"name":"initTickState","nameLocation":"6585:13:21","nodeType":"FunctionDefinition","parameters":{"id":2644,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2643,"mutability":"mutable","name":"self","nameLocation":"6630:4:21","nodeType":"VariableDeclaration","scope":2683,"src":"6599:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2642,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2639,"name":"int24","nodeType":"ElementaryTypeName","src":"6607:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"6599:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2641,"nodeType":"UserDefinedTypeName","pathNode":{"id":2640,"name":"Tick","nameLocations":["6616:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"6616:4:21"},"referencedDeclaration":2319,"src":"6616:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"}],"src":"6598:37:21"},"returnParameters":{"id":2645,"nodeType":"ParameterList","parameters":[],"src":"6645:0:21"},"scope":2842,"src":"6576:304:21","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2770,"nodeType":"Block","src":"7302:521:21","statements":[{"expression":{"id":2710,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":2698,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7309:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":2699,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7319:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2700,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"7308:20:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"expression":{"baseExpression":{"id":2701,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7332:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2703,"indexExpression":{"id":2702,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7337:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7332:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2704,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"7343:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"7332:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"baseExpression":{"id":2705,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7353:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2707,"indexExpression":{"id":2706,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7358:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7353:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2708,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"7364:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"7353:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2709,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"7331:42:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"src":"7308:65:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2711,"nodeType":"ExpressionStatement","src":"7308:65:21"},{"expression":{"id":2715,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"delete","prefix":true,"src":"7379:17:21","subExpression":{"baseExpression":{"id":2712,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7386:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2714,"indexExpression":{"id":2713,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7391:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"7386:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2716,"nodeType":"ExpressionStatement","src":"7379:17:21"},{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":2725,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2720,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2717,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7407:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":2718,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"7415:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2719,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"7424:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"7415:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7407:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2724,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2721,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7436:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":2722,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"7444:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2723,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"7453:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"7444:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7436:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"7407:54:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2764,"nodeType":"Block","src":"7613:173:21","statements":[{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2743,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2741,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7625:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":2742,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7637:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7625:20:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2749,"nodeType":"IfStatement","src":"7621:74:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2744,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"7654:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2746,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7673:20:21","memberName":"tickIsNotInitialized","nodeType":"MemberAccess","referencedDeclaration":1204,"src":"7654:39:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2747,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7654:41:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2748,"nodeType":"RevertStatement","src":"7647:48:21"}},{"expression":{"id":2755,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"baseExpression":{"id":2750,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7703:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2752,"indexExpression":{"id":2751,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7708:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7703:14:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2753,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"7718:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"7703:23:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2754,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7729:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7703:34:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":2756,"nodeType":"ExpressionStatement","src":"7703:34:21"},{"expression":{"id":2762,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"baseExpression":{"id":2757,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7745:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2759,"indexExpression":{"id":2758,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7750:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7745:14:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2760,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"7760:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"7745:23:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2761,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7771:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7745:34:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":2763,"nodeType":"ExpressionStatement","src":"7745:34:21"}]},"id":2765,"nodeType":"IfStatement","src":"7403:383:21","trueBody":{"id":2740,"nodeType":"Block","src":"7463:144:21","statements":[{"expression":{"id":2738,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"baseExpression":{"id":2726,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7536:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2728,"indexExpression":{"id":2727,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7541:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7536:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2729,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"7547:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"7536:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"baseExpression":{"id":2730,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2689,"src":"7557:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2732,"indexExpression":{"id":2731,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2691,"src":"7562:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"7557:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2733,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"7568:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"7557:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2734,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"7535:42:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"id":2735,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7581:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":2736,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7591:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2737,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"7580:20:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"src":"7535:65:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2739,"nodeType":"ExpressionStatement","src":"7535:65:21"}]}},{"expression":{"components":[{"id":2766,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"7799:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":2767,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"7809:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2768,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"7798:20:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"functionReturnParameters":2697,"id":2769,"nodeType":"Return","src":"7791:27:21"}]},"documentation":{"id":2684,"nodeType":"StructuredDocumentation","src":"6884:296:21","text":"@notice Removes tick from the linked list\n @param self The mapping containing all tick information for initialized ticks\n @param tick The tick that will be removed\n @return prevTick The previous active tick before _tick_\n @return nextTick The next active tick after _tick_"},"id":2771,"implemented":true,"kind":"function","modifiers":[],"name":"removeTick","nameLocation":"7192:10:21","nodeType":"FunctionDefinition","parameters":{"id":2692,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2689,"mutability":"mutable","name":"self","nameLocation":"7234:4:21","nodeType":"VariableDeclaration","scope":2771,"src":"7203:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2688,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2685,"name":"int24","nodeType":"ElementaryTypeName","src":"7211:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"7203:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2687,"nodeType":"UserDefinedTypeName","pathNode":{"id":2686,"name":"Tick","nameLocations":["7220:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"7220:4:21"},"referencedDeclaration":2319,"src":"7220:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"},{"constant":false,"id":2691,"mutability":"mutable","name":"tick","nameLocation":"7246:4:21","nodeType":"VariableDeclaration","scope":2771,"src":"7240:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2690,"name":"int24","nodeType":"ElementaryTypeName","src":"7240:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"7202:49:21"},"returnParameters":{"id":2697,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2694,"mutability":"mutable","name":"prevTick","nameLocation":"7276:8:21","nodeType":"VariableDeclaration","scope":2771,"src":"7270:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2693,"name":"int24","nodeType":"ElementaryTypeName","src":"7270:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2696,"mutability":"mutable","name":"nextTick","nameLocation":"7292:8:21","nodeType":"VariableDeclaration","scope":2771,"src":"7286:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2695,"name":"int24","nodeType":"ElementaryTypeName","src":"7286:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"7269:32:21"},"scope":2842,"src":"7183:640:21","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2840,"nodeType":"Block","src":"8230:314:21","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":2794,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2789,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2786,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8240:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":2787,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"8248:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2788,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"8257:8:21","memberName":"MIN_TICK","nodeType":"MemberAccess","referencedDeclaration":2851,"src":"8248:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8240:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2793,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2790,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8269:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":2791,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"8277:8:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":2792,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"8286:8:21","memberName":"MAX_TICK","nodeType":"MemberAccess","referencedDeclaration":2856,"src":"8277:17:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8269:25:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8240:54:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2796,"nodeType":"IfStatement","src":"8236:67:21","trueBody":{"functionReturnParameters":2785,"id":2795,"nodeType":"Return","src":"8296:7:21"}},{"condition":{"id":2805,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"8312:37:21","subExpression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":2803,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2799,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2797,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2781,"src":"8314:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":2798,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8325:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8314:15:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2802,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2800,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2783,"src":"8333:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"id":2801,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8344:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8333:15:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8314:34:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":2804,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"8313:36:21","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2811,"nodeType":"IfStatement","src":"8308:87:21","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2806,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"8358:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2808,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8377:16:21","memberName":"tickInvalidLinks","nodeType":"MemberAccess","referencedDeclaration":1207,"src":"8358:35:21","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2809,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8358:37:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2810,"nodeType":"RevertStatement","src":"8351:44:21"}},{"expression":{"id":2824,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"expression":{"baseExpression":{"id":2812,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2777,"src":"8402:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2814,"indexExpression":{"id":2813,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8407:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"8402:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2815,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"8413:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"8402:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"expression":{"baseExpression":{"id":2816,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2777,"src":"8423:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2818,"indexExpression":{"id":2817,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8428:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"8423:10:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2819,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"8434:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"8423:19:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2820,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"8401:42:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"components":[{"id":2821,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2781,"src":"8447:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":2822,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2783,"src":"8457:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2823,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"8446:20:21","typeDescriptions":{"typeIdentifier":"t_tuple$_t_int24_$_t_int24_$","typeString":"tuple(int24,int24)"}},"src":"8401:65:21","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2825,"nodeType":"ExpressionStatement","src":"8401:65:21"},{"expression":{"id":2831,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"baseExpression":{"id":2826,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2777,"src":"8473:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2828,"indexExpression":{"id":2827,"name":"prevTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2781,"src":"8478:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"8473:14:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2829,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"8488:8:21","memberName":"nextTick","nodeType":"MemberAccess","referencedDeclaration":2314,"src":"8473:23:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2830,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8499:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8473:30:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":2832,"nodeType":"ExpressionStatement","src":"8473:30:21"},{"expression":{"id":2838,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"baseExpression":{"id":2833,"name":"self","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2777,"src":"8509:4:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick storage ref)"}},"id":2835,"indexExpression":{"id":2834,"name":"nextTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2783,"src":"8514:8:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"8509:14:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage","typeString":"struct TickManagement.Tick storage ref"}},"id":2836,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"8524:8:21","memberName":"prevTick","nodeType":"MemberAccess","referencedDeclaration":2312,"src":"8509:23:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2837,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2779,"src":"8535:4:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8509:30:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":2839,"nodeType":"ExpressionStatement","src":"8509:30:21"}]},"documentation":{"id":2772,"nodeType":"StructuredDocumentation","src":"7827:290:21","text":"@notice Adds tick to the linked list\n @param self The mapping containing all tick information for initialized ticks\n @param tick The tick that will be inserted\n @param prevTick The previous active tick before _tick_\n @param nextTick The next active tick after _tick_"},"id":2841,"implemented":true,"kind":"function","modifiers":[],"name":"insertTick","nameLocation":"8129:10:21","nodeType":"FunctionDefinition","parameters":{"id":2784,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2777,"mutability":"mutable","name":"self","nameLocation":"8171:4:21","nodeType":"VariableDeclaration","scope":2841,"src":"8140:35:21","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":2776,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":2773,"name":"int24","nodeType":"ElementaryTypeName","src":"8148:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"8140:22:21","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":2775,"nodeType":"UserDefinedTypeName","pathNode":{"id":2774,"name":"Tick","nameLocations":["8157:4:21"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"8157:4:21"},"referencedDeclaration":2319,"src":"8157:4:21","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"internal"},{"constant":false,"id":2779,"mutability":"mutable","name":"tick","nameLocation":"8183:4:21","nodeType":"VariableDeclaration","scope":2841,"src":"8177:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2778,"name":"int24","nodeType":"ElementaryTypeName","src":"8177:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2781,"mutability":"mutable","name":"prevTick","nameLocation":"8195:8:21","nodeType":"VariableDeclaration","scope":2841,"src":"8189:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2780,"name":"int24","nodeType":"ElementaryTypeName","src":"8189:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":2783,"mutability":"mutable","name":"nextTick","nameLocation":"8211:8:21","nodeType":"VariableDeclaration","scope":2841,"src":"8205:14:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2782,"name":"int24","nodeType":"ElementaryTypeName","src":"8205:5:21","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"8139:81:21"},"returnParameters":{"id":2785,"nodeType":"ParameterList","parameters":[],"src":"8230:0:21"},"scope":2842,"src":"8120:424:21","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":2843,"src":"395:8151:21","usedErrors":[],"usedEvents":[]}],"src":"37:8510:21"},"id":21},"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol","exportedSymbols":{"IAlgebraPoolErrors":[1217],"TickMath":[3371]},"id":3372,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2844,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:22"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":2845,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3372,"sourceUnit":1218,"src":"78:51:22","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"TickMath","contractDependencies":[],"contractKind":"library","documentation":{"id":2846,"nodeType":"StructuredDocumentation","src":"131:368:22","text":"@title Math library for computing sqrt prices from ticks and vice versa\n @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n prices between 2**-128 and 2**128\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/blob/main/contracts/libraries"},"fullyImplemented":true,"id":3371,"linearizedBaseContracts":[3371],"name":"TickMath","nameLocation":"507:8:22","nodeType":"ContractDefinition","nodes":[{"constant":true,"documentation":{"id":2847,"nodeType":"StructuredDocumentation","src":"520:108:22","text":"@dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128"},"id":2851,"mutability":"constant","name":"MIN_TICK","nameLocation":"655:8:22","nodeType":"VariableDeclaration","scope":3371,"src":"631:42:22","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2848,"name":"int24","nodeType":"ElementaryTypeName","src":"631:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"value":{"id":2850,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"666:7:22","subExpression":{"hexValue":"383837323732","id":2849,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"667:6:22","typeDescriptions":{"typeIdentifier":"t_rational_887272_by_1","typeString":"int_const 887272"},"value":"887272"},"typeDescriptions":{"typeIdentifier":"t_rational_minus_887272_by_1","typeString":"int_const -887272"}},"visibility":"internal"},{"constant":true,"documentation":{"id":2852,"nodeType":"StructuredDocumentation","src":"677:107:22","text":"@dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128"},"id":2856,"mutability":"constant","name":"MAX_TICK","nameLocation":"811:8:22","nodeType":"VariableDeclaration","scope":3371,"src":"787:44:22","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2853,"name":"int24","nodeType":"ElementaryTypeName","src":"787:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"value":{"id":2855,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"822:9:22","subExpression":{"id":2854,"name":"MIN_TICK","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2851,"src":"823:8:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":true,"documentation":{"id":2857,"nodeType":"StructuredDocumentation","src":"836:116:22","text":"@dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)"},"id":2860,"mutability":"constant","name":"MIN_SQRT_RATIO","nameLocation":"981:14:22","nodeType":"VariableDeclaration","scope":3371,"src":"955:53:22","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2858,"name":"uint160","nodeType":"ElementaryTypeName","src":"955:7:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"value":{"hexValue":"34323935313238373339","id":2859,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"998:10:22","typeDescriptions":{"typeIdentifier":"t_rational_4295128739_by_1","typeString":"int_const 4295128739"},"value":"4295128739"},"visibility":"internal"},{"constant":true,"documentation":{"id":2861,"nodeType":"StructuredDocumentation","src":"1012:116:22","text":"@dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)"},"id":2864,"mutability":"constant","name":"MAX_SQRT_RATIO","nameLocation":"1157:14:22","nodeType":"VariableDeclaration","scope":3371,"src":"1131:92:22","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2862,"name":"uint160","nodeType":"ElementaryTypeName","src":"1131:7:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"value":{"hexValue":"31343631343436373033343835323130313033323837323733303532323033393838383232333738373233393730333432","id":2863,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1174:49:22","typeDescriptions":{"typeIdentifier":"t_rational_1461446703485210103287273052203988822378723970342_by_1","typeString":"int_const 1461...(41 digits omitted)...0342"},"value":"1461446703485210103287273052203988822378723970342"},"visibility":"internal"},{"body":{"id":3228,"nodeType":"Block","src":"1591:2618:22","statements":[{"id":3227,"nodeType":"UncheckedBlock","src":"1597:2608:22","statements":[{"assignments":[2873],"declarations":[{"constant":false,"id":2873,"mutability":"mutable","name":"absTickMask","nameLocation":"1644:11:22","nodeType":"VariableDeclaration","scope":3227,"src":"1638:17:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2872,"name":"int24","nodeType":"ElementaryTypeName","src":"1638:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"id":2880,"initialValue":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2879,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2874,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2867,"src":"1658:4:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_rational_23_by_1","typeString":"int_const 23"},"id":2877,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"3234","id":2875,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1667:2:22","typeDescriptions":{"typeIdentifier":"t_rational_24_by_1","typeString":"int_const 24"},"value":"24"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"hexValue":"31","id":2876,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1672:1:22","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"1667:6:22","typeDescriptions":{"typeIdentifier":"t_rational_23_by_1","typeString":"int_const 23"}}],"id":2878,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"1666:8:22","typeDescriptions":{"typeIdentifier":"t_rational_23_by_1","typeString":"int_const 23"}},"src":"1658:16:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"VariableDeclarationStatement","src":"1638:36:22"},{"assignments":[2882],"declarations":[{"constant":false,"id":2882,"mutability":"mutable","name":"absTick","nameLocation":"1690:7:22","nodeType":"VariableDeclaration","scope":3227,"src":"1682:15:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2881,"name":"uint256","nodeType":"ElementaryTypeName","src":"1682:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":2892,"initialValue":{"arguments":[{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2890,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":2887,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2885,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2867,"src":"1708:4:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"+","rightExpression":{"id":2886,"name":"absTickMask","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2873,"src":"1715:11:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1708:18:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"id":2888,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1707:20:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"^","rightExpression":{"id":2889,"name":"absTickMask","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2873,"src":"1730:11:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"1707:34:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"id":2884,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1700:6:22","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"},"typeName":{"id":2883,"name":"uint24","nodeType":"ElementaryTypeName","src":"1700:6:22","typeDescriptions":{}}},"id":2891,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1700:42:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"VariableDeclarationStatement","src":"1682:60:22"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2898,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2893,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"1754:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"arguments":[{"id":2896,"name":"MAX_TICK","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2856,"src":"1771:8:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"id":2895,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1764:6:22","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"},"typeName":{"id":2894,"name":"uint24","nodeType":"ElementaryTypeName","src":"1764:6:22","typeDescriptions":{}}},"id":2897,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1764:16:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1754:26:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2904,"nodeType":"IfStatement","src":"1750:74:22","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2899,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"1789:18:22","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":2901,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1808:14:22","memberName":"tickOutOfRange","nodeType":"MemberAccess","referencedDeclaration":1213,"src":"1789:33:22","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":2902,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1789:35:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2903,"nodeType":"RevertStatement","src":"1782:42:22"}},{"assignments":[2906],"declarations":[{"constant":false,"id":2906,"mutability":"mutable","name":"ratio","nameLocation":"1841:5:22","nodeType":"VariableDeclaration","scope":3227,"src":"1833:13:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2905,"name":"uint256","nodeType":"ElementaryTypeName","src":"1833:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":2908,"initialValue":{"hexValue":"3078313030303030303030303030303030303030303030303030303030303030303030","id":2907,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1849:35:22","typeDescriptions":{"typeIdentifier":"t_rational_340282366920938463463374607431768211456_by_1","typeString":"int_const 3402...(31 digits omitted)...1456"},"value":"0x100000000000000000000000000000000"},"nodeType":"VariableDeclarationStatement","src":"1833:51:22"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2913,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2911,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2909,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"1896:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307831","id":2910,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1906:3:22","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"0x1"},"src":"1896:13:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2912,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1913:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1896:18:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2918,"nodeType":"IfStatement","src":"1892:66:22","trueBody":{"expression":{"id":2916,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2914,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"1916:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"30786666666362393333626436666164333761613264313632643161353934303031","id":2915,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1924:34:22","typeDescriptions":{"typeIdentifier":"t_rational_340265354078544963557816517032075149313_by_1","typeString":"int_const 3402...(31 digits omitted)...9313"},"value":"0xfffcb933bd6fad37aa2d162d1a594001"},"src":"1916:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2917,"nodeType":"ExpressionStatement","src":"1916:42:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2923,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2921,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2919,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"1970:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307832","id":2920,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1980:3:22","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"0x2"},"src":"1970:13:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2922,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1987:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1970:18:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2933,"nodeType":"IfStatement","src":"1966:83:22","trueBody":{"expression":{"id":2931,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2924,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"1990:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2930,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2927,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2925,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"1999:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666663937323732333733643431333235396134363939303538306532313361","id":2926,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2007:34:22","typeDescriptions":{"typeIdentifier":"t_rational_340248342086729790484326174814286782778_by_1","typeString":"int_const 3402...(31 digits omitted)...2778"},"value":"0xfff97272373d413259a46990580e213a"},"src":"1999:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2928,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1998:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":2929,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2046:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"1998:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"1990:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2932,"nodeType":"ExpressionStatement","src":"1990:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2938,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2936,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2934,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2061:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307834","id":2935,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2071:3:22","typeDescriptions":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"},"value":"0x4"},"src":"2061:13:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2937,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2078:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2061:18:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2948,"nodeType":"IfStatement","src":"2057:83:22","trueBody":{"expression":{"id":2946,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2939,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2081:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2945,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2942,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2940,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2090:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666663265353066356636353639333265663132333537636633633766646363","id":2941,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2098:34:22","typeDescriptions":{"typeIdentifier":"t_rational_340214320654664324051920982716015181260_by_1","typeString":"int_const 3402...(31 digits omitted)...1260"},"value":"0xfff2e50f5f656932ef12357cf3c7fdcc"},"src":"2090:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2943,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2089:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":2944,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2137:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2089:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2081:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2947,"nodeType":"ExpressionStatement","src":"2081:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2953,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2951,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2949,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2152:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307838","id":2950,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2162:3:22","typeDescriptions":{"typeIdentifier":"t_rational_8_by_1","typeString":"int_const 8"},"value":"0x8"},"src":"2152:13:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2952,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2169:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2152:18:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2963,"nodeType":"IfStatement","src":"2148:83:22","trueBody":{"expression":{"id":2961,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2954,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2172:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2960,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2957,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2955,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2181:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666653563616361376531306534653631633336323465616130393431636430","id":2956,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2189:34:22","typeDescriptions":{"typeIdentifier":"t_rational_340146287995602323631171512101879684304_by_1","typeString":"int_const 3401...(31 digits omitted)...4304"},"value":"0xffe5caca7e10e4e61c3624eaa0941cd0"},"src":"2181:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2958,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2180:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":2959,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2228:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2180:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2172:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2962,"nodeType":"ExpressionStatement","src":"2172:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2968,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2966,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2964,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2243:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783130","id":2965,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2253:4:22","typeDescriptions":{"typeIdentifier":"t_rational_16_by_1","typeString":"int_const 16"},"value":"0x10"},"src":"2243:14:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2967,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2261:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2243:19:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2978,"nodeType":"IfStatement","src":"2239:84:22","trueBody":{"expression":{"id":2976,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2969,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2264:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2975,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2972,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2970,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2273:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666636239383433643630663631353963396462353838333563393236363434","id":2971,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2281:34:22","typeDescriptions":{"typeIdentifier":"t_rational_340010263488231146823593991679159461444_by_1","typeString":"int_const 3400...(31 digits omitted)...1444"},"value":"0xffcb9843d60f6159c9db58835c926644"},"src":"2273:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2973,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2272:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":2974,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2320:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2272:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2264:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2977,"nodeType":"ExpressionStatement","src":"2264:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2983,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2981,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2979,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2335:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783230","id":2980,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2345:4:22","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"value":"0x20"},"src":"2335:14:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2982,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2353:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2335:19:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2993,"nodeType":"IfStatement","src":"2331:84:22","trueBody":{"expression":{"id":2991,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2984,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2356:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2990,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2987,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2985,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2365:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666393733623431666139386330383134373265363839366466623235346330","id":2986,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2373:34:22","typeDescriptions":{"typeIdentifier":"t_rational_339738377640345403697157401104375502016_by_1","typeString":"int_const 3397...(31 digits omitted)...2016"},"value":"0xff973b41fa98c081472e6896dfb254c0"},"src":"2365:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2988,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2364:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":2989,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2412:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2364:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2356:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":2992,"nodeType":"ExpressionStatement","src":"2356:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2998,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2996,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2994,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2427:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783430","id":2995,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2437:4:22","typeDescriptions":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"},"value":"0x40"},"src":"2427:14:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":2997,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2445:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2427:19:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3008,"nodeType":"IfStatement","src":"2423:84:22","trueBody":{"expression":{"id":3006,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2999,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2448:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3005,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3002,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3000,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2457:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786666326561313634363663393661333834336563373862333236623532383631","id":3001,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2465:34:22","typeDescriptions":{"typeIdentifier":"t_rational_339195258003219555707034227454543997025_by_1","typeString":"int_const 3391...(31 digits omitted)...7025"},"value":"0xff2ea16466c96a3843ec78b326b52861"},"src":"2457:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3003,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2456:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3004,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2504:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2456:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2448:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3007,"nodeType":"ExpressionStatement","src":"2448:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3013,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3011,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3009,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2519:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783830","id":3010,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2529:4:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"0x80"},"src":"2519:14:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3012,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2537:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2519:19:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3023,"nodeType":"IfStatement","src":"2515:84:22","trueBody":{"expression":{"id":3021,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3014,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2540:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3020,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3017,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3015,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2549:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786665356465653034366139396132613831316334363166313936396333303533","id":3016,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2557:34:22","typeDescriptions":{"typeIdentifier":"t_rational_338111622100601834656805679988414885971_by_1","typeString":"int_const 3381...(31 digits omitted)...5971"},"value":"0xfe5dee046a99a2a811c461f1969c3053"},"src":"2549:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3018,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2548:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3019,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2596:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2548:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2540:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3022,"nodeType":"ExpressionStatement","src":"2540:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3028,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3026,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3024,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2611:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"3078313030","id":3025,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2621:5:22","typeDescriptions":{"typeIdentifier":"t_rational_256_by_1","typeString":"int_const 256"},"value":"0x100"},"src":"2611:15:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3027,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2630:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2611:20:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3038,"nodeType":"IfStatement","src":"2607:85:22","trueBody":{"expression":{"id":3036,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3029,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2633:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3035,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3032,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3030,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2642:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786663626538366337393030613838616564636666633833623437396161336134","id":3031,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2650:34:22","typeDescriptions":{"typeIdentifier":"t_rational_335954724994790223023589805789778977700_by_1","typeString":"int_const 3359...(31 digits omitted)...7700"},"value":"0xfcbe86c7900a88aedcffc83b479aa3a4"},"src":"2642:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3033,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2641:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3034,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2689:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2641:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2633:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3037,"nodeType":"ExpressionStatement","src":"2633:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3043,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3041,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3039,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2704:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"3078323030","id":3040,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2714:5:22","typeDescriptions":{"typeIdentifier":"t_rational_512_by_1","typeString":"int_const 512"},"value":"0x200"},"src":"2704:15:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3042,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2723:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2704:20:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3053,"nodeType":"IfStatement","src":"2700:85:22","trueBody":{"expression":{"id":3051,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3044,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2726:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3050,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3047,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3045,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2735:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786639383761373235336163343133313736663262303734636637383135653534","id":3046,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2743:34:22","typeDescriptions":{"typeIdentifier":"t_rational_331682121138379247127172139078559817300_by_1","typeString":"int_const 3316...(31 digits omitted)...7300"},"value":"0xf987a7253ac413176f2b074cf7815e54"},"src":"2735:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3048,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2734:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3049,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2782:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2734:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2726:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3052,"nodeType":"ExpressionStatement","src":"2726:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3058,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3056,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3054,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2797:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"3078343030","id":3055,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2807:5:22","typeDescriptions":{"typeIdentifier":"t_rational_1024_by_1","typeString":"int_const 1024"},"value":"0x400"},"src":"2797:15:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3057,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2816:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2797:20:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3068,"nodeType":"IfStatement","src":"2793:85:22","trueBody":{"expression":{"id":3066,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3059,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2819:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3065,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3062,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3060,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2828:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786633333932623038323262373030303539343063376133393865346237306633","id":3061,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2836:34:22","typeDescriptions":{"typeIdentifier":"t_rational_323299236684853023288211250268160618739_by_1","typeString":"int_const 3232...(31 digits omitted)...8739"},"value":"0xf3392b0822b70005940c7a398e4b70f3"},"src":"2828:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3063,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2827:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3064,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2875:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2827:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2819:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3067,"nodeType":"ExpressionStatement","src":"2819:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3073,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3071,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3069,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2890:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"3078383030","id":3070,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2900:5:22","typeDescriptions":{"typeIdentifier":"t_rational_2048_by_1","typeString":"int_const 2048"},"value":"0x800"},"src":"2890:15:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3072,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2909:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2890:20:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3083,"nodeType":"IfStatement","src":"2886:85:22","trueBody":{"expression":{"id":3081,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3074,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2912:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3080,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3077,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3075,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"2921:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786537313539343735613263323962373434336232396337666136653838396439","id":3076,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2929:34:22","typeDescriptions":{"typeIdentifier":"t_rational_307163716377032989948697243942600083929_by_1","typeString":"int_const 3071...(31 digits omitted)...3929"},"value":"0xe7159475a2c29b7443b29c7fa6e889d9"},"src":"2921:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3078,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2920:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3079,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2968:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"2920:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2912:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3082,"nodeType":"ExpressionStatement","src":"2912:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3088,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3086,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3084,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"2983:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307831303030","id":3085,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2993:6:22","typeDescriptions":{"typeIdentifier":"t_rational_4096_by_1","typeString":"int_const 4096"},"value":"0x1000"},"src":"2983:16:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3087,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3003:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2983:21:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3098,"nodeType":"IfStatement","src":"2979:86:22","trueBody":{"expression":{"id":3096,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3089,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3006:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3095,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3092,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3090,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3015:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786430393766336264666432303232623838343561643866373932616135383235","id":3091,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3023:34:22","typeDescriptions":{"typeIdentifier":"t_rational_277268403626896220162999269216087595045_by_1","typeString":"int_const 2772...(31 digits omitted)...5045"},"value":"0xd097f3bdfd2022b8845ad8f792aa5825"},"src":"3015:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3093,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3014:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3094,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3062:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3014:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3006:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3097,"nodeType":"ExpressionStatement","src":"3006:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3103,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3101,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3099,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3077:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307832303030","id":3100,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3087:6:22","typeDescriptions":{"typeIdentifier":"t_rational_8192_by_1","typeString":"int_const 8192"},"value":"0x2000"},"src":"3077:16:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3102,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3097:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3077:21:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3113,"nodeType":"IfStatement","src":"3073:86:22","trueBody":{"expression":{"id":3111,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3104,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3100:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3110,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3107,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3105,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3109:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30786139663734363436326438373066646638613635646331663930653036316535","id":3106,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3117:34:22","typeDescriptions":{"typeIdentifier":"t_rational_225923453940442621947126027127485391333_by_1","typeString":"int_const 2259...(31 digits omitted)...1333"},"value":"0xa9f746462d870fdf8a65dc1f90e061e5"},"src":"3109:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3108,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3108:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3109,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3156:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3108:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3100:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3112,"nodeType":"ExpressionStatement","src":"3100:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3118,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3116,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3114,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3171:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307834303030","id":3115,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3181:6:22","typeDescriptions":{"typeIdentifier":"t_rational_16384_by_1","typeString":"int_const 16384"},"value":"0x4000"},"src":"3171:16:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3117,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3191:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3171:21:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3128,"nodeType":"IfStatement","src":"3167:86:22","trueBody":{"expression":{"id":3126,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3119,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3194:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3125,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3122,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3120,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3203:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30783730643836396131353664326131623839306262336466363262616633326637","id":3121,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3211:34:22","typeDescriptions":{"typeIdentifier":"t_rational_149997214084966997727330242082538205943_by_1","typeString":"int_const 1499...(31 digits omitted)...5943"},"value":"0x70d869a156d2a1b890bb3df62baf32f7"},"src":"3203:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3123,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3202:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3124,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3250:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3202:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3194:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3127,"nodeType":"ExpressionStatement","src":"3194:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3133,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3131,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3129,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3265:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"307838303030","id":3130,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3275:6:22","typeDescriptions":{"typeIdentifier":"t_rational_32768_by_1","typeString":"int_const 32768"},"value":"0x8000"},"src":"3265:16:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3132,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3285:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3265:21:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3143,"nodeType":"IfStatement","src":"3261:86:22","trueBody":{"expression":{"id":3141,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3134,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3288:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3140,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3137,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3135,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3297:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30783331626531333566393764303866643938313233313530353534326663666136","id":3136,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3305:34:22","typeDescriptions":{"typeIdentifier":"t_rational_66119101136024775622716233608466517926_by_1","typeString":"int_const 6611...(30 digits omitted)...7926"},"value":"0x31be135f97d08fd981231505542fcfa6"},"src":"3297:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3138,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3296:44:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3139,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3344:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3296:51:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3288:59:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3142,"nodeType":"ExpressionStatement","src":"3288:59:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3148,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3146,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3144,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3359:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783130303030","id":3145,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3369:7:22","typeDescriptions":{"typeIdentifier":"t_rational_65536_by_1","typeString":"int_const 65536"},"value":"0x10000"},"src":"3359:17:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3147,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3380:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3359:22:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3158,"nodeType":"IfStatement","src":"3355:86:22","trueBody":{"expression":{"id":3156,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3149,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3383:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3155,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3152,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3150,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3392:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"307839616135303862356237613834653163363737646535346633653939626339","id":3151,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3400:33:22","typeDescriptions":{"typeIdentifier":"t_rational_12847376061809297530290974190478138313_by_1","typeString":"int_const 1284...(30 digits omitted)...8313"},"value":"0x9aa508b5b7a84e1c677de54f3e99bc9"},"src":"3392:41:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3153,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3391:43:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3154,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3438:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3391:50:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3383:58:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3157,"nodeType":"ExpressionStatement","src":"3383:58:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3163,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3161,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3159,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3453:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783230303030","id":3160,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3463:7:22","typeDescriptions":{"typeIdentifier":"t_rational_131072_by_1","typeString":"int_const 131072"},"value":"0x20000"},"src":"3453:17:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3162,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3474:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3453:22:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3173,"nodeType":"IfStatement","src":"3449:85:22","trueBody":{"expression":{"id":3171,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3164,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3477:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3170,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3167,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3165,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3486:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"3078356436616638646564623831313936363939633332393232356565363034","id":3166,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3494:32:22","typeDescriptions":{"typeIdentifier":"t_rational_485053260817066172746253684029974020_by_1","typeString":"int_const 4850...(28 digits omitted)...4020"},"value":"0x5d6af8dedb81196699c329225ee604"},"src":"3486:40:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3168,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3485:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3169,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3531:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3485:49:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3477:57:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3172,"nodeType":"ExpressionStatement","src":"3477:57:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3176,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3174,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3546:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"30783430303030","id":3175,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3557:7:22","typeDescriptions":{"typeIdentifier":"t_rational_262144_by_1","typeString":"int_const 262144"},"value":"0x40000"},"src":"3546:18:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3208,"nodeType":"IfStatement","src":"3542:214:22","trueBody":{"id":3207,"nodeType":"Block","src":"3566:190:22","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3181,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3179,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3177,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3580:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783430303030","id":3178,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3590:7:22","typeDescriptions":{"typeIdentifier":"t_rational_262144_by_1","typeString":"int_const 262144"},"value":"0x40000"},"src":"3580:17:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3180,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3601:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3580:22:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3191,"nodeType":"IfStatement","src":"3576:83:22","trueBody":{"expression":{"id":3189,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3182,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3604:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3188,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3185,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3183,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3613:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"307832323136653538346635666131656139323630343162656466653938","id":3184,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3621:30:22","typeDescriptions":{"typeIdentifier":"t_rational_691415978906521570653435304214168_by_1","typeString":"int_const 6914...(25 digits omitted)...4168"},"value":"0x2216e584f5fa1ea926041bedfe98"},"src":"3613:38:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3186,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3612:40:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3187,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3656:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3612:47:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3604:55:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3190,"nodeType":"ExpressionStatement","src":"3604:55:22"}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3196,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3194,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3192,"name":"absTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2882,"src":"3673:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"hexValue":"30783830303030","id":3193,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3683:7:22","typeDescriptions":{"typeIdentifier":"t_rational_524288_by_1","typeString":"int_const 524288"},"value":"0x80000"},"src":"3673:17:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":3195,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3694:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3673:22:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3206,"nodeType":"IfStatement","src":"3669:78:22","trueBody":{"expression":{"id":3204,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3197,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3697:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3203,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3200,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3198,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"3706:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"30783438613137303339316637646334323434346538666132","id":3199,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3714:25:22","typeDescriptions":{"typeIdentifier":"t_rational_1404880482679654955896180642_by_1","typeString":"int_const 1404880482679654955896180642"},"value":"0x48a170391f7dc42444e8fa2"},"src":"3706:33:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3201,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3705:35:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3202,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3744:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"3705:42:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3697:50:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3205,"nodeType":"ExpressionStatement","src":"3697:50:22"}}]}},{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":3211,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3209,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2867,"src":"3768:4:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":3210,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3775:1:22","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3768:8:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3214,"nodeType":"IfStatement","src":"3764:90:22","trueBody":{"id":3213,"nodeType":"Block","src":"3778:76:22","statements":[{"AST":{"nodeType":"YulBlock","src":"3797:49:22","statements":[{"nodeType":"YulAssignment","src":"3809:27:22","value":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3826:1:22","type":"","value":"0"}],"functionName":{"name":"not","nodeType":"YulIdentifier","src":"3822:3:22"},"nodeType":"YulFunctionCall","src":"3822:6:22"},{"name":"ratio","nodeType":"YulIdentifier","src":"3830:5:22"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"3818:3:22"},"nodeType":"YulFunctionCall","src":"3818:18:22"},"variableNames":[{"name":"ratio","nodeType":"YulIdentifier","src":"3809:5:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":2906,"isOffset":false,"isSlot":false,"src":"3809:5:22","valueSize":1},{"declaration":2906,"isOffset":false,"isSlot":false,"src":"3830:5:22","valueSize":1}],"id":3212,"nodeType":"InlineAssembly","src":"3788:58:22"}]}},{"expression":{"id":3225,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3215,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2870,"src":"4155:5:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3223,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3220,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3218,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2906,"src":"4172:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"+","rightExpression":{"hexValue":"30784646464646464646","id":3219,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4180:10:22","typeDescriptions":{"typeIdentifier":"t_rational_4294967295_by_1","typeString":"int_const 4294967295"},"value":"0xFFFFFFFF"},"src":"4172:18:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3221,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4171:20:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"3332","id":3222,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4195:2:22","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"value":"32"},"src":"4171:26:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":3217,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4163:7:22","typeDescriptions":{"typeIdentifier":"t_type$_t_uint160_$","typeString":"type(uint160)"},"typeName":{"id":3216,"name":"uint160","nodeType":"ElementaryTypeName","src":"4163:7:22","typeDescriptions":{}}},"id":3224,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4163:35:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"4155:43:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"id":3226,"nodeType":"ExpressionStatement","src":"4155:43:22"}]}]},"documentation":{"id":2865,"nodeType":"StructuredDocumentation","src":"1228:282:22","text":"@notice Calculates sqrt(1.0001^tick) * 2^96\n @dev Throws if |tick| > max tick\n @param tick The input tick for the above formula\n @return price A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\n at the given tick"},"id":3229,"implemented":true,"kind":"function","modifiers":[],"name":"getSqrtRatioAtTick","nameLocation":"1522:18:22","nodeType":"FunctionDefinition","parameters":{"id":2868,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2867,"mutability":"mutable","name":"tick","nameLocation":"1547:4:22","nodeType":"VariableDeclaration","scope":3229,"src":"1541:10:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":2866,"name":"int24","nodeType":"ElementaryTypeName","src":"1541:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1540:12:22"},"returnParameters":{"id":2871,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2870,"mutability":"mutable","name":"price","nameLocation":"1584:5:22","nodeType":"VariableDeclaration","scope":3229,"src":"1576:13:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2869,"name":"uint160","nodeType":"ElementaryTypeName","src":"1576:7:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"1575:15:22"},"scope":3371,"src":"1513:2696:22","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":3369,"nodeType":"Block","src":"4680:3796:22","statements":[{"id":3368,"nodeType":"UncheckedBlock","src":"4686:3786:22","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":3243,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3239,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3237,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3232,"src":"4806:5:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":3238,"name":"MIN_SQRT_RATIO","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2860,"src":"4814:14:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"4806:22:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3242,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3240,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3232,"src":"4832:5:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":3241,"name":"MAX_SQRT_RATIO","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2864,"src":"4841:14:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"4832:23:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4806:49:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3249,"nodeType":"IfStatement","src":"4802:98:22","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":3244,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"4864:18:22","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":3246,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4883:15:22","memberName":"priceOutOfRange","nodeType":"MemberAccess","referencedDeclaration":1216,"src":"4864:34:22","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":3247,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4864:36:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3248,"nodeType":"RevertStatement","src":"4857:43:22"}},{"assignments":[3251],"declarations":[{"constant":false,"id":3251,"mutability":"mutable","name":"ratio","nameLocation":"4916:5:22","nodeType":"VariableDeclaration","scope":3368,"src":"4908:13:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3250,"name":"uint256","nodeType":"ElementaryTypeName","src":"4908:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3258,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3257,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3254,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3232,"src":"4932:5:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"}],"id":3253,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4924:7:22","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":3252,"name":"uint256","nodeType":"ElementaryTypeName","src":"4924:7:22","typeDescriptions":{}}},"id":3255,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4924:14:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"3332","id":3256,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4942:2:22","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"value":"32"},"src":"4924:20:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"4908:36:22"},{"assignments":[3260],"declarations":[{"constant":false,"id":3260,"mutability":"mutable","name":"r","nameLocation":"4961:1:22","nodeType":"VariableDeclaration","scope":3368,"src":"4953:9:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3259,"name":"uint256","nodeType":"ElementaryTypeName","src":"4953:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3262,"initialValue":{"id":3261,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3251,"src":"4965:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"4953:17:22"},{"assignments":[3264],"declarations":[{"constant":false,"id":3264,"mutability":"mutable","name":"msb","nameLocation":"4986:3:22","nodeType":"VariableDeclaration","scope":3368,"src":"4978:11:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3263,"name":"uint256","nodeType":"ElementaryTypeName","src":"4978:7:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3265,"nodeType":"VariableDeclarationStatement","src":"4978:11:22"},{"AST":{"nodeType":"YulBlock","src":"5007:125:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5017:58:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5030:1:22","type":"","value":"7"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5036:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5039:34:22","type":"","value":"0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5033:2:22"},"nodeType":"YulFunctionCall","src":"5033:41:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5026:3:22"},"nodeType":"YulFunctionCall","src":"5026:49:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5021:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5084:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5094:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5099:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5091:2:22"},"nodeType":"YulFunctionCall","src":"5091:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5084:3:22"}]},{"nodeType":"YulAssignment","src":"5110:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5119:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5122:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5115:3:22"},"nodeType":"YulFunctionCall","src":"5115:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5110:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5084:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5094:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5036:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5110:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5122:1:22","valueSize":1}],"id":3266,"nodeType":"InlineAssembly","src":"4998:134:22"},{"AST":{"nodeType":"YulBlock","src":"5148:109:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5158:42:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5171:1:22","type":"","value":"6"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5177:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5180:18:22","type":"","value":"0xFFFFFFFFFFFFFFFF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5174:2:22"},"nodeType":"YulFunctionCall","src":"5174:25:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5167:3:22"},"nodeType":"YulFunctionCall","src":"5167:33:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5162:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5209:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5219:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5224:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5216:2:22"},"nodeType":"YulFunctionCall","src":"5216:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5209:3:22"}]},{"nodeType":"YulAssignment","src":"5235:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5244:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5247:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5240:3:22"},"nodeType":"YulFunctionCall","src":"5240:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5235:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5209:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5219:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5177:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5235:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5247:1:22","valueSize":1}],"id":3267,"nodeType":"InlineAssembly","src":"5139:118:22"},{"AST":{"nodeType":"YulBlock","src":"5273:101:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5283:34:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5296:1:22","type":"","value":"5"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5302:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5305:10:22","type":"","value":"0xFFFFFFFF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5299:2:22"},"nodeType":"YulFunctionCall","src":"5299:17:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5292:3:22"},"nodeType":"YulFunctionCall","src":"5292:25:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5287:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5326:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5336:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5341:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5333:2:22"},"nodeType":"YulFunctionCall","src":"5333:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5326:3:22"}]},{"nodeType":"YulAssignment","src":"5352:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5361:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5364:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5357:3:22"},"nodeType":"YulFunctionCall","src":"5357:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5352:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5326:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5336:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5302:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5352:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5364:1:22","valueSize":1}],"id":3268,"nodeType":"InlineAssembly","src":"5264:110:22"},{"AST":{"nodeType":"YulBlock","src":"5390:97:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5400:30:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5413:1:22","type":"","value":"4"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5419:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5422:6:22","type":"","value":"0xFFFF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5416:2:22"},"nodeType":"YulFunctionCall","src":"5416:13:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5409:3:22"},"nodeType":"YulFunctionCall","src":"5409:21:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5404:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5439:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5449:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5454:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5446:2:22"},"nodeType":"YulFunctionCall","src":"5446:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5439:3:22"}]},{"nodeType":"YulAssignment","src":"5465:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5474:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5477:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5470:3:22"},"nodeType":"YulFunctionCall","src":"5470:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5465:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5439:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5449:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5419:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5465:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5477:1:22","valueSize":1}],"id":3269,"nodeType":"InlineAssembly","src":"5381:106:22"},{"AST":{"nodeType":"YulBlock","src":"5503:95:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5513:28:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5526:1:22","type":"","value":"3"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5532:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5535:4:22","type":"","value":"0xFF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5529:2:22"},"nodeType":"YulFunctionCall","src":"5529:11:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5522:3:22"},"nodeType":"YulFunctionCall","src":"5522:19:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5517:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5550:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5560:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5565:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5557:2:22"},"nodeType":"YulFunctionCall","src":"5557:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5550:3:22"}]},{"nodeType":"YulAssignment","src":"5576:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5585:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5588:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5581:3:22"},"nodeType":"YulFunctionCall","src":"5581:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5576:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5550:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5560:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5532:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5576:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5588:1:22","valueSize":1}],"id":3270,"nodeType":"InlineAssembly","src":"5494:104:22"},{"AST":{"nodeType":"YulBlock","src":"5614:94:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5624:27:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5637:1:22","type":"","value":"2"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5643:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5646:3:22","type":"","value":"0xF"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5640:2:22"},"nodeType":"YulFunctionCall","src":"5640:10:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5633:3:22"},"nodeType":"YulFunctionCall","src":"5633:18:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5628:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5660:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5670:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5675:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5667:2:22"},"nodeType":"YulFunctionCall","src":"5667:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5660:3:22"}]},{"nodeType":"YulAssignment","src":"5686:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5695:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5698:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5691:3:22"},"nodeType":"YulFunctionCall","src":"5691:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5686:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5660:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5670:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5643:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5686:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5698:1:22","valueSize":1}],"id":3271,"nodeType":"InlineAssembly","src":"5605:103:22"},{"AST":{"nodeType":"YulBlock","src":"5724:94:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5734:27:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5747:1:22","type":"","value":"1"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5753:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5756:3:22","type":"","value":"0x3"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5750:2:22"},"nodeType":"YulFunctionCall","src":"5750:10:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"5743:3:22"},"nodeType":"YulFunctionCall","src":"5743:18:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5738:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5770:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5780:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5785:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5777:2:22"},"nodeType":"YulFunctionCall","src":"5777:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5770:3:22"}]},{"nodeType":"YulAssignment","src":"5796:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"5805:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"5808:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"5801:3:22"},"nodeType":"YulFunctionCall","src":"5801:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"5796:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5770:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5780:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5753:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5796:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5808:1:22","valueSize":1}],"id":3272,"nodeType":"InlineAssembly","src":"5715:103:22"},{"AST":{"nodeType":"YulBlock","src":"5834:63:22","statements":[{"nodeType":"YulVariableDeclaration","src":"5844:19:22","value":{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"5856:1:22"},{"kind":"number","nodeType":"YulLiteral","src":"5859:3:22","type":"","value":"0x1"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5853:2:22"},"nodeType":"YulFunctionCall","src":"5853:10:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"5848:1:22","type":""}]},{"nodeType":"YulAssignment","src":"5872:17:22","value":{"arguments":[{"name":"msb","nodeType":"YulIdentifier","src":"5882:3:22"},{"name":"f","nodeType":"YulIdentifier","src":"5887:1:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"5879:2:22"},"nodeType":"YulFunctionCall","src":"5879:10:22"},"variableNames":[{"name":"msb","nodeType":"YulIdentifier","src":"5872:3:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5872:3:22","valueSize":1},{"declaration":3264,"isOffset":false,"isSlot":false,"src":"5882:3:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"5856:1:22","valueSize":1}],"id":3273,"nodeType":"InlineAssembly","src":"5825:72:22"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3276,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3274,"name":"msb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3264,"src":"5909:3:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"313238","id":3275,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5916:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"5909:10:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"expression":{"id":3293,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3286,"name":"r","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3260,"src":"5958:1:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3292,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3287,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3251,"src":"5962:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3290,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"hexValue":"313237","id":3288,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5972:3:22","typeDescriptions":{"typeIdentifier":"t_rational_127_by_1","typeString":"int_const 127"},"value":"127"},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":3289,"name":"msb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3264,"src":"5978:3:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5972:9:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3291,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"5971:11:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5962:20:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5958:24:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3294,"nodeType":"ExpressionStatement","src":"5958:24:22"},"id":3295,"nodeType":"IfStatement","src":"5905:77:22","trueBody":{"expression":{"id":3284,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3277,"name":"r","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3260,"src":"5921:1:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3283,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3278,"name":"ratio","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3251,"src":"5925:5:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3281,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3279,"name":"msb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3264,"src":"5935:3:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"hexValue":"313237","id":3280,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5941:3:22","typeDescriptions":{"typeIdentifier":"t_rational_127_by_1","typeString":"int_const 127"},"value":"127"},"src":"5935:9:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3282,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"5934:11:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5925:20:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5921:24:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3285,"nodeType":"ExpressionStatement","src":"5921:24:22"}},{"assignments":[3297],"declarations":[{"constant":false,"id":3297,"mutability":"mutable","name":"log_2","nameLocation":"5998:5:22","nodeType":"VariableDeclaration","scope":3368,"src":"5991:12:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":3296,"name":"int256","nodeType":"ElementaryTypeName","src":"5991:6:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"id":3307,"initialValue":{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3306,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3303,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3300,"name":"msb","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3264,"src":"6014:3:22","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":3299,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6007:6:22","typeDescriptions":{"typeIdentifier":"t_type$_t_int256_$","typeString":"type(int256)"},"typeName":{"id":3298,"name":"int256","nodeType":"ElementaryTypeName","src":"6007:6:22","typeDescriptions":{}}},"id":3301,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6007:11:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"hexValue":"313238","id":3302,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6021:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"6007:17:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"id":3304,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"6006:19:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"3634","id":3305,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6029:2:22","typeDescriptions":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"},"value":"64"},"src":"6006:25:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"VariableDeclarationStatement","src":"5991:40:22"},{"AST":{"nodeType":"YulBlock","src":"6049:133:22","statements":[{"nodeType":"YulAssignment","src":"6059:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6068:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6077:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6080:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6073:3:22"},"nodeType":"YulFunctionCall","src":"6073:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6064:3:22"},"nodeType":"YulFunctionCall","src":"6064:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6059:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6092:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6105:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6110:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6101:3:22"},"nodeType":"YulFunctionCall","src":"6101:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6096:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6121:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6133:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6144:2:22","type":"","value":"63"},{"name":"f","nodeType":"YulIdentifier","src":"6148:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6140:3:22"},"nodeType":"YulFunctionCall","src":"6140:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6130:2:22"},"nodeType":"YulFunctionCall","src":"6130:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6121:5:22"}]},{"nodeType":"YulAssignment","src":"6160:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6169:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6172:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6165:3:22"},"nodeType":"YulFunctionCall","src":"6165:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6160:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6121:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6133:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6059:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6077:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6080:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6110:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6160:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6172:1:22","valueSize":1}],"id":3308,"nodeType":"InlineAssembly","src":"6040:142:22"},{"AST":{"nodeType":"YulBlock","src":"6198:133:22","statements":[{"nodeType":"YulAssignment","src":"6208:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6217:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6226:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6229:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6222:3:22"},"nodeType":"YulFunctionCall","src":"6222:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6213:3:22"},"nodeType":"YulFunctionCall","src":"6213:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6208:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6241:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6254:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6259:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6250:3:22"},"nodeType":"YulFunctionCall","src":"6250:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6245:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6270:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6282:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6293:2:22","type":"","value":"62"},{"name":"f","nodeType":"YulIdentifier","src":"6297:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6289:3:22"},"nodeType":"YulFunctionCall","src":"6289:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6279:2:22"},"nodeType":"YulFunctionCall","src":"6279:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6270:5:22"}]},{"nodeType":"YulAssignment","src":"6309:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6318:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6321:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6314:3:22"},"nodeType":"YulFunctionCall","src":"6314:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6309:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6270:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6282:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6208:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6226:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6229:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6259:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6309:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6321:1:22","valueSize":1}],"id":3309,"nodeType":"InlineAssembly","src":"6189:142:22"},{"AST":{"nodeType":"YulBlock","src":"6347:133:22","statements":[{"nodeType":"YulAssignment","src":"6357:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6366:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6375:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6378:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6371:3:22"},"nodeType":"YulFunctionCall","src":"6371:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6362:3:22"},"nodeType":"YulFunctionCall","src":"6362:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6357:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6390:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6403:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6408:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6399:3:22"},"nodeType":"YulFunctionCall","src":"6399:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6394:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6419:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6431:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6442:2:22","type":"","value":"61"},{"name":"f","nodeType":"YulIdentifier","src":"6446:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6438:3:22"},"nodeType":"YulFunctionCall","src":"6438:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6428:2:22"},"nodeType":"YulFunctionCall","src":"6428:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6419:5:22"}]},{"nodeType":"YulAssignment","src":"6458:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6467:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6470:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6463:3:22"},"nodeType":"YulFunctionCall","src":"6463:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6458:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6419:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6431:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6357:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6375:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6378:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6408:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6458:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6470:1:22","valueSize":1}],"id":3310,"nodeType":"InlineAssembly","src":"6338:142:22"},{"AST":{"nodeType":"YulBlock","src":"6496:133:22","statements":[{"nodeType":"YulAssignment","src":"6506:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6515:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6524:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6527:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6520:3:22"},"nodeType":"YulFunctionCall","src":"6520:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6511:3:22"},"nodeType":"YulFunctionCall","src":"6511:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6506:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6539:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6552:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6557:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6548:3:22"},"nodeType":"YulFunctionCall","src":"6548:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6543:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6568:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6580:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6591:2:22","type":"","value":"60"},{"name":"f","nodeType":"YulIdentifier","src":"6595:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6587:3:22"},"nodeType":"YulFunctionCall","src":"6587:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6577:2:22"},"nodeType":"YulFunctionCall","src":"6577:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6568:5:22"}]},{"nodeType":"YulAssignment","src":"6607:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6616:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6619:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6612:3:22"},"nodeType":"YulFunctionCall","src":"6612:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6607:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6568:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6580:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6506:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6524:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6527:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6557:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6607:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6619:1:22","valueSize":1}],"id":3311,"nodeType":"InlineAssembly","src":"6487:142:22"},{"AST":{"nodeType":"YulBlock","src":"6645:133:22","statements":[{"nodeType":"YulAssignment","src":"6655:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6664:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6673:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6676:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6669:3:22"},"nodeType":"YulFunctionCall","src":"6669:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6660:3:22"},"nodeType":"YulFunctionCall","src":"6660:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6655:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6688:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6701:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6706:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6697:3:22"},"nodeType":"YulFunctionCall","src":"6697:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6692:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6717:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6729:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6740:2:22","type":"","value":"59"},{"name":"f","nodeType":"YulIdentifier","src":"6744:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6736:3:22"},"nodeType":"YulFunctionCall","src":"6736:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6726:2:22"},"nodeType":"YulFunctionCall","src":"6726:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6717:5:22"}]},{"nodeType":"YulAssignment","src":"6756:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6765:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6768:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6761:3:22"},"nodeType":"YulFunctionCall","src":"6761:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6756:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6717:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6729:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6655:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6673:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6676:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6706:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6756:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6768:1:22","valueSize":1}],"id":3312,"nodeType":"InlineAssembly","src":"6636:142:22"},{"AST":{"nodeType":"YulBlock","src":"6794:133:22","statements":[{"nodeType":"YulAssignment","src":"6804:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6813:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6822:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6825:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6818:3:22"},"nodeType":"YulFunctionCall","src":"6818:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6809:3:22"},"nodeType":"YulFunctionCall","src":"6809:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6804:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6837:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6850:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"6855:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6846:3:22"},"nodeType":"YulFunctionCall","src":"6846:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6841:1:22","type":""}]},{"nodeType":"YulAssignment","src":"6866:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"6878:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6889:2:22","type":"","value":"58"},{"name":"f","nodeType":"YulIdentifier","src":"6893:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"6885:3:22"},"nodeType":"YulFunctionCall","src":"6885:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"6875:2:22"},"nodeType":"YulFunctionCall","src":"6875:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"6866:5:22"}]},{"nodeType":"YulAssignment","src":"6905:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"6914:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6917:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6910:3:22"},"nodeType":"YulFunctionCall","src":"6910:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6905:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6866:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"6878:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6804:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6822:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6825:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6855:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6905:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6917:1:22","valueSize":1}],"id":3313,"nodeType":"InlineAssembly","src":"6785:142:22"},{"AST":{"nodeType":"YulBlock","src":"6943:133:22","statements":[{"nodeType":"YulAssignment","src":"6953:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6962:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"6971:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"6974:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"6967:3:22"},"nodeType":"YulFunctionCall","src":"6967:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6958:3:22"},"nodeType":"YulFunctionCall","src":"6958:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"6953:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"6986:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6999:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7004:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"6995:3:22"},"nodeType":"YulFunctionCall","src":"6995:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"6990:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7015:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7027:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7038:2:22","type":"","value":"57"},{"name":"f","nodeType":"YulIdentifier","src":"7042:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7034:3:22"},"nodeType":"YulFunctionCall","src":"7034:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7024:2:22"},"nodeType":"YulFunctionCall","src":"7024:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7015:5:22"}]},{"nodeType":"YulAssignment","src":"7054:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7063:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7066:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7059:3:22"},"nodeType":"YulFunctionCall","src":"7059:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7054:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7015:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7027:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6953:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6971:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"6974:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7004:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7054:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7066:1:22","valueSize":1}],"id":3314,"nodeType":"InlineAssembly","src":"6934:142:22"},{"AST":{"nodeType":"YulBlock","src":"7092:133:22","statements":[{"nodeType":"YulAssignment","src":"7102:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7111:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7120:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7123:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7116:3:22"},"nodeType":"YulFunctionCall","src":"7116:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7107:3:22"},"nodeType":"YulFunctionCall","src":"7107:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7102:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7135:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7148:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7153:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7144:3:22"},"nodeType":"YulFunctionCall","src":"7144:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7139:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7164:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7176:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7187:2:22","type":"","value":"56"},{"name":"f","nodeType":"YulIdentifier","src":"7191:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7183:3:22"},"nodeType":"YulFunctionCall","src":"7183:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7173:2:22"},"nodeType":"YulFunctionCall","src":"7173:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7164:5:22"}]},{"nodeType":"YulAssignment","src":"7203:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7212:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7215:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7208:3:22"},"nodeType":"YulFunctionCall","src":"7208:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7203:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7164:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7176:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7102:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7120:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7123:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7153:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7203:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7215:1:22","valueSize":1}],"id":3315,"nodeType":"InlineAssembly","src":"7083:142:22"},{"AST":{"nodeType":"YulBlock","src":"7241:133:22","statements":[{"nodeType":"YulAssignment","src":"7251:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7260:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7269:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7272:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7265:3:22"},"nodeType":"YulFunctionCall","src":"7265:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7256:3:22"},"nodeType":"YulFunctionCall","src":"7256:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7251:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7284:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7297:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7302:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7293:3:22"},"nodeType":"YulFunctionCall","src":"7293:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7288:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7313:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7325:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7336:2:22","type":"","value":"55"},{"name":"f","nodeType":"YulIdentifier","src":"7340:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7332:3:22"},"nodeType":"YulFunctionCall","src":"7332:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7322:2:22"},"nodeType":"YulFunctionCall","src":"7322:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7313:5:22"}]},{"nodeType":"YulAssignment","src":"7352:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7361:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7364:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7357:3:22"},"nodeType":"YulFunctionCall","src":"7357:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7352:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7313:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7325:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7251:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7269:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7272:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7302:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7352:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7364:1:22","valueSize":1}],"id":3316,"nodeType":"InlineAssembly","src":"7232:142:22"},{"AST":{"nodeType":"YulBlock","src":"7390:133:22","statements":[{"nodeType":"YulAssignment","src":"7400:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7409:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7418:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7421:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7414:3:22"},"nodeType":"YulFunctionCall","src":"7414:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7405:3:22"},"nodeType":"YulFunctionCall","src":"7405:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7400:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7433:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7446:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7451:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7442:3:22"},"nodeType":"YulFunctionCall","src":"7442:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7437:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7462:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7474:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7485:2:22","type":"","value":"54"},{"name":"f","nodeType":"YulIdentifier","src":"7489:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7481:3:22"},"nodeType":"YulFunctionCall","src":"7481:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7471:2:22"},"nodeType":"YulFunctionCall","src":"7471:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7462:5:22"}]},{"nodeType":"YulAssignment","src":"7501:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7510:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7513:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7506:3:22"},"nodeType":"YulFunctionCall","src":"7506:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7501:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7462:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7474:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7400:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7418:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7421:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7451:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7501:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7513:1:22","valueSize":1}],"id":3317,"nodeType":"InlineAssembly","src":"7381:142:22"},{"AST":{"nodeType":"YulBlock","src":"7539:133:22","statements":[{"nodeType":"YulAssignment","src":"7549:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7558:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7567:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7570:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7563:3:22"},"nodeType":"YulFunctionCall","src":"7563:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7554:3:22"},"nodeType":"YulFunctionCall","src":"7554:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7549:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7582:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7595:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7600:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7591:3:22"},"nodeType":"YulFunctionCall","src":"7591:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7586:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7611:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7623:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7634:2:22","type":"","value":"53"},{"name":"f","nodeType":"YulIdentifier","src":"7638:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7630:3:22"},"nodeType":"YulFunctionCall","src":"7630:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7620:2:22"},"nodeType":"YulFunctionCall","src":"7620:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7611:5:22"}]},{"nodeType":"YulAssignment","src":"7650:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7659:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7662:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7655:3:22"},"nodeType":"YulFunctionCall","src":"7655:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7650:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7611:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7623:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7549:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7567:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7570:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7600:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7650:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7662:1:22","valueSize":1}],"id":3318,"nodeType":"InlineAssembly","src":"7530:142:22"},{"AST":{"nodeType":"YulBlock","src":"7688:133:22","statements":[{"nodeType":"YulAssignment","src":"7698:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7707:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7716:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7719:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7712:3:22"},"nodeType":"YulFunctionCall","src":"7712:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7703:3:22"},"nodeType":"YulFunctionCall","src":"7703:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7698:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7731:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7744:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7749:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7740:3:22"},"nodeType":"YulFunctionCall","src":"7740:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7735:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7760:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7772:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7783:2:22","type":"","value":"52"},{"name":"f","nodeType":"YulIdentifier","src":"7787:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7779:3:22"},"nodeType":"YulFunctionCall","src":"7779:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7769:2:22"},"nodeType":"YulFunctionCall","src":"7769:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7760:5:22"}]},{"nodeType":"YulAssignment","src":"7799:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7808:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7811:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7804:3:22"},"nodeType":"YulFunctionCall","src":"7804:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7799:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7760:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7772:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7698:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7716:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7719:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7749:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7799:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7811:1:22","valueSize":1}],"id":3319,"nodeType":"InlineAssembly","src":"7679:142:22"},{"AST":{"nodeType":"YulBlock","src":"7837:133:22","statements":[{"nodeType":"YulAssignment","src":"7847:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7856:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"7865:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7868:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"7861:3:22"},"nodeType":"YulFunctionCall","src":"7861:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7852:3:22"},"nodeType":"YulFunctionCall","src":"7852:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7847:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"7880:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7893:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"7898:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7889:3:22"},"nodeType":"YulFunctionCall","src":"7889:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"7884:1:22","type":""}]},{"nodeType":"YulAssignment","src":"7909:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"7921:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7932:2:22","type":"","value":"51"},{"name":"f","nodeType":"YulIdentifier","src":"7936:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"7928:3:22"},"nodeType":"YulFunctionCall","src":"7928:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"7918:2:22"},"nodeType":"YulFunctionCall","src":"7918:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"7909:5:22"}]},{"nodeType":"YulAssignment","src":"7948:14:22","value":{"arguments":[{"name":"f","nodeType":"YulIdentifier","src":"7957:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"7960:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"7953:3:22"},"nodeType":"YulFunctionCall","src":"7953:9:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7948:1:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7909:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"7921:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7847:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7865:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7868:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7898:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7948:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7960:1:22","valueSize":1}],"id":3320,"nodeType":"InlineAssembly","src":"7828:142:22"},{"AST":{"nodeType":"YulBlock","src":"7986:110:22","statements":[{"nodeType":"YulAssignment","src":"7996:24:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8005:3:22","type":"","value":"127"},{"arguments":[{"name":"r","nodeType":"YulIdentifier","src":"8014:1:22"},{"name":"r","nodeType":"YulIdentifier","src":"8017:1:22"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"8010:3:22"},"nodeType":"YulFunctionCall","src":"8010:9:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"8001:3:22"},"nodeType":"YulFunctionCall","src":"8001:19:22"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"7996:1:22"}]},{"nodeType":"YulVariableDeclaration","src":"8029:20:22","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8042:3:22","type":"","value":"128"},{"name":"r","nodeType":"YulIdentifier","src":"8047:1:22"}],"functionName":{"name":"shr","nodeType":"YulIdentifier","src":"8038:3:22"},"nodeType":"YulFunctionCall","src":"8038:11:22"},"variables":[{"name":"f","nodeType":"YulTypedName","src":"8033:1:22","type":""}]},{"nodeType":"YulAssignment","src":"8058:30:22","value":{"arguments":[{"name":"log_2","nodeType":"YulIdentifier","src":"8070:5:22"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8081:2:22","type":"","value":"50"},{"name":"f","nodeType":"YulIdentifier","src":"8085:1:22"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"8077:3:22"},"nodeType":"YulFunctionCall","src":"8077:10:22"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"8067:2:22"},"nodeType":"YulFunctionCall","src":"8067:21:22"},"variableNames":[{"name":"log_2","nodeType":"YulIdentifier","src":"8058:5:22"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":3297,"isOffset":false,"isSlot":false,"src":"8058:5:22","valueSize":1},{"declaration":3297,"isOffset":false,"isSlot":false,"src":"8070:5:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"7996:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"8014:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"8017:1:22","valueSize":1},{"declaration":3260,"isOffset":false,"isSlot":false,"src":"8047:1:22","valueSize":1}],"id":3321,"nodeType":"InlineAssembly","src":"7977:119:22"},{"assignments":[3323],"declarations":[{"constant":false,"id":3323,"mutability":"mutable","name":"log_sqrt10001","nameLocation":"8111:13:22","nodeType":"VariableDeclaration","scope":3368,"src":"8104:20:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":3322,"name":"int256","nodeType":"ElementaryTypeName","src":"8104:6:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"id":3327,"initialValue":{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3326,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3324,"name":"log_2","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3297,"src":"8127:5:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"hexValue":"323535373338393538393939363033383236333437313431","id":3325,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8135:24:22","typeDescriptions":{"typeIdentifier":"t_rational_255738958999603826347141_by_1","typeString":"int_const 255738958999603826347141"},"value":"255738958999603826347141"},"src":"8127:32:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"VariableDeclarationStatement","src":"8104:55:22"},{"assignments":[3329],"declarations":[{"constant":false,"id":3329,"mutability":"mutable","name":"tickLow","nameLocation":"8192:7:22","nodeType":"VariableDeclaration","scope":3368,"src":"8186:13:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":3328,"name":"int24","nodeType":"ElementaryTypeName","src":"8186:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"id":3339,"initialValue":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3337,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3334,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3332,"name":"log_sqrt10001","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3323,"src":"8209:13:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"hexValue":"33343032393932393536383039313332343138353936313430313030363630323437323130","id":3333,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8225:37:22","typeDescriptions":{"typeIdentifier":"t_rational_3402992956809132418596140100660247210_by_1","typeString":"int_const 3402...(29 digits omitted)...7210"},"value":"3402992956809132418596140100660247210"},"src":"8209:53:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"id":3335,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"8208:55:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3336,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8267:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"8208:62:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":3331,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"8202:5:22","typeDescriptions":{"typeIdentifier":"t_type$_t_int24_$","typeString":"type(int24)"},"typeName":{"id":3330,"name":"int24","nodeType":"ElementaryTypeName","src":"8202:5:22","typeDescriptions":{}}},"id":3338,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8202:69:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"VariableDeclarationStatement","src":"8186:85:22"},{"assignments":[3341],"declarations":[{"constant":false,"id":3341,"mutability":"mutable","name":"tickHi","nameLocation":"8285:6:22","nodeType":"VariableDeclaration","scope":3368,"src":"8279:12:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":3340,"name":"int24","nodeType":"ElementaryTypeName","src":"8279:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"id":3351,"initialValue":{"arguments":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3349,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_int256","typeString":"int256"},"id":3346,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3344,"name":"log_sqrt10001","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3323,"src":"8301:13:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":"+","rightExpression":{"hexValue":"323931333339343634373731393839363232393037303237363231313533333938303838343935","id":3345,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8317:39:22","typeDescriptions":{"typeIdentifier":"t_rational_291339464771989622907027621153398088495_by_1","typeString":"int_const 2913...(31 digits omitted)...8495"},"value":"291339464771989622907027621153398088495"},"src":"8301:55:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"id":3347,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"8300:57:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"BinaryOperation","operator":">>","rightExpression":{"hexValue":"313238","id":3348,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8361:3:22","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"value":"128"},"src":"8300:64:22","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int256","typeString":"int256"}],"id":3343,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"8294:5:22","typeDescriptions":{"typeIdentifier":"t_type$_t_int24_$","typeString":"type(int24)"},"typeName":{"id":3342,"name":"int24","nodeType":"ElementaryTypeName","src":"8294:5:22","typeDescriptions":{}}},"id":3350,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8294:71:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"VariableDeclarationStatement","src":"8279:86:22"},{"expression":{"id":3366,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3352,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3235,"src":"8374:4:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":3355,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3353,"name":"tickLow","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3329,"src":"8381:7:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":3354,"name":"tickHi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3341,"src":"8392:6:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8381:17:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"condition":{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3361,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3358,"name":"tickHi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3341,"src":"8430:6:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"id":3357,"name":"getSqrtRatioAtTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3229,"src":"8411:18:22","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_int24_$returns$_t_uint160_$","typeString":"function (int24) pure returns (uint160)"}},"id":3359,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8411:26:22","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":"<=","rightExpression":{"id":3360,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3232,"src":"8441:5:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"8411:35:22","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"id":3363,"name":"tickLow","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3329,"src":"8458:7:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":3364,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"8411:54:22","trueExpression":{"id":3362,"name":"tickHi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3341,"src":"8449:6:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":3365,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"8381:84:22","trueExpression":{"id":3356,"name":"tickLow","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3329,"src":"8401:7:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8374:91:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":3367,"nodeType":"ExpressionStatement","src":"8374:91:22"}]}]},"documentation":{"id":3230,"nodeType":"StructuredDocumentation","src":"4213:386:22","text":"@notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\n @dev Throws in case price < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\n ever return.\n @param price The sqrt ratio for which to compute the tick as a Q64.96\n @return tick The greatest tick for which the ratio is less than or equal to the input ratio"},"id":3370,"implemented":true,"kind":"function","modifiers":[],"name":"getTickAtSqrtRatio","nameLocation":"4611:18:22","nodeType":"FunctionDefinition","parameters":{"id":3233,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3232,"mutability":"mutable","name":"price","nameLocation":"4638:5:22","nodeType":"VariableDeclaration","scope":3370,"src":"4630:13:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3231,"name":"uint160","nodeType":"ElementaryTypeName","src":"4630:7:22","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"4629:15:22"},"returnParameters":{"id":3236,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3235,"mutability":"mutable","name":"tick","nameLocation":"4674:4:22","nodeType":"VariableDeclaration","scope":3370,"src":"4668:10:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":3234,"name":"int24","nodeType":"ElementaryTypeName","src":"4668:5:22","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"4667:12:22"},"scope":3371,"src":"4602:3874:22","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":3372,"src":"499:7979:22","usedErrors":[],"usedEvents":[]}],"src":"45:8434:22"},"id":22},"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol","exportedSymbols":{"Constants":[1702],"FullMath":[1909],"SafeCast":[2271],"TokenDeltaMath":[3579]},"id":3580,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":3373,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:23"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol","file":"./SafeCast.sol","id":3374,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3580,"sourceUnit":2272,"src":"63:24:23","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol","file":"./FullMath.sol","id":3375,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3580,"sourceUnit":1910,"src":"88:24:23","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol","file":"./Constants.sol","id":3376,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3580,"sourceUnit":1703,"src":"113:25:23","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"TokenDeltaMath","contractDependencies":[],"contractKind":"library","documentation":{"id":3377,"nodeType":"StructuredDocumentation","src":"140:167:23","text":"@title Functions based on Q64.96 sqrt price and liquidity\n @notice Contains the math that uses square root of price as a Q64.96 and liquidity to compute deltas"},"fullyImplemented":true,"id":3579,"linearizedBaseContracts":[3579],"name":"TokenDeltaMath","nameLocation":"315:14:23","nodeType":"ContractDefinition","nodes":[{"global":false,"id":3380,"libraryName":{"id":3378,"name":"SafeCast","nameLocations":["340:8:23"],"nodeType":"IdentifierPath","referencedDeclaration":2271,"src":"340:8:23"},"nodeType":"UsingForDirective","src":"334:27:23","typeName":{"id":3379,"name":"uint256","nodeType":"ElementaryTypeName","src":"353:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},{"body":{"id":3440,"nodeType":"Block","src":"961:491:23","statements":[{"id":3439,"nodeType":"UncheckedBlock","src":"967:481:23","statements":[{"assignments":[3395],"declarations":[{"constant":false,"id":3395,"mutability":"mutable","name":"priceDelta","nameLocation":"993:10:23","nodeType":"VariableDeclaration","scope":3439,"src":"985:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3394,"name":"uint256","nodeType":"ElementaryTypeName","src":"985:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3399,"initialValue":{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3398,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3396,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3385,"src":"1006:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":3397,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3383,"src":"1019:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"1006:23:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"VariableDeclarationStatement","src":"985:44:23"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3403,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3401,"name":"priceDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3395,"src":"1045:10:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":3402,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3385,"src":"1058:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"1045:23:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3400,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1037:7:23","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":3404,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1037:32:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3405,"nodeType":"ExpressionStatement","src":"1037:32:23"},{"assignments":[3407],"declarations":[{"constant":false,"id":3407,"mutability":"mutable","name":"liquidityShifted","nameLocation":"1123:16:23","nodeType":"VariableDeclaration","scope":3439,"src":"1115:24:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3406,"name":"uint256","nodeType":"ElementaryTypeName","src":"1115:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3415,"initialValue":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3414,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3410,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3387,"src":"1150:9:23","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":3409,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1142:7:23","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":3408,"name":"uint256","nodeType":"ElementaryTypeName","src":"1142:7:23","typeDescriptions":{}}},"id":3411,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1142:18:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"expression":{"id":3412,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"1164:9:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":3413,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1174:10:23","memberName":"RESOLUTION","nodeType":"MemberAccess","referencedDeclaration":1653,"src":"1164:20:23","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"1142:42:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"1115:69:23"},{"expression":{"id":3437,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3416,"name":"token0Delta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3392,"src":"1193:11:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"id":3417,"name":"roundUp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3389,"src":"1207:7:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3435,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3430,"name":"priceDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3395,"src":"1387:10:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3431,"name":"liquidityShifted","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3407,"src":"1399:16:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3432,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3385,"src":"1417:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint160","typeString":"uint160"}],"expression":{"id":3428,"name":"FullMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1909,"src":"1371:8:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FullMath_$1909_$","typeString":"type(library FullMath)"}},"id":3429,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1380:6:23","memberName":"mulDiv","nodeType":"MemberAccess","referencedDeclaration":1827,"src":"1371:15:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":3433,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1371:57:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":3434,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3383,"src":"1431:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"1371:70:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3436,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"1207:234:23","trueExpression":{"arguments":[{"arguments":[{"id":3422,"name":"priceDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3395,"src":"1280:10:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3423,"name":"liquidityShifted","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3407,"src":"1292:16:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3424,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3385,"src":"1310:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint160","typeString":"uint160"}],"expression":{"id":3420,"name":"FullMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1909,"src":"1254:8:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FullMath_$1909_$","typeString":"type(library FullMath)"}},"id":3421,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1263:16:23","memberName":"mulDivRoundingUp","nodeType":"MemberAccess","referencedDeclaration":1896,"src":"1254:25:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":3425,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1254:67:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3426,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3383,"src":"1323:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint160","typeString":"uint160"}],"expression":{"id":3418,"name":"FullMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1909,"src":"1225:8:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FullMath_$1909_$","typeString":"type(library FullMath)"}},"id":3419,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1234:19:23","memberName":"unsafeDivRoundingUp","nodeType":"MemberAccess","referencedDeclaration":1908,"src":"1225:28:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256) pure returns (uint256)"}},"id":3427,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1225:109:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"1193:248:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3438,"nodeType":"ExpressionStatement","src":"1193:248:23"}]}]},"documentation":{"id":3381,"nodeType":"StructuredDocumentation","src":"365:452:23","text":"@notice Gets the token0 delta between two prices\n @dev Calculates liquidity / sqrt(lower) - liquidity / sqrt(upper)\n @param priceLower A Q64.96 sqrt price\n @param priceUpper Another Q64.96 sqrt price\n @param liquidity The amount of usable liquidity\n @param roundUp Whether to round the amount up or down\n @return token0Delta Amount of token0 required to cover a position of size liquidity between the two passed prices"},"id":3441,"implemented":true,"kind":"function","modifiers":[],"name":"getToken0Delta","nameLocation":"829:14:23","nodeType":"FunctionDefinition","parameters":{"id":3390,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3383,"mutability":"mutable","name":"priceLower","nameLocation":"852:10:23","nodeType":"VariableDeclaration","scope":3441,"src":"844:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3382,"name":"uint160","nodeType":"ElementaryTypeName","src":"844:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3385,"mutability":"mutable","name":"priceUpper","nameLocation":"872:10:23","nodeType":"VariableDeclaration","scope":3441,"src":"864:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3384,"name":"uint160","nodeType":"ElementaryTypeName","src":"864:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3387,"mutability":"mutable","name":"liquidity","nameLocation":"892:9:23","nodeType":"VariableDeclaration","scope":3441,"src":"884:17:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":3386,"name":"uint128","nodeType":"ElementaryTypeName","src":"884:7:23","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":3389,"mutability":"mutable","name":"roundUp","nameLocation":"908:7:23","nodeType":"VariableDeclaration","scope":3441,"src":"903:12:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":3388,"name":"bool","nodeType":"ElementaryTypeName","src":"903:4:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"843:73:23"},"returnParameters":{"id":3393,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3392,"mutability":"mutable","name":"token0Delta","nameLocation":"948:11:23","nodeType":"VariableDeclaration","scope":3441,"src":"940:19:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3391,"name":"uint256","nodeType":"ElementaryTypeName","src":"940:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"939:21:23"},"scope":3579,"src":"820:632:23","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":3487,"nodeType":"Block","src":"2043:271:23","statements":[{"id":3486,"nodeType":"UncheckedBlock","src":"2049:261:23","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3458,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3456,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3446,"src":"2075:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":3457,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3444,"src":"2089:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"2075:24:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3455,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2067:7:23","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":3459,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2067:33:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3460,"nodeType":"ExpressionStatement","src":"2067:33:23"},{"assignments":[3462],"declarations":[{"constant":false,"id":3462,"mutability":"mutable","name":"priceDelta","nameLocation":"2116:10:23","nodeType":"VariableDeclaration","scope":3486,"src":"2108:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3461,"name":"uint256","nodeType":"ElementaryTypeName","src":"2108:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3466,"initialValue":{"commonType":{"typeIdentifier":"t_uint160","typeString":"uint160"},"id":3465,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3463,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3446,"src":"2129:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":3464,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3444,"src":"2142:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"2129:23:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"VariableDeclarationStatement","src":"2108:44:23"},{"expression":{"id":3484,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3467,"name":"token1Delta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3453,"src":"2160:11:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"id":3468,"name":"roundUp","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3450,"src":"2174:7:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"arguments":[{"id":3478,"name":"priceDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3462,"src":"2266:10:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3479,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3448,"src":"2278:9:23","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"expression":{"id":3480,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"2289:9:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":3481,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2299:3:23","memberName":"Q96","nodeType":"MemberAccess","referencedDeclaration":1658,"src":"2289:13:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"id":3476,"name":"FullMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1909,"src":"2250:8:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FullMath_$1909_$","typeString":"type(library FullMath)"}},"id":3477,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2259:6:23","memberName":"mulDiv","nodeType":"MemberAccess","referencedDeclaration":1827,"src":"2250:15:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":3482,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2250:53:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3483,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"2174:129:23","trueExpression":{"arguments":[{"id":3471,"name":"priceDelta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3462,"src":"2210:10:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":3472,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3448,"src":"2222:9:23","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"expression":{"id":3473,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"2233:9:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":3474,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2243:3:23","memberName":"Q96","nodeType":"MemberAccess","referencedDeclaration":1658,"src":"2233:13:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"id":3469,"name":"FullMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1909,"src":"2184:8:23","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FullMath_$1909_$","typeString":"type(library FullMath)"}},"id":3470,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2193:16:23","memberName":"mulDivRoundingUp","nodeType":"MemberAccess","referencedDeclaration":1896,"src":"2184:25:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$","typeString":"function (uint256,uint256,uint256) pure returns (uint256)"}},"id":3475,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2184:63:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2160:143:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3485,"nodeType":"ExpressionStatement","src":"2160:143:23"}]}]},"documentation":{"id":3442,"nodeType":"StructuredDocumentation","src":"1456:443:23","text":"@notice Gets the token1 delta between two prices\n @dev Calculates liquidity * (sqrt(upper) - sqrt(lower))\n @param priceLower A Q64.96 sqrt price\n @param priceUpper Another Q64.96 sqrt price\n @param liquidity The amount of usable liquidity\n @param roundUp Whether to round the amount up, or down\n @return token1Delta Amount of token1 required to cover a position of size liquidity between the two passed prices"},"id":3488,"implemented":true,"kind":"function","modifiers":[],"name":"getToken1Delta","nameLocation":"1911:14:23","nodeType":"FunctionDefinition","parameters":{"id":3451,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3444,"mutability":"mutable","name":"priceLower","nameLocation":"1934:10:23","nodeType":"VariableDeclaration","scope":3488,"src":"1926:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3443,"name":"uint160","nodeType":"ElementaryTypeName","src":"1926:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3446,"mutability":"mutable","name":"priceUpper","nameLocation":"1954:10:23","nodeType":"VariableDeclaration","scope":3488,"src":"1946:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3445,"name":"uint160","nodeType":"ElementaryTypeName","src":"1946:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3448,"mutability":"mutable","name":"liquidity","nameLocation":"1974:9:23","nodeType":"VariableDeclaration","scope":3488,"src":"1966:17:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":3447,"name":"uint128","nodeType":"ElementaryTypeName","src":"1966:7:23","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":3450,"mutability":"mutable","name":"roundUp","nameLocation":"1990:7:23","nodeType":"VariableDeclaration","scope":3488,"src":"1985:12:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":3449,"name":"bool","nodeType":"ElementaryTypeName","src":"1985:4:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"1925:73:23"},"returnParameters":{"id":3454,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3453,"mutability":"mutable","name":"token1Delta","nameLocation":"2030:11:23","nodeType":"VariableDeclaration","scope":3488,"src":"2022:19:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3452,"name":"uint256","nodeType":"ElementaryTypeName","src":"2022:7:23","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2021:21:23"},"scope":3579,"src":"1902:412:23","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":3532,"nodeType":"Block","src":"2782:238:23","statements":[{"id":3531,"nodeType":"UncheckedBlock","src":"2788:228:23","statements":[{"expression":{"id":3529,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3500,"name":"token0Delta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3498,"src":"2806:11:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"commonType":{"typeIdentifier":"t_int128","typeString":"int128"},"id":3503,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3501,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3495,"src":"2820:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"30","id":3502,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2833:1:23","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2820:14:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"id":3527,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"2931:78:23","subExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":3516,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3491,"src":"2947:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":3517,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3493,"src":"2959:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"arguments":[{"id":3521,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"2979:10:23","subExpression":{"id":3520,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3495,"src":"2980:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":3519,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2971:7:23","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":3518,"name":"uint128","nodeType":"ElementaryTypeName","src":"2971:7:23","typeDescriptions":{}}},"id":3522,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2971:19:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"hexValue":"66616c7365","id":3523,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"2992:5:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3515,"name":"getToken0Delta","nodeType":"Identifier","overloadedDeclarations":[3441,3533],"referencedDeclaration":3441,"src":"2932:14:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_uint128_$_t_bool_$returns$_t_uint256_$","typeString":"function (uint160,uint160,uint128,bool) pure returns (uint256)"}},"id":3524,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2932:66:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3525,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2999:8:23","memberName":"toInt256","nodeType":"MemberAccess","referencedDeclaration":2270,"src":"2932:75:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$returns$_t_int256_$attached_to$_t_uint256_$","typeString":"function (uint256) pure returns (int256)"}},"id":3526,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2932:77:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":3528,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"2820:189:23","trueExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":3505,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3491,"src":"2860:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":3506,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3493,"src":"2872:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"arguments":[{"id":3509,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3495,"src":"2892:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":3508,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2884:7:23","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":3507,"name":"uint128","nodeType":"ElementaryTypeName","src":"2884:7:23","typeDescriptions":{}}},"id":3510,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2884:18:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"hexValue":"74727565","id":3511,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"2904:4:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3504,"name":"getToken0Delta","nodeType":"Identifier","overloadedDeclarations":[3441,3533],"referencedDeclaration":3441,"src":"2845:14:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_uint128_$_t_bool_$returns$_t_uint256_$","typeString":"function (uint160,uint160,uint128,bool) pure returns (uint256)"}},"id":3512,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2845:64:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3513,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2910:8:23","memberName":"toInt256","nodeType":"MemberAccess","referencedDeclaration":2270,"src":"2845:73:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$returns$_t_int256_$attached_to$_t_uint256_$","typeString":"function (uint256) pure returns (int256)"}},"id":3514,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2845:75:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"2806:203:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":3530,"nodeType":"ExpressionStatement","src":"2806:203:23"}]}]},"documentation":{"id":3489,"nodeType":"StructuredDocumentation","src":"2318:336:23","text":"@notice Helper that gets signed token0 delta\n @param priceLower A Q64.96 sqrt price\n @param priceUpper Another Q64.96 sqrt price\n @param liquidity The change in liquidity for which to compute the token0 delta\n @return token0Delta Amount of token0 corresponding to the passed liquidityDelta between the two prices"},"id":3533,"implemented":true,"kind":"function","modifiers":[],"name":"getToken0Delta","nameLocation":"2666:14:23","nodeType":"FunctionDefinition","parameters":{"id":3496,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3491,"mutability":"mutable","name":"priceLower","nameLocation":"2689:10:23","nodeType":"VariableDeclaration","scope":3533,"src":"2681:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3490,"name":"uint160","nodeType":"ElementaryTypeName","src":"2681:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3493,"mutability":"mutable","name":"priceUpper","nameLocation":"2709:10:23","nodeType":"VariableDeclaration","scope":3533,"src":"2701:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3492,"name":"uint160","nodeType":"ElementaryTypeName","src":"2701:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3495,"mutability":"mutable","name":"liquidity","nameLocation":"2728:9:23","nodeType":"VariableDeclaration","scope":3533,"src":"2721:16:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":3494,"name":"int128","nodeType":"ElementaryTypeName","src":"2721:6:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"2680:58:23"},"returnParameters":{"id":3499,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3498,"mutability":"mutable","name":"token0Delta","nameLocation":"2769:11:23","nodeType":"VariableDeclaration","scope":3533,"src":"2762:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":3497,"name":"int256","nodeType":"ElementaryTypeName","src":"2762:6:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"2761:20:23"},"scope":3579,"src":"2657:363:23","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":3577,"nodeType":"Block","src":"3488:238:23","statements":[{"id":3576,"nodeType":"UncheckedBlock","src":"3494:228:23","statements":[{"expression":{"id":3574,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3545,"name":"token1Delta","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3543,"src":"3512:11:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"condition":{"commonType":{"typeIdentifier":"t_int128","typeString":"int128"},"id":3548,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3546,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3540,"src":"3526:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"hexValue":"30","id":3547,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3539:1:23","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3526:14:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseExpression":{"id":3572,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"3637:78:23","subExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":3561,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3536,"src":"3653:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":3562,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3538,"src":"3665:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"arguments":[{"id":3566,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"3685:10:23","subExpression":{"id":3565,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3540,"src":"3686:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":3564,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3677:7:23","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":3563,"name":"uint128","nodeType":"ElementaryTypeName","src":"3677:7:23","typeDescriptions":{}}},"id":3567,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3677:19:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"hexValue":"66616c7365","id":3568,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3698:5:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3560,"name":"getToken1Delta","nodeType":"Identifier","overloadedDeclarations":[3488,3578],"referencedDeclaration":3488,"src":"3638:14:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_uint128_$_t_bool_$returns$_t_uint256_$","typeString":"function (uint160,uint160,uint128,bool) pure returns (uint256)"}},"id":3569,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3638:66:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3570,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"3705:8:23","memberName":"toInt256","nodeType":"MemberAccess","referencedDeclaration":2270,"src":"3638:75:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$returns$_t_int256_$attached_to$_t_uint256_$","typeString":"function (uint256) pure returns (int256)"}},"id":3571,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3638:77:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":3573,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"Conditional","src":"3526:189:23","trueExpression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"id":3550,"name":"priceLower","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3536,"src":"3566:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":3551,"name":"priceUpper","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3538,"src":"3578:10:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"arguments":[{"id":3554,"name":"liquidity","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3540,"src":"3598:9:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int128","typeString":"int128"}],"id":3553,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3590:7:23","typeDescriptions":{"typeIdentifier":"t_type$_t_uint128_$","typeString":"type(uint128)"},"typeName":{"id":3552,"name":"uint128","nodeType":"ElementaryTypeName","src":"3590:7:23","typeDescriptions":{}}},"id":3555,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3590:18:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},{"hexValue":"74727565","id":3556,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3610:4:23","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_uint128","typeString":"uint128"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":3549,"name":"getToken1Delta","nodeType":"Identifier","overloadedDeclarations":[3488,3578],"referencedDeclaration":3488,"src":"3551:14:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$_t_uint160_$_t_uint128_$_t_bool_$returns$_t_uint256_$","typeString":"function (uint160,uint160,uint128,bool) pure returns (uint256)"}},"id":3557,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3551:64:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3558,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"3616:8:23","memberName":"toInt256","nodeType":"MemberAccess","referencedDeclaration":2270,"src":"3551:73:23","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint256_$returns$_t_int256_$attached_to$_t_uint256_$","typeString":"function (uint256) pure returns (int256)"}},"id":3559,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3551:75:23","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"src":"3512:203:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"id":3575,"nodeType":"ExpressionStatement","src":"3512:203:23"}]}]},"documentation":{"id":3534,"nodeType":"StructuredDocumentation","src":"3024:336:23","text":"@notice Helper that gets signed token1 delta\n @param priceLower A Q64.96 sqrt price\n @param priceUpper Another Q64.96 sqrt price\n @param liquidity The change in liquidity for which to compute the token1 delta\n @return token1Delta Amount of token1 corresponding to the passed liquidityDelta between the two prices"},"id":3578,"implemented":true,"kind":"function","modifiers":[],"name":"getToken1Delta","nameLocation":"3372:14:23","nodeType":"FunctionDefinition","parameters":{"id":3541,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3536,"mutability":"mutable","name":"priceLower","nameLocation":"3395:10:23","nodeType":"VariableDeclaration","scope":3578,"src":"3387:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3535,"name":"uint160","nodeType":"ElementaryTypeName","src":"3387:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3538,"mutability":"mutable","name":"priceUpper","nameLocation":"3415:10:23","nodeType":"VariableDeclaration","scope":3578,"src":"3407:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":3537,"name":"uint160","nodeType":"ElementaryTypeName","src":"3407:7:23","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":3540,"mutability":"mutable","name":"liquidity","nameLocation":"3434:9:23","nodeType":"VariableDeclaration","scope":3578,"src":"3427:16:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":3539,"name":"int128","nodeType":"ElementaryTypeName","src":"3427:6:23","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"}],"src":"3386:58:23"},"returnParameters":{"id":3544,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3543,"mutability":"mutable","name":"token1Delta","nameLocation":"3475:11:23","nodeType":"VariableDeclaration","scope":3578,"src":"3468:18:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":3542,"name":"int256","nodeType":"ElementaryTypeName","src":"3468:6:23","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"3467:20:23"},"scope":3579,"src":"3363:363:23","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":3580,"src":"307:3421:23","usedErrors":[],"usedEvents":[]}],"src":"37:3692:23"},"id":23},"contracts/FeeDiscountPlugin.sol":{"ast":{"absolutePath":"contracts/FeeDiscountPlugin.sol","exportedSymbols":{"AbstractPlugin":[434],"BaseAbstractPlugin":[477],"FeeDiscountPlugin":[3676],"IAbstractPlugin":[495],"IAlgebraFactory":[779],"IAlgebraPlugin":[967],"IAlgebraPluginFactory":[999],"IAlgebraPool":[801],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolEvents":[1359],"IAlgebraPoolImmutables":[1387],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619],"IAlgebraVaultFactory":[1647],"IFeeDiscountPlugin":[3808],"IFeeDiscountRegistry":[3854],"Plugins":[2162],"SafeTransfer":[2299],"Timestamp":[512]},"id":3677,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":3581,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"38:24:24"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":3582,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3677,"sourceUnit":2163,"src":"66:70:24","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","id":3583,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3677,"sourceUnit":780,"src":"138:79:24","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol","file":"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol","id":3584,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3677,"sourceUnit":478,"src":"221:73:24","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountPlugin.sol","file":"./interfaces/IFeeDiscountPlugin.sol","id":3585,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3677,"sourceUnit":3809,"src":"298:45:24","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountRegistry.sol","file":"./interfaces/IFeeDiscountRegistry.sol","id":3586,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3677,"sourceUnit":3855,"src":"345:47:24","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":3588,"name":"BaseAbstractPlugin","nameLocations":["490:18:24"],"nodeType":"IdentifierPath","referencedDeclaration":477,"src":"490:18:24"},"id":3589,"nodeType":"InheritanceSpecifier","src":"490:18:24"},{"baseName":{"id":3590,"name":"IFeeDiscountPlugin","nameLocations":["510:18:24"],"nodeType":"IdentifierPath","referencedDeclaration":3808,"src":"510:18:24"},"id":3591,"nodeType":"InheritanceSpecifier","src":"510:18:24"}],"canonicalName":"FeeDiscountPlugin","contractDependencies":[],"contractKind":"contract","documentation":{"id":3587,"nodeType":"StructuredDocumentation","src":"398:53:24","text":"@title Algebra Integral 1.2 fee discount plugin"},"fullyImplemented":false,"id":3676,"linearizedBaseContracts":[3676,3808,477,434,512,495,967],"name":"FeeDiscountPlugin","nameLocation":"469:17:24","nodeType":"ContractDefinition","nodes":[{"global":false,"id":3594,"libraryName":{"id":3592,"name":"Plugins","nameLocations":["540:7:24"],"nodeType":"IdentifierPath","referencedDeclaration":2162,"src":"540:7:24"},"nodeType":"UsingForDirective","src":"534:24:24","typeName":{"id":3593,"name":"uint8","nodeType":"ElementaryTypeName","src":"552:5:24","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"constant":true,"id":3601,"mutability":"constant","name":"defaultPluginConfig","nameLocation":"587:19:24","nodeType":"VariableDeclaration","scope":3676,"src":"564:76:24","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":3595,"name":"uint8","nodeType":"ElementaryTypeName","src":"564:5:24","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"value":{"arguments":[{"expression":{"id":3598,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"615:7:24","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":3599,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"623:16:24","memberName":"BEFORE_SWAP_FLAG","nodeType":"MemberAccess","referencedDeclaration":2126,"src":"615:24:24","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":3597,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"609:5:24","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":3596,"name":"uint8","nodeType":"ElementaryTypeName","src":"609:5:24","typeDescriptions":{}}},"id":3600,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"609:31:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"private"},{"constant":true,"id":3604,"mutability":"constant","name":"FEE_DISCOUNT_DENOMINATOR","nameLocation":"669:24:24","nodeType":"VariableDeclaration","scope":3676,"src":"645:55:24","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":3602,"name":"uint16","nodeType":"ElementaryTypeName","src":"645:6:24","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"31303030","id":3603,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"696:4:24","typeDescriptions":{"typeIdentifier":"t_rational_1000_by_1","typeString":"int_const 1000"},"value":"1000"},"visibility":"private"},{"baseFunctions":[3803],"constant":false,"functionSelector":"f20cdc1a","id":3607,"mutability":"mutable","name":"feeDiscountRegistry","nameLocation":"731:19:24","nodeType":"VariableDeclaration","overrides":{"id":3606,"nodeType":"OverrideSpecifier","overrides":[],"src":"722:8:24"},"scope":3676,"src":"707:43:24","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3605,"name":"address","nodeType":"ElementaryTypeName","src":"707:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"body":{"id":3616,"nodeType":"Block","src":"799:55:24","statements":[{"expression":{"id":3614,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3612,"name":"feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3607,"src":"806:19:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":3613,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3609,"src":"828:20:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"806:42:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3615,"nodeType":"ExpressionStatement","src":"806:42:24"}]},"id":3617,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":3610,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3609,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"777:20:24","nodeType":"VariableDeclaration","scope":3617,"src":"769:28:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3608,"name":"address","nodeType":"ElementaryTypeName","src":"769:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"768:30:24"},"returnParameters":{"id":3611,"nodeType":"ParameterList","parameters":[],"src":"799:0:24"},"scope":3676,"src":"757:97:24","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":3656,"nodeType":"Block","src":"964:212:24","statements":[{"assignments":[3629],"declarations":[{"constant":false,"id":3629,"mutability":"mutable","name":"feeDiscount","nameLocation":"978:11:24","nodeType":"VariableDeclaration","scope":3656,"src":"971:18:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":3628,"name":"uint24","nodeType":"ElementaryTypeName","src":"971:6:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"id":3637,"initialValue":{"arguments":[{"id":3634,"name":"user","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3619,"src":"1047:4:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":3635,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3621,"src":"1053:4:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"id":3631,"name":"feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3607,"src":"1013:19:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":3630,"name":"IFeeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3854,"src":"992:20:24","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IFeeDiscountRegistry_$3854_$","typeString":"type(contract IFeeDiscountRegistry)"}},"id":3632,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"992:41:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IFeeDiscountRegistry_$3854","typeString":"contract IFeeDiscountRegistry"}},"id":3633,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1034:12:24","memberName":"feeDiscounts","nodeType":"MemberAccess","referencedDeclaration":3827,"src":"992:54:24","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$returns$_t_uint16_$","typeString":"function (address,address) external returns (uint16)"}},"id":3636,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"992:66:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"VariableDeclarationStatement","src":"971:87:24"},{"expression":{"id":3654,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3638,"name":"updatedFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3626,"src":"1065:10:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3652,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3649,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":3643,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3623,"src":"1094:3:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint24","typeString":"uint24"}],"id":3642,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1086:7:24","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":3641,"name":"uint256","nodeType":"ElementaryTypeName","src":"1086:7:24","typeDescriptions":{}}},"id":3644,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1086:12:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint24","typeString":"uint24"},"id":3647,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3645,"name":"FEE_DISCOUNT_DENOMINATOR","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3604,"src":"1102:24:24","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":3646,"name":"feeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3629,"src":"1129:11:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1102:38:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"id":3648,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1101:40:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1086:55:24","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":3650,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1085:57:24","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":3651,"name":"FEE_DISCOUNT_DENOMINATOR","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3604,"src":"1145:24:24","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1085:84:24","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":3640,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1078:6:24","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"},"typeName":{"id":3639,"name":"uint24","nodeType":"ElementaryTypeName","src":"1078:6:24","typeDescriptions":{}}},"id":3653,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1078:92:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1065:105:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"id":3655,"nodeType":"ExpressionStatement","src":"1065:105:24"}]},"id":3657,"implemented":true,"kind":"function","modifiers":[],"name":"_applyFeeDiscount","nameLocation":"869:17:24","nodeType":"FunctionDefinition","parameters":{"id":3624,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3619,"mutability":"mutable","name":"user","nameLocation":"895:4:24","nodeType":"VariableDeclaration","scope":3657,"src":"887:12:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3618,"name":"address","nodeType":"ElementaryTypeName","src":"887:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3621,"mutability":"mutable","name":"pool","nameLocation":"909:4:24","nodeType":"VariableDeclaration","scope":3657,"src":"901:12:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3620,"name":"address","nodeType":"ElementaryTypeName","src":"901:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3623,"mutability":"mutable","name":"fee","nameLocation":"922:3:24","nodeType":"VariableDeclaration","scope":3657,"src":"915:10:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":3622,"name":"uint24","nodeType":"ElementaryTypeName","src":"915:6:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"886:40:24"},"returnParameters":{"id":3627,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3626,"mutability":"mutable","name":"updatedFee","nameLocation":"952:10:24","nodeType":"VariableDeclaration","scope":3657,"src":"945:17:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":3625,"name":"uint24","nodeType":"ElementaryTypeName","src":"945:6:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"944:19:24"},"scope":3676,"src":"860:316:24","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"baseFunctions":[3798],"body":{"id":3674,"nodeType":"Block","src":"1262:127:24","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":3663,"name":"_authorize","nodeType":"Identifier","overloadedDeclarations":[476],"referencedDeclaration":476,"src":"1269:10:24","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":3664,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1269:12:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3665,"nodeType":"ExpressionStatement","src":"1269:12:24"},{"expression":{"id":3668,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3666,"name":"feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3607,"src":"1288:19:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":3667,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3659,"src":"1310:20:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1288:42:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3669,"nodeType":"ExpressionStatement","src":"1288:42:24"},{"eventCall":{"arguments":[{"id":3671,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3659,"src":"1362:20:24","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":3670,"name":"FeeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3807,"src":"1342:19:24","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":3672,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1342:41:24","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3673,"nodeType":"EmitStatement","src":"1337:46:24"}]},"functionSelector":"c3da7978","id":3675,"implemented":true,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"1191:22:24","nodeType":"FunctionDefinition","overrides":{"id":3661,"nodeType":"OverrideSpecifier","overrides":[],"src":"1253:8:24"},"parameters":{"id":3660,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3659,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"1222:20:24","nodeType":"VariableDeclaration","scope":3675,"src":"1214:28:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3658,"name":"address","nodeType":"ElementaryTypeName","src":"1214:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1213:30:24"},"returnParameters":{"id":3662,"nodeType":"ParameterList","parameters":[],"src":"1262:0:24"},"scope":3676,"src":"1182:207:24","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":3677,"src":"451:941:24","usedErrors":[1210],"usedEvents":[3807]}],"src":"38:1356:24"},"id":24},"contracts/FeeDiscountRegistry.sol":{"ast":{"absolutePath":"contracts/FeeDiscountRegistry.sol","exportedSymbols":{"FeeDiscountRegistry":[3791],"IAlgebraFactory":[779],"IAlgebraPluginFactory":[999],"IAlgebraVaultFactory":[1647],"IFeeDiscountRegistry":[3854]},"id":3792,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":3678,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:25"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","id":3679,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3792,"sourceUnit":780,"src":"63:79:25","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountRegistry.sol","file":"./interfaces/IFeeDiscountRegistry.sol","id":3680,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3792,"sourceUnit":3855,"src":"143:47:25","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":3681,"name":"IFeeDiscountRegistry","nameLocations":["224:20:25"],"nodeType":"IdentifierPath","referencedDeclaration":3854,"src":"224:20:25"},"id":3682,"nodeType":"InheritanceSpecifier","src":"224:20:25"}],"canonicalName":"FeeDiscountRegistry","contractDependencies":[],"contractKind":"contract","fullyImplemented":true,"id":3791,"linearizedBaseContracts":[3791,3854],"name":"FeeDiscountRegistry","nameLocation":"201:19:25","nodeType":"ContractDefinition","nodes":[{"baseFunctions":[3843],"constant":false,"functionSelector":"a7b64b04","id":3685,"mutability":"immutable","name":"algebraFactory","nameLocation":"283:14:25","nodeType":"VariableDeclaration","overrides":{"id":3684,"nodeType":"OverrideSpecifier","overrides":[],"src":"274:8:25"},"scope":3791,"src":"249:48:25","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3683,"name":"address","nodeType":"ElementaryTypeName","src":"249:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"baseFunctions":[3848],"constant":true,"functionSelector":"d2426f07","id":3691,"mutability":"constant","name":"FEE_DISCOUNT_MANAGER","nameLocation":"334:20:25","nodeType":"VariableDeclaration","overrides":{"id":3687,"nodeType":"OverrideSpecifier","overrides":[],"src":"325:8:25"},"scope":3791,"src":"301:89:25","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3686,"name":"bytes32","nodeType":"ElementaryTypeName","src":"301:7:25","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"arguments":[{"hexValue":"4645455f444953434f554e545f4d414e41474552","id":3689,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"367:22:25","typeDescriptions":{"typeIdentifier":"t_stringliteral_a49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e8","typeString":"literal_string \"FEE_DISCOUNT_MANAGER\""},"value":"FEE_DISCOUNT_MANAGER"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_a49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e8","typeString":"literal_string \"FEE_DISCOUNT_MANAGER\""}],"id":3688,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-8,"src":"357:9:25","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":3690,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"357:33:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"public"},{"baseFunctions":[3853],"constant":true,"functionSelector":"51f8ba46","id":3695,"mutability":"constant","name":"FEE_DISCOUNT_DENOMINATOR","nameLocation":"426:24:25","nodeType":"VariableDeclaration","overrides":{"id":3693,"nodeType":"OverrideSpecifier","overrides":[],"src":"417:8:25"},"scope":3791,"src":"394:63:25","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":3692,"name":"uint16","nodeType":"ElementaryTypeName","src":"394:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"31303030","id":3694,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"453:4:25","typeDescriptions":{"typeIdentifier":"t_rational_1000_by_1","typeString":"int_const 1000"},"value":"1000"},"visibility":"public"},{"baseFunctions":[3827],"constant":false,"functionSelector":"1101ce3e","id":3702,"mutability":"mutable","name":"feeDiscounts","nameLocation":"558:12:25","nodeType":"VariableDeclaration","overrides":{"id":3701,"nodeType":"OverrideSpecifier","overrides":[],"src":"549:8:25"},"scope":3791,"src":"495:75:25","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint16_$_$","typeString":"mapping(address => mapping(address => uint16))"},"typeName":{"id":3700,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3696,"name":"address","nodeType":"ElementaryTypeName","src":"503:7:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"495:46:25","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint16_$_$","typeString":"mapping(address => mapping(address => uint16))"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3699,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3697,"name":"address","nodeType":"ElementaryTypeName","src":"522:7:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"514:26:25","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint16_$","typeString":"mapping(address => uint16)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3698,"name":"uint16","nodeType":"ElementaryTypeName","src":"533:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}}},"visibility":"public"},{"body":{"id":3711,"nodeType":"Block","src":"612:43:25","statements":[{"expression":{"id":3709,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3707,"name":"algebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3685,"src":"618:14:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":3708,"name":"_algebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3704,"src":"635:15:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"618:32:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3710,"nodeType":"ExpressionStatement","src":"618:32:25"}]},"id":3712,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":3705,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3704,"mutability":"mutable","name":"_algebraFactory","nameLocation":"595:15:25","nodeType":"VariableDeclaration","scope":3712,"src":"587:23:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3703,"name":"address","nodeType":"ElementaryTypeName","src":"587:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"586:25:25"},"returnParameters":{"id":3706,"nodeType":"ParameterList","parameters":[],"src":"612:0:25"},"scope":3791,"src":"575:80:25","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"baseFunctions":[3838],"body":{"id":3789,"nodeType":"Block","src":"769:444:25","statements":[{"expression":{"arguments":[{"arguments":[{"id":3729,"name":"FEE_DISCOUNT_MANAGER","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3691,"src":"830:20:25","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"expression":{"id":3730,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"852:3:25","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":3731,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"856:6:25","memberName":"sender","nodeType":"MemberAccess","src":"852:10:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"id":3726,"name":"algebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3685,"src":"799:14:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":3725,"name":"IAlgebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":779,"src":"783:15:25","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraFactory_$779_$","typeString":"type(contract IAlgebraFactory)"}},"id":3727,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"783:31:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraFactory_$779","typeString":"contract IAlgebraFactory"}},"id":3728,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"815:14:25","memberName":"hasRoleOrOwner","nodeType":"MemberAccess","referencedDeclaration":602,"src":"783:46:25","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$_t_address_$returns$_t_bool_$","typeString":"function (bytes32,address) view external returns (bool)"}},"id":3732,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"783:80:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"556e617574686f72697a6564","id":3733,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"865:14:25","typeDescriptions":{"typeIdentifier":"t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5","typeString":"literal_string \"Unauthorized\""},"value":"Unauthorized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5","typeString":"literal_string \"Unauthorized\""}],"id":3724,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"775:7:25","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":3734,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"775:105:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3735,"nodeType":"ExpressionStatement","src":"775:105:25"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3741,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":3737,"name":"pools","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3717,"src":"894:5:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[] memory"}},"id":3738,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"900:6:25","memberName":"length","nodeType":"MemberAccess","src":"894:12:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":3739,"name":"newDiscounts","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3720,"src":"910:12:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[] memory"}},"id":3740,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"923:6:25","memberName":"length","nodeType":"MemberAccess","src":"910:19:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"894:35:25","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4172726179734c656e6774684d69736d61746368","id":3742,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"931:22:25","typeDescriptions":{"typeIdentifier":"t_stringliteral_3c58f19163f601dd85ead03796119784c7f52032728be2538d5061c7e5c87c99","typeString":"literal_string \"ArraysLengthMismatch\""},"value":"ArraysLengthMismatch"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_3c58f19163f601dd85ead03796119784c7f52032728be2538d5061c7e5c87c99","typeString":"literal_string \"ArraysLengthMismatch\""}],"id":3736,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"886:7:25","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":3743,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"886:68:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3744,"nodeType":"ExpressionStatement","src":"886:68:25"},{"body":{"id":3787,"nodeType":"Block","src":"1001:208:25","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":3761,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"baseExpression":{"id":3757,"name":"newDiscounts","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3720,"src":"1017:12:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[] memory"}},"id":3759,"indexExpression":{"id":3758,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"1030:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1017:15:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"<=","rightExpression":{"id":3760,"name":"FEE_DISCOUNT_DENOMINATOR","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3695,"src":"1036:24:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1017:43:25","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"66656520646973636f756e742065786563656564732031303025","id":3762,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1062:28:25","typeDescriptions":{"typeIdentifier":"t_stringliteral_f73b17d3ca641c2b52f75f4a055c27b2da4da29789376898c173e019d125ee4b","typeString":"literal_string \"fee discount execeeds 100%\""},"value":"fee discount execeeds 100%"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_f73b17d3ca641c2b52f75f4a055c27b2da4da29789376898c173e019d125ee4b","typeString":"literal_string \"fee discount execeeds 100%\""}],"id":3756,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"1009:7:25","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":3763,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1009:82:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3764,"nodeType":"ExpressionStatement","src":"1009:82:25"},{"expression":{"id":3775,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"baseExpression":{"id":3765,"name":"feeDiscounts","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3702,"src":"1099:12:25","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint16_$_$","typeString":"mapping(address => mapping(address => uint16))"}},"id":3770,"indexExpression":{"id":3766,"name":"user","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3714,"src":"1112:4:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1099:18:25","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_uint16_$","typeString":"mapping(address => uint16)"}},"id":3771,"indexExpression":{"baseExpression":{"id":3767,"name":"pools","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3717,"src":"1118:5:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[] memory"}},"id":3769,"indexExpression":{"id":3768,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"1124:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1118:8:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1099:28:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"baseExpression":{"id":3772,"name":"newDiscounts","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3720,"src":"1130:12:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[] memory"}},"id":3774,"indexExpression":{"id":3773,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"1143:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1130:15:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1099:46:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":3776,"nodeType":"ExpressionStatement","src":"1099:46:25"},{"eventCall":{"arguments":[{"id":3778,"name":"user","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3714,"src":"1170:4:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"baseExpression":{"id":3779,"name":"pools","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3717,"src":"1176:5:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[] memory"}},"id":3781,"indexExpression":{"id":3780,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"1182:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1176:8:25","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"baseExpression":{"id":3782,"name":"newDiscounts","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3720,"src":"1186:12:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[] memory"}},"id":3784,"indexExpression":{"id":3783,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"1199:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1186:15:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint16","typeString":"uint16"}],"id":3777,"name":"FeeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3818,"src":"1158:11:25","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint16_$returns$__$","typeString":"function (address,address,uint16)"}},"id":3785,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1158:44:25","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":3786,"nodeType":"EmitStatement","src":"1153:49:25"}]},"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":3752,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3749,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"978:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"expression":{"id":3750,"name":"pools","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3717,"src":"982:5:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[] memory"}},"id":3751,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"988:6:25","memberName":"length","nodeType":"MemberAccess","src":"982:12:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"978:16:25","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3788,"initializationExpression":{"assignments":[3746],"declarations":[{"constant":false,"id":3746,"mutability":"mutable","name":"i","nameLocation":"971:1:25","nodeType":"VariableDeclaration","scope":3788,"src":"966:6:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":3745,"name":"uint","nodeType":"ElementaryTypeName","src":"966:4:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"id":3748,"initialValue":{"hexValue":"30","id":3747,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"975:1:25","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"966:10:25"},"loopExpression":{"expression":{"id":3754,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"996:3:25","subExpression":{"id":3753,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3746,"src":"996:1:25","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":3755,"nodeType":"ExpressionStatement","src":"996:3:25"},"nodeType":"ForStatement","src":"961:248:25"}]},"functionSelector":"978e13ea","id":3790,"implemented":true,"kind":"function","modifiers":[],"name":"setFeeDiscount","nameLocation":"668:14:25","nodeType":"FunctionDefinition","overrides":{"id":3722,"nodeType":"OverrideSpecifier","overrides":[],"src":"760:8:25"},"parameters":{"id":3721,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3714,"mutability":"mutable","name":"user","nameLocation":"691:4:25","nodeType":"VariableDeclaration","scope":3790,"src":"683:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3713,"name":"address","nodeType":"ElementaryTypeName","src":"683:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3717,"mutability":"mutable","name":"pools","nameLocation":"714:5:25","nodeType":"VariableDeclaration","scope":3790,"src":"697:22:25","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[]"},"typeName":{"baseType":{"id":3715,"name":"address","nodeType":"ElementaryTypeName","src":"697:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3716,"nodeType":"ArrayTypeName","src":"697:9:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_storage_ptr","typeString":"address[]"}},"visibility":"internal"},{"constant":false,"id":3720,"mutability":"mutable","name":"newDiscounts","nameLocation":"737:12:25","nodeType":"VariableDeclaration","scope":3790,"src":"721:28:25","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[]"},"typeName":{"baseType":{"id":3718,"name":"uint16","nodeType":"ElementaryTypeName","src":"721:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":3719,"nodeType":"ArrayTypeName","src":"721:8:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_storage_ptr","typeString":"uint16[]"}},"visibility":"internal"}],"src":"682:68:25"},"returnParameters":{"id":3723,"nodeType":"ParameterList","parameters":[],"src":"769:0:25"},"scope":3791,"src":"659:554:25","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":3792,"src":"192:1023:25","usedErrors":[],"usedEvents":[3818]}],"src":"37:1179:25"},"id":25},"contracts/interfaces/IFeeDiscountPlugin.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountPlugin.sol","exportedSymbols":{"IFeeDiscountPlugin":[3808]},"id":3809,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":3793,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:26"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountPlugin","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":3808,"linearizedBaseContracts":[3808],"name":"IFeeDiscountPlugin","nameLocation":"81:18:26","nodeType":"ContractDefinition","nodes":[{"functionSelector":"c3da7978","id":3798,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"113:22:26","nodeType":"FunctionDefinition","parameters":{"id":3796,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3795,"mutability":"mutable","name":"registry","nameLocation":"144:8:26","nodeType":"VariableDeclaration","scope":3798,"src":"136:16:26","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3794,"name":"address","nodeType":"ElementaryTypeName","src":"136:7:26","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"135:18:26"},"returnParameters":{"id":3797,"nodeType":"ParameterList","parameters":[],"src":"162:0:26"},"scope":3808,"src":"104:59:26","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"f20cdc1a","id":3803,"implemented":false,"kind":"function","modifiers":[],"name":"feeDiscountRegistry","nameLocation":"176:19:26","nodeType":"FunctionDefinition","parameters":{"id":3799,"nodeType":"ParameterList","parameters":[],"src":"195:2:26"},"returnParameters":{"id":3802,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3801,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":3803,"src":"221:7:26","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3800,"name":"address","nodeType":"ElementaryTypeName","src":"221:7:26","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"220:9:26"},"scope":3808,"src":"167:63:26","stateMutability":"view","virtual":false,"visibility":"external"},{"anonymous":false,"eventSelector":"3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b65327","id":3807,"name":"FeeDiscountRegistry","nameLocation":"240:19:26","nodeType":"EventDefinition","parameters":{"id":3806,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3805,"indexed":false,"mutability":"mutable","name":"registry","nameLocation":"268:8:26","nodeType":"VariableDeclaration","scope":3807,"src":"260:16:26","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3804,"name":"address","nodeType":"ElementaryTypeName","src":"260:7:26","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"259:18:26"},"src":"234:44:26"}],"scope":3809,"src":"71:209:26","usedErrors":[],"usedEvents":[3807]}],"src":"45:236:26"},"id":26},"contracts/interfaces/IFeeDiscountRegistry.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountRegistry.sol","exportedSymbols":{"IFeeDiscountRegistry":[3854]},"id":3855,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":3810,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:27"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountRegistry","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":3854,"linearizedBaseContracts":[3854],"name":"IFeeDiscountRegistry","nameLocation":"81:20:27","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"eventSelector":"7a30dcbbc729b723963056eb5780229274194a05bbe6fe5174b8864d96c37a2c","id":3818,"name":"FeeDiscount","nameLocation":"112:11:27","nodeType":"EventDefinition","parameters":{"id":3817,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3812,"indexed":false,"mutability":"mutable","name":"user","nameLocation":"132:4:27","nodeType":"VariableDeclaration","scope":3818,"src":"124:12:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3811,"name":"address","nodeType":"ElementaryTypeName","src":"124:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3814,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"146:4:27","nodeType":"VariableDeclaration","scope":3818,"src":"138:12:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3813,"name":"address","nodeType":"ElementaryTypeName","src":"138:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3816,"indexed":false,"mutability":"mutable","name":"newDiscount","nameLocation":"159:11:27","nodeType":"VariableDeclaration","scope":3818,"src":"152:18:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":3815,"name":"uint16","nodeType":"ElementaryTypeName","src":"152:6:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"123:48:27"},"src":"106:66:27"},{"functionSelector":"1101ce3e","id":3827,"implemented":false,"kind":"function","modifiers":[],"name":"feeDiscounts","nameLocation":"185:12:27","nodeType":"FunctionDefinition","parameters":{"id":3823,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3820,"mutability":"mutable","name":"user","nameLocation":"206:4:27","nodeType":"VariableDeclaration","scope":3827,"src":"198:12:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3819,"name":"address","nodeType":"ElementaryTypeName","src":"198:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3822,"mutability":"mutable","name":"pool","nameLocation":"220:4:27","nodeType":"VariableDeclaration","scope":3827,"src":"212:12:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3821,"name":"address","nodeType":"ElementaryTypeName","src":"212:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"197:28:27"},"returnParameters":{"id":3826,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3825,"mutability":"mutable","name":"feeDiscount","nameLocation":"251:11:27","nodeType":"VariableDeclaration","scope":3827,"src":"244:18:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":3824,"name":"uint16","nodeType":"ElementaryTypeName","src":"244:6:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"243:20:27"},"scope":3854,"src":"176:88:27","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"978e13ea","id":3838,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscount","nameLocation":"276:14:27","nodeType":"FunctionDefinition","parameters":{"id":3836,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3829,"mutability":"mutable","name":"user","nameLocation":"299:4:27","nodeType":"VariableDeclaration","scope":3838,"src":"291:12:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3828,"name":"address","nodeType":"ElementaryTypeName","src":"291:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3832,"mutability":"mutable","name":"pools","nameLocation":"322:5:27","nodeType":"VariableDeclaration","scope":3838,"src":"305:22:27","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[]"},"typeName":{"baseType":{"id":3830,"name":"address","nodeType":"ElementaryTypeName","src":"305:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3831,"nodeType":"ArrayTypeName","src":"305:9:27","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_storage_ptr","typeString":"address[]"}},"visibility":"internal"},{"constant":false,"id":3835,"mutability":"mutable","name":"newDiscounts","nameLocation":"345:12:27","nodeType":"VariableDeclaration","scope":3838,"src":"329:28:27","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[]"},"typeName":{"baseType":{"id":3833,"name":"uint16","nodeType":"ElementaryTypeName","src":"329:6:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":3834,"nodeType":"ArrayTypeName","src":"329:8:27","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_storage_ptr","typeString":"uint16[]"}},"visibility":"internal"}],"src":"290:68:27"},"returnParameters":{"id":3837,"nodeType":"ParameterList","parameters":[],"src":"367:0:27"},"scope":3854,"src":"267:101:27","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"a7b64b04","id":3843,"implemented":false,"kind":"function","modifiers":[],"name":"algebraFactory","nameLocation":"381:14:27","nodeType":"FunctionDefinition","parameters":{"id":3839,"nodeType":"ParameterList","parameters":[],"src":"395:2:27"},"returnParameters":{"id":3842,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3841,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":3843,"src":"421:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3840,"name":"address","nodeType":"ElementaryTypeName","src":"421:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"420:9:27"},"scope":3854,"src":"372:58:27","stateMutability":"view","virtual":false,"visibility":"external"},{"functionSelector":"d2426f07","id":3848,"implemented":false,"kind":"function","modifiers":[],"name":"FEE_DISCOUNT_MANAGER","nameLocation":"442:20:27","nodeType":"FunctionDefinition","parameters":{"id":3844,"nodeType":"ParameterList","parameters":[],"src":"462:2:27"},"returnParameters":{"id":3847,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3846,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":3848,"src":"488:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3845,"name":"bytes32","nodeType":"ElementaryTypeName","src":"488:7:27","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"487:9:27"},"scope":3854,"src":"433:64:27","stateMutability":"pure","virtual":false,"visibility":"external"},{"functionSelector":"51f8ba46","id":3853,"implemented":false,"kind":"function","modifiers":[],"name":"FEE_DISCOUNT_DENOMINATOR","nameLocation":"509:24:27","nodeType":"FunctionDefinition","parameters":{"id":3849,"nodeType":"ParameterList","parameters":[],"src":"533:2:27"},"returnParameters":{"id":3852,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3851,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":3853,"src":"559:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":3850,"name":"uint16","nodeType":"ElementaryTypeName","src":"559:6:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"558:8:27"},"scope":3854,"src":"500:67:27","stateMutability":"pure","virtual":false,"visibility":"external"}],"scope":3855,"src":"71:498:27","usedErrors":[],"usedEvents":[3818]}],"src":"45:525:27"},"id":27},"contracts/test/MockFactory.sol":{"ast":{"absolutePath":"contracts/test/MockFactory.sol","exportedSymbols":{"IAlgebraPluginFactory":[999],"MockFactory":[3998]},"id":3999,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":3856,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"38:24:28"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","id":3857,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":3999,"sourceUnit":1000,"src":"66:92:28","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"MockFactory","contractDependencies":[],"contractKind":"contract","documentation":{"id":3858,"nodeType":"StructuredDocumentation","src":"162:56:28","text":"@title Mock of Algebra factory for plugins testing"},"fullyImplemented":true,"id":3998,"linearizedBaseContracts":[3998],"name":"MockFactory","nameLocation":"227:11:28","nodeType":"ContractDefinition","nodes":[{"constant":true,"functionSelector":"b500a48b","id":3863,"mutability":"constant","name":"POOLS_ADMINISTRATOR_ROLE","nameLocation":"268:24:28","nodeType":"VariableDeclaration","scope":3998,"src":"244:83:28","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3859,"name":"bytes32","nodeType":"ElementaryTypeName","src":"244:7:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"arguments":[{"hexValue":"504f4f4c535f41444d494e4953545241544f52","id":3861,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"305:21:28","typeDescriptions":{"typeIdentifier":"t_stringliteral_b73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad3442","typeString":"literal_string \"POOLS_ADMINISTRATOR\""},"value":"POOLS_ADMINISTRATOR"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_b73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad3442","typeString":"literal_string \"POOLS_ADMINISTRATOR\""}],"id":3860,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-8,"src":"295:9:28","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":3862,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"295:32:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"public"},{"constant":false,"functionSelector":"8da5cb5b","id":3865,"mutability":"mutable","name":"owner","nameLocation":"349:5:28","nodeType":"VariableDeclaration","scope":3998,"src":"334:20:28","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3864,"name":"address","nodeType":"ElementaryTypeName","src":"334:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"constant":false,"functionSelector":"ac4ab3fb","id":3871,"mutability":"mutable","name":"hasRole","nameLocation":"413:7:28","nodeType":"VariableDeclaration","scope":3998,"src":"361:59:28","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_bytes32_$_t_bool_$_$","typeString":"mapping(address => mapping(bytes32 => bool))"},"typeName":{"id":3870,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3866,"name":"address","nodeType":"ElementaryTypeName","src":"369:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"361:44:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_bytes32_$_t_bool_$_$","typeString":"mapping(address => mapping(bytes32 => bool))"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3869,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3867,"name":"bytes32","nodeType":"ElementaryTypeName","src":"388:7:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"380:24:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_bool_$","typeString":"mapping(bytes32 => bool)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3868,"name":"bool","nodeType":"ElementaryTypeName","src":"399:4:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}}},"visibility":"public"},{"constant":false,"functionSelector":"d9a641e1","id":3877,"mutability":"mutable","name":"poolByPair","nameLocation":"482:10:28","nodeType":"VariableDeclaration","scope":3998,"src":"427:65:28","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_address_$_$","typeString":"mapping(address => mapping(address => address))"},"typeName":{"id":3876,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3872,"name":"address","nodeType":"ElementaryTypeName","src":"435:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"427:47:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_address_$_$","typeString":"mapping(address => mapping(address => address))"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3875,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":3873,"name":"address","nodeType":"ElementaryTypeName","src":"454:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"446:27:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_address_$","typeString":"mapping(address => address)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":3874,"name":"address","nodeType":"ElementaryTypeName","src":"465:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}}},"visibility":"public"},{"body":{"id":3885,"nodeType":"Block","src":"513:31:28","statements":[{"expression":{"id":3883,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":3880,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3865,"src":"520:5:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"id":3881,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"528:3:28","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":3882,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"532:6:28","memberName":"sender","nodeType":"MemberAccess","src":"528:10:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"520:18:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3884,"nodeType":"ExpressionStatement","src":"520:18:28"}]},"id":3886,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":3878,"nodeType":"ParameterList","parameters":[],"src":"510:2:28"},"returnParameters":{"id":3879,"nodeType":"ParameterList","parameters":[],"src":"513:0:28"},"scope":3998,"src":"499:45:28","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":3906,"nodeType":"Block","src":"632:64:28","statements":[{"expression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":3903,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":3897,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":3895,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3865,"src":"647:5:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":3896,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3890,"src":"656:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"647:16:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"baseExpression":{"baseExpression":{"id":3898,"name":"hasRole","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3871,"src":"667:7:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_bytes32_$_t_bool_$_$","typeString":"mapping(address => mapping(bytes32 => bool))"}},"id":3900,"indexExpression":{"id":3899,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3890,"src":"675:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"667:16:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_bool_$","typeString":"mapping(bytes32 => bool)"}},"id":3902,"indexExpression":{"id":3901,"name":"role","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3888,"src":"684:4:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"667:22:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"647:42:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":3904,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"646:44:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":3894,"id":3905,"nodeType":"Return","src":"639:51:28"}]},"functionSelector":"e8ae2b69","id":3907,"implemented":true,"kind":"function","modifiers":[],"name":"hasRoleOrOwner","nameLocation":"559:14:28","nodeType":"FunctionDefinition","parameters":{"id":3891,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3888,"mutability":"mutable","name":"role","nameLocation":"582:4:28","nodeType":"VariableDeclaration","scope":3907,"src":"574:12:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3887,"name":"bytes32","nodeType":"ElementaryTypeName","src":"574:7:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"},{"constant":false,"id":3890,"mutability":"mutable","name":"account","nameLocation":"596:7:28","nodeType":"VariableDeclaration","scope":3907,"src":"588:15:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3889,"name":"address","nodeType":"ElementaryTypeName","src":"588:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"573:31:28"},"returnParameters":{"id":3894,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3893,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":3907,"src":"626:4:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":3892,"name":"bool","nodeType":"ElementaryTypeName","src":"626:4:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"625:6:28"},"scope":3998,"src":"550:146:28","stateMutability":"view","virtual":false,"visibility":"public"},{"body":{"id":3922,"nodeType":"Block","src":"761:42:28","statements":[{"expression":{"id":3920,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"baseExpression":{"id":3914,"name":"hasRole","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3871,"src":"768:7:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_bytes32_$_t_bool_$_$","typeString":"mapping(address => mapping(bytes32 => bool))"}},"id":3917,"indexExpression":{"id":3915,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3911,"src":"776:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"768:16:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_bool_$","typeString":"mapping(bytes32 => bool)"}},"id":3918,"indexExpression":{"id":3916,"name":"role","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3909,"src":"785:4:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"768:22:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":3919,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"793:4:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"768:29:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3921,"nodeType":"ExpressionStatement","src":"768:29:28"}]},"functionSelector":"2f2ff15d","id":3923,"implemented":true,"kind":"function","modifiers":[],"name":"grantRole","nameLocation":"711:9:28","nodeType":"FunctionDefinition","parameters":{"id":3912,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3909,"mutability":"mutable","name":"role","nameLocation":"729:4:28","nodeType":"VariableDeclaration","scope":3923,"src":"721:12:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3908,"name":"bytes32","nodeType":"ElementaryTypeName","src":"721:7:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"},{"constant":false,"id":3911,"mutability":"mutable","name":"account","nameLocation":"743:7:28","nodeType":"VariableDeclaration","scope":3923,"src":"735:15:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3910,"name":"address","nodeType":"ElementaryTypeName","src":"735:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"720:31:28"},"returnParameters":{"id":3913,"nodeType":"ParameterList","parameters":[],"src":"761:0:28"},"scope":3998,"src":"702:101:28","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"body":{"id":3938,"nodeType":"Block","src":"869:43:28","statements":[{"expression":{"id":3936,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"baseExpression":{"id":3930,"name":"hasRole","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3871,"src":"876:7:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_bytes32_$_t_bool_$_$","typeString":"mapping(address => mapping(bytes32 => bool))"}},"id":3933,"indexExpression":{"id":3931,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3927,"src":"884:7:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"876:16:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_bool_$","typeString":"mapping(bytes32 => bool)"}},"id":3934,"indexExpression":{"id":3932,"name":"role","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3925,"src":"893:4:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"876:22:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":3935,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"901:5:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"876:30:28","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":3937,"nodeType":"ExpressionStatement","src":"876:30:28"}]},"functionSelector":"d547741f","id":3939,"implemented":true,"kind":"function","modifiers":[],"name":"revokeRole","nameLocation":"818:10:28","nodeType":"FunctionDefinition","parameters":{"id":3928,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3925,"mutability":"mutable","name":"role","nameLocation":"837:4:28","nodeType":"VariableDeclaration","scope":3939,"src":"829:12:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":3924,"name":"bytes32","nodeType":"ElementaryTypeName","src":"829:7:28","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"},{"constant":false,"id":3927,"mutability":"mutable","name":"account","nameLocation":"851:7:28","nodeType":"VariableDeclaration","scope":3939,"src":"843:15:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3926,"name":"address","nodeType":"ElementaryTypeName","src":"843:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"828:31:28"},"returnParameters":{"id":3929,"nodeType":"ParameterList","parameters":[],"src":"869:0:28"},"scope":3998,"src":"809:103:28","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"body":{"id":3964,"nodeType":"Block","src":"989:86:28","statements":[{"expression":{"id":3954,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"baseExpression":{"id":3948,"name":"poolByPair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3877,"src":"996:10:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_address_$_$","typeString":"mapping(address => mapping(address => address))"}},"id":3951,"indexExpression":{"id":3949,"name":"token0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3941,"src":"1007:6:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"996:18:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_address_$","typeString":"mapping(address => address)"}},"id":3952,"indexExpression":{"id":3950,"name":"token1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3943,"src":"1015:6:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"996:26:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":3953,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3945,"src":"1025:4:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"996:33:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3955,"nodeType":"ExpressionStatement","src":"996:33:28"},{"expression":{"id":3962,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"baseExpression":{"id":3956,"name":"poolByPair","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3877,"src":"1036:10:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_address_$_$","typeString":"mapping(address => mapping(address => address))"}},"id":3959,"indexExpression":{"id":3957,"name":"token1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3943,"src":"1047:6:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1036:18:28","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_address_$","typeString":"mapping(address => address)"}},"id":3960,"indexExpression":{"id":3958,"name":"token0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3941,"src":"1055:6:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1036:26:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":3961,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3945,"src":"1065:4:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1036:33:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3963,"nodeType":"ExpressionStatement","src":"1036:33:28"}]},"functionSelector":"f89b66ec","id":3965,"implemented":true,"kind":"function","modifiers":[],"name":"stubPool","nameLocation":"927:8:28","nodeType":"FunctionDefinition","parameters":{"id":3946,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3941,"mutability":"mutable","name":"token0","nameLocation":"944:6:28","nodeType":"VariableDeclaration","scope":3965,"src":"936:14:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3940,"name":"address","nodeType":"ElementaryTypeName","src":"936:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3943,"mutability":"mutable","name":"token1","nameLocation":"960:6:28","nodeType":"VariableDeclaration","scope":3965,"src":"952:14:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3942,"name":"address","nodeType":"ElementaryTypeName","src":"952:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3945,"mutability":"mutable","name":"pool","nameLocation":"976:4:28","nodeType":"VariableDeclaration","scope":3965,"src":"968:12:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3944,"name":"address","nodeType":"ElementaryTypeName","src":"968:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"935:46:28"},"returnParameters":{"id":3947,"nodeType":"ParameterList","parameters":[],"src":"989:0:28"},"scope":3998,"src":"918:157:28","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":3996,"nodeType":"Block","src":"1157:130:28","statements":[{"expression":{"arguments":[{"id":3976,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3969,"src":"1222:4:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"hexValue":"30","id":3979,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1236:1:28","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":3978,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1228:7:28","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":3977,"name":"address","nodeType":"ElementaryTypeName","src":"1228:7:28","typeDescriptions":{}}},"id":3980,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1228:10:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"hexValue":"30","id":3983,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1248:1:28","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":3982,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1240:7:28","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":3981,"name":"address","nodeType":"ElementaryTypeName","src":"1240:7:28","typeDescriptions":{}}},"id":3984,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1240:10:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"hexValue":"30","id":3987,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1260:1:28","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":3986,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1252:7:28","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":3985,"name":"address","nodeType":"ElementaryTypeName","src":"1252:7:28","typeDescriptions":{}}},"id":3988,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1252:10:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"hexValue":"30","id":3991,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1272:1:28","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":3990,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1264:7:28","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":3989,"name":"address","nodeType":"ElementaryTypeName","src":"1264:7:28","typeDescriptions":{}}},"id":3992,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1264:10:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"hexValue":"3078","id":3993,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1276:4:28","typeDescriptions":{"typeIdentifier":"t_stringliteral_39bef1777deb3dfb14f64b9f81ced092c501fee72f90e93d03bb95ee89df9837","typeString":"literal_string \"0x\""},"value":"0x"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_stringliteral_39bef1777deb3dfb14f64b9f81ced092c501fee72f90e93d03bb95ee89df9837","typeString":"literal_string \"0x\""}],"expression":{"arguments":[{"id":3973,"name":"pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3967,"src":"1186:13:28","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":3972,"name":"IAlgebraPluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":999,"src":"1164:21:28","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPluginFactory_$999_$","typeString":"type(contract IAlgebraPluginFactory)"}},"id":3974,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1164:36:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPluginFactory_$999","typeString":"contract IAlgebraPluginFactory"}},"id":3975,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1201:20:28","memberName":"beforeCreatePoolHook","nodeType":"MemberAccess","referencedDeclaration":988,"src":"1164:57:28","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_address_$_t_address_$_t_address_$_t_bytes_memory_ptr_$returns$_t_address_$","typeString":"function (address,address,address,address,address,bytes memory) external returns (address)"}},"id":3994,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1164:117:28","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":3995,"nodeType":"ExpressionStatement","src":"1164:117:28"}]},"functionSelector":"2cb8189e","id":3997,"implemented":true,"kind":"function","modifiers":[],"name":"beforeCreatePoolHook","nameLocation":"1090:20:28","nodeType":"FunctionDefinition","parameters":{"id":3970,"nodeType":"ParameterList","parameters":[{"constant":false,"id":3967,"mutability":"mutable","name":"pluginFactory","nameLocation":"1119:13:28","nodeType":"VariableDeclaration","scope":3997,"src":"1111:21:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3966,"name":"address","nodeType":"ElementaryTypeName","src":"1111:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":3969,"mutability":"mutable","name":"pool","nameLocation":"1142:4:28","nodeType":"VariableDeclaration","scope":3997,"src":"1134:12:28","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":3968,"name":"address","nodeType":"ElementaryTypeName","src":"1134:7:28","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1110:37:28"},"returnParameters":{"id":3971,"nodeType":"ParameterList","parameters":[],"src":"1157:0:28"},"scope":3998,"src":"1081:206:28","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":3999,"src":"218:1072:28","usedErrors":[],"usedEvents":[]}],"src":"38:1254:28"},"id":28},"contracts/test/MockPool.sol":{"ast":{"absolutePath":"contracts/test/MockPool.sol","exportedSymbols":{"Constants":[1702],"FullMath":[1909],"IAlgebraPlugin":[967],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619],"LiquidityMath":[2090],"MockPool":[4866],"Plugins":[2162],"SafeCast":[2271],"TickManagement":[2842],"TickMath":[3371],"TokenDeltaMath":[3579]},"id":4867,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":4000,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"38:24:29"},{"id":4001,"literals":["abicoder","v1"],"nodeType":"PragmaDirective","src":"64:19:29"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol","id":4002,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":2843,"src":"87:77:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol","id":4003,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":1703,"src":"166:72:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":4004,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":2163,"src":"240:70:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol","id":4005,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":3372,"src":"312:71:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","id":4006,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":1116,"src":"387:88:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","id":4007,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":1620,"src":"477:86:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","id":4008,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":1436,"src":"565:100:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","id":4009,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":1218,"src":"667:87:29","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","id":4010,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":4867,"sourceUnit":968,"src":"756:85:29","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":4012,"name":"IAlgebraPoolActions","nameLocations":["942:19:29"],"nodeType":"IdentifierPath","referencedDeclaration":1115,"src":"942:19:29"},"id":4013,"nodeType":"InheritanceSpecifier","src":"942:19:29"},{"baseName":{"id":4014,"name":"IAlgebraPoolPermissionedActions","nameLocations":["963:31:29"],"nodeType":"IdentifierPath","referencedDeclaration":1435,"src":"963:31:29"},"id":4015,"nodeType":"InheritanceSpecifier","src":"963:31:29"},{"baseName":{"id":4016,"name":"IAlgebraPoolState","nameLocations":["996:17:29"],"nodeType":"IdentifierPath","referencedDeclaration":1619,"src":"996:17:29"},"id":4017,"nodeType":"InheritanceSpecifier","src":"996:17:29"}],"canonicalName":"MockPool","contractDependencies":[],"contractKind":"contract","documentation":{"id":4011,"nodeType":"StructuredDocumentation","src":"845:76:29","text":"@title Mock of Algebra concentrated liquidity pool for plugins testing"},"fullyImplemented":true,"id":4866,"linearizedBaseContracts":[4866,1619,1435,1115],"name":"MockPool","nameLocation":"930:8:29","nodeType":"ContractDefinition","nodes":[{"canonicalName":"MockPool.GlobalState","id":4030,"members":[{"constant":false,"id":4019,"mutability":"mutable","name":"price","nameLocation":"1053:5:29","nodeType":"VariableDeclaration","scope":4030,"src":"1045:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4018,"name":"uint160","nodeType":"ElementaryTypeName","src":"1045:7:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4021,"mutability":"mutable","name":"tick","nameLocation":"1128:4:29","nodeType":"VariableDeclaration","scope":4030,"src":"1122:10:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4020,"name":"int24","nodeType":"ElementaryTypeName","src":"1122:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4023,"mutability":"mutable","name":"fee","nameLocation":"1166:3:29","nodeType":"VariableDeclaration","scope":4030,"src":"1159:10:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4022,"name":"uint16","nodeType":"ElementaryTypeName","src":"1159:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":4025,"mutability":"mutable","name":"pluginConfig","nameLocation":"1235:12:29","nodeType":"VariableDeclaration","scope":4030,"src":"1229:18:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4024,"name":"uint8","nodeType":"ElementaryTypeName","src":"1229:5:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":4027,"mutability":"mutable","name":"communityFee","nameLocation":"1261:12:29","nodeType":"VariableDeclaration","scope":4030,"src":"1254:19:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4026,"name":"uint16","nodeType":"ElementaryTypeName","src":"1254:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":4029,"mutability":"mutable","name":"unlocked","nameLocation":"1374:8:29","nodeType":"VariableDeclaration","scope":4030,"src":"1369:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4028,"name":"bool","nodeType":"ElementaryTypeName","src":"1369:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"name":"GlobalState","nameLocation":"1026:11:29","nodeType":"StructDefinition","scope":4866,"src":"1019:424:29","visibility":"public"},{"baseFunctions":[1544],"constant":false,"documentation":{"id":4031,"nodeType":"StructuredDocumentation","src":"1449:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"6378ae44","id":4034,"mutability":"mutable","name":"totalFeeGrowth0Token","nameLocation":"1510:20:29","nodeType":"VariableDeclaration","overrides":{"id":4033,"nodeType":"OverrideSpecifier","overrides":[],"src":"1501:8:29"},"scope":4866,"src":"1486:44:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4032,"name":"uint256","nodeType":"ElementaryTypeName","src":"1486:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"public"},{"baseFunctions":[1550],"constant":false,"documentation":{"id":4035,"nodeType":"StructuredDocumentation","src":"1535:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"ecdecf42","id":4038,"mutability":"mutable","name":"totalFeeGrowth1Token","nameLocation":"1596:20:29","nodeType":"VariableDeclaration","overrides":{"id":4037,"nodeType":"OverrideSpecifier","overrides":[],"src":"1587:8:29"},"scope":4866,"src":"1572:44:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4036,"name":"uint256","nodeType":"ElementaryTypeName","src":"1572:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"public"},{"baseFunctions":[1478],"constant":false,"documentation":{"id":4039,"nodeType":"StructuredDocumentation","src":"1621:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"e76c01e4","id":4043,"mutability":"mutable","name":"globalState","nameLocation":"1686:11:29","nodeType":"VariableDeclaration","overrides":{"id":4042,"nodeType":"OverrideSpecifier","overrides":[],"src":"1677:8:29"},"scope":4866,"src":"1658:39:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState"},"typeName":{"id":4041,"nodeType":"UserDefinedTypeName","pathNode":{"id":4040,"name":"GlobalState","nameLocations":["1658:11:29"],"nodeType":"IdentifierPath","referencedDeclaration":4030,"src":"1658:11:29"},"referencedDeclaration":4030,"src":"1658:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage_ptr","typeString":"struct MockPool.GlobalState"}},"visibility":"public"},{"baseFunctions":[1604],"constant":false,"documentation":{"id":4044,"nodeType":"StructuredDocumentation","src":"1704:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"d5c35a7e","id":4047,"mutability":"mutable","name":"nextTickGlobal","nameLocation":"1763:14:29","nodeType":"VariableDeclaration","overrides":{"id":4046,"nodeType":"OverrideSpecifier","overrides":[],"src":"1754:8:29"},"scope":4866,"src":"1741:36:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4045,"name":"int24","nodeType":"ElementaryTypeName","src":"1741:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"public"},{"baseFunctions":[1598],"constant":false,"documentation":{"id":4048,"nodeType":"StructuredDocumentation","src":"1782:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"050a4d21","id":4051,"mutability":"mutable","name":"prevTickGlobal","nameLocation":"1841:14:29","nodeType":"VariableDeclaration","overrides":{"id":4050,"nodeType":"OverrideSpecifier","overrides":[],"src":"1832:8:29"},"scope":4866,"src":"1819:36:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4049,"name":"int24","nodeType":"ElementaryTypeName","src":"1819:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"public"},{"baseFunctions":[1586],"constant":false,"documentation":{"id":4052,"nodeType":"StructuredDocumentation","src":"1862:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"1a686502","id":4055,"mutability":"mutable","name":"liquidity","nameLocation":"1923:9:29","nodeType":"VariableDeclaration","overrides":{"id":4054,"nodeType":"OverrideSpecifier","overrides":[],"src":"1914:8:29"},"scope":4866,"src":"1899:33:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4053,"name":"uint128","nodeType":"ElementaryTypeName","src":"1899:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"public"},{"baseFunctions":[1592],"constant":false,"documentation":{"id":4056,"nodeType":"StructuredDocumentation","src":"1937:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"d0c93a7c","id":4059,"mutability":"mutable","name":"tickSpacing","nameLocation":"1996:11:29","nodeType":"VariableDeclaration","overrides":{"id":4058,"nodeType":"OverrideSpecifier","overrides":[],"src":"1987:8:29"},"scope":4866,"src":"1974:33:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4057,"name":"int24","nodeType":"ElementaryTypeName","src":"1974:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"public"},{"baseFunctions":[1502],"constant":false,"documentation":{"id":4060,"nodeType":"StructuredDocumentation","src":"2012:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"77f8c3a9","id":4063,"mutability":"mutable","name":"lastFeeTransferTimestamp","nameLocation":"2072:24:29","nodeType":"VariableDeclaration","overrides":{"id":4062,"nodeType":"OverrideSpecifier","overrides":[],"src":"2063:8:29"},"scope":4866,"src":"2049:47:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":4061,"name":"uint32","nodeType":"ElementaryTypeName","src":"2049:6:29","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"public"},{"baseFunctions":[1610],"constant":false,"documentation":{"id":4064,"nodeType":"StructuredDocumentation","src":"2103:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"578b9a36","id":4067,"mutability":"mutable","name":"tickTreeRoot","nameLocation":"2163:12:29","nodeType":"VariableDeclaration","overrides":{"id":4066,"nodeType":"OverrideSpecifier","overrides":[],"src":"2154:8:29"},"scope":4866,"src":"2140:35:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":4065,"name":"uint32","nodeType":"ElementaryTypeName","src":"2140:6:29","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"public"},{"baseFunctions":[1618],"constant":false,"documentation":{"id":4068,"nodeType":"StructuredDocumentation","src":"2214:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"d8619037","id":4073,"mutability":"mutable","name":"tickTreeSecondLayer","nameLocation":"2293:19:29","nodeType":"VariableDeclaration","overrides":{"id":4072,"nodeType":"OverrideSpecifier","overrides":[],"src":"2284:8:29"},"scope":4866,"src":"2251:61:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int16_$_t_uint256_$","typeString":"mapping(int16 => uint256)"},"typeName":{"id":4071,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":4069,"name":"int16","nodeType":"ElementaryTypeName","src":"2259:5:29","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"nodeType":"Mapping","src":"2251:25:29","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int16_$_t_uint256_$","typeString":"mapping(int16 => uint256)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":4070,"name":"uint256","nodeType":"ElementaryTypeName","src":"2268:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"visibility":"public"},{"baseFunctions":[1524],"constant":false,"documentation":{"id":4074,"nodeType":"StructuredDocumentation","src":"2354:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"ef01df4f","id":4077,"mutability":"mutable","name":"plugin","nameLocation":"2415:6:29","nodeType":"VariableDeclaration","overrides":{"id":4076,"nodeType":"OverrideSpecifier","overrides":[],"src":"2406:8:29"},"scope":4866,"src":"2391:30:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4075,"name":"address","nodeType":"ElementaryTypeName","src":"2391:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"baseFunctions":[1530],"constant":false,"functionSelector":"53e97868","id":4080,"mutability":"mutable","name":"communityVault","nameLocation":"2452:14:29","nodeType":"VariableDeclaration","overrides":{"id":4079,"nodeType":"OverrideSpecifier","overrides":[],"src":"2443:8:29"},"scope":4866,"src":"2428:38:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4078,"name":"address","nodeType":"ElementaryTypeName","src":"2428:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"baseFunctions":[1496],"constant":false,"documentation":{"id":4081,"nodeType":"StructuredDocumentation","src":"2473:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"f30dba93","id":4087,"mutability":"mutable","name":"ticks","nameLocation":"2564:5:29","nodeType":"VariableDeclaration","overrides":{"id":4086,"nodeType":"OverrideSpecifier","overrides":[],"src":"2555:8:29"},"scope":4866,"src":"2510:59:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"typeName":{"id":4085,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":4082,"name":"int24","nodeType":"ElementaryTypeName","src":"2518:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Mapping","src":"2510:37:29","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int24_$_t_struct$_Tick_$2319_storage_$","typeString":"mapping(int24 => struct TickManagement.Tick)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":4084,"nodeType":"UserDefinedTypeName","pathNode":{"id":4083,"name":"TickManagement.Tick","nameLocations":["2527:14:29","2542:4:29"],"nodeType":"IdentifierPath","referencedDeclaration":2319,"src":"2527:19:29"},"referencedDeclaration":2319,"src":"2527:19:29","typeDescriptions":{"typeIdentifier":"t_struct$_Tick_$2319_storage_ptr","typeString":"struct TickManagement.Tick"}}},"visibility":"public"},{"baseFunctions":[1538],"constant":false,"documentation":{"id":4088,"nodeType":"StructuredDocumentation","src":"2576:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"c677e3e0","id":4093,"mutability":"mutable","name":"tickTable","nameLocation":"2655:9:29","nodeType":"VariableDeclaration","overrides":{"id":4092,"nodeType":"OverrideSpecifier","overrides":[],"src":"2646:8:29"},"scope":4866,"src":"2613:51:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int16_$_t_uint256_$","typeString":"mapping(int16 => uint256)"},"typeName":{"id":4091,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":4089,"name":"int16","nodeType":"ElementaryTypeName","src":"2621:5:29","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"nodeType":"Mapping","src":"2613:25:29","typeDescriptions":{"typeIdentifier":"t_mapping$_t_int16_$_t_uint256_$","typeString":"mapping(int16 => uint256)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":4090,"name":"uint256","nodeType":"ElementaryTypeName","src":"2630:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"visibility":"public"},{"canonicalName":"MockPool.Position","id":4104,"members":[{"constant":false,"id":4095,"mutability":"mutable","name":"liquidity","nameLocation":"2702:9:29","nodeType":"VariableDeclaration","scope":4104,"src":"2694:17:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4094,"name":"uint256","nodeType":"ElementaryTypeName","src":"2694:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4097,"mutability":"mutable","name":"innerFeeGrowth0Token","nameLocation":"2779:20:29","nodeType":"VariableDeclaration","scope":4104,"src":"2771:28:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4096,"name":"uint256","nodeType":"ElementaryTypeName","src":"2771:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4099,"mutability":"mutable","name":"innerFeeGrowth1Token","nameLocation":"2867:20:29","nodeType":"VariableDeclaration","scope":4104,"src":"2859:28:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4098,"name":"uint256","nodeType":"ElementaryTypeName","src":"2859:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4101,"mutability":"mutable","name":"fees0","nameLocation":"2902:5:29","nodeType":"VariableDeclaration","scope":4104,"src":"2894:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4100,"name":"uint128","nodeType":"ElementaryTypeName","src":"2894:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4103,"mutability":"mutable","name":"fees1","nameLocation":"2959:5:29","nodeType":"VariableDeclaration","scope":4104,"src":"2951:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4102,"name":"uint128","nodeType":"ElementaryTypeName","src":"2951:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"name":"Position","nameLocation":"2678:8:29","nodeType":"StructDefinition","scope":4866,"src":"2671:336:29","visibility":"public"},{"baseFunctions":[1580],"constant":false,"documentation":{"id":4105,"nodeType":"StructuredDocumentation","src":"3013:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"514ea4bf","id":4111,"mutability":"mutable","name":"positions","nameLocation":"3095:9:29","nodeType":"VariableDeclaration","overrides":{"id":4110,"nodeType":"OverrideSpecifier","overrides":[],"src":"3086:8:29"},"scope":4866,"src":"3050:54:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_struct$_Position_$4104_storage_$","typeString":"mapping(bytes32 => struct MockPool.Position)"},"typeName":{"id":4109,"keyName":"","keyNameLocation":"-1:-1:-1","keyType":{"id":4106,"name":"bytes32","nodeType":"ElementaryTypeName","src":"3058:7:29","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"3050:28:29","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_struct$_Position_$4104_storage_$","typeString":"mapping(bytes32 => struct MockPool.Position)"},"valueName":"","valueNameLocation":"-1:-1:-1","valueType":{"id":4108,"nodeType":"UserDefinedTypeName","pathNode":{"id":4107,"name":"Position","nameLocations":["3069:8:29"],"nodeType":"IdentifierPath","referencedDeclaration":4104,"src":"3069:8:29"},"referencedDeclaration":4104,"src":"3069:8:29","typeDescriptions":{"typeIdentifier":"t_struct$_Position_$4104_storage_ptr","typeString":"struct MockPool.Position"}}},"visibility":"public"},{"constant":false,"id":4113,"mutability":"mutable","name":"owner","nameLocation":"3119:5:29","nodeType":"VariableDeclaration","scope":4866,"src":"3111:13:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4112,"name":"address","nodeType":"ElementaryTypeName","src":"3111:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"functionSelector":"998e2cbe","id":4115,"mutability":"mutable","name":"overrideFee","nameLocation":"3143:11:29","nodeType":"VariableDeclaration","scope":4866,"src":"3129:25:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4114,"name":"uint24","nodeType":"ElementaryTypeName","src":"3129:6:29","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"public"},{"constant":false,"functionSelector":"67c25a47","id":4117,"mutability":"mutable","name":"pluginFee","nameLocation":"3173:9:29","nodeType":"VariableDeclaration","scope":4866,"src":"3159:23:29","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4116,"name":"uint24","nodeType":"ElementaryTypeName","src":"3159:6:29","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"public"},{"baseFunctions":[1510],"body":{"id":4130,"nodeType":"Block","src":"3310:38:29","statements":[{"expression":{"arguments":[{"hexValue":"6e6f7420696d706c656d656e746564","id":4127,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3324:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""},"value":"not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""}],"id":4126,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"3317:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4128,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3317:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4129,"nodeType":"ExpressionStatement","src":"3317:25:29"}]},"documentation":{"id":4118,"nodeType":"StructuredDocumentation","src":"3189:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"7bd78025","id":4131,"implemented":true,"kind":"function","modifiers":[],"name":"getCommunityFeePending","nameLocation":"3235:22:29","nodeType":"FunctionDefinition","overrides":{"id":4120,"nodeType":"OverrideSpecifier","overrides":[],"src":"3274:8:29"},"parameters":{"id":4119,"nodeType":"ParameterList","parameters":[],"src":"3257:2:29"},"returnParameters":{"id":4125,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4122,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4131,"src":"3292:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4121,"name":"uint128","nodeType":"ElementaryTypeName","src":"3292:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4124,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4131,"src":"3301:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4123,"name":"uint128","nodeType":"ElementaryTypeName","src":"3301:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3291:18:29"},"scope":4866,"src":"3226:122:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1518],"body":{"id":4144,"nodeType":"Block","src":"3472:38:29","statements":[{"expression":{"arguments":[{"hexValue":"6e6f7420696d706c656d656e746564","id":4141,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3486:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""},"value":"not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""}],"id":4140,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"3479:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4142,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3479:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4143,"nodeType":"ExpressionStatement","src":"3479:25:29"}]},"documentation":{"id":4132,"nodeType":"StructuredDocumentation","src":"3354:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"a1eded87","id":4145,"implemented":true,"kind":"function","modifiers":[],"name":"getPluginFeePending","nameLocation":"3400:19:29","nodeType":"FunctionDefinition","overrides":{"id":4134,"nodeType":"OverrideSpecifier","overrides":[],"src":"3436:8:29"},"parameters":{"id":4133,"nodeType":"ParameterList","parameters":[],"src":"3419:2:29"},"returnParameters":{"id":4139,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4136,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4145,"src":"3454:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4135,"name":"uint128","nodeType":"ElementaryTypeName","src":"3454:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4138,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4145,"src":"3463:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4137,"name":"uint128","nodeType":"ElementaryTypeName","src":"3463:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3453:18:29"},"scope":4866,"src":"3391:119:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1556],"body":{"id":4155,"nodeType":"Block","src":"3599:38:29","statements":[{"expression":{"arguments":[{"hexValue":"6e6f7420696d706c656d656e746564","id":4152,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3613:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""},"value":"not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""}],"id":4151,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"3606:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4153,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3606:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4154,"nodeType":"ExpressionStatement","src":"3606:25:29"}]},"documentation":{"id":4146,"nodeType":"StructuredDocumentation","src":"3516:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"ddca3f43","id":4156,"implemented":true,"kind":"function","modifiers":[],"name":"fee","nameLocation":"3562:3:29","nodeType":"FunctionDefinition","parameters":{"id":4147,"nodeType":"ParameterList","parameters":[],"src":"3565:2:29"},"returnParameters":{"id":4150,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4149,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4156,"src":"3591:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4148,"name":"uint16","nodeType":"ElementaryTypeName","src":"3591:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"3590:8:29"},"scope":4866,"src":"3553:84:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1456],"body":{"id":4179,"nodeType":"Block","src":"3797:38:29","statements":[{"expression":{"arguments":[{"hexValue":"6e6f7420696d706c656d656e746564","id":4176,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3811:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""},"value":"not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""}],"id":4175,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"3804:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4177,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3804:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4178,"nodeType":"ExpressionStatement","src":"3804:25:29"}]},"documentation":{"id":4157,"nodeType":"StructuredDocumentation","src":"3643:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"97ce1c51","id":4180,"implemented":true,"kind":"function","modifiers":[],"name":"safelyGetStateOfAMM","nameLocation":"3689:19:29","nodeType":"FunctionDefinition","overrides":{"id":4159,"nodeType":"OverrideSpecifier","overrides":[],"src":"3725:8:29"},"parameters":{"id":4158,"nodeType":"ParameterList","parameters":[],"src":"3708:2:29"},"returnParameters":{"id":4174,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4161,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3743:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4160,"name":"uint160","nodeType":"ElementaryTypeName","src":"3743:7:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4163,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3752:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4162,"name":"int24","nodeType":"ElementaryTypeName","src":"3752:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4165,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3759:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4164,"name":"uint16","nodeType":"ElementaryTypeName","src":"3759:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":4167,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3767:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4166,"name":"uint8","nodeType":"ElementaryTypeName","src":"3767:5:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":4169,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3774:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4168,"name":"uint128","nodeType":"ElementaryTypeName","src":"3774:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4171,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3783:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4170,"name":"int24","nodeType":"ElementaryTypeName","src":"3783:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4173,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4180,"src":"3790:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4172,"name":"int24","nodeType":"ElementaryTypeName","src":"3790:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"3742:54:29"},"scope":4866,"src":"3680:155:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"body":{"id":4201,"nodeType":"Block","src":"3855:116:29","statements":[{"expression":{"id":4188,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4183,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"3862:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4185,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"3874:3:29","memberName":"fee","nodeType":"MemberAccess","referencedDeclaration":4023,"src":"3862:15:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"id":4186,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"3880:9:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":4187,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3890:16:29","memberName":"INIT_DEFAULT_FEE","nodeType":"MemberAccess","referencedDeclaration":1672,"src":"3880:26:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"3862:44:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":4189,"nodeType":"ExpressionStatement","src":"3862:44:29"},{"expression":{"id":4194,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4190,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"3913:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4192,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"3925:8:29","memberName":"unlocked","nodeType":"MemberAccess","referencedDeclaration":4029,"src":"3913:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":4193,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3936:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"3913:27:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4195,"nodeType":"ExpressionStatement","src":"3913:27:29"},{"expression":{"id":4199,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4196,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4113,"src":"3947:5:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"id":4197,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"3955:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4198,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"3959:6:29","memberName":"sender","nodeType":"MemberAccess","src":"3955:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"3947:18:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":4200,"nodeType":"ExpressionStatement","src":"3947:18:29"}]},"id":4202,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":4181,"nodeType":"ParameterList","parameters":[],"src":"3852:2:29"},"returnParameters":{"id":4182,"nodeType":"ParameterList","parameters":[],"src":"3855:0:29"},"scope":4866,"src":"3841:130:29","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"baseFunctions":[1564],"body":{"id":4215,"nodeType":"Block","src":"4087:38:29","statements":[{"expression":{"arguments":[{"hexValue":"6e6f7420696d706c656d656e746564","id":4212,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4101:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""},"value":"not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_32d075b43bd38f25ee5981ec20d2adc90449bf9822d065b5dee1ff7a3dcb82b9","typeString":"literal_string \"not implemented\""}],"id":4211,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"4094:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4213,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4094:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4214,"nodeType":"ExpressionStatement","src":"4094:25:29"}]},"documentation":{"id":4203,"nodeType":"StructuredDocumentation","src":"3977:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"0902f1ac","id":4216,"implemented":true,"kind":"function","modifiers":[],"name":"getReserves","nameLocation":"4023:11:29","nodeType":"FunctionDefinition","overrides":{"id":4205,"nodeType":"OverrideSpecifier","overrides":[],"src":"4051:8:29"},"parameters":{"id":4204,"nodeType":"ParameterList","parameters":[],"src":"4034:2:29"},"returnParameters":{"id":4210,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4207,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4216,"src":"4069:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4206,"name":"uint128","nodeType":"ElementaryTypeName","src":"4069:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4209,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4216,"src":"4078:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4208,"name":"uint128","nodeType":"ElementaryTypeName","src":"4078:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"4068:18:29"},"scope":4866,"src":"4014:111:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1462],"body":{"id":4226,"nodeType":"Block","src":"4237:40:29","statements":[{"expression":{"expression":{"id":4223,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"4251:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4224,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"4263:8:29","memberName":"unlocked","nodeType":"MemberAccess","referencedDeclaration":4029,"src":"4251:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":4222,"id":4225,"nodeType":"Return","src":"4244:27:29"}]},"documentation":{"id":4217,"nodeType":"StructuredDocumentation","src":"4131:33:29","text":"@inheritdoc IAlgebraPoolState"},"functionSelector":"8380edb7","id":4227,"implemented":true,"kind":"function","modifiers":[],"name":"isUnlocked","nameLocation":"4177:10:29","nodeType":"FunctionDefinition","overrides":{"id":4219,"nodeType":"OverrideSpecifier","overrides":[],"src":"4204:8:29"},"parameters":{"id":4218,"nodeType":"ParameterList","parameters":[],"src":"4187:2:29"},"returnParameters":{"id":4222,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4221,"mutability":"mutable","name":"unlocked","nameLocation":"4227:8:29","nodeType":"VariableDeclaration","scope":4227,"src":"4222:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4220,"name":"bool","nodeType":"ElementaryTypeName","src":"4222:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"4221:15:29"},"scope":4866,"src":"4168:109:29","stateMutability":"view","virtual":false,"visibility":"external"},{"baseFunctions":[1008],"body":{"id":4297,"nodeType":"Block","src":"4382:538:29","statements":[{"assignments":[4235],"declarations":[{"constant":false,"id":4235,"mutability":"mutable","name":"tick","nameLocation":"4395:4:29","nodeType":"VariableDeclaration","scope":4297,"src":"4389:10:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4234,"name":"int24","nodeType":"ElementaryTypeName","src":"4389:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"id":4240,"initialValue":{"arguments":[{"id":4238,"name":"initialPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4230,"src":"4430:12:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"}],"expression":{"id":4236,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"4402:8:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":4237,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4411:18:29","memberName":"getTickAtSqrtRatio","nodeType":"MemberAccess","referencedDeclaration":3370,"src":"4402:27:29","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_uint160_$returns$_t_int24_$","typeString":"function (uint160) pure returns (int24)"}},"id":4239,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4402:41:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"VariableDeclarationStatement","src":"4389:54:29"},{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4246,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4241,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"4517:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[{"hexValue":"30","id":4244,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4535:1:29","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":4243,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"4527:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":4242,"name":"address","nodeType":"ElementaryTypeName","src":"4527:7:29","typeDescriptions":{}}},"id":4245,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4527:10:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"4517:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4257,"nodeType":"IfStatement","src":"4513:108:29","trueBody":{"id":4256,"nodeType":"Block","src":"4539:82:29","statements":[{"expression":{"arguments":[{"expression":{"id":4251,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"4588:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4252,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4592:6:29","memberName":"sender","nodeType":"MemberAccess","src":"4588:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4253,"name":"initialPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4230,"src":"4600:12:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint160","typeString":"uint160"}],"expression":{"arguments":[{"id":4248,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"4563:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4247,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"4548:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4249,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4548:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4250,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4571:16:29","memberName":"beforeInitialize","nodeType":"MemberAccess","referencedDeclaration":830,"src":"4548:39:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_uint160_$returns$_t_bytes4_$","typeString":"function (address,uint160) external returns (bytes4)"}},"id":4254,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4548:65:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4255,"nodeType":"ExpressionStatement","src":"4548:65:29"}]}},{"expression":{"id":4260,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4258,"name":"tickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4059,"src":"4629:11:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"3630","id":4259,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4643:2:29","typeDescriptions":{"typeIdentifier":"t_rational_60_by_1","typeString":"int_const 60"},"value":"60"},"src":"4629:16:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":4261,"nodeType":"ExpressionStatement","src":"4629:16:29"},{"assignments":[4263],"declarations":[{"constant":false,"id":4263,"mutability":"mutable","name":"pluginConfig","nameLocation":"4660:12:29","nodeType":"VariableDeclaration","scope":4297,"src":"4654:18:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4262,"name":"uint8","nodeType":"ElementaryTypeName","src":"4654:5:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":4266,"initialValue":{"expression":{"id":4264,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"4675:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4265,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"4687:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"4675:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"VariableDeclarationStatement","src":"4654:45:29"},{"expression":{"id":4271,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4267,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"4708:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4269,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"4720:5:29","memberName":"price","nodeType":"MemberAccess","referencedDeclaration":4019,"src":"4708:17:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4270,"name":"initialPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4230,"src":"4728:12:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"4708:32:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"id":4272,"nodeType":"ExpressionStatement","src":"4708:32:29"},{"expression":{"id":4277,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4273,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"4747:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4275,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"4759:4:29","memberName":"tick","nodeType":"MemberAccess","referencedDeclaration":4021,"src":"4747:16:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4276,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4235,"src":"4766:4:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"4747:23:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":4278,"nodeType":"ExpressionStatement","src":"4747:23:29"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4284,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4282,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4279,"name":"pluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4263,"src":"4783:12:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4280,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"4798:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4281,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4806:15:29","memberName":"AFTER_INIT_FLAG","nodeType":"MemberAccess","referencedDeclaration":2156,"src":"4798:23:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"4783:38:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4283,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4825:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4783:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4296,"nodeType":"IfStatement","src":"4779:136:29","trueBody":{"id":4295,"nodeType":"Block","src":"4828:87:29","statements":[{"expression":{"arguments":[{"expression":{"id":4289,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"4876:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4290,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4880:6:29","memberName":"sender","nodeType":"MemberAccess","src":"4876:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4291,"name":"initialPrice","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4230,"src":"4888:12:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":4292,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4235,"src":"4902:4:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint160","typeString":"uint160"},{"typeIdentifier":"t_int24","typeString":"int24"}],"expression":{"arguments":[{"id":4286,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"4852:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4285,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"4837:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4287,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4837:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4288,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"4860:15:29","memberName":"afterInitialize","nodeType":"MemberAccess","referencedDeclaration":842,"src":"4837:38:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_uint160_$_t_int24_$returns$_t_bytes4_$","typeString":"function (address,uint160,int24) external returns (bytes4)"}},"id":4293,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4837:70:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4294,"nodeType":"ExpressionStatement","src":"4837:70:29"}]}}]},"documentation":{"id":4228,"nodeType":"StructuredDocumentation","src":"4283:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"f637731d","id":4298,"implemented":true,"kind":"function","modifiers":[],"name":"initialize","nameLocation":"4331:10:29","nodeType":"FunctionDefinition","overrides":{"id":4232,"nodeType":"OverrideSpecifier","overrides":[],"src":"4373:8:29"},"parameters":{"id":4231,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4230,"mutability":"mutable","name":"initialPrice","nameLocation":"4350:12:29","nodeType":"VariableDeclaration","scope":4298,"src":"4342:20:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4229,"name":"uint160","nodeType":"ElementaryTypeName","src":"4342:7:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"4341:22:29"},"returnParameters":{"id":4233,"nodeType":"ParameterList","parameters":[],"src":"4382:0:29"},"scope":4866,"src":"4322:598:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1030],"body":{"id":4378,"nodeType":"Block","src":"5176:465:29","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4327,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4325,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4321,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"5187:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4322,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"5199:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"5187:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4323,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"5214:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4324,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5222:27:29","memberName":"BEFORE_POSITION_MODIFY_FLAG","nodeType":"MemberAccess","referencedDeclaration":2136,"src":"5214:35:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5187:62:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4326,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5253:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5187:67:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4345,"nodeType":"IfStatement","src":"5183:209:29","trueBody":{"id":4344,"nodeType":"Block","src":"5256:136:29","statements":[{"expression":{"arguments":[{"expression":{"id":4332,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"5309:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4333,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5313:6:29","memberName":"sender","nodeType":"MemberAccess","src":"5309:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4334,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4303,"src":"5321:9:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4335,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4305,"src":"5332:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4336,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4307,"src":"5344:7:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"arguments":[{"id":4339,"name":"liquidityDesired","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4309,"src":"5360:16:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":4338,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"5353:6:29","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":4337,"name":"int128","nodeType":"ElementaryTypeName","src":"5353:6:29","typeDescriptions":{}}},"id":4340,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5353:24:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},{"id":4341,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4311,"src":"5379:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int128","typeString":"int128"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4329,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"5280:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4328,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"5265:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4330,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5265:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4331,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5288:20:29","memberName":"beforeModifyPosition","nodeType":"MemberAccess","referencedDeclaration":862,"src":"5265:43:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_bytes_memory_ptr_$returns$_t_bytes4_$_t_uint24_$","typeString":"function (address,address,int24,int24,int128,bytes memory) external returns (bytes4,uint24)"}},"id":4342,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5265:119:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_uint24_$","typeString":"tuple(bytes4,uint24)"}},"id":4343,"nodeType":"ExpressionStatement","src":"5265:119:29"}]}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4352,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4350,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4346,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"5404:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4347,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"5416:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"5404:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4348,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"5431:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4349,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5439:26:29","memberName":"AFTER_POSITION_MODIFY_FLAG","nodeType":"MemberAccess","referencedDeclaration":2141,"src":"5431:34:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5404:61:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4351,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5469:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5404:66:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4372,"nodeType":"IfStatement","src":"5400:213:29","trueBody":{"id":4371,"nodeType":"Block","src":"5472:141:29","statements":[{"expression":{"arguments":[{"expression":{"id":4357,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"5524:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4358,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5528:6:29","memberName":"sender","nodeType":"MemberAccess","src":"5524:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4359,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4303,"src":"5536:9:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4360,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4305,"src":"5547:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4361,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4307,"src":"5559:7:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"arguments":[{"id":4364,"name":"liquidityDesired","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4309,"src":"5575:16:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":4363,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"5568:6:29","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":4362,"name":"int128","nodeType":"ElementaryTypeName","src":"5568:6:29","typeDescriptions":{}}},"id":4365,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5568:24:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},{"hexValue":"30","id":4366,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5594:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4367,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5597:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"id":4368,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4311,"src":"5600:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int128","typeString":"int128"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4354,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"5496:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4353,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"5481:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4355,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5481:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4356,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5504:19:29","memberName":"afterModifyPosition","nodeType":"MemberAccess","referencedDeclaration":884,"src":"5481:42:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$","typeString":"function (address,address,int24,int24,int128,uint256,uint256,bytes memory) external returns (bytes4)"}},"id":4369,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5481:124:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4370,"nodeType":"ExpressionStatement","src":"5481:124:29"}]}},{"expression":{"components":[{"hexValue":"30","id":4373,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5627:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4374,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5630:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4375,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5633:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":4376,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"5626:9:29","typeDescriptions":{"typeIdentifier":"t_tuple$_t_rational_0_by_1_$_t_rational_0_by_1_$_t_rational_0_by_1_$","typeString":"tuple(int_const 0,int_const 0,int_const 0)"}},"functionReturnParameters":4320,"id":4377,"nodeType":"Return","src":"5619:16:29"}]},"documentation":{"id":4299,"nodeType":"StructuredDocumentation","src":"4926:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"aafe29c0","id":4379,"implemented":true,"kind":"function","modifiers":[],"name":"mint","nameLocation":"4974:4:29","nodeType":"FunctionDefinition","overrides":{"id":4313,"nodeType":"OverrideSpecifier","overrides":[],"src":"5131:8:29"},"parameters":{"id":4312,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4301,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4379,"src":"4985:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4300,"name":"address","nodeType":"ElementaryTypeName","src":"4985:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4303,"mutability":"mutable","name":"recipient","nameLocation":"5007:9:29","nodeType":"VariableDeclaration","scope":4379,"src":"4999:17:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4302,"name":"address","nodeType":"ElementaryTypeName","src":"4999:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4305,"mutability":"mutable","name":"bottomTick","nameLocation":"5029:10:29","nodeType":"VariableDeclaration","scope":4379,"src":"5023:16:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4304,"name":"int24","nodeType":"ElementaryTypeName","src":"5023:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4307,"mutability":"mutable","name":"topTick","nameLocation":"5052:7:29","nodeType":"VariableDeclaration","scope":4379,"src":"5046:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4306,"name":"int24","nodeType":"ElementaryTypeName","src":"5046:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4309,"mutability":"mutable","name":"liquidityDesired","nameLocation":"5074:16:29","nodeType":"VariableDeclaration","scope":4379,"src":"5066:24:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4308,"name":"uint128","nodeType":"ElementaryTypeName","src":"5066:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4311,"mutability":"mutable","name":"data","nameLocation":"5112:4:29","nodeType":"VariableDeclaration","scope":4379,"src":"5097:19:29","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4310,"name":"bytes","nodeType":"ElementaryTypeName","src":"5097:5:29","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4978:143:29"},"returnParameters":{"id":4320,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4315,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4379,"src":"5149:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4314,"name":"uint256","nodeType":"ElementaryTypeName","src":"5149:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4317,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4379,"src":"5158:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4316,"name":"uint256","nodeType":"ElementaryTypeName","src":"5158:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4319,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4379,"src":"5167:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4318,"name":"uint128","nodeType":"ElementaryTypeName","src":"5167:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"5148:27:29"},"scope":4866,"src":"4965:676:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1064],"body":{"id":4456,"nodeType":"Block","src":"5825:466:29","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4402,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4400,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4396,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"5836:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4397,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"5848:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"5836:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4398,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"5863:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4399,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5871:27:29","memberName":"BEFORE_POSITION_MODIFY_FLAG","nodeType":"MemberAccess","referencedDeclaration":2136,"src":"5863:35:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5836:62:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4401,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5902:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5836:67:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4422,"nodeType":"IfStatement","src":"5832:211:29","trueBody":{"id":4421,"nodeType":"Block","src":"5905:138:29","statements":[{"expression":{"arguments":[{"expression":{"id":4407,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"5958:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4408,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5962:6:29","memberName":"sender","nodeType":"MemberAccess","src":"5958:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":4409,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"5970:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4410,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5974:6:29","memberName":"sender","nodeType":"MemberAccess","src":"5970:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4411,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4382,"src":"5982:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4412,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4384,"src":"5994:7:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4417,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"6003:25:29","subExpression":{"arguments":[{"id":4415,"name":"liquidityDesired","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4386,"src":"6011:16:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":4414,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6004:6:29","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":4413,"name":"int128","nodeType":"ElementaryTypeName","src":"6004:6:29","typeDescriptions":{}}},"id":4416,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6004:24:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},{"id":4418,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4388,"src":"6030:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int128","typeString":"int128"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4404,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"5929:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4403,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"5914:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4405,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5914:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4406,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5937:20:29","memberName":"beforeModifyPosition","nodeType":"MemberAccess","referencedDeclaration":862,"src":"5914:43:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_bytes_memory_ptr_$returns$_t_bytes4_$_t_uint24_$","typeString":"function (address,address,int24,int24,int128,bytes memory) external returns (bytes4,uint24)"}},"id":4419,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5914:121:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_uint24_$","typeString":"tuple(bytes4,uint24)"}},"id":4420,"nodeType":"ExpressionStatement","src":"5914:121:29"}]}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4429,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4427,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4423,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"6055:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4424,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6067:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"6055:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4425,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"6082:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4426,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6090:26:29","memberName":"AFTER_POSITION_MODIFY_FLAG","nodeType":"MemberAccess","referencedDeclaration":2141,"src":"6082:34:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"6055:61:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4428,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6120:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"6055:66:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4451,"nodeType":"IfStatement","src":"6051:215:29","trueBody":{"id":4450,"nodeType":"Block","src":"6123:143:29","statements":[{"expression":{"arguments":[{"expression":{"id":4434,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"6175:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4435,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6179:6:29","memberName":"sender","nodeType":"MemberAccess","src":"6175:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":4436,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"6187:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4437,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6191:6:29","memberName":"sender","nodeType":"MemberAccess","src":"6187:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4438,"name":"bottomTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4382,"src":"6199:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4439,"name":"topTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4384,"src":"6211:7:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":4444,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"-","prefix":true,"src":"6220:25:29","subExpression":{"arguments":[{"id":4442,"name":"liquidityDesired","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4386,"src":"6228:16:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint128","typeString":"uint128"}],"id":4441,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6221:6:29","typeDescriptions":{"typeIdentifier":"t_type$_t_int128_$","typeString":"type(int128)"},"typeName":{"id":4440,"name":"int128","nodeType":"ElementaryTypeName","src":"6221:6:29","typeDescriptions":{}}},"id":4443,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6221:24:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},{"hexValue":"30","id":4445,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6247:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4446,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6250:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"id":4447,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4388,"src":"6253:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int24","typeString":"int24"},{"typeIdentifier":"t_int128","typeString":"int128"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4431,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"6147:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4430,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"6132:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4432,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6132:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4433,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6155:19:29","memberName":"afterModifyPosition","nodeType":"MemberAccess","referencedDeclaration":884,"src":"6132:42:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$","typeString":"function (address,address,int24,int24,int128,uint256,uint256,bytes memory) external returns (bytes4)"}},"id":4448,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6132:126:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4449,"nodeType":"ExpressionStatement","src":"6132:126:29"}]}},{"expression":{"components":[{"hexValue":"30","id":4452,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6280:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4453,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6283:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":4454,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"6279:6:29","typeDescriptions":{"typeIdentifier":"t_tuple$_t_rational_0_by_1_$_t_rational_0_by_1_$","typeString":"tuple(int_const 0,int_const 0)"}},"functionReturnParameters":4395,"id":4455,"nodeType":"Return","src":"6272:13:29"}]},"documentation":{"id":4380,"nodeType":"StructuredDocumentation","src":"5647:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"3b3bc70e","id":4457,"implemented":true,"kind":"function","modifiers":[],"name":"burn","nameLocation":"5695:4:29","nodeType":"FunctionDefinition","overrides":{"id":4390,"nodeType":"OverrideSpecifier","overrides":[],"src":"5789:8:29"},"parameters":{"id":4389,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4382,"mutability":"mutable","name":"bottomTick","nameLocation":"5706:10:29","nodeType":"VariableDeclaration","scope":4457,"src":"5700:16:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4381,"name":"int24","nodeType":"ElementaryTypeName","src":"5700:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4384,"mutability":"mutable","name":"topTick","nameLocation":"5724:7:29","nodeType":"VariableDeclaration","scope":4457,"src":"5718:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4383,"name":"int24","nodeType":"ElementaryTypeName","src":"5718:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4386,"mutability":"mutable","name":"liquidityDesired","nameLocation":"5741:16:29","nodeType":"VariableDeclaration","scope":4457,"src":"5733:24:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4385,"name":"uint128","nodeType":"ElementaryTypeName","src":"5733:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4388,"mutability":"mutable","name":"data","nameLocation":"5774:4:29","nodeType":"VariableDeclaration","scope":4457,"src":"5759:19:29","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4387,"name":"bytes","nodeType":"ElementaryTypeName","src":"5759:5:29","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5699:80:29"},"returnParameters":{"id":4395,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4392,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4457,"src":"5807:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4391,"name":"uint256","nodeType":"ElementaryTypeName","src":"5807:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4394,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4457,"src":"5816:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4393,"name":"uint256","nodeType":"ElementaryTypeName","src":"5816:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"5806:18:29"},"scope":4866,"src":"5686:605:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1048],"body":{"id":4480,"nodeType":"Block","src":"6444:38:29","statements":[{"expression":{"arguments":[{"hexValue":"4e6f7420696d706c656d656e746564","id":4477,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6458:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""},"value":"Not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""}],"id":4476,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"6451:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4478,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6451:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4479,"nodeType":"ExpressionStatement","src":"6451:25:29"}]},"documentation":{"id":4458,"nodeType":"StructuredDocumentation","src":"6297:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"4f1eb3d8","id":4481,"implemented":true,"kind":"function","modifiers":[],"name":"collect","nameLocation":"6345:7:29","nodeType":"FunctionDefinition","overrides":{"id":4470,"nodeType":"OverrideSpecifier","overrides":[],"src":"6408:8:29"},"parameters":{"id":4469,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4460,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6353:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4459,"name":"address","nodeType":"ElementaryTypeName","src":"6353:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4462,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6362:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4461,"name":"int24","nodeType":"ElementaryTypeName","src":"6362:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4464,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6369:5:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4463,"name":"int24","nodeType":"ElementaryTypeName","src":"6369:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":4466,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6376:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4465,"name":"uint128","nodeType":"ElementaryTypeName","src":"6376:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4468,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6385:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4467,"name":"uint128","nodeType":"ElementaryTypeName","src":"6385:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"6352:41:29"},"returnParameters":{"id":4475,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4472,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6426:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4471,"name":"uint128","nodeType":"ElementaryTypeName","src":"6426:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":4474,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4481,"src":"6435:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":4473,"name":"uint128","nodeType":"ElementaryTypeName","src":"6435:7:29","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"6425:18:29"},"scope":4866,"src":"6336:146:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1082],"body":{"id":4504,"nodeType":"Block","src":"6637:38:29","statements":[{"expression":{"arguments":[{"hexValue":"4e6f7420696d706c656d656e746564","id":4501,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6651:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""},"value":"Not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""}],"id":4500,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"6644:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4502,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6644:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4503,"nodeType":"ExpressionStatement","src":"6644:25:29"}]},"documentation":{"id":4482,"nodeType":"StructuredDocumentation","src":"6488:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"128acb08","id":4505,"implemented":true,"kind":"function","modifiers":[],"name":"swap","nameLocation":"6536:4:29","nodeType":"FunctionDefinition","overrides":{"id":4494,"nodeType":"OverrideSpecifier","overrides":[],"src":"6603:8:29"},"parameters":{"id":4493,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4484,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6541:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4483,"name":"address","nodeType":"ElementaryTypeName","src":"6541:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4486,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6550:4:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4485,"name":"bool","nodeType":"ElementaryTypeName","src":"6550:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":4488,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6556:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4487,"name":"int256","nodeType":"ElementaryTypeName","src":"6556:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":4490,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6564:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4489,"name":"uint160","nodeType":"ElementaryTypeName","src":"6564:7:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4492,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6573:14:29","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4491,"name":"bytes","nodeType":"ElementaryTypeName","src":"6573:5:29","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6540:48:29"},"returnParameters":{"id":4499,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4496,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6621:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4495,"name":"int256","nodeType":"ElementaryTypeName","src":"6621:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":4498,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4505,"src":"6629:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4497,"name":"int256","nodeType":"ElementaryTypeName","src":"6629:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"6620:16:29"},"scope":4866,"src":"6527:148:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"body":{"id":4582,"nodeType":"Block","src":"6728:492:29","statements":[{"assignments":[4512],"declarations":[{"constant":false,"id":4512,"mutability":"mutable","name":"_plugin","nameLocation":"6750:7:29","nodeType":"VariableDeclaration","scope":4582,"src":"6735:22:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"},"typeName":{"id":4511,"nodeType":"UserDefinedTypeName","pathNode":{"id":4510,"name":"IAlgebraPlugin","nameLocations":["6735:14:29"],"nodeType":"IdentifierPath","referencedDeclaration":967,"src":"6735:14:29"},"referencedDeclaration":967,"src":"6735:14:29","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"visibility":"internal"}],"id":4516,"initialValue":{"arguments":[{"id":4514,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"6775:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4513,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"6760:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4515,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6760:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"nodeType":"VariableDeclarationStatement","src":"6735:47:29"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4523,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4521,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4517,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"6793:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4518,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"6805:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"6793:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4519,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"6820:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4520,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6828:16:29","memberName":"BEFORE_SWAP_FLAG","nodeType":"MemberAccess","referencedDeclaration":2126,"src":"6820:24:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"6793:51:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4522,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6848:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"6793:56:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4542,"nodeType":"IfStatement","src":"6789:173:29","trueBody":{"id":4541,"nodeType":"Block","src":"6851:111:29","statements":[{"expression":{"id":4539,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[null,{"id":4524,"name":"overrideFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4115,"src":"6863:11:29","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},{"id":4525,"name":"pluginFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4117,"src":"6876:9:29","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"id":4526,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"6860:26:29","typeDescriptions":{"typeIdentifier":"t_tuple$__$_t_uint24_$_t_uint24_$","typeString":"tuple(,uint24,uint24)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"expression":{"id":4529,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"6908:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4530,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6912:6:29","memberName":"sender","nodeType":"MemberAccess","src":"6908:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":4531,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"6920:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4532,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6924:6:29","memberName":"sender","nodeType":"MemberAccess","src":"6920:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"hexValue":"74727565","id":4533,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"6932:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},{"hexValue":"30","id":4534,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6938:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4535,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"6941:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"66616c7365","id":4536,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"6944:5:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},{"hexValue":"","id":4537,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6951:2:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""},"value":""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"id":4527,"name":"_plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4512,"src":"6889:7:29","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4528,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6897:10:29","memberName":"beforeSwap","nodeType":"MemberAccess","referencedDeclaration":908,"src":"6889:18:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_bool_$_t_bytes_memory_ptr_$returns$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"function (address,address,bool,int256,uint160,bool,bytes memory) external returns (bytes4,uint24,uint24)"}},"id":4538,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6889:65:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"tuple(bytes4,uint24,uint24)"}},"src":"6860:94:29","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4540,"nodeType":"ExpressionStatement","src":"6860:94:29"}]}},{"expression":{"id":4550,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4543,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"6970:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4545,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"6982:5:29","memberName":"price","nodeType":"MemberAccess","referencedDeclaration":4019,"src":"6970:17:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":4548,"name":"targetTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4507,"src":"7018:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_int24","typeString":"int24"}],"expression":{"id":4546,"name":"TickMath","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3371,"src":"6990:8:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_TickMath_$3371_$","typeString":"type(library TickMath)"}},"id":4547,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6999:18:29","memberName":"getSqrtRatioAtTick","nodeType":"MemberAccess","referencedDeclaration":3229,"src":"6990:27:29","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_int24_$returns$_t_uint160_$","typeString":"function (int24) pure returns (uint160)"}},"id":4549,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6990:39:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"src":"6970:59:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"id":4551,"nodeType":"ExpressionStatement","src":"6970:59:29"},{"expression":{"id":4556,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4552,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"7036:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4554,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"7048:4:29","memberName":"tick","nodeType":"MemberAccess","referencedDeclaration":4021,"src":"7036:16:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4555,"name":"targetTick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4507,"src":"7055:10:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"7036:29:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":4557,"nodeType":"ExpressionStatement","src":"7036:29:29"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4564,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4562,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4558,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"7078:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4559,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"7090:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"7078:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4560,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"7105:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4561,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"7113:15:29","memberName":"AFTER_SWAP_FLAG","nodeType":"MemberAccess","referencedDeclaration":2131,"src":"7105:23:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"7078:50:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4563,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7132:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"7078:55:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4581,"nodeType":"IfStatement","src":"7074:141:29","trueBody":{"id":4580,"nodeType":"Block","src":"7135:80:29","statements":[{"expression":{"arguments":[{"expression":{"id":4568,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"7162:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4569,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7166:6:29","memberName":"sender","nodeType":"MemberAccess","src":"7162:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":4570,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"7174:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4571,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7178:6:29","memberName":"sender","nodeType":"MemberAccess","src":"7174:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"hexValue":"74727565","id":4572,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"7186:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},{"hexValue":"30","id":4573,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7192:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4574,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7195:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4575,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7198:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4576,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7201:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"","id":4577,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"7204:2:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""},"value":""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"id":4565,"name":"_plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4512,"src":"7144:7:29","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4567,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7152:9:29","memberName":"afterSwap","nodeType":"MemberAccess","referencedDeclaration":930,"src":"7144:17:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_int256_$_t_int256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$","typeString":"function (address,address,bool,int256,uint160,int256,int256,bytes memory) external returns (bytes4)"}},"id":4578,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7144:63:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4579,"nodeType":"ExpressionStatement","src":"7144:63:29"}]}}]},"functionSelector":"e47cd4cf","id":4583,"implemented":true,"kind":"function","modifiers":[],"name":"swapToTick","nameLocation":"6690:10:29","nodeType":"FunctionDefinition","parameters":{"id":4508,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4507,"mutability":"mutable","name":"targetTick","nameLocation":"6707:10:29","nodeType":"VariableDeclaration","scope":4583,"src":"6701:16:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4506,"name":"int24","nodeType":"ElementaryTypeName","src":"6701:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"6700:18:29"},"returnParameters":{"id":4509,"nodeType":"ParameterList","parameters":[],"src":"6728:0:29"},"scope":4866,"src":"6681:539:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1102],"body":{"id":4608,"nodeType":"Block","src":"7404:38:29","statements":[{"expression":{"arguments":[{"hexValue":"4e6f7420696d706c656d656e746564","id":4605,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"7418:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""},"value":"Not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""}],"id":4604,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"7411:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4606,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7411:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4607,"nodeType":"ExpressionStatement","src":"7411:25:29"}]},"documentation":{"id":4584,"nodeType":"StructuredDocumentation","src":"7226:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"9e4e0227","id":4609,"implemented":true,"kind":"function","modifiers":[],"name":"swapWithPaymentInAdvance","nameLocation":"7274:24:29","nodeType":"FunctionDefinition","overrides":{"id":4598,"nodeType":"OverrideSpecifier","overrides":[],"src":"7370:8:29"},"parameters":{"id":4597,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4586,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7299:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4585,"name":"address","nodeType":"ElementaryTypeName","src":"7299:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4588,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7308:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4587,"name":"address","nodeType":"ElementaryTypeName","src":"7308:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4590,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7317:4:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4589,"name":"bool","nodeType":"ElementaryTypeName","src":"7317:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":4592,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7323:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4591,"name":"int256","nodeType":"ElementaryTypeName","src":"7323:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":4594,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7331:7:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4593,"name":"uint160","nodeType":"ElementaryTypeName","src":"7331:7:29","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4596,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7340:14:29","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4595,"name":"bytes","nodeType":"ElementaryTypeName","src":"7340:5:29","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7298:57:29"},"returnParameters":{"id":4603,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4600,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7388:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4599,"name":"int256","nodeType":"ElementaryTypeName","src":"7388:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":4602,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4609,"src":"7396:6:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4601,"name":"int256","nodeType":"ElementaryTypeName","src":"7396:6:29","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"7387:16:29"},"scope":4866,"src":"7265:177:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1114],"body":{"id":4669,"nodeType":"Block","src":"7594:374:29","statements":[{"assignments":[4623],"declarations":[{"constant":false,"id":4623,"mutability":"mutable","name":"pluginConfig","nameLocation":"7607:12:29","nodeType":"VariableDeclaration","scope":4669,"src":"7601:18:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4622,"name":"uint8","nodeType":"ElementaryTypeName","src":"7601:5:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":4626,"initialValue":{"expression":{"id":4624,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"7622:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4625,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"7634:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"7622:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"VariableDeclarationStatement","src":"7601:45:29"},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4632,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4630,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4627,"name":"pluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4623,"src":"7657:12:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4628,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"7672:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4629,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"7680:17:29","memberName":"BEFORE_FLASH_FLAG","nodeType":"MemberAccess","referencedDeclaration":2146,"src":"7672:25:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"7657:40:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4631,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7701:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"7657:45:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4646,"nodeType":"IfStatement","src":"7653:149:29","trueBody":{"id":4645,"nodeType":"Block","src":"7704:98:29","statements":[{"expression":{"arguments":[{"expression":{"id":4637,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"7748:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4638,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7752:6:29","memberName":"sender","nodeType":"MemberAccess","src":"7748:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4639,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4612,"src":"7760:9:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4640,"name":"amount0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4614,"src":"7771:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":4641,"name":"amount1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4616,"src":"7780:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":4642,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4618,"src":"7789:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4634,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"7728:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4633,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"7713:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4635,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7713:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4636,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7736:11:29","memberName":"beforeFlash","nodeType":"MemberAccess","referencedDeclaration":946,"src":"7713:34:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$","typeString":"function (address,address,uint256,uint256,bytes memory) external returns (bytes4)"}},"id":4643,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7713:81:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4644,"nodeType":"ExpressionStatement","src":"7713:81:29"}]}},{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4652,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4650,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4647,"name":"pluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4623,"src":"7814:12:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"expression":{"id":4648,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"7829:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4649,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"7837:16:29","memberName":"AFTER_FLASH_FLAG","nodeType":"MemberAccess","referencedDeclaration":2151,"src":"7829:24:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"7814:39:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4651,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7857:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"7814:44:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4668,"nodeType":"IfStatement","src":"7810:153:29","trueBody":{"id":4667,"nodeType":"Block","src":"7860:103:29","statements":[{"expression":{"arguments":[{"expression":{"id":4657,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"7903:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4658,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7907:6:29","memberName":"sender","nodeType":"MemberAccess","src":"7903:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4659,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4612,"src":"7915:9:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4660,"name":"amount0","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4614,"src":"7926:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"id":4661,"name":"amount1","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4616,"src":"7935:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"hexValue":"30","id":4662,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7944:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":4663,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7947:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"id":4664,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4618,"src":"7950:4:29","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}],"expression":{"arguments":[{"id":4654,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"7884:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":4653,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"7869:14:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4655,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7869:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPlugin_$967","typeString":"contract IAlgebraPlugin"}},"id":4656,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7892:10:29","memberName":"afterFlash","nodeType":"MemberAccess","referencedDeclaration":966,"src":"7869:33:29","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$","typeString":"function (address,address,uint256,uint256,uint256,uint256,bytes memory) external returns (bytes4)"}},"id":4665,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7869:86:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"id":4666,"nodeType":"ExpressionStatement","src":"7869:86:29"}]}}]},"documentation":{"id":4610,"nodeType":"StructuredDocumentation","src":"7448:35:29","text":"@inheritdoc IAlgebraPoolActions"},"functionSelector":"490e6cbc","id":4670,"implemented":true,"kind":"function","modifiers":[],"name":"flash","nameLocation":"7496:5:29","nodeType":"FunctionDefinition","overrides":{"id":4620,"nodeType":"OverrideSpecifier","overrides":[],"src":"7585:8:29"},"parameters":{"id":4619,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4612,"mutability":"mutable","name":"recipient","nameLocation":"7510:9:29","nodeType":"VariableDeclaration","scope":4670,"src":"7502:17:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4611,"name":"address","nodeType":"ElementaryTypeName","src":"7502:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4614,"mutability":"mutable","name":"amount0","nameLocation":"7529:7:29","nodeType":"VariableDeclaration","scope":4670,"src":"7521:15:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4613,"name":"uint256","nodeType":"ElementaryTypeName","src":"7521:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4616,"mutability":"mutable","name":"amount1","nameLocation":"7546:7:29","nodeType":"VariableDeclaration","scope":4670,"src":"7538:15:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":4615,"name":"uint256","nodeType":"ElementaryTypeName","src":"7538:7:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":4618,"mutability":"mutable","name":"data","nameLocation":"7570:4:29","nodeType":"VariableDeclaration","scope":4670,"src":"7555:19:29","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4617,"name":"bytes","nodeType":"ElementaryTypeName","src":"7555:5:29","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7501:74:29"},"returnParameters":{"id":4621,"nodeType":"ParameterList","parameters":[],"src":"7594:0:29"},"scope":4866,"src":"7487:481:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1396],"body":{"id":4698,"nodeType":"Block","src":"8092:217:29","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4685,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":4680,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4677,"name":"newCommunityFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4673,"src":"8103:15:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"expression":{"id":4678,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"8121:9:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":4679,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"8131:17:29","memberName":"MAX_COMMUNITY_FEE","nodeType":"MemberAccess","referencedDeclaration":1693,"src":"8121:27:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"8103:45:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":4684,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4681,"name":"newCommunityFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4673,"src":"8152:15:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"expression":{"id":4682,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"8171:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4683,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"8183:12:29","memberName":"communityFee","nodeType":"MemberAccess","referencedDeclaration":4027,"src":"8171:24:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"8152:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8103:92:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4691,"nodeType":"IfStatement","src":"8099:155:29","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":4686,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"8211:18:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":4688,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8230:22:29","memberName":"invalidNewCommunityFee","nodeType":"MemberAccess","referencedDeclaration":1169,"src":"8211:41:29","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":4689,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8211:43:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4690,"nodeType":"RevertStatement","src":"8204:50:29"}},{"expression":{"id":4696,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4692,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"8261:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4694,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"8273:12:29","memberName":"communityFee","nodeType":"MemberAccess","referencedDeclaration":4027,"src":"8261:24:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4695,"name":"newCommunityFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4673,"src":"8288:15:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"8261:42:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":4697,"nodeType":"ExpressionStatement","src":"8261:42:29"}]},"documentation":{"id":4671,"nodeType":"StructuredDocumentation","src":"7974:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"240a875a","id":4699,"implemented":true,"kind":"function","modifiers":[],"name":"setCommunityFee","nameLocation":"8034:15:29","nodeType":"FunctionDefinition","overrides":{"id":4675,"nodeType":"OverrideSpecifier","overrides":[],"src":"8083:8:29"},"parameters":{"id":4674,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4673,"mutability":"mutable","name":"newCommunityFee","nameLocation":"8057:15:29","nodeType":"VariableDeclaration","scope":4699,"src":"8050:22:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4672,"name":"uint16","nodeType":"ElementaryTypeName","src":"8050:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"8049:24:29"},"returnParameters":{"id":4676,"nodeType":"ParameterList","parameters":[],"src":"8092:0:29"},"scope":4866,"src":"8025:284:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1402],"body":{"id":4728,"nodeType":"Block","src":"8430:209:29","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4717,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4713,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":4708,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4706,"name":"newTickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4702,"src":"8441:14:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"<=","rightExpression":{"hexValue":"30","id":4707,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"8459:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"8441:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":4712,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4709,"name":"newTickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4702,"src":"8464:14:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"expression":{"id":4710,"name":"Constants","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1702,"src":"8481:9:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Constants_$1702_$","typeString":"type(library Constants)"}},"id":4711,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"8491:16:29","memberName":"MAX_TICK_SPACING","nodeType":"MemberAccess","referencedDeclaration":1681,"src":"8481:26:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8464:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8441:66:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_int24","typeString":"int24"},"id":4716,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4714,"name":"tickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4059,"src":"8511:11:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4715,"name":"newTickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4702,"src":"8526:14:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8511:29:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8441:99:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":4723,"nodeType":"IfStatement","src":"8437:161:29","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":4718,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1217,"src":"8556:18:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1217_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":4720,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8575:21:29","memberName":"invalidNewTickSpacing","nodeType":"MemberAccess","referencedDeclaration":1166,"src":"8556:40:29","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":4721,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8556:42:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4722,"nodeType":"RevertStatement","src":"8549:49:29"}},{"expression":{"id":4726,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4724,"name":"tickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4059,"src":"8605:11:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4725,"name":"newTickSpacing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4702,"src":"8619:14:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"src":"8605:28:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"id":4727,"nodeType":"ExpressionStatement","src":"8605:28:29"}]},"documentation":{"id":4700,"nodeType":"StructuredDocumentation","src":"8315:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"f085a610","id":4729,"implemented":true,"kind":"function","modifiers":[],"name":"setTickSpacing","nameLocation":"8375:14:29","nodeType":"FunctionDefinition","overrides":{"id":4704,"nodeType":"OverrideSpecifier","overrides":[],"src":"8421:8:29"},"parameters":{"id":4703,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4702,"mutability":"mutable","name":"newTickSpacing","nameLocation":"8396:14:29","nodeType":"VariableDeclaration","scope":4729,"src":"8390:20:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4701,"name":"int24","nodeType":"ElementaryTypeName","src":"8390:5:29","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"8389:22:29"},"returnParameters":{"id":4705,"nodeType":"ParameterList","parameters":[],"src":"8430:0:29"},"scope":4866,"src":"8366:273:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1408],"body":{"id":4747,"nodeType":"Block","src":"8759:73:29","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4740,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4737,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"8774:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4738,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8778:6:29","memberName":"sender","nodeType":"MemberAccess","src":"8774:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4739,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4113,"src":"8788:5:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"8774:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":4736,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"8766:7:29","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":4741,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8766:28:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4742,"nodeType":"ExpressionStatement","src":"8766:28:29"},{"expression":{"id":4745,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4743,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"8801:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4744,"name":"newPluginAddress","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4732,"src":"8810:16:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"8801:25:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":4746,"nodeType":"ExpressionStatement","src":"8801:25:29"}]},"documentation":{"id":4730,"nodeType":"StructuredDocumentation","src":"8645:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"cc1f97cf","id":4748,"implemented":true,"kind":"function","modifiers":[],"name":"setPlugin","nameLocation":"8705:9:29","nodeType":"FunctionDefinition","overrides":{"id":4734,"nodeType":"OverrideSpecifier","overrides":[],"src":"8750:8:29"},"parameters":{"id":4733,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4732,"mutability":"mutable","name":"newPluginAddress","nameLocation":"8723:16:29","nodeType":"VariableDeclaration","scope":4748,"src":"8715:24:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4731,"name":"address","nodeType":"ElementaryTypeName","src":"8715:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"8714:26:29"},"returnParameters":{"id":4735,"nodeType":"ParameterList","parameters":[],"src":"8759:0:29"},"scope":4866,"src":"8696:136:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1414],"body":{"id":4773,"nodeType":"Block","src":"8949:108:29","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4764,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4759,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4756,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"8964:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4757,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8968:6:29","memberName":"sender","nodeType":"MemberAccess","src":"8964:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4758,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4113,"src":"8978:5:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"8964:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4763,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4760,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"8987:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4761,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"8991:6:29","memberName":"sender","nodeType":"MemberAccess","src":"8987:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4762,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"9001:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"8987:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"8964:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":4755,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"8956:7:29","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":4765,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8956:52:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4766,"nodeType":"ExpressionStatement","src":"8956:52:29"},{"expression":{"id":4771,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4767,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"9015:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4769,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"9027:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"9015:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4770,"name":"newConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4751,"src":"9042:9:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"9015:36:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":4772,"nodeType":"ExpressionStatement","src":"9015:36:29"}]},"documentation":{"id":4749,"nodeType":"StructuredDocumentation","src":"8838:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"bca57f81","id":4774,"implemented":true,"kind":"function","modifiers":[],"name":"setPluginConfig","nameLocation":"8898:15:29","nodeType":"FunctionDefinition","overrides":{"id":4753,"nodeType":"OverrideSpecifier","overrides":[],"src":"8940:8:29"},"parameters":{"id":4752,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4751,"mutability":"mutable","name":"newConfig","nameLocation":"8920:9:29","nodeType":"VariableDeclaration","scope":4774,"src":"8914:15:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4750,"name":"uint8","nodeType":"ElementaryTypeName","src":"8914:5:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"8913:17:29"},"returnParameters":{"id":4754,"nodeType":"ParameterList","parameters":[],"src":"8949:0:29"},"scope":4866,"src":"8889:168:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1426],"body":{"id":4833,"nodeType":"Block","src":"9163:344:29","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4790,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4785,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4782,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"9178:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4783,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"9182:6:29","memberName":"sender","nodeType":"MemberAccess","src":"9178:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4784,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4113,"src":"9192:5:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"9178:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4789,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4786,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"9201:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4787,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"9205:6:29","memberName":"sender","nodeType":"MemberAccess","src":"9201:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4788,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"9215:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"9201:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"9178:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":4781,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"9170:7:29","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":4791,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9170:52:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4792,"nodeType":"ExpressionStatement","src":"9170:52:29"},{"assignments":[4794],"declarations":[{"constant":false,"id":4794,"mutability":"mutable","name":"isDynamicFeeEnabled","nameLocation":"9234:19:29","nodeType":"VariableDeclaration","scope":4833,"src":"9229:24:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4793,"name":"bool","nodeType":"ElementaryTypeName","src":"9229:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":4805,"initialValue":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":4804,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":4802,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4795,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"9256:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4796,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"9268:12:29","memberName":"pluginConfig","nodeType":"MemberAccess","referencedDeclaration":4025,"src":"9256:24:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"&","rightExpression":{"arguments":[{"expression":{"id":4799,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"9289:7:29","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4800,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"9297:11:29","memberName":"DYNAMIC_FEE","nodeType":"MemberAccess","referencedDeclaration":2161,"src":"9289:19:29","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":4798,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"9283:5:29","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":4797,"name":"uint8","nodeType":"ElementaryTypeName","src":"9283:5:29","typeDescriptions":{}}},"id":4801,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9283:26:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"9256:53:29","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"hexValue":"30","id":4803,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"9313:1:29","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"9256:58:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"VariableDeclarationStatement","src":"9229:85:29"},{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4809,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4806,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"9327:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4807,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"9331:6:29","memberName":"sender","nodeType":"MemberAccess","src":"9327:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4808,"name":"plugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4077,"src":"9341:6:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"9327:20:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":4825,"nodeType":"Block","src":"9400:69:29","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":4822,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":4817,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"9417:20:29","subExpression":{"id":4816,"name":"isDynamicFeeEnabled","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4794,"src":"9418:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":4821,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":4818,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"9441:3:29","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4819,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"9445:6:29","memberName":"sender","nodeType":"MemberAccess","src":"9441:10:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"id":4820,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4113,"src":"9455:5:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"9441:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"9417:43:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":4815,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"9409:7:29","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":4823,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9409:52:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4824,"nodeType":"ExpressionStatement","src":"9409:52:29"}]},"id":4826,"nodeType":"IfStatement","src":"9323:146:29","trueBody":{"id":4814,"nodeType":"Block","src":"9349:45:29","statements":[{"expression":{"arguments":[{"id":4811,"name":"isDynamicFeeEnabled","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4794,"src":"9366:19:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":4810,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"9358:7:29","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":4812,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9358:28:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4813,"nodeType":"ExpressionStatement","src":"9358:28:29"}]}},{"expression":{"id":4831,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":4827,"name":"globalState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"9477:11:29","typeDescriptions":{"typeIdentifier":"t_struct$_GlobalState_$4030_storage","typeString":"struct MockPool.GlobalState storage ref"}},"id":4829,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"9489:3:29","memberName":"fee","nodeType":"MemberAccess","referencedDeclaration":4023,"src":"9477:15:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4830,"name":"newFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4777,"src":"9495:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"9477:24:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":4832,"nodeType":"ExpressionStatement","src":"9477:24:29"}]},"documentation":{"id":4775,"nodeType":"StructuredDocumentation","src":"9063:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"8e005553","id":4834,"implemented":true,"kind":"function","modifiers":[],"name":"setFee","nameLocation":"9123:6:29","nodeType":"FunctionDefinition","overrides":{"id":4779,"nodeType":"OverrideSpecifier","overrides":[],"src":"9154:8:29"},"parameters":{"id":4778,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4777,"mutability":"mutable","name":"newFee","nameLocation":"9137:6:29","nodeType":"VariableDeclaration","scope":4834,"src":"9130:13:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":4776,"name":"uint16","nodeType":"ElementaryTypeName","src":"9130:6:29","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"9129:15:29"},"returnParameters":{"id":4780,"nodeType":"ParameterList","parameters":[],"src":"9163:0:29"},"scope":4866,"src":"9114:393:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1420],"body":{"id":4844,"nodeType":"Block","src":"9585:47:29","statements":[{"expression":{"id":4842,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4840,"name":"communityVault","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4080,"src":"9592:14:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":4841,"name":"newCommunityVault","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4836,"src":"9609:17:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"9592:34:29","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":4843,"nodeType":"ExpressionStatement","src":"9592:34:29"}]},"functionSelector":"d8544cf3","id":4845,"implemented":true,"kind":"function","modifiers":[],"name":"setCommunityVault","nameLocation":"9522:17:29","nodeType":"FunctionDefinition","overrides":{"id":4838,"nodeType":"OverrideSpecifier","overrides":[],"src":"9576:8:29"},"parameters":{"id":4837,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4836,"mutability":"mutable","name":"newCommunityVault","nameLocation":"9548:17:29","nodeType":"VariableDeclaration","scope":4845,"src":"9540:25:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4835,"name":"address","nodeType":"ElementaryTypeName","src":"9540:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"9539:27:29"},"returnParameters":{"id":4839,"nodeType":"ParameterList","parameters":[],"src":"9585:0:29"},"scope":4866,"src":"9513:119:29","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[1430],"body":{"id":4854,"nodeType":"Block","src":"9728:38:29","statements":[{"expression":{"arguments":[{"hexValue":"4e6f7420696d706c656d656e746564","id":4851,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"9742:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""},"value":"Not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""}],"id":4850,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"9735:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4852,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9735:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4853,"nodeType":"ExpressionStatement","src":"9735:25:29"}]},"documentation":{"id":4846,"nodeType":"StructuredDocumentation","src":"9638:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"fff6cae9","id":4855,"implemented":true,"kind":"function","modifiers":[],"name":"sync","nameLocation":"9698:4:29","nodeType":"FunctionDefinition","overrides":{"id":4848,"nodeType":"OverrideSpecifier","overrides":[],"src":"9719:8:29"},"parameters":{"id":4847,"nodeType":"ParameterList","parameters":[],"src":"9702:2:29"},"returnParameters":{"id":4849,"nodeType":"ParameterList","parameters":[],"src":"9728:0:29"},"scope":4866,"src":"9689:77:29","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[1434],"body":{"id":4864,"nodeType":"Block","src":"9862:38:29","statements":[{"expression":{"arguments":[{"hexValue":"4e6f7420696d706c656d656e746564","id":4861,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"9876:17:29","typeDescriptions":{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""},"value":"Not implemented"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9f5474d7a5849b3f79e8aee7ea2c60bcd36a60a08b4fa41f97e2fccf1c4df98b","typeString":"literal_string \"Not implemented\""}],"id":4860,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"9869:6:29","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":4862,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9869:25:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4863,"nodeType":"ExpressionStatement","src":"9869:25:29"}]},"documentation":{"id":4856,"nodeType":"StructuredDocumentation","src":"9772:47:29","text":"@inheritdoc IAlgebraPoolPermissionedActions"},"functionSelector":"1dd19cb4","id":4865,"implemented":true,"kind":"function","modifiers":[],"name":"skim","nameLocation":"9832:4:29","nodeType":"FunctionDefinition","overrides":{"id":4858,"nodeType":"OverrideSpecifier","overrides":[],"src":"9853:8:29"},"parameters":{"id":4857,"nodeType":"ParameterList","parameters":[],"src":"9836:2:29"},"returnParameters":{"id":4859,"nodeType":"ParameterList","parameters":[],"src":"9862:0:29"},"scope":4866,"src":"9823:77:29","stateMutability":"pure","virtual":false,"visibility":"external"}],"scope":4867,"src":"921:8982:29","usedErrors":[1166,1169,1213,1216],"usedEvents":[]}],"src":"38:9867:29"},"id":29},"contracts/test/TestFeeDiscountPlugin.sol":{"ast":{"absolutePath":"contracts/test/TestFeeDiscountPlugin.sol","exportedSymbols":{"AbstractPlugin":[434],"BaseAbstractPlugin":[477],"FeeDiscountPlugin":[3676],"IAbstractPlugin":[495],"IAlgebraFactory":[779],"IAlgebraPlugin":[967],"IAlgebraPluginFactory":[999],"IAlgebraPool":[801],"IAlgebraPoolActions":[1115],"IAlgebraPoolErrors":[1217],"IAlgebraPoolEvents":[1359],"IAlgebraPoolImmutables":[1387],"IAlgebraPoolPermissionedActions":[1435],"IAlgebraPoolState":[1619],"IAlgebraVaultFactory":[1647],"IFeeDiscountPlugin":[3808],"IFeeDiscountRegistry":[3854],"Plugins":[2162],"SafeTransfer":[2299],"TestFeeDiscountPlugin":[5006],"Timestamp":[512]},"id":5007,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":4868,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"38:24:30"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":4869,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":5007,"sourceUnit":2163,"src":"66:70:30","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol","file":"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol","id":4870,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":5007,"sourceUnit":478,"src":"138:73:30","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/FeeDiscountPlugin.sol","file":"../FeeDiscountPlugin.sol","id":4871,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":5007,"sourceUnit":3677,"src":"215:34:30","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":4873,"name":"FeeDiscountPlugin","nameLocations":["339:17:30"],"nodeType":"IdentifierPath","referencedDeclaration":3676,"src":"339:17:30"},"id":4874,"nodeType":"InheritanceSpecifier","src":"339:17:30"}],"canonicalName":"TestFeeDiscountPlugin","contractDependencies":[],"contractKind":"contract","documentation":{"id":4872,"nodeType":"StructuredDocumentation","src":"253:52:30","text":"@title Algebra Integral 1.2 limit order plugin"},"fullyImplemented":true,"id":5006,"linearizedBaseContracts":[5006,3676,3808,477,434,512,495,967],"name":"TestFeeDiscountPlugin","nameLocation":"314:21:30","nodeType":"ContractDefinition","nodes":[{"global":false,"id":4877,"libraryName":{"id":4875,"name":"Plugins","nameLocations":["368:7:30"],"nodeType":"IdentifierPath","referencedDeclaration":2162,"src":"368:7:30"},"nodeType":"UsingForDirective","src":"362:24:30","typeName":{"id":4876,"name":"uint8","nodeType":"ElementaryTypeName","src":"380:5:30","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"constant":false,"id":4879,"mutability":"mutable","name":"fee","nameLocation":"399:3:30","nodeType":"VariableDeclaration","scope":5006,"src":"392:10:30","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4878,"name":"uint24","nodeType":"ElementaryTypeName","src":"392:6:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"baseFunctions":[810],"constant":true,"documentation":{"id":4880,"nodeType":"StructuredDocumentation","src":"407:30:30","text":"@inheritdoc IAlgebraPlugin"},"functionSelector":"689ea370","id":4891,"mutability":"constant","name":"defaultPluginConfig","nameLocation":"472:19:30","nodeType":"VariableDeclaration","overrides":{"id":4882,"nodeType":"OverrideSpecifier","overrides":[],"src":"463:8:30"},"scope":5006,"src":"441:110:30","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":4881,"name":"uint8","nodeType":"ElementaryTypeName","src":"441:5:30","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"value":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":4889,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"expression":{"id":4885,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"500:7:30","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4886,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"508:15:30","memberName":"AFTER_INIT_FLAG","nodeType":"MemberAccess","referencedDeclaration":2156,"src":"500:23:30","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"|","rightExpression":{"expression":{"id":4887,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"526:7:30","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$2162_$","typeString":"type(library Plugins)"}},"id":4888,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"534:16:30","memberName":"BEFORE_SWAP_FLAG","nodeType":"MemberAccess","referencedDeclaration":2126,"src":"526:24:30","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"500:50:30","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":4884,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"494:5:30","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":4883,"name":"uint8","nodeType":"ElementaryTypeName","src":"494:5:30","typeDescriptions":{}}},"id":4890,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"494:57:30","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"public"},{"body":{"id":4910,"nodeType":"Block","src":"724:2:30","statements":[]},"id":4911,"implemented":true,"kind":"constructor","modifiers":[{"arguments":[{"id":4902,"name":"_pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4893,"src":"664:5:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4903,"name":"_factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4895,"src":"671:8:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4904,"name":"_pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4897,"src":"681:14:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":4905,"kind":"baseConstructorSpecifier","modifierName":{"id":4901,"name":"BaseAbstractPlugin","nameLocations":["645:18:30"],"nodeType":"IdentifierPath","referencedDeclaration":477,"src":"645:18:30"},"nodeType":"ModifierInvocation","src":"645:51:30"},{"arguments":[{"id":4907,"name":"registry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4899,"src":"715:8:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":4908,"kind":"baseConstructorSpecifier","modifierName":{"id":4906,"name":"FeeDiscountPlugin","nameLocations":["697:17:30"],"nodeType":"IdentifierPath","referencedDeclaration":3676,"src":"697:17:30"},"nodeType":"ModifierInvocation","src":"697:27:30"}],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":4900,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4893,"mutability":"mutable","name":"_pool","nameLocation":"578:5:30","nodeType":"VariableDeclaration","scope":4911,"src":"570:13:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4892,"name":"address","nodeType":"ElementaryTypeName","src":"570:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4895,"mutability":"mutable","name":"_factory","nameLocation":"593:8:30","nodeType":"VariableDeclaration","scope":4911,"src":"585:16:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4894,"name":"address","nodeType":"ElementaryTypeName","src":"585:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4897,"mutability":"mutable","name":"_pluginFactory","nameLocation":"611:14:30","nodeType":"VariableDeclaration","scope":4911,"src":"603:22:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4896,"name":"address","nodeType":"ElementaryTypeName","src":"603:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4899,"mutability":"mutable","name":"registry","nameLocation":"635:8:30","nodeType":"VariableDeclaration","scope":4911,"src":"627:16:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4898,"name":"address","nodeType":"ElementaryTypeName","src":"627:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"569:75:30"},"returnParameters":{"id":4909,"nodeType":"ParameterList","parameters":[],"src":"724:0:30"},"scope":5006,"src":"558:168:30","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"baseFunctions":[161],"body":{"id":4931,"nodeType":"Block","src":"848:113:30","statements":[{"expression":{"arguments":[{"id":4924,"name":"defaultPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4891,"src":"881:19:30","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":4923,"name":"_updatePluginConfigInPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":374,"src":"855:25:30","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":4925,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"855:46:30","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":4926,"nodeType":"ExpressionStatement","src":"855:46:30"},{"expression":{"expression":{"expression":{"id":4927,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"915:14:30","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4928,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"930:16:30","memberName":"beforeInitialize","nodeType":"MemberAccess","referencedDeclaration":830,"src":"915:31:30","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeInitialize(address,uint160) returns (bytes4)"}},"id":4929,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"947:8:30","memberName":"selector","nodeType":"MemberAccess","src":"915:40:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":4922,"id":4930,"nodeType":"Return","src":"908:47:30"}]},"functionSelector":"636fd804","id":4932,"implemented":true,"kind":"function","modifiers":[{"id":4919,"kind":"modifierInvocation","modifierName":{"id":4918,"name":"onlyPool","nameLocations":["822:8:30"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"822:8:30"},"nodeType":"ModifierInvocation","src":"822:8:30"}],"name":"beforeInitialize","nameLocation":"769:16:30","nodeType":"FunctionDefinition","overrides":{"id":4917,"nodeType":"OverrideSpecifier","overrides":[],"src":"813:8:30"},"parameters":{"id":4916,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4913,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4932,"src":"786:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4912,"name":"address","nodeType":"ElementaryTypeName","src":"786:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4915,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4932,"src":"795:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4914,"name":"uint160","nodeType":"ElementaryTypeName","src":"795:7:30","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"785:18:30"},"returnParameters":{"id":4922,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4921,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4932,"src":"840:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":4920,"name":"bytes4","nodeType":"ElementaryTypeName","src":"840:6:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"839:8:30"},"scope":5006,"src":"760:201:30","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[180],"body":{"id":4950,"nodeType":"Block","src":"1066:59:30","statements":[{"expression":{"expression":{"expression":{"id":4946,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"1080:14:30","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4947,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1095:15:30","memberName":"afterInitialize","nodeType":"MemberAccess","referencedDeclaration":842,"src":"1080:30:30","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$_t_int24_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterInitialize(address,uint160,int24) returns (bytes4)"}},"id":4948,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1111:8:30","memberName":"selector","nodeType":"MemberAccess","src":"1080:39:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":4945,"id":4949,"nodeType":"Return","src":"1073:46:30"}]},"functionSelector":"82dd6522","id":4951,"implemented":true,"kind":"function","modifiers":[{"id":4942,"kind":"modifierInvocation","modifierName":{"id":4941,"name":"onlyPool","nameLocations":["1040:8:30"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"1040:8:30"},"nodeType":"ModifierInvocation","src":"1040:8:30"}],"name":"afterInitialize","nameLocation":"976:15:30","nodeType":"FunctionDefinition","overrides":{"id":4940,"nodeType":"OverrideSpecifier","overrides":[],"src":"1026:8:30"},"parameters":{"id":4939,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4934,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4951,"src":"992:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4933,"name":"address","nodeType":"ElementaryTypeName","src":"992:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4936,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4951,"src":"1001:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4935,"name":"uint160","nodeType":"ElementaryTypeName","src":"1001:7:30","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4938,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4951,"src":"1010:5:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":4937,"name":"int24","nodeType":"ElementaryTypeName","src":"1010:5:30","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"991:25:30"},"returnParameters":{"id":4945,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4944,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4951,"src":"1058:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":4943,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1058:6:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1057:8:30"},"scope":5006,"src":"967:158:30","stateMutability":"view","virtual":false,"visibility":"external"},{"baseFunctions":[272],"body":{"id":4994,"nodeType":"Block","src":"1274:122:30","statements":[{"expression":{"id":4985,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":4977,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4879,"src":"1281:3:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"expression":{"id":4979,"name":"tx","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-26,"src":"1305:2:30","typeDescriptions":{"typeIdentifier":"t_magic_transaction","typeString":"tx"}},"id":4980,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1308:6:30","memberName":"origin","nodeType":"MemberAccess","src":"1305:9:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"expression":{"id":4981,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"1316:3:30","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":4982,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1320:6:30","memberName":"sender","nodeType":"MemberAccess","src":"1316:10:30","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":4983,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4879,"src":"1328:3:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint24","typeString":"uint24"}],"id":4978,"name":"_applyFeeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":3657,"src":"1287:17:30","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint24_$returns$_t_uint24_$","typeString":"function (address,address,uint24) returns (uint24)"}},"id":4984,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1287:45:30","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1281:51:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"id":4986,"nodeType":"ExpressionStatement","src":"1281:51:30"},{"expression":{"components":[{"expression":{"expression":{"id":4987,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":967,"src":"1347:14:30","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$967_$","typeString":"type(contract IAlgebraPlugin)"}},"id":4988,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1362:10:30","memberName":"beforeSwap","nodeType":"MemberAccess","referencedDeclaration":908,"src":"1347:25:30","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_bool_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeSwap(address,address,bool,int256,uint160,bool,bytes calldata) returns (bytes4,uint24,uint24)"}},"id":4989,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1373:8:30","memberName":"selector","nodeType":"MemberAccess","src":"1347:34:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"id":4990,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4879,"src":"1383:3:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},{"hexValue":"30","id":4991,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1388:1:30","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":4992,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1346:44:30","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_uint24_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,uint24,int_const 0)"}},"functionReturnParameters":4976,"id":4993,"nodeType":"Return","src":"1339:51:30"}]},"functionSelector":"029c1cb7","id":4995,"implemented":true,"kind":"function","modifiers":[{"id":4969,"kind":"modifierInvocation","modifierName":{"id":4968,"name":"onlyPool","nameLocations":["1232:8:30"],"nodeType":"IdentifierPath","referencedDeclaration":36,"src":"1232:8:30"},"nodeType":"ModifierInvocation","src":"1232:8:30"}],"name":"beforeSwap","nameLocation":"1140:10:30","nodeType":"FunctionDefinition","overrides":{"id":4967,"nodeType":"OverrideSpecifier","overrides":[],"src":"1223:8:30"},"parameters":{"id":4966,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4953,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1151:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4952,"name":"address","nodeType":"ElementaryTypeName","src":"1151:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4955,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1160:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":4954,"name":"address","nodeType":"ElementaryTypeName","src":"1160:7:30","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":4957,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1169:4:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4956,"name":"bool","nodeType":"ElementaryTypeName","src":"1169:4:30","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":4959,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1175:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":4958,"name":"int256","nodeType":"ElementaryTypeName","src":"1175:6:30","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":4961,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1183:7:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":4960,"name":"uint160","nodeType":"ElementaryTypeName","src":"1183:7:30","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":4963,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1192:4:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":4962,"name":"bool","nodeType":"ElementaryTypeName","src":"1192:4:30","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":4965,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1198:14:30","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":4964,"name":"bytes","nodeType":"ElementaryTypeName","src":"1198:5:30","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"1150:63:30"},"returnParameters":{"id":4976,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4971,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1250:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":4970,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1250:6:30","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":4973,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1258:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4972,"name":"uint24","nodeType":"ElementaryTypeName","src":"1258:6:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":4975,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":4995,"src":"1266:6:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4974,"name":"uint24","nodeType":"ElementaryTypeName","src":"1266:6:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1249:24:30"},"scope":5006,"src":"1131:265:30","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"body":{"id":5004,"nodeType":"Block","src":"1445:26:30","statements":[{"expression":{"id":5002,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":5000,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4879,"src":"1452:3:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":5001,"name":"_newFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4997,"src":"1458:7:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1452:13:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"id":5003,"nodeType":"ExpressionStatement","src":"1452:13:30"}]},"functionSelector":"eabb5622","id":5005,"implemented":true,"kind":"function","modifiers":[],"name":"setFee","nameLocation":"1413:6:30","nodeType":"FunctionDefinition","parameters":{"id":4998,"nodeType":"ParameterList","parameters":[{"constant":false,"id":4997,"mutability":"mutable","name":"_newFee","nameLocation":"1427:7:30","nodeType":"VariableDeclaration","scope":5005,"src":"1420:14:30","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":4996,"name":"uint24","nodeType":"ElementaryTypeName","src":"1420:6:30","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1419:16:30"},"returnParameters":{"id":4999,"nodeType":"ParameterList","parameters":[],"src":"1445:0:30"},"scope":5006,"src":"1404:67:30","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":5007,"src":"305:1171:30","usedErrors":[1210],"usedEvents":[3807]}],"src":"38:1440:30"},"id":30}},"contracts":{"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol":{"AbstractPlugin":{"abi":[{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","handlePluginFee(uint256,uint256)":"aa6b14bb","pool()":"16f0115b"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"stateVariables\":{\"ALGEBRA_BASE_PLUGIN_MANAGER\":{\"details\":\"The role can be granted in AlgebraFactory\"}},\"title\":\"Algebra Integral 1.2.1 plugin base\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"notice\":\"This contract simplifies development process of plugins by providing base functionality\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol\":\"AbstractPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol\":{\"keccak256\":\"0xca12778d7c1fc43c394f3fe93e4b16302c39c888b3bc04f7723db2cc69d60940\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://39bdd043ff3fe72cc19c7c7c08080d80babdb795e78134df121f14fd3e461eff\",\"dweb:/ipfs/QmZX8bECwCRNfS6cTQjc9T5wpCXjijG9S6RWWWbJgGvf3y\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0xf48e61f16fda95e335305a39661eeb3e55a75acf7775b8977969fa009ff7ca10\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e20c4fa273d16758f73420ba441f4821b2839e3eb9a84da063a4ebbcee6cbaec\",\"dweb:/ipfs/QmXehxH1xGfWJbYzqHGSBr3ZmPLzNjjY99aGrhy8o7Gqup\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]}},\"version\":1}"}},"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol":{"BaseAbstractPlugin":{"abi":[{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","handlePluginFee(uint256,uint256)":"aa6b14bb","pool()":"16f0115b"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"Algebra's internal Integral 1.2.1 abstract plugin for `Base` plugins\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"notice\":\"This contract inherits AbstractPlugin\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol\":\"BaseAbstractPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol\":{\"keccak256\":\"0xca12778d7c1fc43c394f3fe93e4b16302c39c888b3bc04f7723db2cc69d60940\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://39bdd043ff3fe72cc19c7c7c08080d80babdb795e78134df121f14fd3e461eff\",\"dweb:/ipfs/QmZX8bECwCRNfS6cTQjc9T5wpCXjijG9S6RWWWbJgGvf3y\"]},\"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol\":{\"keccak256\":\"0x8668bf51349f615ab941e9c30c563d12e5037a883dc9ccafe59eb75ea78e4d7d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://683360746f021dde02b919ace2fba5a3ee59c428391993272625c6cd24acffc1\",\"dweb:/ipfs/QmW4H3TE3GWBrpZXE6NGUKupCEf7yFtLWpGDXwemF6cWB3\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0xf48e61f16fda95e335305a39661eeb3e55a75acf7775b8977969fa009ff7ca10\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e20c4fa273d16758f73420ba441f4821b2839e3eb9a84da063a4ebbcee6cbaec\",\"dweb:/ipfs/QmXehxH1xGfWJbYzqHGSBr3ZmPLzNjjY99aGrhy8o7Gqup\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]}},\"version\":1}"}},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"IAbstractPlugin":{"abi":[{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"paid0","type":"uint256"},{"internalType":"uint256","name":"paid1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bool","name":"withPaymentInAdvance","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"feeOverride","type":"uint24"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pluginFee0","type":"uint256"},{"internalType":"uint256","name":"pluginFee1","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","handlePluginFee(uint256,uint256)":"aa6b14bb"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"withPaymentInAdvance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"feeOverride\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pluginFee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pluginFee1\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"paid0\":\"The amount of token0 being paid for flash\",\"paid1\":\"The amount of token1 being paid for flash\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterInitialize(address,uint160,int24)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\",\"tick\":\"The current tick after the state of a pool is initialized\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 sent to the recipient or was paid to mint\",\"amount1\":\"The amount of token0 sent to the recipient or was paid to mint\",\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"params\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\",\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeInitialize(address,uint160)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"params\":{\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"withPaymentInAdvance\":\"The flag indicating whether the `swapWithPaymentInAdvance` method was called\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"The interface for the BasePlugin\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"notice\":\"The hook called after flash\"},\"afterInitialize(address,uint160,int24)\":{\"notice\":\"The hook called after the state of a pool is initialized\"},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"notice\":\"The hook called after a position is modified\"},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"notice\":\"The hook called after a swap\"},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"notice\":\"The hook called before flash\"},\"beforeInitialize(address,uint160)\":{\"notice\":\"The hook called before the state of a pool is initialized\"},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"notice\":\"The hook called before a position is modified\"},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"notice\":\"The hook called before a swap\"},\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":\"IAbstractPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0xf48e61f16fda95e335305a39661eeb3e55a75acf7775b8977969fa009ff7ca10\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e20c4fa273d16758f73420ba441f4821b2839e3eb9a84da063a4ebbcee6cbaec\",\"dweb:/ipfs/QmXehxH1xGfWJbYzqHGSBr3ZmPLzNjjY99aGrhy8o7Gqup\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"Timestamp":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Can be overridden in tests to make testing easier\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Abstract contract with modified blockTimestamp functionality\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Allows the pool and other contracts to get a timestamp truncated to 32 bits\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":\"Timestamp\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"IAlgebraFactory":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployer","type":"address"},{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"CustomPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newDefaultCommunityFee","type":"uint16"}],"name":"DefaultCommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newDefaultFee","type":"uint16"}],"name":"DefaultFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"defaultPluginFactoryAddress","type":"address"}],"name":"DefaultPluginFactory","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newDefaultTickspacing","type":"int24"}],"name":"DefaultTickspacing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"Pool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RenounceOwnershipFinish","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"finishTimestamp","type":"uint256"}],"name":"RenounceOwnershipStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RenounceOwnershipStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newVaultFactory","type":"address"}],"name":"VaultFactory","type":"event"},{"inputs":[],"name":"CUSTOM_POOL_DEPLOYER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOLS_ADMINISTRATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_INIT_CODE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"customDeployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"computeCustomPoolAddress","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"computePoolAddress","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"createCustomPool","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"createPool","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"customDeployer","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"customPoolByPair","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultCommunityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultConfigurationForPool","outputs":[{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"uint16","name":"fee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultPluginFactory","outputs":[{"internalType":"contract IAlgebraPluginFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultTickspacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRoleOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"poolByPair","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnershipStartTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"newDefaultCommunityFee","type":"uint16"}],"name":"setDefaultCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newDefaultFee","type":"uint16"}],"name":"setDefaultFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDefaultPluginFactory","type":"address"}],"name":"setDefaultPluginFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newDefaultTickspacing","type":"int24"}],"name":"setDefaultTickspacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVaultFactory","type":"address"}],"name":"setVaultFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultFactory","outputs":[{"internalType":"contract IAlgebraVaultFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"CUSTOM_POOL_DEPLOYER()":"07810754","POOLS_ADMINISTRATOR_ROLE()":"b500a48b","POOL_INIT_CODE_HASH()":"dc6fd8ab","computeCustomPoolAddress(address,address,address)":"1ba89df4","computePoolAddress(address,address)":"d8ed2241","createCustomPool(address,address,address,address,bytes)":"dbbf3db4","createPool(address,address,bytes)":"321935c6","customPoolByPair(address,address,address)":"23da36cc","defaultCommunityFee()":"2f8a39dd","defaultConfigurationForPool()":"25b355d6","defaultFee()":"5a6c72d0","defaultPluginFactory()":"d0ad2792","defaultTickspacing()":"29bc3446","hasRoleOrOwner(bytes32,address)":"e8ae2b69","owner()":"8da5cb5b","poolByPair(address,address)":"d9a641e1","poolDeployer()":"3119049a","renounceOwnershipStartTimestamp()":"084bfff9","setDefaultCommunityFee(uint16)":"8d5a8711","setDefaultFee(uint16)":"77326584","setDefaultPluginFactory(address)":"2939dd97","setDefaultTickspacing(int24)":"f09489ac","setVaultFactory(address)":"3ea7fbdb","startRenounceOwnership()":"469388c4","stopRenounceOwnership()":"238a1d74","vaultFactory()":"d8a06f73"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"CustomPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint16\"}],\"name\":\"DefaultCommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDefaultFee\",\"type\":\"uint16\"}],\"name\":\"DefaultFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"defaultPluginFactoryAddress\",\"type\":\"address\"}],\"name\":\"DefaultPluginFactory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newDefaultTickspacing\",\"type\":\"int24\"}],\"name\":\"DefaultTickspacing\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"Pool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipFinish\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finishTimestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipStart\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipStop\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newVaultFactory\",\"type\":\"address\"}],\"name\":\"VaultFactory\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CUSTOM_POOL_DEPLOYER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOLS_ADMINISTRATOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL_INIT_CODE_HASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"customDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"computeCustomPoolAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"computePoolAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createCustomPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"customDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"customPoolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultCommunityFee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultConfigurationForPool\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultFee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginFactory\",\"outputs\":[{\"internalType\":\"contract IAlgebraPluginFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultTickspacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRoleOrOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"poolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolDeployer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnershipStartTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setDefaultCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newDefaultFee\",\"type\":\"uint16\"}],\"name\":\"setDefaultFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDefaultPluginFactory\",\"type\":\"address\"}],\"name\":\"setDefaultPluginFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newDefaultTickspacing\",\"type\":\"int24\"}],\"name\":\"setDefaultTickspacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newVaultFactory\",\"type\":\"address\"}],\"name\":\"setVaultFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startRenounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopRenounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultFactory\",\"outputs\":[{\"internalType\":\"contract IAlgebraVaultFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"events\":{\"CustomPool(address,address,address,address)\":{\"params\":{\"deployer\":\"The corresponding custom deployer contract\",\"pool\":\"The address of the created pool\",\"token0\":\"The first token of the pool by address sort order\",\"token1\":\"The second token of the pool by address sort order\"}},\"DefaultCommunityFee(uint16)\":{\"params\":{\"newDefaultCommunityFee\":\"The new default community fee value\"}},\"DefaultFee(uint16)\":{\"params\":{\"newDefaultFee\":\"The new default fee value\"}},\"DefaultPluginFactory(address)\":{\"params\":{\"defaultPluginFactoryAddress\":\"The new defaultPluginFactory address\"}},\"DefaultTickspacing(int24)\":{\"params\":{\"newDefaultTickspacing\":\"The new default tickspacing value\"}},\"Pool(address,address,address)\":{\"params\":{\"pool\":\"The address of the created pool\",\"token0\":\"The first token of the pool by address sort order\",\"token1\":\"The second token of the pool by address sort order\"}},\"RenounceOwnershipFinish(uint256)\":{\"params\":{\"timestamp\":\"The timestamp of ownership renouncement\"}},\"RenounceOwnershipStart(uint256,uint256)\":{\"params\":{\"finishTimestamp\":\"The timestamp when ownership renounce will be possible to finish\",\"timestamp\":\"The timestamp of event\"}},\"RenounceOwnershipStop(uint256)\":{\"params\":{\"timestamp\":\"The timestamp of event\"}},\"VaultFactory(address)\":{\"params\":{\"newVaultFactory\":\"The new vaultFactory address\"}}},\"kind\":\"dev\",\"methods\":{\"CUSTOM_POOL_DEPLOYER()\":{\"returns\":{\"_0\":\"The hash corresponding to this role\"}},\"POOLS_ADMINISTRATOR_ROLE()\":{\"returns\":{\"_0\":\"The hash corresponding to this role\"}},\"POOL_INIT_CODE_HASH()\":{\"details\":\"the hash value changes with any change in the pool bytecode\",\"returns\":{\"_0\":\"Keccak256 hash of AlgebraPool contract init bytecode\"}},\"computeCustomPoolAddress(address,address,address)\":{\"details\":\"The method does not check if such a pool has been created\",\"params\":{\"customDeployer\":\"the address of custom plugin deployer\",\"token0\":\"first token\",\"token1\":\"second token\"},\"returns\":{\"customPool\":\"The contract address of the Algebra pool\"}},\"computePoolAddress(address,address)\":{\"details\":\"The method does not check if such a pool has been created\",\"params\":{\"token0\":\"first token\",\"token1\":\"second token\"},\"returns\":{\"pool\":\"The contract address of the Algebra pool\"}},\"createCustomPool(address,address,address,address,bytes)\":{\"details\":\"tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. The call will revert if the pool already exists or the token arguments are invalid.\",\"params\":{\"creator\":\"The initiator of custom pool creation\",\"data\":\"The additional data bytes\",\"deployer\":\"The address of plugin deployer, also used for custom pool address calculation\",\"tokenA\":\"One of the two tokens in the desired pool\",\"tokenB\":\"The other of the two tokens in the desired pool\"},\"returns\":{\"customPool\":\"The address of the newly created custom pool\"}},\"createPool(address,address,bytes)\":{\"details\":\"tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. The call will revert if the pool already exists or the token arguments are invalid.\",\"params\":{\"data\":\"Data for plugin creation\",\"tokenA\":\"One of the two tokens in the desired pool\",\"tokenB\":\"The other of the two tokens in the desired pool\"},\"returns\":{\"pool\":\"The address of the newly created pool\"}},\"customPoolByPair(address,address,address)\":{\"details\":\"tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\",\"params\":{\"customDeployer\":\"The address of custom plugin deployer\",\"tokenA\":\"The contract address of either token0 or token1\",\"tokenB\":\"The contract address of the other token\"},\"returns\":{\"customPool\":\"The pool address\"}},\"defaultCommunityFee()\":{\"returns\":{\"_0\":\"Fee which will be set at the creation of the pool\"}},\"defaultConfigurationForPool()\":{\"returns\":{\"communityFee\":\"which will be set at the creation of the pool\",\"fee\":\"which will be set at the creation of the pool\",\"tickSpacing\":\"which will be set at the creation of the pool\"}},\"defaultFee()\":{\"returns\":{\"_0\":\"Fee which will be set at the creation of the pool\"}},\"defaultPluginFactory()\":{\"details\":\"This contract is used to automatically set a plugin address in new liquidity pools\",\"returns\":{\"_0\":\"Algebra plugin factory\"}},\"defaultTickspacing()\":{\"returns\":{\"_0\":\"Tickspacing which will be set at the creation of the pool\"}},\"hasRoleOrOwner(bytes32,address)\":{\"params\":{\"account\":\"The address for which the role is checked\",\"role\":\"The hash corresponding to the role\"},\"returns\":{\"_0\":\"bool Whether the address has this role or the owner role or not\"}},\"owner()\":{\"details\":\"Can be changed by the current owner via transferOwnership(address newOwner)\",\"returns\":{\"_0\":\"The address of the factory owner\"}},\"poolByPair(address,address)\":{\"details\":\"tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\",\"params\":{\"tokenA\":\"The contract address of either token0 or token1\",\"tokenB\":\"The contract address of the other token\"},\"returns\":{\"pool\":\"The pool address\"}},\"poolDeployer()\":{\"returns\":{\"_0\":\"The address of the poolDeployer\"}},\"renounceOwnershipStartTimestamp()\":{\"returns\":{\"timestamp\":\"The timestamp of the beginning of the renounceOwnership process\"}},\"setDefaultCommunityFee(uint16)\":{\"details\":\"updates default community fee for new pools\",\"params\":{\"newDefaultCommunityFee\":\"The new community fee, _must_ be <= MAX_COMMUNITY_FEE\"}},\"setDefaultFee(uint16)\":{\"details\":\"updates default fee for new pools\",\"params\":{\"newDefaultFee\":\"The new  fee, _must_ be <= MAX_DEFAULT_FEE\"}},\"setDefaultPluginFactory(address)\":{\"details\":\"updates pluginFactory address\",\"params\":{\"newDefaultPluginFactory\":\"address of new plugin factory\"}},\"setDefaultTickspacing(int24)\":{\"details\":\"updates default tickspacing for new pools\",\"params\":{\"newDefaultTickspacing\":\"The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING\"}},\"setVaultFactory(address)\":{\"details\":\"updates vaultFactory address\",\"params\":{\"newVaultFactory\":\"address of new vault factory\"}},\"vaultFactory()\":{\"details\":\"This contract is used to automatically set a vault address in new liquidity pools\",\"returns\":{\"_0\":\"Algebra vault factory\"}}},\"title\":\"The interface for the Algebra Factory\",\"version\":1},\"userdoc\":{\"events\":{\"CustomPool(address,address,address,address)\":{\"notice\":\"Emitted when a pool is created\"},\"DefaultCommunityFee(uint16)\":{\"notice\":\"Emitted when the default community fee is changed\"},\"DefaultFee(uint16)\":{\"notice\":\"Emitted when the default fee is changed\"},\"DefaultPluginFactory(address)\":{\"notice\":\"Emitted when the defaultPluginFactory address is changed\"},\"DefaultTickspacing(int24)\":{\"notice\":\"Emitted when the default tickspacing is changed\"},\"Pool(address,address,address)\":{\"notice\":\"Emitted when a pool is created\"},\"RenounceOwnershipFinish(uint256)\":{\"notice\":\"Emitted when a process of ownership renounce finished\"},\"RenounceOwnershipStart(uint256,uint256)\":{\"notice\":\"Emitted when a process of ownership renounce is started\"},\"RenounceOwnershipStop(uint256)\":{\"notice\":\"Emitted when a process of ownership renounce cancelled\"},\"VaultFactory(address)\":{\"notice\":\"Emitted when the vaultFactory address is changed\"}},\"kind\":\"user\",\"methods\":{\"CUSTOM_POOL_DEPLOYER()\":{\"notice\":\"role that can call `createCustomPool` function\"},\"POOLS_ADMINISTRATOR_ROLE()\":{\"notice\":\"role that can change communityFee and tickspacing in pools\"},\"POOL_INIT_CODE_HASH()\":{\"notice\":\"returns keccak256 of AlgebraPool init bytecode.\"},\"computeCustomPoolAddress(address,address,address)\":{\"notice\":\"Deterministically computes the custom pool address given the customDeployer, token0 and token1\"},\"computePoolAddress(address,address)\":{\"notice\":\"Deterministically computes the pool address given the token0 and token1\"},\"createCustomPool(address,address,address,address,bytes)\":{\"notice\":\"Creates a custom pool for the given two tokens using `deployer` contract\"},\"createPool(address,address,bytes)\":{\"notice\":\"Creates a pool for the given two tokens\"},\"customPoolByPair(address,address,address)\":{\"notice\":\"Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\"},\"defaultCommunityFee()\":{\"notice\":\"Returns the default community fee\"},\"defaultConfigurationForPool()\":{\"notice\":\"Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\"},\"defaultFee()\":{\"notice\":\"Returns the default fee\"},\"defaultPluginFactory()\":{\"notice\":\"Return the current pluginFactory address\"},\"defaultTickspacing()\":{\"notice\":\"Returns the default tickspacing\"},\"hasRoleOrOwner(bytes32,address)\":{\"notice\":\"Returns `true` if `account` has been granted `role` or `account` is owner.\"},\"owner()\":{\"notice\":\"Returns the current owner of the factory\"},\"poolByPair(address,address)\":{\"notice\":\"Returns the pool address for a given pair of tokens, or address 0 if it does not exist\"},\"poolDeployer()\":{\"notice\":\"Returns the current poolDeployerAddress\"},\"startRenounceOwnership()\":{\"notice\":\"Starts process of renounceOwnership. After that, a certain period of time must pass before the ownership renounce can be completed.\"},\"stopRenounceOwnership()\":{\"notice\":\"Stops process of renounceOwnership and removes timer.\"},\"vaultFactory()\":{\"notice\":\"Return the current vaultFactory address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":\"IAlgebraFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"IAlgebraPool":{"abi":[{"inputs":[],"name":"alreadyInitialized","type":"error"},{"inputs":[],"name":"arithmeticError","type":"error"},{"inputs":[],"name":"bottomTickLowerThanMIN","type":"error"},{"inputs":[],"name":"dynamicFeeActive","type":"error"},{"inputs":[],"name":"dynamicFeeDisabled","type":"error"},{"inputs":[],"name":"flashInsufficientPaid0","type":"error"},{"inputs":[],"name":"flashInsufficientPaid1","type":"error"},{"inputs":[],"name":"incorrectPluginFee","type":"error"},{"inputs":[],"name":"insufficientInputAmount","type":"error"},{"inputs":[],"name":"invalidAmountRequired","type":"error"},{"inputs":[{"internalType":"bytes4","name":"expectedSelector","type":"bytes4"}],"name":"invalidHookResponse","type":"error"},{"inputs":[],"name":"invalidLimitSqrtPrice","type":"error"},{"inputs":[],"name":"invalidNewCommunityFee","type":"error"},{"inputs":[],"name":"invalidNewTickSpacing","type":"error"},{"inputs":[],"name":"liquidityAdd","type":"error"},{"inputs":[],"name":"liquidityOverflow","type":"error"},{"inputs":[],"name":"liquiditySub","type":"error"},{"inputs":[],"name":"locked","type":"error"},{"inputs":[],"name":"notAllowed","type":"error"},{"inputs":[],"name":"notInitialized","type":"error"},{"inputs":[],"name":"pluginIsNotConnected","type":"error"},{"inputs":[],"name":"priceOutOfRange","type":"error"},{"inputs":[],"name":"tickInvalidLinks","type":"error"},{"inputs":[],"name":"tickIsNotInitialized","type":"error"},{"inputs":[],"name":"tickIsNotSpaced","type":"error"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"inputs":[],"name":"topTickAboveMAX","type":"error"},{"inputs":[],"name":"topTickLowerOrEqBottomTick","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"zeroAmountRequired","type":"error"},{"inputs":[],"name":"zeroLiquidityActual","type":"error"},{"inputs":[],"name":"zeroLiquidityDesired","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"communityFeeNew","type":"uint16"}],"name":"CommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"CommunityVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"ExcessTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"fee","type":"uint16"}],"name":"Fee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"Plugin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newPluginConfig","type":"uint8"}],"name":"PluginConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"},{"indexed":false,"internalType":"uint24","name":"overrideFee","type":"uint24"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"TickSpacing","type":"event"},{"inputs":[{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityVault","outputs":[{"internalType":"address","name":"communityVaultAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint16","name":"currentFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCommunityFeePending","outputs":[{"internalType":"uint128","name":"communityFeePending0","type":"uint128"},{"internalType":"uint128","name":"communityFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPluginFeePending","outputs":[{"internalType":"uint128","name":"pluginFeePending0","type":"uint128"},{"internalType":"uint128","name":"pluginFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint128","name":"reserve0","type":"uint128"},{"internalType":"uint128","name":"reserve1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalState","outputs":[{"internalType":"uint160","name":"price","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint160","name":"initialPrice","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFeeTransferTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint128","name":"liquidityActual","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"address","name":"pluginAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth1Token","type":"uint256"},{"internalType":"uint128","name":"fees0","type":"uint128"},{"internalType":"uint128","name":"fees1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safelyGetStateOfAMM","outputs":[{"internalType":"uint160","name":"sqrtPrice","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint128","name":"activeLiquidity","type":"uint128"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"int24","name":"previousTick","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"newCommunityFee","type":"uint16"}],"name":"setCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"setCommunityVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newFee","type":"uint16"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"setPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newConfig","type":"uint8"}],"name":"setPluginConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"setTickSpacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountToSell","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapWithPaymentInAdvance","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"wordPosition","type":"int16"}],"name":"tickTable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickTreeRoot","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTreeSecondLayer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint256","name":"liquidityTotal","type":"uint256"},{"internalType":"int128","name":"liquidityDelta","type":"int128"},{"internalType":"int24","name":"prevTick","type":"int24"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"uint256","name":"outerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"outerFeeGrowth1Token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth0Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth1Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"burn(int24,int24,uint128,bytes)":"3b3bc70e","collect(address,int24,int24,uint128,uint128)":"4f1eb3d8","communityVault()":"53e97868","factory()":"c45a0155","fee()":"ddca3f43","flash(address,uint256,uint256,bytes)":"490e6cbc","getCommunityFeePending()":"7bd78025","getPluginFeePending()":"a1eded87","getReserves()":"0902f1ac","globalState()":"e76c01e4","initialize(uint160)":"f637731d","isUnlocked()":"8380edb7","lastFeeTransferTimestamp()":"77f8c3a9","liquidity()":"1a686502","maxLiquidityPerTick()":"70cf754a","mint(address,address,int24,int24,uint128,bytes)":"aafe29c0","nextTickGlobal()":"d5c35a7e","plugin()":"ef01df4f","positions(bytes32)":"514ea4bf","prevTickGlobal()":"050a4d21","safelyGetStateOfAMM()":"97ce1c51","setCommunityFee(uint16)":"240a875a","setCommunityVault(address)":"d8544cf3","setFee(uint16)":"8e005553","setPlugin(address)":"cc1f97cf","setPluginConfig(uint8)":"bca57f81","setTickSpacing(int24)":"f085a610","skim()":"1dd19cb4","swap(address,bool,int256,uint160,bytes)":"128acb08","swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)":"9e4e0227","sync()":"fff6cae9","tickSpacing()":"d0c93a7c","tickTable(int16)":"c677e3e0","tickTreeRoot()":"578b9a36","tickTreeSecondLayer(int16)":"d8619037","ticks(int24)":"f30dba93","token0()":"0dfe1681","token1()":"d21220a7","totalFeeGrowth0Token()":"6378ae44","totalFeeGrowth1Token()":"ecdecf42"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"alreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"arithmeticError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"bottomTickLowerThanMIN\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid0\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid1\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"incorrectPluginFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"insufficientInputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidAmountRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"expectedSelector\",\"type\":\"bytes4\"}],\"name\":\"invalidHookResponse\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidLimitSqrtPrice\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewCommunityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewTickSpacing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityAdd\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquiditySub\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"locked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"pluginIsNotConnected\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"priceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickInvalidLinks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotSpaced\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickAboveMAX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickLowerOrEqBottomTick\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroAmountRequired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityActual\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityDesired\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"communityFeeNew\",\"type\":\"uint16\"}],\"name\":\"CommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"CommunityVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"ExcessTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"name\":\"Fee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"Plugin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newPluginConfig\",\"type\":\"uint8\"}],\"name\":\"PluginConfig\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Skim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"overrideFee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"TickSpacing\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"communityVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityVaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"currentFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunityFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"communityFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"communityFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPluginFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"pluginFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"pluginFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"reserve0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"reserve1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFeeTransferTimestamp\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityActual\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plugin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pluginAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prevTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safelyGetStateOfAMM\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint128\",\"name\":\"activeLiquidity\",\"type\":\"uint128\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"previousTick\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"setCommunityVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newFee\",\"type\":\"uint16\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"setPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newConfig\",\"type\":\"uint8\"}],\"name\":\"setPluginConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountToSell\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swapWithPaymentInAdvance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickTreeRoot\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTreeSecondLayer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityTotal\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"int24\",\"name\":\"prevTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The pool interface is broken up into many smaller pieces. This interface includes custom error definitions and cannot be used in older versions of Solidity. For older versions of Solidity use #IAlgebraPoolLegacy Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"errors\":{\"invalidHookResponse(bytes4)\":[{\"params\":{\"expectedSelector\":\"The expected selector\"}}]},\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256,uint24)\":{\"details\":\"Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\",\"params\":{\"amount0\":\"The amount of token0 withdrawn\",\"amount1\":\"The amount of token1 withdrawn\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity to remove\",\"owner\":\"The owner of the position for which liquidity is removed\",\"pluginFee\":\"The fee to be sent to the plugin\",\"topTick\":\"The upper tick of the position\"}},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"params\":{\"amount0\":\"The amount of token0 fees collected\",\"amount1\":\"The amount of token1 fees collected\",\"bottomTick\":\"The lower tick of the position\",\"owner\":\"The owner of the position for which fees are collected\",\"recipient\":\"The address that received fees\",\"topTick\":\"The upper tick of the position\"}},\"CommunityFee(uint16)\":{\"params\":{\"communityFeeNew\":\"The updated value of the community fee in thousandths (1e-3)\"}},\"CommunityVault(address)\":{\"params\":{\"newCommunityVault\":\"New community vault\"}},\"ExcessTokens(uint256,uint256)\":{\"details\":\"Fees after flash also will trigger this event due to mechanics of flash.\",\"params\":{\"amount0\":\"The excess of token0\",\"amount1\":\"The excess of token1\"}},\"Fee(uint16)\":{\"params\":{\"fee\":\"The current fee in hundredths of a bip, i.e. 1e-6\"}},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0 that was flashed\",\"amount1\":\"The amount of token1 that was flashed\",\"paid0\":\"The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\",\"paid1\":\"The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\",\"recipient\":\"The address that received the tokens from flash\",\"sender\":\"The address that initiated the swap call, and that received the callback\"}},\"Initialize(uint160,int24)\":{\"details\":\"Mint/Burn/Swaps cannot be emitted by the pool before Initialize\",\"params\":{\"price\":\"The initial sqrt price of the pool, as a Q64.96\",\"tick\":\"The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\"}},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"params\":{\"amount0\":\"How much token0 was required for the minted liquidity\",\"amount1\":\"How much token1 was required for the minted liquidity\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity minted to the position range\",\"owner\":\"The owner of the position and recipient of any minted liquidity\",\"sender\":\"The address that minted the liquidity\",\"topTick\":\"The upper tick of the position\"}},\"Plugin(address)\":{\"params\":{\"newPluginAddress\":\"New plugin address\"}},\"PluginConfig(uint8)\":{\"params\":{\"newPluginConfig\":\"New plugin config\"}},\"Skim(address,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0\",\"amount1\":\"The amount of token1\",\"to\":\"THe receiver of tokens (plugin)\"}},\"Swap(address,address,int256,int256,uint160,uint128,int24,uint24,uint24)\":{\"params\":{\"amount0\":\"The delta of the token0 balance of the pool\",\"amount1\":\"The delta of the token1 balance of the pool\",\"liquidity\":\"The liquidity of the pool after the swap\",\"overrideFee\":\"The fee to be applied to the trade\",\"pluginFee\":\"The fee to be sent to the plugin\",\"price\":\"The sqrt(price) of the pool after the swap, as a Q64.96\",\"recipient\":\"The address that received the output of the swap\",\"sender\":\"The address that initiated the swap call, and that received the callback\",\"tick\":\"The log base 1.0001 of price of the pool after the swap\"}},\"TickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The updated value of the new tick spacing\"}}},\"kind\":\"dev\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"details\":\"Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0Fees must be collected separately via a call to #collect\",\"params\":{\"amount\":\"How much liquidity to burn\",\"bottomTick\":\"The lower tick of the position for which to burn liquidity\",\"data\":\"Any data that should be passed through to the plugin\",\"topTick\":\"The upper tick of the position for which to burn liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 sent to the recipient\",\"amount1\":\"The amount of token1 sent to the recipient\"}},\"collect(address,int24,int24,uint128,uint128)\":{\"details\":\"Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\",\"params\":{\"amount0Requested\":\"How much token0 should be withdrawn from the fees owed\",\"amount1Requested\":\"How much token1 should be withdrawn from the fees owed\",\"bottomTick\":\"The lower tick of the position for which to collect fees\",\"recipient\":\"The address which should receive the fees collected\",\"topTick\":\"The upper tick of the position for which to collect fees\"},\"returns\":{\"amount0\":\"The amount of fees collected in token0\",\"amount1\":\"The amount of fees collected in token1\"}},\"communityVault()\":{\"returns\":{\"communityVaultAddress\":\"The communityVault address\"}},\"factory()\":{\"returns\":{\"_0\":\"The contract address\"}},\"fee()\":{\"details\":\"In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee. If the plugin implements complex fee logic, this method may return an incorrect value or revert. In this case, see the plugin implementation and related documentation.**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"currentFee\":\"The current pool fee value in hundredths of a bip, i.e. 1e-6\"}},\"flash(address,uint256,uint256,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallbackAll excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee. If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\",\"params\":{\"amount0\":\"The amount of token0 to send\",\"amount1\":\"The amount of token1 to send\",\"data\":\"Any data to be passed through to the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\"}},\"getCommunityFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\",\"returns\":{\"communityFeePending0\":\"The amount of token0 that will be sent to the vault\",\"communityFeePending1\":\"The amount of token1 that will be sent to the vault\"}},\"getPluginFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\",\"returns\":{\"pluginFeePending0\":\"The amount of token0 that will be sent to the plugin\",\"pluginFeePending1\":\"The amount of token1 that will be sent to the plugin\"}},\"getReserves()\":{\"details\":\"If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee. If the balance exceeds uint128, the excess will be sent to the communityVault.\",\"returns\":{\"reserve0\":\"The last known reserve of token0\",\"reserve1\":\"The last known reserve of token1\"}},\"globalState()\":{\"details\":\"**important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\",\"returns\":{\"communityFee\":\"The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"price\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current tick of the pool, i.e. according to the last tick transition that was run This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"initialize(uint160)\":{\"details\":\"Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 valueInitialization should be done in one transaction with pool creation to avoid front-running\",\"params\":{\"initialPrice\":\"The initial sqrt price of the pool as a Q64.96\"}},\"isUnlocked()\":{\"details\":\"can be used to prevent read-only reentrancy. This method just returns `globalState.unlocked` value\",\"returns\":{\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"lastFeeTransferTimestamp()\":{\"returns\":{\"_0\":\"The timestamp truncated to 32 bits\"}},\"liquidity()\":{\"details\":\"This value has no relationship to the total liquidity across all ticks. Returned value cannot exceed type(uint128).max**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The current in range liquidity\"}},\"maxLiquidityPerTick()\":{\"details\":\"This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\",\"returns\":{\"_0\":\"The max amount of liquidity per tick\"}},\"mint(address,address,int24,int24,uint128,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends on bottomTick, topTick, the amount of liquidity, and the current price.\",\"params\":{\"bottomTick\":\"The lower tick of the position in which to add liquidity\",\"data\":\"Any data that should be passed through to the callback\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"liquidityDesired\":\"The desired amount of liquidity to mint\",\"recipient\":\"The address for which the liquidity will be created\",\"topTick\":\"The upper tick of the position in which to add liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"amount1\":\"The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"liquidityActual\":\"The actual minted amount of liquidity\"}},\"nextTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The next initialized tick\"}},\"plugin()\":{\"details\":\"The plugin is subject to change\",\"returns\":{\"pluginAddress\":\"The address of currently used plugin\"}},\"positions(bytes32)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"key\":\"The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\"},\"returns\":{\"fees0\":\"The computed amount of token0 owed to the position as of the last mint/burn/poke\",\"fees1\":\"The computed amount of token1 owed to the position as of the last mint/burn/poke\",\"innerFeeGrowth0Token\":\"Fee growth of token0 inside the tick range as of the last mint/burn/poke\",\"innerFeeGrowth1Token\":\"Fee growth of token1 inside the tick range as of the last mint/burn/poke\",\"liquidity\":\"The amount of liquidity in the position\"}},\"prevTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The previous initialized tick\"}},\"safelyGetStateOfAMM()\":{\"details\":\"Several values exposed as a single method to save gas when accessed externally. **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\",\"returns\":{\"activeLiquidity\":\" The currently in-range liquidity available to the pool\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"nextTick\":\"The next initialized tick after current global tick\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"previousTick\":\"The previous initialized tick before (or at) current global tick\",\"sqrtPrice\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\"}},\"setCommunityFee(uint16)\":{\"params\":{\"newCommunityFee\":\"The new community fee percent in thousandths (1e-3)\"}},\"setCommunityVault(address)\":{\"details\":\"Community fee vault receives collected community fees. **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\",\"params\":{\"newCommunityVault\":\"The address of new community fee vault\"}},\"setFee(uint16)\":{\"params\":{\"newFee\":\"The new fee value\"}},\"setPlugin(address)\":{\"params\":{\"newPluginAddress\":\"The new plugin address\"}},\"setPluginConfig(uint8)\":{\"params\":{\"newConfig\":\"In the new configuration of the plugin, each bit of which is responsible for a particular hook.\"}},\"setTickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The new tick spacing value\"}},\"skim()\":{\"details\":\"Only plugin can call this function\"},\"swap(address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\",\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback caller must send tokens in callback before swap calculation the actually sent amount of tokens is used for further calculations\",\"params\":{\"amountToSell\":\"The amount of the swap, only positive (exact input) amount allowed\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"sync()\":{\"details\":\"Only plugin can call this function\"},\"tickSpacing()\":{\"details\":\"Ticks can only be initialized by new mints at multiples of this value e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ... However, tickspacing can be changed after the ticks have been initialized. This value is an int24 to avoid casting even though it is always positive.\",\"returns\":{\"_0\":\"The current tick spacing\"}},\"tickTable(int16)\":{\"params\":{\"wordPosition\":\"Index of 256-bits word with ticks\"},\"returns\":{\"_0\":\"The 256-bits word with packed ticks info\"}},\"tickTreeRoot()\":{\"details\":\"Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The root of tick search tree as bitmap\"}},\"tickTreeSecondLayer(int16)\":{\"details\":\"Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The node of tick search tree second layer\"}},\"ticks(int24)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"tick\":\"The tick to look up\"},\"returns\":{\"liquidityDelta\":\"How much liquidity changes when the pool price crosses the tick\",\"liquidityTotal\":\"The total amount of position liquidity that uses the pool either as tick lower or tick upper\",\"nextTick\":\"The next tick in tick list\",\"outerFeeGrowth0Token\":\"The fee growth on the other side of the tick from the current tick in token0\",\"outerFeeGrowth1Token\":\"The fee growth on the other side of the tick from the current tick in token1 In addition, these values are only relative and must be used only in comparison to previous snapshots for a specific position.\",\"prevTick\":\"The previous tick in tick list\"}},\"token0()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"token1()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"totalFeeGrowth0Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token0\"}},\"totalFeeGrowth1Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token1\"}}},\"title\":\"The interface for a Algebra Pool\",\"version\":1},\"userdoc\":{\"errors\":{\"alreadyInitialized()\":[{\"notice\":\"Emitted if an attempt is made to initialize the pool twice\"}],\"arithmeticError()\":[{\"notice\":\"Emitted if arithmetic error occurred\"}],\"bottomTickLowerThanMIN()\":[{\"notice\":\"Emitted if the bottomTick param is lower than min allowed value\"}],\"dynamicFeeActive()\":[{\"notice\":\"Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\"}],\"dynamicFeeDisabled()\":[{\"notice\":\"Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\"}],\"flashInsufficientPaid0()\":[{\"notice\":\"Emitted if the pool received fewer tokens0 after flash than it should have\"}],\"flashInsufficientPaid1()\":[{\"notice\":\"Emitted if the pool received fewer tokens1 after flash than it should have\"}],\"incorrectPluginFee()\":[{\"notice\":\"Emitted if plugin fee param greater than fee/override fee\"}],\"insufficientInputAmount()\":[{\"notice\":\"Emitted if the pool received fewer tokens than it should have\"}],\"invalidAmountRequired()\":[{\"notice\":\"Emitted if invalid amount is passed as amountRequired to swap function\"}],\"invalidHookResponse(bytes4)\":[{\"notice\":\"Emitted if a plugin returns invalid selector after hook call\"}],\"invalidLimitSqrtPrice()\":[{\"notice\":\"Emitted if limitSqrtPrice param is incorrect\"}],\"invalidNewCommunityFee()\":[{\"notice\":\"Emitted if new community fee exceeds max allowed value\"}],\"invalidNewTickSpacing()\":[{\"notice\":\"Emitted if new tick spacing exceeds max allowed value\"}],\"liquidityAdd()\":[{\"notice\":\"Emitted if liquidity overflows\"}],\"liquidityOverflow()\":[{\"notice\":\"Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\"}],\"liquiditySub()\":[{\"notice\":\"Emitted if liquidity underflows\"}],\"locked()\":[{\"notice\":\"Emitted by the reentrancy guard\"}],\"notAllowed()\":[{\"notice\":\"Emitted if a method is called that is accessible only to the factory owner or dedicated role\"}],\"notInitialized()\":[{\"notice\":\"Emitted if an attempt is made to mint or swap in uninitialized pool\"}],\"pluginIsNotConnected()\":[{\"notice\":\"Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\"}],\"priceOutOfRange()\":[{\"notice\":\"Emitted if price is greater than the maximum or less than the minimum allowed value\"}],\"tickInvalidLinks()\":[{\"notice\":\"Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\"}],\"tickIsNotInitialized()\":[{\"notice\":\"Emitted if an attempt is made to interact with an uninitialized tick\"}],\"tickIsNotSpaced()\":[{\"notice\":\"Tick must be divisible by tickspacing\"}],\"tickOutOfRange()\":[{\"notice\":\"Emitted if tick is greater than the maximum or less than the minimum allowed value\"}],\"topTickAboveMAX()\":[{\"notice\":\"Emitted if the topTick param is greater than max allowed value\"}],\"topTickLowerOrEqBottomTick()\":[{\"notice\":\"Emitted if the topTick param not greater then the bottomTick param\"}],\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}],\"zeroAmountRequired()\":[{\"notice\":\"Emitted if 0 is passed as amountRequired to swap function\"}],\"zeroLiquidityActual()\":[{\"notice\":\"Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\"}],\"zeroLiquidityDesired()\":[{\"notice\":\"Emitted if there was an attempt to mint zero liquidity\"}]},\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256,uint24)\":{\"notice\":\"Emitted when a position's liquidity is removed\"},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"notice\":\"Emitted when fees are collected by the owner of a position\"},\"CommunityFee(uint16)\":{\"notice\":\"Emitted when the community fee is changed by the pool\"},\"CommunityVault(address)\":{\"notice\":\"Emitted when the community vault address changes\"},\"ExcessTokens(uint256,uint256)\":{\"notice\":\"Emitted when the pool has higher balances than expected. Any excess of tokens will be distributed between liquidity providers as fee.\"},\"Fee(uint16)\":{\"notice\":\"Emitted when the fee changes inside the pool\"},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted by the pool for any flashes of token0/token1\"},\"Initialize(uint160,int24)\":{\"notice\":\"Emitted exactly once by a pool when #initialize is first called on the pool\"},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when liquidity is minted for a given position\"},\"Plugin(address)\":{\"notice\":\"Emitted when the plugin address changes\"},\"PluginConfig(uint8)\":{\"notice\":\"Emitted when the plugin config changes\"},\"Skim(address,uint256,uint256)\":{\"notice\":\"Emitted when the plugin does skim the excess of tokens\"},\"Swap(address,address,int256,int256,uint160,uint128,int24,uint24,uint24)\":{\"notice\":\"Emitted by the pool for any swaps between token0 and token1\"},\"TickSpacing(int24)\":{\"notice\":\"Emitted when the tick spacing changes\"}},\"kind\":\"user\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"notice\":\"Burn liquidity from the sender and account tokens owed for the liquidity to the position\"},\"collect(address,int24,int24,uint128,uint128)\":{\"notice\":\"Collects tokens owed to a position\"},\"communityVault()\":{\"notice\":\"The contract to which community fees are transferred\"},\"factory()\":{\"notice\":\"The Algebra factory contract, which must adhere to the IAlgebraFactory interface\"},\"fee()\":{\"notice\":\"The current pool fee value\"},\"flash(address,uint256,uint256,bytes)\":{\"notice\":\"Receive token0 and/or token1 and pay it back, plus a fee, in the callback\"},\"getCommunityFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the vault\"},\"getPluginFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the plugin\"},\"getReserves()\":{\"notice\":\"The tracked token0 and token1 reserves of pool\"},\"globalState()\":{\"notice\":\"The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.\"},\"initialize(uint160)\":{\"notice\":\"Sets the initial price for the pool\"},\"isUnlocked()\":{\"notice\":\"Allows to easily get current reentrancy lock status\"},\"lastFeeTransferTimestamp()\":{\"notice\":\"The timestamp of the last sending of tokens to vault/plugin\"},\"liquidity()\":{\"notice\":\"The currently in range liquidity available to the pool\"},\"maxLiquidityPerTick()\":{\"notice\":\"The maximum amount of position liquidity that can use any tick in the range\"},\"mint(address,address,int24,int24,uint128,bytes)\":{\"notice\":\"Adds liquidity for the given recipient/bottomTick/topTick position\"},\"nextTickGlobal()\":{\"notice\":\"The next initialized tick after current global tick\"},\"plugin()\":{\"notice\":\"Returns the address of currently used plugin\"},\"positions(bytes32)\":{\"notice\":\"Returns the information about a position by the position's key\"},\"prevTickGlobal()\":{\"notice\":\"The previous initialized tick before (or at) current global tick\"},\"safelyGetStateOfAMM()\":{\"notice\":\"Safely get most important state values of Algebra Integral AMM\"},\"setCommunityFee(uint16)\":{\"notice\":\"Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setCommunityVault(address)\":{\"notice\":\"Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setFee(uint16)\":{\"notice\":\"Set new pool fee. Can be called by owner if dynamic fee is disabled. Called by the plugin if dynamic fee is enabled\"},\"setPlugin(address)\":{\"notice\":\"Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setPluginConfig(uint8)\":{\"notice\":\"Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setTickSpacing(int24)\":{\"notice\":\"Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"skim()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be sent to msg.sender\"},\"swap(address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0\"},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0 with prepayment\"},\"sync()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be distributed between active LPs\"},\"tickSpacing()\":{\"notice\":\"The current tick spacing\"},\"tickTable(int16)\":{\"notice\":\"Returns 256 packed tick initialized boolean values. See TickTree for more information\"},\"tickTreeRoot()\":{\"notice\":\"The root of tick search tree\"},\"tickTreeSecondLayer(int16)\":{\"notice\":\"The second layer of tick search tree\"},\"ticks(int24)\":{\"notice\":\"Look up information about a specific tick in the pool\"},\"token0()\":{\"notice\":\"The first of the two tokens of the pool, sorted by address\"},\"token1()\":{\"notice\":\"The second of the two tokens of the pool, sorted by address\"},\"totalFeeGrowth0Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\"},\"totalFeeGrowth1Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":\"IAlgebraPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"IAlgebraPlugin":{"abi":[{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"paid0","type":"uint256"},{"internalType":"uint256","name":"paid1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bool","name":"withPaymentInAdvance","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"feeOverride","type":"uint24"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pluginFee0","type":"uint256"},{"internalType":"uint256","name":"pluginFee1","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","defaultPluginConfig()":"689ea370","handlePluginFee(uint256,uint256)":"aa6b14bb"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"withPaymentInAdvance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"feeOverride\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pluginFee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pluginFee1\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The plugin will be called by the pool using hook methods depending on the current pool settings\",\"kind\":\"dev\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"paid0\":\"The amount of token0 being paid for flash\",\"paid1\":\"The amount of token1 being paid for flash\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterInitialize(address,uint160,int24)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\",\"tick\":\"The current tick after the state of a pool is initialized\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 sent to the recipient or was paid to mint\",\"amount1\":\"The amount of token0 sent to the recipient or was paid to mint\",\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"params\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\",\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeInitialize(address,uint160)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"params\":{\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"withPaymentInAdvance\":\"The flag indicating whether the `swapWithPaymentInAdvance` method was called\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"The Algebra plugin interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"notice\":\"The hook called after flash\"},\"afterInitialize(address,uint160,int24)\":{\"notice\":\"The hook called after the state of a pool is initialized\"},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"notice\":\"The hook called after a position is modified\"},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"notice\":\"The hook called after a swap\"},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"notice\":\"The hook called before flash\"},\"beforeInitialize(address,uint160)\":{\"notice\":\"The hook called before the state of a pool is initialized\"},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"notice\":\"The hook called before a position is modified\"},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"notice\":\"The hook called before a swap\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":\"IAlgebraPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"IAlgebraPluginFactory":{"abi":[{"inputs":[{"internalType":"address","name":"plugin","type":"address"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"deployer","type":"address"}],"name":"afterCreatePoolHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeCreatePoolHook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterCreatePoolHook(address,address,address)":"8d5ef8d1","beforeCreatePoolHook(address,address,address,address,address,bytes)":"1d0338d9"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"plugin\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"afterCreatePoolHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeCreatePoolHook\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Such a factory can be used for automatic plugin creation for new pools. Also a factory be used as an entry point for custom (additional) pools creation\",\"kind\":\"dev\",\"methods\":{\"afterCreatePoolHook(address,address,address)\":{\"params\":{\"deployer\":\"The address of new plugin deployer contract (0 if not used)\",\"plugin\":\"The plugin address\",\"pool\":\"The address of the new pool\"}},\"beforeCreatePoolHook(address,address,address,address,address,bytes)\":{\"params\":{\"creator\":\"The address that initiated the pool creation\",\"deployer\":\"The address of new plugin deployer contract (0 if not used)\",\"pool\":\"The address of the new pool\",\"token0\":\"First token of the pool\",\"token1\":\"Second token of the pool\"},\"returns\":{\"_0\":\"New plugin address\"}}},\"title\":\"An interface for a contract that is capable of deploying Algebra plugins\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterCreatePoolHook(address,address,address)\":{\"notice\":\"Called after the pool is created\"},\"beforeCreatePoolHook(address,address,address,address,address,bytes)\":{\"notice\":\"Deploys new plugin contract for pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":\"IAlgebraPluginFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"IAlgebraPoolActions":{"abi":[{"inputs":[{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint160","name":"initialPrice","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint128","name":"liquidityActual","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountToSell","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapWithPaymentInAdvance","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"burn(int24,int24,uint128,bytes)":"3b3bc70e","collect(address,int24,int24,uint128,uint128)":"4f1eb3d8","flash(address,uint256,uint256,bytes)":"490e6cbc","initialize(uint160)":"f637731d","mint(address,address,int24,int24,uint128,bytes)":"aafe29c0","swap(address,bool,int256,uint160,bytes)":"128acb08","swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)":"9e4e0227"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityActual\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountToSell\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swapWithPaymentInAdvance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"details\":\"Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0Fees must be collected separately via a call to #collect\",\"params\":{\"amount\":\"How much liquidity to burn\",\"bottomTick\":\"The lower tick of the position for which to burn liquidity\",\"data\":\"Any data that should be passed through to the plugin\",\"topTick\":\"The upper tick of the position for which to burn liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 sent to the recipient\",\"amount1\":\"The amount of token1 sent to the recipient\"}},\"collect(address,int24,int24,uint128,uint128)\":{\"details\":\"Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\",\"params\":{\"amount0Requested\":\"How much token0 should be withdrawn from the fees owed\",\"amount1Requested\":\"How much token1 should be withdrawn from the fees owed\",\"bottomTick\":\"The lower tick of the position for which to collect fees\",\"recipient\":\"The address which should receive the fees collected\",\"topTick\":\"The upper tick of the position for which to collect fees\"},\"returns\":{\"amount0\":\"The amount of fees collected in token0\",\"amount1\":\"The amount of fees collected in token1\"}},\"flash(address,uint256,uint256,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallbackAll excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee. If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\",\"params\":{\"amount0\":\"The amount of token0 to send\",\"amount1\":\"The amount of token1 to send\",\"data\":\"Any data to be passed through to the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\"}},\"initialize(uint160)\":{\"details\":\"Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 valueInitialization should be done in one transaction with pool creation to avoid front-running\",\"params\":{\"initialPrice\":\"The initial sqrt price of the pool as a Q64.96\"}},\"mint(address,address,int24,int24,uint128,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends on bottomTick, topTick, the amount of liquidity, and the current price.\",\"params\":{\"bottomTick\":\"The lower tick of the position in which to add liquidity\",\"data\":\"Any data that should be passed through to the callback\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"liquidityDesired\":\"The desired amount of liquidity to mint\",\"recipient\":\"The address for which the liquidity will be created\",\"topTick\":\"The upper tick of the position in which to add liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"amount1\":\"The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"liquidityActual\":\"The actual minted amount of liquidity\"}},\"swap(address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\",\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback caller must send tokens in callback before swap calculation the actually sent amount of tokens is used for further calculations\",\"params\":{\"amountToSell\":\"The amount of the swap, only positive (exact input) amount allowed\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}}},\"title\":\"Permissionless pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"notice\":\"Burn liquidity from the sender and account tokens owed for the liquidity to the position\"},\"collect(address,int24,int24,uint128,uint128)\":{\"notice\":\"Collects tokens owed to a position\"},\"flash(address,uint256,uint256,bytes)\":{\"notice\":\"Receive token0 and/or token1 and pay it back, plus a fee, in the callback\"},\"initialize(uint160)\":{\"notice\":\"Sets the initial price for the pool\"},\"mint(address,address,int24,int24,uint128,bytes)\":{\"notice\":\"Adds liquidity for the given recipient/bottomTick/topTick position\"},\"swap(address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0\"},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0 with prepayment\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":\"IAlgebraPoolActions\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"IAlgebraPoolErrors":{"abi":[{"inputs":[],"name":"alreadyInitialized","type":"error"},{"inputs":[],"name":"arithmeticError","type":"error"},{"inputs":[],"name":"bottomTickLowerThanMIN","type":"error"},{"inputs":[],"name":"dynamicFeeActive","type":"error"},{"inputs":[],"name":"dynamicFeeDisabled","type":"error"},{"inputs":[],"name":"flashInsufficientPaid0","type":"error"},{"inputs":[],"name":"flashInsufficientPaid1","type":"error"},{"inputs":[],"name":"incorrectPluginFee","type":"error"},{"inputs":[],"name":"insufficientInputAmount","type":"error"},{"inputs":[],"name":"invalidAmountRequired","type":"error"},{"inputs":[{"internalType":"bytes4","name":"expectedSelector","type":"bytes4"}],"name":"invalidHookResponse","type":"error"},{"inputs":[],"name":"invalidLimitSqrtPrice","type":"error"},{"inputs":[],"name":"invalidNewCommunityFee","type":"error"},{"inputs":[],"name":"invalidNewTickSpacing","type":"error"},{"inputs":[],"name":"liquidityAdd","type":"error"},{"inputs":[],"name":"liquidityOverflow","type":"error"},{"inputs":[],"name":"liquiditySub","type":"error"},{"inputs":[],"name":"locked","type":"error"},{"inputs":[],"name":"notAllowed","type":"error"},{"inputs":[],"name":"notInitialized","type":"error"},{"inputs":[],"name":"pluginIsNotConnected","type":"error"},{"inputs":[],"name":"priceOutOfRange","type":"error"},{"inputs":[],"name":"tickInvalidLinks","type":"error"},{"inputs":[],"name":"tickIsNotInitialized","type":"error"},{"inputs":[],"name":"tickIsNotSpaced","type":"error"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"inputs":[],"name":"topTickAboveMAX","type":"error"},{"inputs":[],"name":"topTickLowerOrEqBottomTick","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"zeroAmountRequired","type":"error"},{"inputs":[],"name":"zeroLiquidityActual","type":"error"},{"inputs":[],"name":"zeroLiquidityDesired","type":"error"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"alreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"arithmeticError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"bottomTickLowerThanMIN\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid0\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid1\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"incorrectPluginFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"insufficientInputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidAmountRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"expectedSelector\",\"type\":\"bytes4\"}],\"name\":\"invalidHookResponse\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidLimitSqrtPrice\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewCommunityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewTickSpacing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityAdd\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquiditySub\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"locked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"pluginIsNotConnected\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"priceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickInvalidLinks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotSpaced\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickAboveMAX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickLowerOrEqBottomTick\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroAmountRequired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityActual\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityDesired\",\"type\":\"error\"}],\"devdoc\":{\"details\":\"Custom errors are separated from the common pool interface for compatibility with older versions of Solidity\",\"errors\":{\"invalidHookResponse(bytes4)\":[{\"params\":{\"expectedSelector\":\"The expected selector\"}}]},\"kind\":\"dev\",\"methods\":{},\"title\":\"Errors emitted by a pool\",\"version\":1},\"userdoc\":{\"errors\":{\"alreadyInitialized()\":[{\"notice\":\"Emitted if an attempt is made to initialize the pool twice\"}],\"arithmeticError()\":[{\"notice\":\"Emitted if arithmetic error occurred\"}],\"bottomTickLowerThanMIN()\":[{\"notice\":\"Emitted if the bottomTick param is lower than min allowed value\"}],\"dynamicFeeActive()\":[{\"notice\":\"Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\"}],\"dynamicFeeDisabled()\":[{\"notice\":\"Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\"}],\"flashInsufficientPaid0()\":[{\"notice\":\"Emitted if the pool received fewer tokens0 after flash than it should have\"}],\"flashInsufficientPaid1()\":[{\"notice\":\"Emitted if the pool received fewer tokens1 after flash than it should have\"}],\"incorrectPluginFee()\":[{\"notice\":\"Emitted if plugin fee param greater than fee/override fee\"}],\"insufficientInputAmount()\":[{\"notice\":\"Emitted if the pool received fewer tokens than it should have\"}],\"invalidAmountRequired()\":[{\"notice\":\"Emitted if invalid amount is passed as amountRequired to swap function\"}],\"invalidHookResponse(bytes4)\":[{\"notice\":\"Emitted if a plugin returns invalid selector after hook call\"}],\"invalidLimitSqrtPrice()\":[{\"notice\":\"Emitted if limitSqrtPrice param is incorrect\"}],\"invalidNewCommunityFee()\":[{\"notice\":\"Emitted if new community fee exceeds max allowed value\"}],\"invalidNewTickSpacing()\":[{\"notice\":\"Emitted if new tick spacing exceeds max allowed value\"}],\"liquidityAdd()\":[{\"notice\":\"Emitted if liquidity overflows\"}],\"liquidityOverflow()\":[{\"notice\":\"Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\"}],\"liquiditySub()\":[{\"notice\":\"Emitted if liquidity underflows\"}],\"locked()\":[{\"notice\":\"Emitted by the reentrancy guard\"}],\"notAllowed()\":[{\"notice\":\"Emitted if a method is called that is accessible only to the factory owner or dedicated role\"}],\"notInitialized()\":[{\"notice\":\"Emitted if an attempt is made to mint or swap in uninitialized pool\"}],\"pluginIsNotConnected()\":[{\"notice\":\"Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\"}],\"priceOutOfRange()\":[{\"notice\":\"Emitted if price is greater than the maximum or less than the minimum allowed value\"}],\"tickInvalidLinks()\":[{\"notice\":\"Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\"}],\"tickIsNotInitialized()\":[{\"notice\":\"Emitted if an attempt is made to interact with an uninitialized tick\"}],\"tickIsNotSpaced()\":[{\"notice\":\"Tick must be divisible by tickspacing\"}],\"tickOutOfRange()\":[{\"notice\":\"Emitted if tick is greater than the maximum or less than the minimum allowed value\"}],\"topTickAboveMAX()\":[{\"notice\":\"Emitted if the topTick param is greater than max allowed value\"}],\"topTickLowerOrEqBottomTick()\":[{\"notice\":\"Emitted if the topTick param not greater then the bottomTick param\"}],\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}],\"zeroAmountRequired()\":[{\"notice\":\"Emitted if 0 is passed as amountRequired to swap function\"}],\"zeroLiquidityActual()\":[{\"notice\":\"Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\"}],\"zeroLiquidityDesired()\":[{\"notice\":\"Emitted if there was an attempt to mint zero liquidity\"}]},\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains custom errors emitted by the pool\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":\"IAlgebraPoolErrors\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"IAlgebraPoolEvents":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"communityFeeNew","type":"uint16"}],"name":"CommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"CommunityVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"ExcessTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"fee","type":"uint16"}],"name":"Fee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"Plugin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newPluginConfig","type":"uint8"}],"name":"PluginConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"},{"indexed":false,"internalType":"uint24","name":"overrideFee","type":"uint24"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"TickSpacing","type":"event"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"communityFeeNew\",\"type\":\"uint16\"}],\"name\":\"CommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"CommunityVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"ExcessTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"name\":\"Fee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"Plugin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newPluginConfig\",\"type\":\"uint8\"}],\"name\":\"PluginConfig\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Skim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"overrideFee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"TickSpacing\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256,uint24)\":{\"details\":\"Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\",\"params\":{\"amount0\":\"The amount of token0 withdrawn\",\"amount1\":\"The amount of token1 withdrawn\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity to remove\",\"owner\":\"The owner of the position for which liquidity is removed\",\"pluginFee\":\"The fee to be sent to the plugin\",\"topTick\":\"The upper tick of the position\"}},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"params\":{\"amount0\":\"The amount of token0 fees collected\",\"amount1\":\"The amount of token1 fees collected\",\"bottomTick\":\"The lower tick of the position\",\"owner\":\"The owner of the position for which fees are collected\",\"recipient\":\"The address that received fees\",\"topTick\":\"The upper tick of the position\"}},\"CommunityFee(uint16)\":{\"params\":{\"communityFeeNew\":\"The updated value of the community fee in thousandths (1e-3)\"}},\"CommunityVault(address)\":{\"params\":{\"newCommunityVault\":\"New community vault\"}},\"ExcessTokens(uint256,uint256)\":{\"details\":\"Fees after flash also will trigger this event due to mechanics of flash.\",\"params\":{\"amount0\":\"The excess of token0\",\"amount1\":\"The excess of token1\"}},\"Fee(uint16)\":{\"params\":{\"fee\":\"The current fee in hundredths of a bip, i.e. 1e-6\"}},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0 that was flashed\",\"amount1\":\"The amount of token1 that was flashed\",\"paid0\":\"The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\",\"paid1\":\"The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\",\"recipient\":\"The address that received the tokens from flash\",\"sender\":\"The address that initiated the swap call, and that received the callback\"}},\"Initialize(uint160,int24)\":{\"details\":\"Mint/Burn/Swaps cannot be emitted by the pool before Initialize\",\"params\":{\"price\":\"The initial sqrt price of the pool, as a Q64.96\",\"tick\":\"The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\"}},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"params\":{\"amount0\":\"How much token0 was required for the minted liquidity\",\"amount1\":\"How much token1 was required for the minted liquidity\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity minted to the position range\",\"owner\":\"The owner of the position and recipient of any minted liquidity\",\"sender\":\"The address that minted the liquidity\",\"topTick\":\"The upper tick of the position\"}},\"Plugin(address)\":{\"params\":{\"newPluginAddress\":\"New plugin address\"}},\"PluginConfig(uint8)\":{\"params\":{\"newPluginConfig\":\"New plugin config\"}},\"Skim(address,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0\",\"amount1\":\"The amount of token1\",\"to\":\"THe receiver of tokens (plugin)\"}},\"Swap(address,address,int256,int256,uint160,uint128,int24,uint24,uint24)\":{\"params\":{\"amount0\":\"The delta of the token0 balance of the pool\",\"amount1\":\"The delta of the token1 balance of the pool\",\"liquidity\":\"The liquidity of the pool after the swap\",\"overrideFee\":\"The fee to be applied to the trade\",\"pluginFee\":\"The fee to be sent to the plugin\",\"price\":\"The sqrt(price) of the pool after the swap, as a Q64.96\",\"recipient\":\"The address that received the output of the swap\",\"sender\":\"The address that initiated the swap call, and that received the callback\",\"tick\":\"The log base 1.0001 of price of the pool after the swap\"}},\"TickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The updated value of the new tick spacing\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"Events emitted by a pool\",\"version\":1},\"userdoc\":{\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256,uint24)\":{\"notice\":\"Emitted when a position's liquidity is removed\"},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"notice\":\"Emitted when fees are collected by the owner of a position\"},\"CommunityFee(uint16)\":{\"notice\":\"Emitted when the community fee is changed by the pool\"},\"CommunityVault(address)\":{\"notice\":\"Emitted when the community vault address changes\"},\"ExcessTokens(uint256,uint256)\":{\"notice\":\"Emitted when the pool has higher balances than expected. Any excess of tokens will be distributed between liquidity providers as fee.\"},\"Fee(uint16)\":{\"notice\":\"Emitted when the fee changes inside the pool\"},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted by the pool for any flashes of token0/token1\"},\"Initialize(uint160,int24)\":{\"notice\":\"Emitted exactly once by a pool when #initialize is first called on the pool\"},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when liquidity is minted for a given position\"},\"Plugin(address)\":{\"notice\":\"Emitted when the plugin address changes\"},\"PluginConfig(uint8)\":{\"notice\":\"Emitted when the plugin config changes\"},\"Skim(address,uint256,uint256)\":{\"notice\":\"Emitted when the plugin does skim the excess of tokens\"},\"Swap(address,address,int256,int256,uint160,uint128,int24,uint24,uint24)\":{\"notice\":\"Emitted by the pool for any swaps between token0 and token1\"},\"TickSpacing(int24)\":{\"notice\":\"Emitted when the tick spacing changes\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":\"IAlgebraPoolEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"IAlgebraPoolImmutables":{"abi":[{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"factory()":"c45a0155","maxLiquidityPerTick()":"70cf754a","token0()":"0dfe1681","token1()":"d21220a7"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"factory()\":{\"returns\":{\"_0\":\"The contract address\"}},\"maxLiquidityPerTick()\":{\"details\":\"This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\",\"returns\":{\"_0\":\"The max amount of liquidity per tick\"}},\"token0()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"token1()\":{\"returns\":{\"_0\":\"The token contract address\"}}},\"title\":\"Pool state that never changes\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"factory()\":{\"notice\":\"The Algebra factory contract, which must adhere to the IAlgebraFactory interface\"},\"maxLiquidityPerTick()\":{\"notice\":\"The maximum amount of position liquidity that can use any tick in the range\"},\"token0()\":{\"notice\":\"The first of the two tokens of the pool, sorted by address\"},\"token1()\":{\"notice\":\"The second of the two tokens of the pool, sorted by address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":\"IAlgebraPoolImmutables\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"IAlgebraPoolPermissionedActions":{"abi":[{"inputs":[{"internalType":"uint16","name":"newCommunityFee","type":"uint16"}],"name":"setCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"setCommunityVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newFee","type":"uint16"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"setPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newConfig","type":"uint8"}],"name":"setPluginConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"setTickSpacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"setCommunityFee(uint16)":"240a875a","setCommunityVault(address)":"d8544cf3","setFee(uint16)":"8e005553","setPlugin(address)":"cc1f97cf","setPluginConfig(uint8)":"bca57f81","setTickSpacing(int24)":"f085a610","skim()":"1dd19cb4","sync()":"fff6cae9"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"setCommunityVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newFee\",\"type\":\"uint16\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"setPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newConfig\",\"type\":\"uint8\"}],\"name\":\"setPluginConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"setCommunityFee(uint16)\":{\"params\":{\"newCommunityFee\":\"The new community fee percent in thousandths (1e-3)\"}},\"setCommunityVault(address)\":{\"details\":\"Community fee vault receives collected community fees. **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\",\"params\":{\"newCommunityVault\":\"The address of new community fee vault\"}},\"setFee(uint16)\":{\"params\":{\"newFee\":\"The new fee value\"}},\"setPlugin(address)\":{\"params\":{\"newPluginAddress\":\"The new plugin address\"}},\"setPluginConfig(uint8)\":{\"params\":{\"newConfig\":\"In the new configuration of the plugin, each bit of which is responsible for a particular hook.\"}},\"setTickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The new tick spacing value\"}},\"skim()\":{\"details\":\"Only plugin can call this function\"},\"sync()\":{\"details\":\"Only plugin can call this function\"}},\"title\":\"Permissioned pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"setCommunityFee(uint16)\":{\"notice\":\"Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setCommunityVault(address)\":{\"notice\":\"Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setFee(uint16)\":{\"notice\":\"Set new pool fee. Can be called by owner if dynamic fee is disabled. Called by the plugin if dynamic fee is enabled\"},\"setPlugin(address)\":{\"notice\":\"Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setPluginConfig(uint8)\":{\"notice\":\"Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setTickSpacing(int24)\":{\"notice\":\"Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"skim()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be sent to msg.sender\"},\"sync()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be distributed between active LPs\"}},\"notice\":\"Contains pool methods that may only be called by permissioned addresses\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":\"IAlgebraPoolPermissionedActions\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"IAlgebraPoolState":{"abi":[{"inputs":[],"name":"communityVault","outputs":[{"internalType":"address","name":"communityVaultAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint16","name":"currentFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCommunityFeePending","outputs":[{"internalType":"uint128","name":"communityFeePending0","type":"uint128"},{"internalType":"uint128","name":"communityFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPluginFeePending","outputs":[{"internalType":"uint128","name":"pluginFeePending0","type":"uint128"},{"internalType":"uint128","name":"pluginFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint128","name":"reserve0","type":"uint128"},{"internalType":"uint128","name":"reserve1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalState","outputs":[{"internalType":"uint160","name":"price","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFeeTransferTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"address","name":"pluginAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth1Token","type":"uint256"},{"internalType":"uint128","name":"fees0","type":"uint128"},{"internalType":"uint128","name":"fees1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safelyGetStateOfAMM","outputs":[{"internalType":"uint160","name":"sqrtPrice","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint128","name":"activeLiquidity","type":"uint128"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"int24","name":"previousTick","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"wordPosition","type":"int16"}],"name":"tickTable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickTreeRoot","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTreeSecondLayer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint256","name":"liquidityTotal","type":"uint256"},{"internalType":"int128","name":"liquidityDelta","type":"int128"},{"internalType":"int24","name":"prevTick","type":"int24"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"uint256","name":"outerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"outerFeeGrowth1Token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth0Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth1Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"communityVault()":"53e97868","fee()":"ddca3f43","getCommunityFeePending()":"7bd78025","getPluginFeePending()":"a1eded87","getReserves()":"0902f1ac","globalState()":"e76c01e4","isUnlocked()":"8380edb7","lastFeeTransferTimestamp()":"77f8c3a9","liquidity()":"1a686502","nextTickGlobal()":"d5c35a7e","plugin()":"ef01df4f","positions(bytes32)":"514ea4bf","prevTickGlobal()":"050a4d21","safelyGetStateOfAMM()":"97ce1c51","tickSpacing()":"d0c93a7c","tickTable(int16)":"c677e3e0","tickTreeRoot()":"578b9a36","tickTreeSecondLayer(int16)":"d8619037","ticks(int24)":"f30dba93","totalFeeGrowth0Token()":"6378ae44","totalFeeGrowth1Token()":"ecdecf42"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"communityVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityVaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"currentFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunityFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"communityFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"communityFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPluginFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"pluginFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"pluginFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"reserve0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"reserve1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFeeTransferTimestamp\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plugin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pluginAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prevTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safelyGetStateOfAMM\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint128\",\"name\":\"activeLiquidity\",\"type\":\"uint128\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"previousTick\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickTreeRoot\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTreeSecondLayer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityTotal\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"int24\",\"name\":\"prevTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Important security note: when using this data by external contracts, it is necessary to take into account the possibility of manipulation (including read-only reentrancy). This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"communityVault()\":{\"returns\":{\"communityVaultAddress\":\"The communityVault address\"}},\"fee()\":{\"details\":\"In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee. If the plugin implements complex fee logic, this method may return an incorrect value or revert. In this case, see the plugin implementation and related documentation.**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"currentFee\":\"The current pool fee value in hundredths of a bip, i.e. 1e-6\"}},\"getCommunityFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\",\"returns\":{\"communityFeePending0\":\"The amount of token0 that will be sent to the vault\",\"communityFeePending1\":\"The amount of token1 that will be sent to the vault\"}},\"getPluginFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\",\"returns\":{\"pluginFeePending0\":\"The amount of token0 that will be sent to the plugin\",\"pluginFeePending1\":\"The amount of token1 that will be sent to the plugin\"}},\"getReserves()\":{\"details\":\"If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee. If the balance exceeds uint128, the excess will be sent to the communityVault.\",\"returns\":{\"reserve0\":\"The last known reserve of token0\",\"reserve1\":\"The last known reserve of token1\"}},\"globalState()\":{\"details\":\"**important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\",\"returns\":{\"communityFee\":\"The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"price\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current tick of the pool, i.e. according to the last tick transition that was run This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"isUnlocked()\":{\"details\":\"can be used to prevent read-only reentrancy. This method just returns `globalState.unlocked` value\",\"returns\":{\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"lastFeeTransferTimestamp()\":{\"returns\":{\"_0\":\"The timestamp truncated to 32 bits\"}},\"liquidity()\":{\"details\":\"This value has no relationship to the total liquidity across all ticks. Returned value cannot exceed type(uint128).max**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The current in range liquidity\"}},\"nextTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The next initialized tick\"}},\"plugin()\":{\"details\":\"The plugin is subject to change\",\"returns\":{\"pluginAddress\":\"The address of currently used plugin\"}},\"positions(bytes32)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"key\":\"The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\"},\"returns\":{\"fees0\":\"The computed amount of token0 owed to the position as of the last mint/burn/poke\",\"fees1\":\"The computed amount of token1 owed to the position as of the last mint/burn/poke\",\"innerFeeGrowth0Token\":\"Fee growth of token0 inside the tick range as of the last mint/burn/poke\",\"innerFeeGrowth1Token\":\"Fee growth of token1 inside the tick range as of the last mint/burn/poke\",\"liquidity\":\"The amount of liquidity in the position\"}},\"prevTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The previous initialized tick\"}},\"safelyGetStateOfAMM()\":{\"details\":\"Several values exposed as a single method to save gas when accessed externally. **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\",\"returns\":{\"activeLiquidity\":\" The currently in-range liquidity available to the pool\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"nextTick\":\"The next initialized tick after current global tick\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"previousTick\":\"The previous initialized tick before (or at) current global tick\",\"sqrtPrice\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\"}},\"tickSpacing()\":{\"details\":\"Ticks can only be initialized by new mints at multiples of this value e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ... However, tickspacing can be changed after the ticks have been initialized. This value is an int24 to avoid casting even though it is always positive.\",\"returns\":{\"_0\":\"The current tick spacing\"}},\"tickTable(int16)\":{\"params\":{\"wordPosition\":\"Index of 256-bits word with ticks\"},\"returns\":{\"_0\":\"The 256-bits word with packed ticks info\"}},\"tickTreeRoot()\":{\"details\":\"Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The root of tick search tree as bitmap\"}},\"tickTreeSecondLayer(int16)\":{\"details\":\"Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The node of tick search tree second layer\"}},\"ticks(int24)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"tick\":\"The tick to look up\"},\"returns\":{\"liquidityDelta\":\"How much liquidity changes when the pool price crosses the tick\",\"liquidityTotal\":\"The total amount of position liquidity that uses the pool either as tick lower or tick upper\",\"nextTick\":\"The next tick in tick list\",\"outerFeeGrowth0Token\":\"The fee growth on the other side of the tick from the current tick in token0\",\"outerFeeGrowth1Token\":\"The fee growth on the other side of the tick from the current tick in token1 In addition, these values are only relative and must be used only in comparison to previous snapshots for a specific position.\",\"prevTick\":\"The previous tick in tick list\"}},\"totalFeeGrowth0Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token0\"}},\"totalFeeGrowth1Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token1\"}}},\"title\":\"Pool state that can change\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"communityVault()\":{\"notice\":\"The contract to which community fees are transferred\"},\"fee()\":{\"notice\":\"The current pool fee value\"},\"getCommunityFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the vault\"},\"getPluginFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the plugin\"},\"getReserves()\":{\"notice\":\"The tracked token0 and token1 reserves of pool\"},\"globalState()\":{\"notice\":\"The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.\"},\"isUnlocked()\":{\"notice\":\"Allows to easily get current reentrancy lock status\"},\"lastFeeTransferTimestamp()\":{\"notice\":\"The timestamp of the last sending of tokens to vault/plugin\"},\"liquidity()\":{\"notice\":\"The currently in range liquidity available to the pool\"},\"nextTickGlobal()\":{\"notice\":\"The next initialized tick after current global tick\"},\"plugin()\":{\"notice\":\"Returns the address of currently used plugin\"},\"positions(bytes32)\":{\"notice\":\"Returns the information about a position by the position's key\"},\"prevTickGlobal()\":{\"notice\":\"The previous initialized tick before (or at) current global tick\"},\"safelyGetStateOfAMM()\":{\"notice\":\"Safely get most important state values of Algebra Integral AMM\"},\"tickSpacing()\":{\"notice\":\"The current tick spacing\"},\"tickTable(int16)\":{\"notice\":\"Returns 256 packed tick initialized boolean values. See TickTree for more information\"},\"tickTreeRoot()\":{\"notice\":\"The root of tick search tree\"},\"tickTreeSecondLayer(int16)\":{\"notice\":\"The second layer of tick search tree\"},\"ticks(int24)\":{\"notice\":\"Look up information about a specific tick in the pool\"},\"totalFeeGrowth0Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\"},\"totalFeeGrowth1Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":\"IAlgebraPoolState\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"IAlgebraVaultFactory":{"abi":[{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"createVaultForPool","outputs":[{"internalType":"address","name":"communityFeeVault","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"getVaultForPool","outputs":[{"internalType":"address","name":"communityFeeVault","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"createVaultForPool(address,address,address,address,address)":"b8a1d3c6","getVaultForPool(address)":"7570e389"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"createVaultForPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityFeeVault\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"getVaultForPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityFeeVault\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Version: Algebra Integral\",\"kind\":\"dev\",\"methods\":{\"createVaultForPool(address,address,address,address,address)\":{\"params\":{\"pool\":\"the address of Algebra Integral pool\"},\"returns\":{\"communityFeeVault\":\"the address of community fee vault\"}},\"getVaultForPool(address)\":{\"params\":{\"pool\":\"the address of Algebra Integral pool\"},\"returns\":{\"communityFeeVault\":\"the address of community fee vault\"}}},\"title\":\"The interface for the Algebra Vault Factory\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"createVaultForPool(address,address,address,address,address)\":{\"notice\":\"creates the community fee vault for the pool if needed\"},\"getVaultForPool(address)\":{\"notice\":\"returns address of the community fee vault for the pool\"}},\"notice\":\"This contract can be used for automatic vaults creation\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":\"IAlgebraVaultFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol":{"Constants":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"244:1205:15:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;244:1205:15;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"244:1205:15:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Constants moved to the library, not the base contract, to further emphasize their constant nature\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Contains common constants for Algebra contracts\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":\"Constants\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":{\"keccak256\":\"0x43f5e9ef4088f1301bc80f6446114ab1f3bdd58063fc6b107f8b1598b80e4915\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://496cb38eedc163919d59a6a196d2e566771e711b6e5e4a80a11efaa7b903c03a\",\"dweb:/ipfs/QmVf5trKkBGeXeuDsiuzXDGPVEpJRvaQsdL5Dr2HZ8ZePq\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol":{"FullMath":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"354:5026:16:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;354:5026:16;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"354:5026:16:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Handles \\\"phantom overflow\\\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Contains 512-bit math functions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":\"FullMath\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0x6e562130eac2d18d5527fc12115e83a3aa0955f6be89531b6d0d5977f0784cf7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e5226566361b64a277a523430449d398434aa9956ec53ab96120bdb5eed0d36c\",\"dweb:/ipfs/QmdmE85FDGgaZBFb9WDamJQpvSx6BrpYUutudSzoRVmxMv\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol":{"LiquidityMath":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"358:1908:17:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;358:1908:17;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"358:1908:17:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Math library for liquidity\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol\":\"LiquidityMath\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":{\"keccak256\":\"0x43f5e9ef4088f1301bc80f6446114ab1f3bdd58063fc6b107f8b1598b80e4915\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://496cb38eedc163919d59a6a196d2e566771e711b6e5e4a80a11efaa7b903c03a\",\"dweb:/ipfs/QmVf5trKkBGeXeuDsiuzXDGPVEpJRvaQsdL5Dr2HZ8ZePq\"]},\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0x6e562130eac2d18d5527fc12115e83a3aa0955f6be89531b6d0d5977f0784cf7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e5226566361b64a277a523430449d398434aa9956ec53ab96120bdb5eed0d36c\",\"dweb:/ipfs/QmdmE85FDGgaZBFb9WDamJQpvSx6BrpYUutudSzoRVmxMv\"]},\"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol\":{\"keccak256\":\"0x84da0c74625df15073beb35957e0247b8eb9c7a50a1b02fcbd6dd98a352f0f25\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7db3b0d6a71dc17898b4cfa68e60ea39158dd03145b3a53aa112ab4c1a81a9cf\",\"dweb:/ipfs/QmWgvbT8aeUVhrNVpCHHp4Ut4MXKnJBMGFq56orFeNAe6m\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x1ce68c4b018476d007a0395bf2020cd9f8a5b69325a65465dd3d1f5877206d04\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7c2f240f89c058ea9288a6754a915597b78eabe60a5b3b3d921f02e9ca9cd105\",\"dweb:/ipfs/QmejQ2EatHjYWTRsXYojZ8VhYtLiqFGJ2juGj7y1sJPBc2\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol\":{\"keccak256\":\"0x2e7b1444ff69b60acac521b0d93998fb7775e0c4c5215ae31dec5bddafe1e336\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://778dc55bc1867dd899bcc93530c630f9baaff3134973f3cc5dfb62513130b790\",\"dweb:/ipfs/QmXMy8E7Y4G89nbkeha6ULUHNTeoC4t169yAYcWThFQVWC\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol\":{\"keccak256\":\"0xcf5faef8dad2a0ca0bce815f95fc416f20129bae96b8e47ce24b750869ad1000\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0aab6d459259a50151be1458d9da7271d39e94f74f3d20bd295613a82f168f9f\",\"dweb:/ipfs/QmcedxQjrx3JchnazwsMPEazwt55nrViVYnZL2yijvFbPB\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"Plugins":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"311:817:18:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;311:817:18;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"311:817:18:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Allows pool to check which hooks are enabled, as well as control the return selector\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Contains logic and constants for interacting with the plugin through hooks\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":\"Plugins\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol":{"SafeCast":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"305:1366:19:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;305:1366:19;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"305:1366:19:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Safe casting methods\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains methods for safely casting between types\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":\"SafeCast\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x1ce68c4b018476d007a0395bf2020cd9f8a5b69325a65465dd3d1f5877206d04\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7c2f240f89c058ea9288a6754a915597b78eabe60a5b3b3d921f02e9ca9cd105\",\"dweb:/ipfs/QmejQ2EatHjYWTRsXYojZ8VhYtLiqFGJ2juGj7y1sJPBc2\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"SafeTransfer":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"521:1313:20:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;521:1313:20;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"521:1313:20:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.solPlease note that this library does not check if the token has a code! That responsibility is delegated to the caller.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"SafeTransfer\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Safe ERC20 transfer library that gracefully handles missing return values.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":\"SafeTransfer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol":{"TickManagement":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"395:8151:21:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;395:8151:21;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"395:8151:21:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Ticks are organized as a doubly linked list\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Library for managing and interacting with ticks\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains functions for managing tick processes and relevant calculations\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol\":\"TickManagement\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":{\"keccak256\":\"0x43f5e9ef4088f1301bc80f6446114ab1f3bdd58063fc6b107f8b1598b80e4915\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://496cb38eedc163919d59a6a196d2e566771e711b6e5e4a80a11efaa7b903c03a\",\"dweb:/ipfs/QmVf5trKkBGeXeuDsiuzXDGPVEpJRvaQsdL5Dr2HZ8ZePq\"]},\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0x6e562130eac2d18d5527fc12115e83a3aa0955f6be89531b6d0d5977f0784cf7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e5226566361b64a277a523430449d398434aa9956ec53ab96120bdb5eed0d36c\",\"dweb:/ipfs/QmdmE85FDGgaZBFb9WDamJQpvSx6BrpYUutudSzoRVmxMv\"]},\"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol\":{\"keccak256\":\"0x84da0c74625df15073beb35957e0247b8eb9c7a50a1b02fcbd6dd98a352f0f25\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7db3b0d6a71dc17898b4cfa68e60ea39158dd03145b3a53aa112ab4c1a81a9cf\",\"dweb:/ipfs/QmWgvbT8aeUVhrNVpCHHp4Ut4MXKnJBMGFq56orFeNAe6m\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x1ce68c4b018476d007a0395bf2020cd9f8a5b69325a65465dd3d1f5877206d04\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7c2f240f89c058ea9288a6754a915597b78eabe60a5b3b3d921f02e9ca9cd105\",\"dweb:/ipfs/QmejQ2EatHjYWTRsXYojZ8VhYtLiqFGJ2juGj7y1sJPBc2\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol\":{\"keccak256\":\"0x34b29f669bef011b96de606c4cd19881e436b3c9f722c493e6f255f913ed7d58\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://c1edd75810055445440a0fb3e01731b2d5cd274c0476fcab6133ca8213a8d6a5\",\"dweb:/ipfs/QmfEqYPFdWM6MEMxSDWrk84CmbwCZQ55nF8dcucaTdJ2rb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol\":{\"keccak256\":\"0x2e7b1444ff69b60acac521b0d93998fb7775e0c4c5215ae31dec5bddafe1e336\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://778dc55bc1867dd899bcc93530c630f9baaff3134973f3cc5dfb62513130b790\",\"dweb:/ipfs/QmXMy8E7Y4G89nbkeha6ULUHNTeoC4t169yAYcWThFQVWC\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol\":{\"keccak256\":\"0xcf5faef8dad2a0ca0bce815f95fc416f20129bae96b8e47ce24b750869ad1000\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0aab6d459259a50151be1458d9da7271d39e94f74f3d20bd295613a82f168f9f\",\"dweb:/ipfs/QmcedxQjrx3JchnazwsMPEazwt55nrViVYnZL2yijvFbPB\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol":{"TickMath":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"499:7979:22:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;499:7979:22;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"499:7979:22:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/blob/main/contracts/libraries\",\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"MAX_SQRT_RATIO\":{\"details\":\"The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\"},\"MAX_TICK\":{\"details\":\"The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\"},\"MIN_SQRT_RATIO\":{\"details\":\"The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\"},\"MIN_TICK\":{\"details\":\"The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\"}},\"title\":\"Math library for computing sqrt prices from ticks and vice versa\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports prices between 2**-128 and 2**128\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol\":\"TickMath\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol\":{\"keccak256\":\"0x2e7b1444ff69b60acac521b0d93998fb7775e0c4c5215ae31dec5bddafe1e336\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://778dc55bc1867dd899bcc93530c630f9baaff3134973f3cc5dfb62513130b790\",\"dweb:/ipfs/QmXMy8E7Y4G89nbkeha6ULUHNTeoC4t169yAYcWThFQVWC\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol":{"TokenDeltaMath":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D 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 LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"307:3421:23:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;307:3421:23;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"307:3421:23:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Functions based on Q64.96 sqrt price and liquidity\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains the math that uses square root of price as a Q64.96 and liquidity to compute deltas\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol\":\"TokenDeltaMath\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":{\"keccak256\":\"0x43f5e9ef4088f1301bc80f6446114ab1f3bdd58063fc6b107f8b1598b80e4915\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://496cb38eedc163919d59a6a196d2e566771e711b6e5e4a80a11efaa7b903c03a\",\"dweb:/ipfs/QmVf5trKkBGeXeuDsiuzXDGPVEpJRvaQsdL5Dr2HZ8ZePq\"]},\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0x6e562130eac2d18d5527fc12115e83a3aa0955f6be89531b6d0d5977f0784cf7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e5226566361b64a277a523430449d398434aa9956ec53ab96120bdb5eed0d36c\",\"dweb:/ipfs/QmdmE85FDGgaZBFb9WDamJQpvSx6BrpYUutudSzoRVmxMv\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x1ce68c4b018476d007a0395bf2020cd9f8a5b69325a65465dd3d1f5877206d04\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7c2f240f89c058ea9288a6754a915597b78eabe60a5b3b3d921f02e9ca9cd105\",\"dweb:/ipfs/QmejQ2EatHjYWTRsXYojZ8VhYtLiqFGJ2juGj7y1sJPBc2\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol\":{\"keccak256\":\"0xcf5faef8dad2a0ca0bce815f95fc416f20129bae96b8e47ce24b750869ad1000\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0aab6d459259a50151be1458d9da7271d39e94f74f3d20bd295613a82f168f9f\",\"dweb:/ipfs/QmcedxQjrx3JchnazwsMPEazwt55nrViVYnZL2yijvFbPB\"]}},\"version\":1}"}},"contracts/FeeDiscountPlugin.sol":{"FeeDiscountPlugin":{"abi":[{"inputs":[],"name":"transferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","feeDiscountRegistry()":"f20cdc1a","handlePluginFee(uint256,uint256)":"aa6b14bb","pool()":"16f0115b","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"Algebra Integral 1.2 fee discount plugin\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FeeDiscountPlugin.sol\":\"FeeDiscountPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol\":{\"keccak256\":\"0xca12778d7c1fc43c394f3fe93e4b16302c39c888b3bc04f7723db2cc69d60940\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://39bdd043ff3fe72cc19c7c7c08080d80babdb795e78134df121f14fd3e461eff\",\"dweb:/ipfs/QmZX8bECwCRNfS6cTQjc9T5wpCXjijG9S6RWWWbJgGvf3y\"]},\"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol\":{\"keccak256\":\"0x8668bf51349f615ab941e9c30c563d12e5037a883dc9ccafe59eb75ea78e4d7d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://683360746f021dde02b919ace2fba5a3ee59c428391993272625c6cd24acffc1\",\"dweb:/ipfs/QmW4H3TE3GWBrpZXE6NGUKupCEf7yFtLWpGDXwemF6cWB3\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0xf48e61f16fda95e335305a39661eeb3e55a75acf7775b8977969fa009ff7ca10\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e20c4fa273d16758f73420ba441f4821b2839e3eb9a84da063a4ebbcee6cbaec\",\"dweb:/ipfs/QmXehxH1xGfWJbYzqHGSBr3ZmPLzNjjY99aGrhy8o7Gqup\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]},\"contracts/FeeDiscountPlugin.sol\":{\"keccak256\":\"0xa13e2dc174a9695cc893016bece4f9cd7c7fbbd151c81de8215ae21ffe0d84f1\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://92cb3df32419f8f6f626d02cda3935661c54e3399cf09829c1f36fa84096c14e\",\"dweb:/ipfs/QmRXmpAb3F18LcKwARwDnvDkmQz4DnuYrWk5mHaRuESnNY\"]},\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]},\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]}},\"version\":1}"}},"contracts/FeeDiscountRegistry.sol":{"FeeDiscountRegistry":{"abi":[{"inputs":[{"internalType":"address","name":"_algebraFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint16","name":"newDiscount","type":"uint16"}],"name":"FeeDiscount","type":"event"},{"inputs":[],"name":"FEE_DISCOUNT_DENOMINATOR","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DISCOUNT_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"algebraFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"feeDiscounts","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address[]","name":"pools","type":"address[]"},{"internalType":"uint16[]","name":"newDiscounts","type":"uint16[]"}],"name":"setFeeDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{"@_3712":{"entryPoint":null,"id":3712,"parameterSlots":1,"returnSlots":0},"abi_decode_tuple_t_address_fromMemory":{"entryPoint":64,"id":null,"parameterSlots":2,"returnSlots":1}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:306:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"95:209:31","statements":[{"body":{"nodeType":"YulBlock","src":"141:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"150:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"153:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"143:6:31"},"nodeType":"YulFunctionCall","src":"143:12:31"},"nodeType":"YulExpressionStatement","src":"143:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"116:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"125:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"112:3:31"},"nodeType":"YulFunctionCall","src":"112:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"137:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"108:3:31"},"nodeType":"YulFunctionCall","src":"108:32:31"},"nodeType":"YulIf","src":"105:52:31"},{"nodeType":"YulVariableDeclaration","src":"166:29:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"185:9:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"179:5:31"},"nodeType":"YulFunctionCall","src":"179:16:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"170:5:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"258:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"267:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"270:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"260:6:31"},"nodeType":"YulFunctionCall","src":"260:12:31"},"nodeType":"YulExpressionStatement","src":"260:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"217:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"228:5:31"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"243:3:31","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"248:1:31","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"239:3:31"},"nodeType":"YulFunctionCall","src":"239:11:31"},{"kind":"number","nodeType":"YulLiteral","src":"252:1:31","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"235:3:31"},"nodeType":"YulFunctionCall","src":"235:19:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"224:3:31"},"nodeType":"YulFunctionCall","src":"224:31:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"214:2:31"},"nodeType":"YulFunctionCall","src":"214:42:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"207:6:31"},"nodeType":"YulFunctionCall","src":"207:50:31"},"nodeType":"YulIf","src":"204:70:31"},{"nodeType":"YulAssignment","src":"283:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"293:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"283:6:31"}]}]},"name":"abi_decode_tuple_t_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"61:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"72:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"84:6:31","type":""}],"src":"14:290:31"}]},"contents":"{\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        if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n        value0 := value\n    }\n}","id":31,"language":"Yul","name":"#utility.yul"}],"linkReferences":{},"object":"60a060405234801561001057600080fd5b506040516108b03803806108b083398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161081f6100916000396000818160d301526101a3015261081f6000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063978e13ea11610050578063978e13ea146100b9578063a7b64b04146100ce578063d2426f071461011a57600080fd5b80631101ce3e1461006c57806351f8ba46146100b0575b600080fd5b61009861007a366004610538565b600060208181529281526040808220909352908152205461ffff1681565b60405161ffff90911681526020015b60405180910390f35b6100986103e881565b6100cc6100c7366004610689565b61014f565b005b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a7565b6101417fa49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e881565b6040519081526020016100a7565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527fa49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e860048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa1580156101ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610223919061075b565b61028e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e617574686f72697a6564000000000000000000000000000000000000000060448201526064015b60405180910390fd5b80518251146102f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4172726179734c656e6774684d69736d617463680000000000000000000000006044820152606401610285565b60005b8251811015610509576103e861ffff1682828151811061031e5761031e610784565b602002602001015161ffff161115610392576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f66656520646973636f756e7420657865636565647320313030250000000000006044820152606401610285565b8181815181106103a4576103a4610784565b60200260200101516000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008584815181106103fe576103fe610784565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055507f7a30dcbbc729b723963056eb5780229274194a05bbe6fe5174b8864d96c37a2c8484838151811061048e5761048e610784565b60200260200101518484815181106104a8576104a8610784565b60200260200101516040516104ef9392919073ffffffffffffffffffffffffffffffffffffffff938416815291909216602082015261ffff91909116604082015260600190565b60405180910390a180610501816107b3565b9150506102fc565b50505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461053357600080fd5b919050565b6000806040838503121561054b57600080fd5b6105548361050f565b91506105626020840161050f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e1576105e161056b565b604052919050565b600067ffffffffffffffff8211156106035761060361056b565b5060051b60200190565b600082601f83011261061e57600080fd5b8135602061063361062e836105e9565b61059a565b82815260059290921b8401810191818101908684111561065257600080fd5b8286015b8481101561067e57803561ffff811681146106715760008081fd5b8352918301918301610656565b509695505050505050565b60008060006060848603121561069e57600080fd5b6106a78461050f565b925060208085013567ffffffffffffffff808211156106c557600080fd5b818701915087601f8301126106d957600080fd5b81356106e761062e826105e9565b81815260059190911b8301840190848101908a83111561070657600080fd5b938501935b8285101561072b5761071c8561050f565b8252938501939085019061070b565b96505050604087013592508083111561074357600080fd5b50506107518682870161060d565b9150509250925092565b60006020828403121561076d57600080fd5b8151801515811461077d57600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361080b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea164736f6c6343000814000a","opcodes":"PUSH1 0xA0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x8B0 CODESIZE SUB DUP1 PUSH2 0x8B0 DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH2 0x2F SWAP2 PUSH2 0x40 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x80 MSTORE PUSH2 0x70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x69 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH2 0x81F PUSH2 0x91 PUSH1 0x0 CODECOPY PUSH1 0x0 DUP2 DUP2 PUSH1 0xD3 ADD MSTORE PUSH2 0x1A3 ADD MSTORE PUSH2 0x81F 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 0x67 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x978E13EA GT PUSH2 0x50 JUMPI DUP1 PUSH4 0x978E13EA EQ PUSH2 0xB9 JUMPI DUP1 PUSH4 0xA7B64B04 EQ PUSH2 0xCE JUMPI DUP1 PUSH4 0xD2426F07 EQ PUSH2 0x11A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1101CE3E EQ PUSH2 0x6C JUMPI DUP1 PUSH4 0x51F8BA46 EQ PUSH2 0xB0 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x98 PUSH2 0x7A CALLDATASIZE PUSH1 0x4 PUSH2 0x538 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP2 DUP2 MSTORE SWAP3 DUP2 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP1 SWAP4 MSTORE SWAP1 DUP2 MSTORE KECCAK256 SLOAD PUSH2 0xFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x98 PUSH2 0x3E8 DUP2 JUMP JUMPDEST PUSH2 0xCC PUSH2 0xC7 CALLDATASIZE PUSH1 0x4 PUSH2 0x689 JUMP JUMPDEST PUSH2 0x14F JUMP JUMPDEST STOP JUMPDEST PUSH2 0xF5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xA7 JUMP JUMPDEST PUSH2 0x141 PUSH32 0xA49C1B804BB17A3ECB97D6C1EE253D7E7BF88B50D66BA600BB4B026E1FB144E8 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xA7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0xA49C1B804BB17A3ECB97D6C1EE253D7E7BF88B50D66BA600BB4B026E1FB144E8 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x1FF 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 0x223 SWAP2 SWAP1 PUSH2 0x75B JUMP JUMPDEST PUSH2 0x28E JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x556E617574686F72697A65640000000000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 MLOAD DUP3 MLOAD EQ PUSH2 0x2F9 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4172726179734C656E6774684D69736D61746368000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x285 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x509 JUMPI PUSH2 0x3E8 PUSH2 0xFFFF AND DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x31E JUMPI PUSH2 0x31E PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0xFFFF AND GT ISZERO PUSH2 0x392 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x66656520646973636F756E742065786563656564732031303025000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x285 JUMP JUMPDEST DUP2 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x3A4 JUMPI PUSH2 0x3A4 PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x0 DUP1 DUP7 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x0 DUP6 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x3FE JUMPI PUSH2 0x3FE PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH2 0xFFFF MUL NOT AND SWAP1 DUP4 PUSH2 0xFFFF AND MUL OR SWAP1 SSTORE POP PUSH32 0x7A30DCBBC729B723963056EB5780229274194A05BBE6FE5174B8864D96C37A2C DUP5 DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x48E JUMPI PUSH2 0x48E PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4A8 JUMPI PUSH2 0x4A8 PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x40 MLOAD PUSH2 0x4EF SWAP4 SWAP3 SWAP2 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP4 DUP5 AND DUP2 MSTORE SWAP2 SWAP1 SWAP3 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH2 0xFFFF SWAP2 SWAP1 SWAP2 AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 DUP1 PUSH2 0x501 DUP2 PUSH2 0x7B3 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x2FC JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x533 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x54B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x554 DUP4 PUSH2 0x50F JUMP JUMPDEST SWAP2 POP PUSH2 0x562 PUSH1 0x20 DUP5 ADD PUSH2 0x50F JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1F DUP3 ADD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 AND DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x5E1 JUMPI PUSH2 0x5E1 PUSH2 0x56B JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x603 JUMPI PUSH2 0x603 PUSH2 0x56B JUMP JUMPDEST POP PUSH1 0x5 SHL PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x61E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x20 PUSH2 0x633 PUSH2 0x62E DUP4 PUSH2 0x5E9 JUMP JUMPDEST PUSH2 0x59A JUMP JUMPDEST DUP3 DUP2 MSTORE PUSH1 0x5 SWAP3 SWAP1 SWAP3 SHL DUP5 ADD DUP2 ADD SWAP2 DUP2 DUP2 ADD SWAP1 DUP7 DUP5 GT ISZERO PUSH2 0x652 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 DUP7 ADD JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x67E JUMPI DUP1 CALLDATALOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x671 JUMPI PUSH1 0x0 DUP1 DUP2 REVERT JUMPDEST DUP4 MSTORE SWAP2 DUP4 ADD SWAP2 DUP4 ADD PUSH2 0x656 JUMP JUMPDEST POP SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x69E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x6A7 DUP5 PUSH2 0x50F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP1 DUP6 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x6C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 DUP8 ADD SWAP2 POP DUP8 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x6D9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x6E7 PUSH2 0x62E DUP3 PUSH2 0x5E9 JUMP JUMPDEST DUP2 DUP2 MSTORE PUSH1 0x5 SWAP2 SWAP1 SWAP2 SHL DUP4 ADD DUP5 ADD SWAP1 DUP5 DUP2 ADD SWAP1 DUP11 DUP4 GT ISZERO PUSH2 0x706 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 DUP6 ADD SWAP4 JUMPDEST DUP3 DUP6 LT ISZERO PUSH2 0x72B JUMPI PUSH2 0x71C DUP6 PUSH2 0x50F JUMP JUMPDEST DUP3 MSTORE SWAP4 DUP6 ADD SWAP4 SWAP1 DUP6 ADD SWAP1 PUSH2 0x70B JUMP JUMPDEST SWAP7 POP POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP3 POP DUP1 DUP4 GT ISZERO PUSH2 0x743 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP PUSH2 0x751 DUP7 DUP3 DUP8 ADD PUSH2 0x60D JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x76D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x77D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 SUB PUSH2 0x80B JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"192:1023:25:-:0;;;575:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;618:32:25;;;192:1023;;14:290:31;84:6;137:2;125:9;116:7;112:23;108:32;105:52;;;153:1;150;143:12;105:52;179:16;;-1:-1:-1;;;;;224:31:31;;214:42;;204:70;;270:1;267;260:12;204:70;293:5;14:290;-1:-1:-1;;;14:290:31:o;:::-;192:1023:25;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{"@FEE_DISCOUNT_DENOMINATOR_3695":{"entryPoint":null,"id":3695,"parameterSlots":0,"returnSlots":0},"@FEE_DISCOUNT_MANAGER_3691":{"entryPoint":null,"id":3691,"parameterSlots":0,"returnSlots":0},"@algebraFactory_3685":{"entryPoint":null,"id":3685,"parameterSlots":0,"returnSlots":0},"@feeDiscounts_3702":{"entryPoint":null,"id":3702,"parameterSlots":0,"returnSlots":0},"@setFeeDiscount_3790":{"entryPoint":335,"id":3790,"parameterSlots":3,"returnSlots":0},"abi_decode_address":{"entryPoint":1295,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_array_uint16_dyn":{"entryPoint":1549,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_address":{"entryPoint":1336,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_addresst_array$_t_address_$dyn_memory_ptrt_array$_t_uint16_$dyn_memory_ptr":{"entryPoint":1673,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_bool_fromMemory":{"entryPoint":1883,"id":null,"parameterSlots":2,"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_address_t_uint16__to_t_address_t_address_t_uint16__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":4,"returnSlots":1},"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_3c58f19163f601dd85ead03796119784c7f52032728be2538d5061c7e5c87c99__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_f73b17d3ca641c2b52f75f4a055c27b2da4da29789376898c173e019d125ee4b__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_uint16__to_t_uint16__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"allocate_memory":{"entryPoint":1434,"id":null,"parameterSlots":1,"returnSlots":1},"array_allocation_size_array_address_dyn":{"entryPoint":1513,"id":null,"parameterSlots":1,"returnSlots":1},"increment_t_uint256":{"entryPoint":1971,"id":null,"parameterSlots":1,"returnSlots":1},"panic_error_0x32":{"entryPoint":1924,"id":null,"parameterSlots":0,"returnSlots":0},"panic_error_0x41":{"entryPoint":1387,"id":null,"parameterSlots":0,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:6443:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"63:147:31","statements":[{"nodeType":"YulAssignment","src":"73:29:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"95:6:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"82:12:31"},"nodeType":"YulFunctionCall","src":"82:20:31"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"73:5:31"}]},{"body":{"nodeType":"YulBlock","src":"188:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"197:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"200:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"190:6:31"},"nodeType":"YulFunctionCall","src":"190:12:31"},"nodeType":"YulExpressionStatement","src":"190:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"124:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"135:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"142:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"131:3:31"},"nodeType":"YulFunctionCall","src":"131:54:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"121:2:31"},"nodeType":"YulFunctionCall","src":"121:65:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"114:6:31"},"nodeType":"YulFunctionCall","src":"114:73:31"},"nodeType":"YulIf","src":"111:93:31"}]},"name":"abi_decode_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"42:6:31","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"53:5:31","type":""}],"src":"14:196:31"},{"body":{"nodeType":"YulBlock","src":"302:173:31","statements":[{"body":{"nodeType":"YulBlock","src":"348:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"357:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"360:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"350:6:31"},"nodeType":"YulFunctionCall","src":"350:12:31"},"nodeType":"YulExpressionStatement","src":"350:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"323:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"332:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"319:3:31"},"nodeType":"YulFunctionCall","src":"319:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"344:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"315:3:31"},"nodeType":"YulFunctionCall","src":"315:32:31"},"nodeType":"YulIf","src":"312:52:31"},{"nodeType":"YulAssignment","src":"373:39:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"402:9:31"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"383:18:31"},"nodeType":"YulFunctionCall","src":"383:29:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"373:6:31"}]},{"nodeType":"YulAssignment","src":"421:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"454:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"465:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"450:3:31"},"nodeType":"YulFunctionCall","src":"450:18:31"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"431:18:31"},"nodeType":"YulFunctionCall","src":"431:38:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"421:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"260:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"271:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"283:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"291:6:31","type":""}],"src":"215:260:31"},{"body":{"nodeType":"YulBlock","src":"579:89:31","statements":[{"nodeType":"YulAssignment","src":"589:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"601:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"612:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"597:3:31"},"nodeType":"YulFunctionCall","src":"597:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"589:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"631:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"646:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"654:6:31","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"642:3:31"},"nodeType":"YulFunctionCall","src":"642:19:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"624:6:31"},"nodeType":"YulFunctionCall","src":"624:38:31"},"nodeType":"YulExpressionStatement","src":"624:38:31"}]},"name":"abi_encode_tuple_t_uint16__to_t_uint16__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"548:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"559:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"570:4:31","type":""}],"src":"480:188:31"},{"body":{"nodeType":"YulBlock","src":"705:152:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"722:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"725:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"715:6:31"},"nodeType":"YulFunctionCall","src":"715:88:31"},"nodeType":"YulExpressionStatement","src":"715:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"819:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"822:4:31","type":"","value":"0x41"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"812:6:31"},"nodeType":"YulFunctionCall","src":"812:15:31"},"nodeType":"YulExpressionStatement","src":"812:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"843:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"846:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"836:6:31"},"nodeType":"YulFunctionCall","src":"836:15:31"},"nodeType":"YulExpressionStatement","src":"836:15:31"}]},"name":"panic_error_0x41","nodeType":"YulFunctionDefinition","src":"673:184:31"},{"body":{"nodeType":"YulBlock","src":"907:289:31","statements":[{"nodeType":"YulAssignment","src":"917:19:31","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"933:2:31","type":"","value":"64"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"927:5:31"},"nodeType":"YulFunctionCall","src":"927:9:31"},"variableNames":[{"name":"memPtr","nodeType":"YulIdentifier","src":"917:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"945:117:31","value":{"arguments":[{"name":"memPtr","nodeType":"YulIdentifier","src":"967:6:31"},{"arguments":[{"arguments":[{"name":"size","nodeType":"YulIdentifier","src":"983:4:31"},{"kind":"number","nodeType":"YulLiteral","src":"989:2:31","type":"","value":"31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"979:3:31"},"nodeType":"YulFunctionCall","src":"979:13:31"},{"kind":"number","nodeType":"YulLiteral","src":"994:66:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"975:3:31"},"nodeType":"YulFunctionCall","src":"975:86:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"963:3:31"},"nodeType":"YulFunctionCall","src":"963:99:31"},"variables":[{"name":"newFreePtr","nodeType":"YulTypedName","src":"949:10:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"1137:22:31","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"1139:16:31"},"nodeType":"YulFunctionCall","src":"1139:18:31"},"nodeType":"YulExpressionStatement","src":"1139:18:31"}]},"condition":{"arguments":[{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1080:10:31"},{"kind":"number","nodeType":"YulLiteral","src":"1092:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1077:2:31"},"nodeType":"YulFunctionCall","src":"1077:34:31"},{"arguments":[{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1116:10:31"},{"name":"memPtr","nodeType":"YulIdentifier","src":"1128:6:31"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"1113:2:31"},"nodeType":"YulFunctionCall","src":"1113:22:31"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"1074:2:31"},"nodeType":"YulFunctionCall","src":"1074:62:31"},"nodeType":"YulIf","src":"1071:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1175:2:31","type":"","value":"64"},{"name":"newFreePtr","nodeType":"YulIdentifier","src":"1179:10:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1168:6:31"},"nodeType":"YulFunctionCall","src":"1168:22:31"},"nodeType":"YulExpressionStatement","src":"1168:22:31"}]},"name":"allocate_memory","nodeType":"YulFunctionDefinition","parameters":[{"name":"size","nodeType":"YulTypedName","src":"887:4:31","type":""}],"returnVariables":[{"name":"memPtr","nodeType":"YulTypedName","src":"896:6:31","type":""}],"src":"862:334:31"},{"body":{"nodeType":"YulBlock","src":"1270:114:31","statements":[{"body":{"nodeType":"YulBlock","src":"1314:22:31","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x41","nodeType":"YulIdentifier","src":"1316:16:31"},"nodeType":"YulFunctionCall","src":"1316:18:31"},"nodeType":"YulExpressionStatement","src":"1316:18:31"}]},"condition":{"arguments":[{"name":"length","nodeType":"YulIdentifier","src":"1286:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"1294:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1283:2:31"},"nodeType":"YulFunctionCall","src":"1283:30:31"},"nodeType":"YulIf","src":"1280:56:31"},{"nodeType":"YulAssignment","src":"1345:33:31","value":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1361:1:31","type":"","value":"5"},{"name":"length","nodeType":"YulIdentifier","src":"1364:6:31"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"1357:3:31"},"nodeType":"YulFunctionCall","src":"1357:14:31"},{"kind":"number","nodeType":"YulLiteral","src":"1373:4:31","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1353:3:31"},"nodeType":"YulFunctionCall","src":"1353:25:31"},"variableNames":[{"name":"size","nodeType":"YulIdentifier","src":"1345:4:31"}]}]},"name":"array_allocation_size_array_address_dyn","nodeType":"YulFunctionDefinition","parameters":[{"name":"length","nodeType":"YulTypedName","src":"1250:6:31","type":""}],"returnVariables":[{"name":"size","nodeType":"YulTypedName","src":"1261:4:31","type":""}],"src":"1201:183:31"},{"body":{"nodeType":"YulBlock","src":"1452:769:31","statements":[{"body":{"nodeType":"YulBlock","src":"1501:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1510:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1513:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1503:6:31"},"nodeType":"YulFunctionCall","src":"1503:12:31"},"nodeType":"YulExpressionStatement","src":"1503:12:31"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1480:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"1488:4:31","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1476:3:31"},"nodeType":"YulFunctionCall","src":"1476:17:31"},{"name":"end","nodeType":"YulIdentifier","src":"1495:3:31"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"1472:3:31"},"nodeType":"YulFunctionCall","src":"1472:27:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1465:6:31"},"nodeType":"YulFunctionCall","src":"1465:35:31"},"nodeType":"YulIf","src":"1462:55:31"},{"nodeType":"YulVariableDeclaration","src":"1526:30:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1549:6:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1536:12:31"},"nodeType":"YulFunctionCall","src":"1536:20:31"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"1530:2:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"1565:14:31","value":{"kind":"number","nodeType":"YulLiteral","src":"1575:4:31","type":"","value":"0x20"},"variables":[{"name":"_2","nodeType":"YulTypedName","src":"1569:2:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"1588:71:31","value":{"arguments":[{"arguments":[{"name":"_1","nodeType":"YulIdentifier","src":"1655:2:31"}],"functionName":{"name":"array_allocation_size_array_address_dyn","nodeType":"YulIdentifier","src":"1615:39:31"},"nodeType":"YulFunctionCall","src":"1615:43:31"}],"functionName":{"name":"allocate_memory","nodeType":"YulIdentifier","src":"1599:15:31"},"nodeType":"YulFunctionCall","src":"1599:60:31"},"variables":[{"name":"dst","nodeType":"YulTypedName","src":"1592:3:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"1668:16:31","value":{"name":"dst","nodeType":"YulIdentifier","src":"1681:3:31"},"variables":[{"name":"dst_1","nodeType":"YulTypedName","src":"1672:5:31","type":""}]},{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"1700:3:31"},{"name":"_1","nodeType":"YulIdentifier","src":"1705:2:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1693:6:31"},"nodeType":"YulFunctionCall","src":"1693:15:31"},"nodeType":"YulExpressionStatement","src":"1693:15:31"},{"nodeType":"YulAssignment","src":"1717:19:31","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"1728:3:31"},{"name":"_2","nodeType":"YulIdentifier","src":"1733:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1724:3:31"},"nodeType":"YulFunctionCall","src":"1724:12:31"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"1717:3:31"}]},{"nodeType":"YulVariableDeclaration","src":"1745:46:31","value":{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1767:6:31"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1779:1:31","type":"","value":"5"},{"name":"_1","nodeType":"YulIdentifier","src":"1782:2:31"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"1775:3:31"},"nodeType":"YulFunctionCall","src":"1775:10:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1763:3:31"},"nodeType":"YulFunctionCall","src":"1763:23:31"},{"name":"_2","nodeType":"YulIdentifier","src":"1788:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1759:3:31"},"nodeType":"YulFunctionCall","src":"1759:32:31"},"variables":[{"name":"srcEnd","nodeType":"YulTypedName","src":"1749:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"1819:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1828:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1831:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1821:6:31"},"nodeType":"YulFunctionCall","src":"1821:12:31"},"nodeType":"YulExpressionStatement","src":"1821:12:31"}]},"condition":{"arguments":[{"name":"srcEnd","nodeType":"YulIdentifier","src":"1806:6:31"},{"name":"end","nodeType":"YulIdentifier","src":"1814:3:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1803:2:31"},"nodeType":"YulFunctionCall","src":"1803:15:31"},"nodeType":"YulIf","src":"1800:35:31"},{"nodeType":"YulVariableDeclaration","src":"1844:26:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1859:6:31"},{"name":"_2","nodeType":"YulIdentifier","src":"1867:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1855:3:31"},"nodeType":"YulFunctionCall","src":"1855:15:31"},"variables":[{"name":"src","nodeType":"YulTypedName","src":"1848:3:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"1935:257:31","statements":[{"nodeType":"YulVariableDeclaration","src":"1949:30:31","value":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"1975:3:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1962:12:31"},"nodeType":"YulFunctionCall","src":"1962:17:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"1953:5:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"2045:74:31","statements":[{"nodeType":"YulVariableDeclaration","src":"2063:11:31","value":{"kind":"number","nodeType":"YulLiteral","src":"2073:1:31","type":"","value":"0"},"variables":[{"name":"_3","nodeType":"YulTypedName","src":"2067:2:31","type":""}]},{"expression":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"2098:2:31"},{"name":"_3","nodeType":"YulIdentifier","src":"2102:2:31"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2091:6:31"},"nodeType":"YulFunctionCall","src":"2091:14:31"},"nodeType":"YulExpressionStatement","src":"2091:14:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"2005:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"2016:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"2023:6:31","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2012:3:31"},"nodeType":"YulFunctionCall","src":"2012:18:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"2002:2:31"},"nodeType":"YulFunctionCall","src":"2002:29:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1995:6:31"},"nodeType":"YulFunctionCall","src":"1995:37:31"},"nodeType":"YulIf","src":"1992:127:31"},{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"2139:3:31"},{"name":"value","nodeType":"YulIdentifier","src":"2144:5:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2132:6:31"},"nodeType":"YulFunctionCall","src":"2132:18:31"},"nodeType":"YulExpressionStatement","src":"2132:18:31"},{"nodeType":"YulAssignment","src":"2163:19:31","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"2174:3:31"},{"name":"_2","nodeType":"YulIdentifier","src":"2179:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2170:3:31"},"nodeType":"YulFunctionCall","src":"2170:12:31"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"2163:3:31"}]}]},"condition":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"1890:3:31"},{"name":"srcEnd","nodeType":"YulIdentifier","src":"1895:6:31"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"1887:2:31"},"nodeType":"YulFunctionCall","src":"1887:15:31"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"1903:23:31","statements":[{"nodeType":"YulAssignment","src":"1905:19:31","value":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"1916:3:31"},{"name":"_2","nodeType":"YulIdentifier","src":"1921:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1912:3:31"},"nodeType":"YulFunctionCall","src":"1912:12:31"},"variableNames":[{"name":"src","nodeType":"YulIdentifier","src":"1905:3:31"}]}]},"pre":{"nodeType":"YulBlock","src":"1883:3:31","statements":[]},"src":"1879:313:31"},{"nodeType":"YulAssignment","src":"2201:14:31","value":{"name":"dst_1","nodeType":"YulIdentifier","src":"2210:5:31"},"variableNames":[{"name":"array","nodeType":"YulIdentifier","src":"2201:5:31"}]}]},"name":"abi_decode_array_uint16_dyn","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"1426:6:31","type":""},{"name":"end","nodeType":"YulTypedName","src":"1434:3:31","type":""}],"returnVariables":[{"name":"array","nodeType":"YulTypedName","src":"1442:5:31","type":""}],"src":"1389:832:31"},{"body":{"nodeType":"YulBlock","src":"2379:1063:31","statements":[{"body":{"nodeType":"YulBlock","src":"2425:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2434:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2437:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2427:6:31"},"nodeType":"YulFunctionCall","src":"2427:12:31"},"nodeType":"YulExpressionStatement","src":"2427:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"2400:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"2409:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2396:3:31"},"nodeType":"YulFunctionCall","src":"2396:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"2421:2:31","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"2392:3:31"},"nodeType":"YulFunctionCall","src":"2392:32:31"},"nodeType":"YulIf","src":"2389:52:31"},{"nodeType":"YulAssignment","src":"2450:39:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2479:9:31"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"2460:18:31"},"nodeType":"YulFunctionCall","src":"2460:29:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"2450:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"2498:12:31","value":{"kind":"number","nodeType":"YulLiteral","src":"2508:2:31","type":"","value":"32"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"2502:2:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"2519:46:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2550:9:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2561:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2546:3:31"},"nodeType":"YulFunctionCall","src":"2546:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2533:12:31"},"nodeType":"YulFunctionCall","src":"2533:32:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"2523:6:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"2574:28:31","value":{"kind":"number","nodeType":"YulLiteral","src":"2584:18:31","type":"","value":"0xffffffffffffffff"},"variables":[{"name":"_2","nodeType":"YulTypedName","src":"2578:2:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"2629:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2638:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2641:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2631:6:31"},"nodeType":"YulFunctionCall","src":"2631:12:31"},"nodeType":"YulExpressionStatement","src":"2631:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"2617:6:31"},{"name":"_2","nodeType":"YulIdentifier","src":"2625:2:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"2614:2:31"},"nodeType":"YulFunctionCall","src":"2614:14:31"},"nodeType":"YulIf","src":"2611:34:31"},{"nodeType":"YulVariableDeclaration","src":"2654:32:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2668:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"2679:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2664:3:31"},"nodeType":"YulFunctionCall","src":"2664:22:31"},"variables":[{"name":"_3","nodeType":"YulTypedName","src":"2658:2:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"2734:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2743:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2746:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2736:6:31"},"nodeType":"YulFunctionCall","src":"2736:12:31"},"nodeType":"YulExpressionStatement","src":"2736:12:31"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"2713:2:31"},{"kind":"number","nodeType":"YulLiteral","src":"2717:4:31","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2709:3:31"},"nodeType":"YulFunctionCall","src":"2709:13:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"2724:7:31"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"2705:3:31"},"nodeType":"YulFunctionCall","src":"2705:27:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2698:6:31"},"nodeType":"YulFunctionCall","src":"2698:35:31"},"nodeType":"YulIf","src":"2695:55:31"},{"nodeType":"YulVariableDeclaration","src":"2759:26:31","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"2782:2:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2769:12:31"},"nodeType":"YulFunctionCall","src":"2769:16:31"},"variables":[{"name":"_4","nodeType":"YulTypedName","src":"2763:2:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"2794:71:31","value":{"arguments":[{"arguments":[{"name":"_4","nodeType":"YulIdentifier","src":"2861:2:31"}],"functionName":{"name":"array_allocation_size_array_address_dyn","nodeType":"YulIdentifier","src":"2821:39:31"},"nodeType":"YulFunctionCall","src":"2821:43:31"}],"functionName":{"name":"allocate_memory","nodeType":"YulIdentifier","src":"2805:15:31"},"nodeType":"YulFunctionCall","src":"2805:60:31"},"variables":[{"name":"dst","nodeType":"YulTypedName","src":"2798:3:31","type":""}]},{"nodeType":"YulVariableDeclaration","src":"2874:16:31","value":{"name":"dst","nodeType":"YulIdentifier","src":"2887:3:31"},"variables":[{"name":"dst_1","nodeType":"YulTypedName","src":"2878:5:31","type":""}]},{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"2906:3:31"},{"name":"_4","nodeType":"YulIdentifier","src":"2911:2:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2899:6:31"},"nodeType":"YulFunctionCall","src":"2899:15:31"},"nodeType":"YulExpressionStatement","src":"2899:15:31"},{"nodeType":"YulAssignment","src":"2923:19:31","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"2934:3:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2939:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2930:3:31"},"nodeType":"YulFunctionCall","src":"2930:12:31"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"2923:3:31"}]},{"nodeType":"YulVariableDeclaration","src":"2951:42:31","value":{"arguments":[{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"2973:2:31"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2981:1:31","type":"","value":"5"},{"name":"_4","nodeType":"YulIdentifier","src":"2984:2:31"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"2977:3:31"},"nodeType":"YulFunctionCall","src":"2977:10:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2969:3:31"},"nodeType":"YulFunctionCall","src":"2969:19:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2990:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2965:3:31"},"nodeType":"YulFunctionCall","src":"2965:28:31"},"variables":[{"name":"srcEnd","nodeType":"YulTypedName","src":"2955:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"3025:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3034:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3037:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3027:6:31"},"nodeType":"YulFunctionCall","src":"3027:12:31"},"nodeType":"YulExpressionStatement","src":"3027:12:31"}]},"condition":{"arguments":[{"name":"srcEnd","nodeType":"YulIdentifier","src":"3008:6:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3016:7:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3005:2:31"},"nodeType":"YulFunctionCall","src":"3005:19:31"},"nodeType":"YulIf","src":"3002:39:31"},{"nodeType":"YulVariableDeclaration","src":"3050:22:31","value":{"arguments":[{"name":"_3","nodeType":"YulIdentifier","src":"3065:2:31"},{"name":"_1","nodeType":"YulIdentifier","src":"3069:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3061:3:31"},"nodeType":"YulFunctionCall","src":"3061:11:31"},"variables":[{"name":"src","nodeType":"YulTypedName","src":"3054:3:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"3137:92:31","statements":[{"expression":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"3158:3:31"},{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3182:3:31"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"3163:18:31"},"nodeType":"YulFunctionCall","src":"3163:23:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3151:6:31"},"nodeType":"YulFunctionCall","src":"3151:36:31"},"nodeType":"YulExpressionStatement","src":"3151:36:31"},{"nodeType":"YulAssignment","src":"3200:19:31","value":{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"3211:3:31"},{"name":"_1","nodeType":"YulIdentifier","src":"3216:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3207:3:31"},"nodeType":"YulFunctionCall","src":"3207:12:31"},"variableNames":[{"name":"dst","nodeType":"YulIdentifier","src":"3200:3:31"}]}]},"condition":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3092:3:31"},{"name":"srcEnd","nodeType":"YulIdentifier","src":"3097:6:31"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"3089:2:31"},"nodeType":"YulFunctionCall","src":"3089:15:31"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"3105:23:31","statements":[{"nodeType":"YulAssignment","src":"3107:19:31","value":{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"3118:3:31"},{"name":"_1","nodeType":"YulIdentifier","src":"3123:2:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3114:3:31"},"nodeType":"YulFunctionCall","src":"3114:12:31"},"variableNames":[{"name":"src","nodeType":"YulIdentifier","src":"3107:3:31"}]}]},"pre":{"nodeType":"YulBlock","src":"3085:3:31","statements":[]},"src":"3081:148:31"},{"nodeType":"YulAssignment","src":"3238:15:31","value":{"name":"dst_1","nodeType":"YulIdentifier","src":"3248:5:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"3238:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"3262:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3295:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3306:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3291:3:31"},"nodeType":"YulFunctionCall","src":"3291:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3278:12:31"},"nodeType":"YulFunctionCall","src":"3278:32:31"},"variables":[{"name":"offset_1","nodeType":"YulTypedName","src":"3266:8:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"3339:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3348:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3351:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3341:6:31"},"nodeType":"YulFunctionCall","src":"3341:12:31"},"nodeType":"YulExpressionStatement","src":"3341:12:31"}]},"condition":{"arguments":[{"name":"offset_1","nodeType":"YulIdentifier","src":"3325:8:31"},{"name":"_2","nodeType":"YulIdentifier","src":"3335:2:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3322:2:31"},"nodeType":"YulFunctionCall","src":"3322:16:31"},"nodeType":"YulIf","src":"3319:36:31"},{"nodeType":"YulAssignment","src":"3364:72:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3406:9:31"},{"name":"offset_1","nodeType":"YulIdentifier","src":"3417:8:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3402:3:31"},"nodeType":"YulFunctionCall","src":"3402:24:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3428:7:31"}],"functionName":{"name":"abi_decode_array_uint16_dyn","nodeType":"YulIdentifier","src":"3374:27:31"},"nodeType":"YulFunctionCall","src":"3374:62:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"3364:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_array$_t_address_$dyn_memory_ptrt_array$_t_uint16_$dyn_memory_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2329:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"2340:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"2352:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"2360:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"2368:6:31","type":""}],"src":"2226:1216:31"},{"body":{"nodeType":"YulBlock","src":"3548:125:31","statements":[{"nodeType":"YulAssignment","src":"3558:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3570:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3581:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3566:3:31"},"nodeType":"YulFunctionCall","src":"3566:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3558:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3600:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"3615:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"3623:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"3611:3:31"},"nodeType":"YulFunctionCall","src":"3611:55:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3593:6:31"},"nodeType":"YulFunctionCall","src":"3593:74:31"},"nodeType":"YulExpressionStatement","src":"3593:74:31"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3517:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3528:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3539:4:31","type":""}],"src":"3447:226:31"},{"body":{"nodeType":"YulBlock","src":"3779:76:31","statements":[{"nodeType":"YulAssignment","src":"3789:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3801:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3812:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3797:3:31"},"nodeType":"YulFunctionCall","src":"3797:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3789:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3831:9:31"},{"name":"value0","nodeType":"YulIdentifier","src":"3842:6:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3824:6:31"},"nodeType":"YulFunctionCall","src":"3824:25:31"},"nodeType":"YulExpressionStatement","src":"3824:25:31"}]},"name":"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3748:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3759:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3770:4:31","type":""}],"src":"3678:177:31"},{"body":{"nodeType":"YulBlock","src":"3989:168:31","statements":[{"nodeType":"YulAssignment","src":"3999:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4011:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4022:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4007:3:31"},"nodeType":"YulFunctionCall","src":"4007:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3999:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4041:9:31"},{"name":"value0","nodeType":"YulIdentifier","src":"4052:6:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4034:6:31"},"nodeType":"YulFunctionCall","src":"4034:25:31"},"nodeType":"YulExpressionStatement","src":"4034:25:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4079:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4090:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4075:3:31"},"nodeType":"YulFunctionCall","src":"4075:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"4099:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"4107:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"4095:3:31"},"nodeType":"YulFunctionCall","src":"4095:55:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4068:6:31"},"nodeType":"YulFunctionCall","src":"4068:83:31"},"nodeType":"YulExpressionStatement","src":"4068:83:31"}]},"name":"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3950:9:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"3961:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3969:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3980:4:31","type":""}],"src":"3860:297:31"},{"body":{"nodeType":"YulBlock","src":"4240:199:31","statements":[{"body":{"nodeType":"YulBlock","src":"4286:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4295:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4298:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4288:6:31"},"nodeType":"YulFunctionCall","src":"4288:12:31"},"nodeType":"YulExpressionStatement","src":"4288:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"4261:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"4270:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4257:3:31"},"nodeType":"YulFunctionCall","src":"4257:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"4282:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"4253:3:31"},"nodeType":"YulFunctionCall","src":"4253:32:31"},"nodeType":"YulIf","src":"4250:52:31"},{"nodeType":"YulVariableDeclaration","src":"4311:29:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4330:9:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"4324:5:31"},"nodeType":"YulFunctionCall","src":"4324:16:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"4315:5:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"4393:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4402:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4405:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4395:6:31"},"nodeType":"YulFunctionCall","src":"4395:12:31"},"nodeType":"YulExpressionStatement","src":"4395:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4362:5:31"},{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4383:5:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4376:6:31"},"nodeType":"YulFunctionCall","src":"4376:13:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4369:6:31"},"nodeType":"YulFunctionCall","src":"4369:21:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"4359:2:31"},"nodeType":"YulFunctionCall","src":"4359:32:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4352:6:31"},"nodeType":"YulFunctionCall","src":"4352:40:31"},"nodeType":"YulIf","src":"4349:60:31"},{"nodeType":"YulAssignment","src":"4418:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"4428:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"4418:6:31"}]}]},"name":"abi_decode_tuple_t_bool_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4206:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"4217:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"4229:6:31","type":""}],"src":"4162:277:31"},{"body":{"nodeType":"YulBlock","src":"4618:162:31","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4635:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4646:2:31","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4628:6:31"},"nodeType":"YulFunctionCall","src":"4628:21:31"},"nodeType":"YulExpressionStatement","src":"4628:21:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4669:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4680:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4665:3:31"},"nodeType":"YulFunctionCall","src":"4665:18:31"},{"kind":"number","nodeType":"YulLiteral","src":"4685:2:31","type":"","value":"12"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4658:6:31"},"nodeType":"YulFunctionCall","src":"4658:30:31"},"nodeType":"YulExpressionStatement","src":"4658:30:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4708:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4719:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4704:3:31"},"nodeType":"YulFunctionCall","src":"4704:18:31"},{"hexValue":"556e617574686f72697a6564","kind":"string","nodeType":"YulLiteral","src":"4724:14:31","type":"","value":"Unauthorized"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4697:6:31"},"nodeType":"YulFunctionCall","src":"4697:42:31"},"nodeType":"YulExpressionStatement","src":"4697:42:31"},{"nodeType":"YulAssignment","src":"4748:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4760:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4771:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4756:3:31"},"nodeType":"YulFunctionCall","src":"4756:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"4748:4:31"}]}]},"name":"abi_encode_tuple_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4595:9:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"4609:4:31","type":""}],"src":"4444:336:31"},{"body":{"nodeType":"YulBlock","src":"4959:170:31","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4976:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4987:2:31","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4969:6:31"},"nodeType":"YulFunctionCall","src":"4969:21:31"},"nodeType":"YulExpressionStatement","src":"4969:21:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5010:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5021:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5006:3:31"},"nodeType":"YulFunctionCall","src":"5006:18:31"},{"kind":"number","nodeType":"YulLiteral","src":"5026:2:31","type":"","value":"20"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4999:6:31"},"nodeType":"YulFunctionCall","src":"4999:30:31"},"nodeType":"YulExpressionStatement","src":"4999:30:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5049:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5060:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5045:3:31"},"nodeType":"YulFunctionCall","src":"5045:18:31"},{"hexValue":"4172726179734c656e6774684d69736d61746368","kind":"string","nodeType":"YulLiteral","src":"5065:22:31","type":"","value":"ArraysLengthMismatch"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5038:6:31"},"nodeType":"YulFunctionCall","src":"5038:50:31"},"nodeType":"YulExpressionStatement","src":"5038:50:31"},{"nodeType":"YulAssignment","src":"5097:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5109:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5120:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5105:3:31"},"nodeType":"YulFunctionCall","src":"5105:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5097:4:31"}]}]},"name":"abi_encode_tuple_t_stringliteral_3c58f19163f601dd85ead03796119784c7f52032728be2538d5061c7e5c87c99__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4936:9:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"4950:4:31","type":""}],"src":"4785:344:31"},{"body":{"nodeType":"YulBlock","src":"5166:152:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5183:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5186:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5176:6:31"},"nodeType":"YulFunctionCall","src":"5176:88:31"},"nodeType":"YulExpressionStatement","src":"5176:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5280:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"5283:4:31","type":"","value":"0x32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5273:6:31"},"nodeType":"YulFunctionCall","src":"5273:15:31"},"nodeType":"YulExpressionStatement","src":"5273:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5304:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5307:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5297:6:31"},"nodeType":"YulFunctionCall","src":"5297:15:31"},"nodeType":"YulExpressionStatement","src":"5297:15:31"}]},"name":"panic_error_0x32","nodeType":"YulFunctionDefinition","src":"5134:184:31"},{"body":{"nodeType":"YulBlock","src":"5497:176:31","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5514:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5525:2:31","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5507:6:31"},"nodeType":"YulFunctionCall","src":"5507:21:31"},"nodeType":"YulExpressionStatement","src":"5507:21:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5548:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5559:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5544:3:31"},"nodeType":"YulFunctionCall","src":"5544:18:31"},{"kind":"number","nodeType":"YulLiteral","src":"5564:2:31","type":"","value":"26"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5537:6:31"},"nodeType":"YulFunctionCall","src":"5537:30:31"},"nodeType":"YulExpressionStatement","src":"5537:30:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5587:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5598:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5583:3:31"},"nodeType":"YulFunctionCall","src":"5583:18:31"},{"hexValue":"66656520646973636f756e742065786563656564732031303025","kind":"string","nodeType":"YulLiteral","src":"5603:28:31","type":"","value":"fee discount execeeds 100%"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5576:6:31"},"nodeType":"YulFunctionCall","src":"5576:56:31"},"nodeType":"YulExpressionStatement","src":"5576:56:31"},{"nodeType":"YulAssignment","src":"5641:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5653:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5664:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5649:3:31"},"nodeType":"YulFunctionCall","src":"5649:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5641:4:31"}]}]},"name":"abi_encode_tuple_t_stringliteral_f73b17d3ca641c2b52f75f4a055c27b2da4da29789376898c173e019d125ee4b__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5474:9:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"5488:4:31","type":""}],"src":"5323:350:31"},{"body":{"nodeType":"YulBlock","src":"5833:254:31","statements":[{"nodeType":"YulAssignment","src":"5843:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5855:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5866:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5851:3:31"},"nodeType":"YulFunctionCall","src":"5851:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5843:4:31"}]},{"nodeType":"YulVariableDeclaration","src":"5878:52:31","value":{"kind":"number","nodeType":"YulLiteral","src":"5888:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"5882:2:31","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5946:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"5961:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"5969:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"5957:3:31"},"nodeType":"YulFunctionCall","src":"5957:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5939:6:31"},"nodeType":"YulFunctionCall","src":"5939:34:31"},"nodeType":"YulExpressionStatement","src":"5939:34:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5993:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"6004:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5989:3:31"},"nodeType":"YulFunctionCall","src":"5989:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"6013:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"6021:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6009:3:31"},"nodeType":"YulFunctionCall","src":"6009:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5982:6:31"},"nodeType":"YulFunctionCall","src":"5982:43:31"},"nodeType":"YulExpressionStatement","src":"5982:43:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6045:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"6056:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6041:3:31"},"nodeType":"YulFunctionCall","src":"6041:18:31"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"6065:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"6073:6:31","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6061:3:31"},"nodeType":"YulFunctionCall","src":"6061:19:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6034:6:31"},"nodeType":"YulFunctionCall","src":"6034:47:31"},"nodeType":"YulExpressionStatement","src":"6034:47:31"}]},"name":"abi_encode_tuple_t_address_t_address_t_uint16__to_t_address_t_address_t_uint16__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5786:9:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"5797:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"5805:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"5813:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"5824:4:31","type":""}],"src":"5678:409:31"},{"body":{"nodeType":"YulBlock","src":"6139:302:31","statements":[{"body":{"nodeType":"YulBlock","src":"6238:168:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6259:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6262:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6252:6:31"},"nodeType":"YulFunctionCall","src":"6252:88:31"},"nodeType":"YulExpressionStatement","src":"6252:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6360:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"6363:4:31","type":"","value":"0x11"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6353:6:31"},"nodeType":"YulFunctionCall","src":"6353:15:31"},"nodeType":"YulExpressionStatement","src":"6353:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6388:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6391:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"6381:6:31"},"nodeType":"YulFunctionCall","src":"6381:15:31"},"nodeType":"YulExpressionStatement","src":"6381:15:31"}]},"condition":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6155:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"6162:66:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"6152:2:31"},"nodeType":"YulFunctionCall","src":"6152:77:31"},"nodeType":"YulIf","src":"6149:257:31"},{"nodeType":"YulAssignment","src":"6415:20:31","value":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6426:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"6433:1:31","type":"","value":"1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6422:3:31"},"nodeType":"YulFunctionCall","src":"6422:13:31"},"variableNames":[{"name":"ret","nodeType":"YulIdentifier","src":"6415:3:31"}]}]},"name":"increment_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"6121:5:31","type":""}],"returnVariables":[{"name":"ret","nodeType":"YulTypedName","src":"6131:3:31","type":""}],"src":"6092:349:31"}]},"contents":"{\n    { }\n    function abi_decode_address(offset) -> value\n    {\n        value := calldataload(offset)\n        if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_address(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        value0 := abi_decode_address(headStart)\n        value1 := abi_decode_address(add(headStart, 32))\n    }\n    function abi_encode_tuple_t_uint16__to_t_uint16__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffff))\n    }\n    function panic_error_0x41()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\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), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0))\n        if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n        mstore(64, newFreePtr)\n    }\n    function array_allocation_size_array_address_dyn(length) -> size\n    {\n        if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n        size := add(shl(5, length), 0x20)\n    }\n    function abi_decode_array_uint16_dyn(offset, end) -> array\n    {\n        if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) }\n        let _1 := calldataload(offset)\n        let _2 := 0x20\n        let dst := allocate_memory(array_allocation_size_array_address_dyn(_1))\n        let dst_1 := dst\n        mstore(dst, _1)\n        dst := add(dst, _2)\n        let srcEnd := add(add(offset, shl(5, _1)), _2)\n        if gt(srcEnd, end) { revert(0, 0) }\n        let src := add(offset, _2)\n        for { } lt(src, srcEnd) { src := add(src, _2) }\n        {\n            let value := calldataload(src)\n            if iszero(eq(value, and(value, 0xffff)))\n            {\n                let _3 := 0\n                revert(_3, _3)\n            }\n            mstore(dst, value)\n            dst := add(dst, _2)\n        }\n        array := dst_1\n    }\n    function abi_decode_tuple_t_addresst_array$_t_address_$dyn_memory_ptrt_array$_t_uint16_$dyn_memory_ptr(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        value0 := abi_decode_address(headStart)\n        let _1 := 32\n        let offset := calldataload(add(headStart, _1))\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        let dst := allocate_memory(array_allocation_size_array_address_dyn(_4))\n        let dst_1 := dst\n        mstore(dst, _4)\n        dst := add(dst, _1)\n        let srcEnd := add(add(_3, shl(5, _4)), _1)\n        if gt(srcEnd, dataEnd) { revert(0, 0) }\n        let src := add(_3, _1)\n        for { } lt(src, srcEnd) { src := add(src, _1) }\n        {\n            mstore(dst, abi_decode_address(src))\n            dst := add(dst, _1)\n        }\n        value1 := dst_1\n        let offset_1 := calldataload(add(headStart, 64))\n        if gt(offset_1, _2) { revert(0, 0) }\n        value2 := abi_decode_array_uint16_dyn(add(headStart, offset_1), dataEnd)\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, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, value0)\n    }\n    function abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        mstore(headStart, value0)\n        mstore(add(headStart, 32), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_decode_tuple_t_bool_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, iszero(iszero(value)))) { revert(0, 0) }\n        value0 := value\n    }\n    function abi_encode_tuple_t_stringliteral_1b2638459828301e8cd6c7c02856073bacf975379e0867f689bb14feacb780c5__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n    {\n        mstore(headStart, 32)\n        mstore(add(headStart, 32), 12)\n        mstore(add(headStart, 64), \"Unauthorized\")\n        tail := add(headStart, 96)\n    }\n    function abi_encode_tuple_t_stringliteral_3c58f19163f601dd85ead03796119784c7f52032728be2538d5061c7e5c87c99__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), \"ArraysLengthMismatch\")\n        tail := add(headStart, 96)\n    }\n    function panic_error_0x32()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n        mstore(4, 0x32)\n        revert(0, 0x24)\n    }\n    function abi_encode_tuple_t_stringliteral_f73b17d3ca641c2b52f75f4a055c27b2da4da29789376898c173e019d125ee4b__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), \"fee discount execeeds 100%\")\n        tail := add(headStart, 96)\n    }\n    function abi_encode_tuple_t_address_t_address_t_uint16__to_t_address_t_address_t_uint16__fromStack_reversed(headStart, value2, value1, value0) -> tail\n    {\n        tail := add(headStart, 96)\n        let _1 := 0xffffffffffffffffffffffffffffffffffffffff\n        mstore(headStart, and(value0, _1))\n        mstore(add(headStart, 32), and(value1, _1))\n        mstore(add(headStart, 64), and(value2, 0xffff))\n    }\n    function increment_t_uint256(value) -> ret\n    {\n        if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n        {\n            mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n            mstore(4, 0x11)\n            revert(0, 0x24)\n        }\n        ret := add(value, 1)\n    }\n}","id":31,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{"3685":[{"length":32,"start":211},{"length":32,"start":419}]},"linkReferences":{},"object":"608060405234801561001057600080fd5b50600436106100675760003560e01c8063978e13ea11610050578063978e13ea146100b9578063a7b64b04146100ce578063d2426f071461011a57600080fd5b80631101ce3e1461006c57806351f8ba46146100b0575b600080fd5b61009861007a366004610538565b600060208181529281526040808220909352908152205461ffff1681565b60405161ffff90911681526020015b60405180910390f35b6100986103e881565b6100cc6100c7366004610689565b61014f565b005b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a7565b6101417fa49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e881565b6040519081526020016100a7565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527fa49c1b804bb17a3ecb97d6c1ee253d7e7bf88b50d66ba600bb4b026e1fb144e860048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa1580156101ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610223919061075b565b61028e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e617574686f72697a6564000000000000000000000000000000000000000060448201526064015b60405180910390fd5b80518251146102f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4172726179734c656e6774684d69736d617463680000000000000000000000006044820152606401610285565b60005b8251811015610509576103e861ffff1682828151811061031e5761031e610784565b602002602001015161ffff161115610392576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f66656520646973636f756e7420657865636565647320313030250000000000006044820152606401610285565b8181815181106103a4576103a4610784565b60200260200101516000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008584815181106103fe576103fe610784565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055507f7a30dcbbc729b723963056eb5780229274194a05bbe6fe5174b8864d96c37a2c8484838151811061048e5761048e610784565b60200260200101518484815181106104a8576104a8610784565b60200260200101516040516104ef9392919073ffffffffffffffffffffffffffffffffffffffff938416815291909216602082015261ffff91909116604082015260600190565b60405180910390a180610501816107b3565b9150506102fc565b50505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461053357600080fd5b919050565b6000806040838503121561054b57600080fd5b6105548361050f565b91506105626020840161050f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e1576105e161056b565b604052919050565b600067ffffffffffffffff8211156106035761060361056b565b5060051b60200190565b600082601f83011261061e57600080fd5b8135602061063361062e836105e9565b61059a565b82815260059290921b8401810191818101908684111561065257600080fd5b8286015b8481101561067e57803561ffff811681146106715760008081fd5b8352918301918301610656565b509695505050505050565b60008060006060848603121561069e57600080fd5b6106a78461050f565b925060208085013567ffffffffffffffff808211156106c557600080fd5b818701915087601f8301126106d957600080fd5b81356106e761062e826105e9565b81815260059190911b8301840190848101908a83111561070657600080fd5b938501935b8285101561072b5761071c8561050f565b8252938501939085019061070b565b96505050604087013592508083111561074357600080fd5b50506107518682870161060d565b9150509250925092565b60006020828403121561076d57600080fd5b8151801515811461077d57600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361080b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x67 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x978E13EA GT PUSH2 0x50 JUMPI DUP1 PUSH4 0x978E13EA EQ PUSH2 0xB9 JUMPI DUP1 PUSH4 0xA7B64B04 EQ PUSH2 0xCE JUMPI DUP1 PUSH4 0xD2426F07 EQ PUSH2 0x11A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1101CE3E EQ PUSH2 0x6C JUMPI DUP1 PUSH4 0x51F8BA46 EQ PUSH2 0xB0 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x98 PUSH2 0x7A CALLDATASIZE PUSH1 0x4 PUSH2 0x538 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP2 DUP2 MSTORE SWAP3 DUP2 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP1 SWAP4 MSTORE SWAP1 DUP2 MSTORE KECCAK256 SLOAD PUSH2 0xFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x98 PUSH2 0x3E8 DUP2 JUMP JUMPDEST PUSH2 0xCC PUSH2 0xC7 CALLDATASIZE PUSH1 0x4 PUSH2 0x689 JUMP JUMPDEST PUSH2 0x14F JUMP JUMPDEST STOP JUMPDEST PUSH2 0xF5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xA7 JUMP JUMPDEST PUSH2 0x141 PUSH32 0xA49C1B804BB17A3ECB97D6C1EE253D7E7BF88B50D66BA600BB4B026E1FB144E8 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xA7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0xA49C1B804BB17A3ECB97D6C1EE253D7E7BF88B50D66BA600BB4B026E1FB144E8 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x1FF 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 0x223 SWAP2 SWAP1 PUSH2 0x75B JUMP JUMPDEST PUSH2 0x28E JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x556E617574686F72697A65640000000000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 MLOAD DUP3 MLOAD EQ PUSH2 0x2F9 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4172726179734C656E6774684D69736D61746368000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x285 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x509 JUMPI PUSH2 0x3E8 PUSH2 0xFFFF AND DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x31E JUMPI PUSH2 0x31E PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0xFFFF AND GT ISZERO PUSH2 0x392 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1A PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x66656520646973636F756E742065786563656564732031303025000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x285 JUMP JUMPDEST DUP2 DUP2 DUP2 MLOAD DUP2 LT PUSH2 0x3A4 JUMPI PUSH2 0x3A4 PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x0 DUP1 DUP7 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x0 DUP6 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x3FE JUMPI PUSH2 0x3FE PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH2 0xFFFF MUL NOT AND SWAP1 DUP4 PUSH2 0xFFFF AND MUL OR SWAP1 SSTORE POP PUSH32 0x7A30DCBBC729B723963056EB5780229274194A05BBE6FE5174B8864D96C37A2C DUP5 DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x48E JUMPI PUSH2 0x48E PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4A8 JUMPI PUSH2 0x4A8 PUSH2 0x784 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x40 MLOAD PUSH2 0x4EF SWAP4 SWAP3 SWAP2 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP4 DUP5 AND DUP2 MSTORE SWAP2 SWAP1 SWAP3 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH2 0xFFFF SWAP2 SWAP1 SWAP2 AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 DUP1 PUSH2 0x501 DUP2 PUSH2 0x7B3 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x2FC JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x533 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x54B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x554 DUP4 PUSH2 0x50F JUMP JUMPDEST SWAP2 POP PUSH2 0x562 PUSH1 0x20 DUP5 ADD PUSH2 0x50F JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1F DUP3 ADD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 AND DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x5E1 JUMPI PUSH2 0x5E1 PUSH2 0x56B JUMP JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x603 JUMPI PUSH2 0x603 PUSH2 0x56B JUMP JUMPDEST POP PUSH1 0x5 SHL PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x61E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x20 PUSH2 0x633 PUSH2 0x62E DUP4 PUSH2 0x5E9 JUMP JUMPDEST PUSH2 0x59A JUMP JUMPDEST DUP3 DUP2 MSTORE PUSH1 0x5 SWAP3 SWAP1 SWAP3 SHL DUP5 ADD DUP2 ADD SWAP2 DUP2 DUP2 ADD SWAP1 DUP7 DUP5 GT ISZERO PUSH2 0x652 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 DUP7 ADD JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x67E JUMPI DUP1 CALLDATALOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x671 JUMPI PUSH1 0x0 DUP1 DUP2 REVERT JUMPDEST DUP4 MSTORE SWAP2 DUP4 ADD SWAP2 DUP4 ADD PUSH2 0x656 JUMP JUMPDEST POP SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x69E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x6A7 DUP5 PUSH2 0x50F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP1 DUP6 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x6C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 DUP8 ADD SWAP2 POP DUP8 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x6D9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x6E7 PUSH2 0x62E DUP3 PUSH2 0x5E9 JUMP JUMPDEST DUP2 DUP2 MSTORE PUSH1 0x5 SWAP2 SWAP1 SWAP2 SHL DUP4 ADD DUP5 ADD SWAP1 DUP5 DUP2 ADD SWAP1 DUP11 DUP4 GT ISZERO PUSH2 0x706 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 DUP6 ADD SWAP4 JUMPDEST DUP3 DUP6 LT ISZERO PUSH2 0x72B JUMPI PUSH2 0x71C DUP6 PUSH2 0x50F JUMP JUMPDEST DUP3 MSTORE SWAP4 DUP6 ADD SWAP4 SWAP1 DUP6 ADD SWAP1 PUSH2 0x70B JUMP JUMPDEST SWAP7 POP POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP3 POP DUP1 DUP4 GT ISZERO PUSH2 0x743 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP PUSH2 0x751 DUP7 DUP3 DUP8 ADD PUSH2 0x60D JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x76D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x77D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 SUB PUSH2 0x80B JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"192:1023:25:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;495:75;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;654:6:31;642:19;;;624:38;;612:2;597:18;495:75:25;;;;;;;;394:63;;453:4;394:63;;659:554;;;;;;:::i;:::-;;:::i;:::-;;249:48;;;;;;;;3623:42:31;3611:55;;;3593:74;;3581:2;3566:18;249:48:25;3447:226:31;301:89:25;;357:33;301:89;;;;;3824:25:31;;;3812:2;3797:18;301:89:25;3678:177:31;659:554:25;783:80;;;;;357:33;783:80;;;4034:25:31;852:10:25;4075:18:31;;;4068:83;799:14:25;783:46;;;;;4007:18:31;;783:80:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;775:105;;;;;;;4646:2:31;775:105:25;;;4628:21:31;4685:2;4665:18;;;4658:30;4724:14;4704:18;;;4697:42;4756:18;;775:105:25;;;;;;;;;910:12;:19;894:5;:12;:35;886:68;;;;;;;4987:2:31;886:68:25;;;4969:21:31;5026:2;5006:18;;;4999:30;5065:22;5045:18;;;5038:50;5105:18;;886:68:25;4785:344:31;886:68:25;966:6;961:248;982:5;:12;978:1;:16;961:248;;;453:4;1017:43;;:12;1030:1;1017:15;;;;;;;;:::i;:::-;;;;;;;:43;;;;1009:82;;;;;;;5525:2:31;1009:82:25;;;5507:21:31;5564:2;5544:18;;;5537:30;5603:28;5583:18;;;5576:56;5649:18;;1009:82:25;5323:350:31;1009:82:25;1130:12;1143:1;1130:15;;;;;;;;:::i;:::-;;;;;;;1099:12;:18;1112:4;1099:18;;;;;;;;;;;;;;;:28;1118:5;1124:1;1118:8;;;;;;;;:::i;:::-;;;;;;;1099:28;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;1158:44;1170:4;1176:5;1182:1;1176:8;;;;;;;;:::i;:::-;;;;;;;1186:12;1199:1;1186:15;;;;;;;;:::i;:::-;;;;;;;1158:44;;;;;;;5888:42:31;5957:15;;;5939:34;;6009:15;;;;6004:2;5989:18;;5982:43;6073:6;6061:19;;;;6056:2;6041:18;;6034:47;5866:2;5851:18;;5678:409;1158:44:25;;;;;;;;996:3;;;;:::i;:::-;;;;961:248;;;;659:554;;;:::o;14:196:31:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:260::-;283:6;291;344:2;332:9;323:7;319:23;315:32;312:52;;;360:1;357;350:12;312:52;383:29;402:9;383:29;:::i;:::-;373:39;;431:38;465:2;454:9;450:18;431:38;:::i;:::-;421:48;;215:260;;;;;:::o;673:184::-;725:77;722:1;715:88;822:4;819:1;812:15;846:4;843:1;836:15;862:334;933:2;927:9;989:2;979:13;;994:66;975:86;963:99;;1092:18;1077:34;;1113:22;;;1074:62;1071:88;;;1139:18;;:::i;:::-;1175:2;1168:22;862:334;;-1:-1:-1;862:334:31:o;1201:183::-;1261:4;1294:18;1286:6;1283:30;1280:56;;;1316:18;;:::i;:::-;-1:-1:-1;1361:1:31;1357:14;1373:4;1353:25;;1201:183::o;1389:832::-;1442:5;1495:3;1488:4;1480:6;1476:17;1472:27;1462:55;;1513:1;1510;1503:12;1462:55;1549:6;1536:20;1575:4;1599:60;1615:43;1655:2;1615:43;:::i;:::-;1599:60;:::i;:::-;1693:15;;;1779:1;1775:10;;;;1763:23;;1759:32;;;1724:12;;;;1803:15;;;1800:35;;;1831:1;1828;1821:12;1800:35;1867:2;1859:6;1855:15;1879:313;1895:6;1890:3;1887:15;1879:313;;;1975:3;1962:17;2023:6;2016:5;2012:18;2005:5;2002:29;1992:127;;2073:1;2102:2;2098;2091:14;1992:127;2132:18;;2170:12;;;;1912;;1879:313;;;-1:-1:-1;2210:5:31;1389:832;-1:-1:-1;;;;;;1389:832:31:o;2226:1216::-;2352:6;2360;2368;2421:2;2409:9;2400:7;2396:23;2392:32;2389:52;;;2437:1;2434;2427:12;2389:52;2460:29;2479:9;2460:29;:::i;:::-;2450:39;;2508:2;2561;2550:9;2546:18;2533:32;2584:18;2625:2;2617:6;2614:14;2611:34;;;2641:1;2638;2631:12;2611:34;2679:6;2668:9;2664:22;2654:32;;2724:7;2717:4;2713:2;2709:13;2705:27;2695:55;;2746:1;2743;2736:12;2695:55;2782:2;2769:16;2805:60;2821:43;2861:2;2821:43;:::i;2805:60::-;2899:15;;;2981:1;2977:10;;;;2969:19;;2965:28;;;2930:12;;;;3005:19;;;3002:39;;;3037:1;3034;3027:12;3002:39;3061:11;;;;3081:148;3097:6;3092:3;3089:15;3081:148;;;3163:23;3182:3;3163:23;:::i;:::-;3151:36;;3114:12;;;;3207;;;;3081:148;;;3248:5;-1:-1:-1;;;3306:2:31;3291:18;;3278:32;;-1:-1:-1;3322:16:31;;;3319:36;;;3351:1;3348;3341:12;3319:36;;;3374:62;3428:7;3417:8;3406:9;3402:24;3374:62;:::i;:::-;3364:72;;;2226:1216;;;;;:::o;4162:277::-;4229:6;4282:2;4270:9;4261:7;4257:23;4253:32;4250:52;;;4298:1;4295;4288:12;4250:52;4330:9;4324:16;4383:5;4376:13;4369:21;4362:5;4359:32;4349:60;;4405:1;4402;4395:12;4349:60;4428:5;4162:277;-1:-1:-1;;;4162:277:31:o;5134:184::-;5186:77;5183:1;5176:88;5283:4;5280:1;5273:15;5307:4;5304:1;5297:15;6092:349;6131:3;6162:66;6155:5;6152:77;6149:257;;6262:77;6259:1;6252:88;6363:4;6360:1;6353:15;6391:4;6388:1;6381:15;6149:257;-1:-1:-1;6433:1:31;6422:13;;6092:349::o"},"methodIdentifiers":{"FEE_DISCOUNT_DENOMINATOR()":"51f8ba46","FEE_DISCOUNT_MANAGER()":"d2426f07","algebraFactory()":"a7b64b04","feeDiscounts(address,address)":"1101ce3e","setFeeDiscount(address,address[],uint16[])":"978e13ea"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_algebraFactory\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDiscount\",\"type\":\"uint16\"}],\"name\":\"FeeDiscount\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"algebraFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"feeDiscounts\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"pools\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"newDiscounts\",\"type\":\"uint16[]\"}],\"name\":\"setFeeDiscount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FeeDiscountRegistry.sol\":\"FeeDiscountRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"contracts/FeeDiscountRegistry.sol\":{\"keccak256\":\"0x5ee05276b2a245e858538f84987eca1371566e1e791be88e0bd190fdeeec694a\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://cb55f0ae647736ab13a4db25b0e0458058fd8cdf80e683d074e3cc49febbe798\",\"dweb:/ipfs/QmeDk1i2dsAf8w3J8rMaFxmXoNGjqiW6PxpiZH9X3wdRQM\"]},\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountPlugin.sol":{"IFeeDiscountPlugin":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"feeDiscountRegistry()":"f20cdc1a","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountPlugin.sol\":\"IFeeDiscountPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountRegistry.sol":{"IFeeDiscountRegistry":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint16","name":"newDiscount","type":"uint16"}],"name":"FeeDiscount","type":"event"},{"inputs":[],"name":"FEE_DISCOUNT_DENOMINATOR","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"FEE_DISCOUNT_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"algebraFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"pool","type":"address"}],"name":"feeDiscounts","outputs":[{"internalType":"uint16","name":"feeDiscount","type":"uint16"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address[]","name":"pools","type":"address[]"},{"internalType":"uint16[]","name":"newDiscounts","type":"uint16[]"}],"name":"setFeeDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"FEE_DISCOUNT_DENOMINATOR()":"51f8ba46","FEE_DISCOUNT_MANAGER()":"d2426f07","algebraFactory()":"a7b64b04","feeDiscounts(address,address)":"1101ce3e","setFeeDiscount(address,address[],uint16[])":"978e13ea"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDiscount\",\"type\":\"uint16\"}],\"name\":\"FeeDiscount\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"algebraFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"feeDiscounts\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"feeDiscount\",\"type\":\"uint16\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"pools\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"newDiscounts\",\"type\":\"uint16[]\"}],\"name\":\"setFeeDiscount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountRegistry.sol\":\"IFeeDiscountRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]}},\"version\":1}"}},"contracts/test/MockFactory.sol":{"MockFactory":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"POOLS_ADMINISTRATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pluginFactory","type":"address"},{"internalType":"address","name":"pool","type":"address"}],"name":"beforeCreatePoolHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRoleOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"poolByPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"address","name":"pool","type":"address"}],"name":"stubPool","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{"@_3886":{"entryPoint":null,"id":3886,"parameterSlots":0,"returnSlots":0}},"generatedSources":[],"linkReferences":{},"object":"608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610594806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063b500a48b11610076578063d9a641e11161005b578063d9a641e114610247578063e8ae2b6914610288578063f89b66ec1461029b57600080fd5b8063b500a48b146101ae578063d547741f146101e357600080fd5b80632cb8189e146100a85780632f2ff15d146100bd5780638da5cb5b14610126578063ac4ab3fb14610170575b600080fd5b6100bb6100b6366004610495565b610327565b005b6100bb6100cb3660046104ce565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020818152604080842094845293905291902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b6000546101469073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61019e61017e3660046104f3565b600160209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610167565b6101d57fb73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad344281565b604051908152602001610167565b6100bb6101f13660046104ce565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602090815260408083209383529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610146610255366004610495565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b61019e6102963660046104ce565b61040f565b6100bb6102a936600461051f565b73ffffffffffffffffffffffffffffffffffffffff928316600081815260026020818152604080842096881684529581528583208054979095167fffffffffffffffffffffffff0000000000000000000000000000000000000000978816811790955590815284822092825291909152919091208054909216179055565b6040517f1d0338d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000602483018190526044830181905260648301819052608483015260c060a4830152600260c48301527f307800000000000000000000000000000000000000000000000000000000000060e4830152831690631d0338d990610104016020604051808303816000875af11580156103e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a919061056a565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff83811691161480610469575073ffffffffffffffffffffffffffffffffffffffff8216600090815260016020908152604080832086845290915290205460ff165b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461049257600080fd5b50565b600080604083850312156104a857600080fd5b82356104b381610470565b915060208301356104c381610470565b809150509250929050565b600080604083850312156104e157600080fd5b8235915060208301356104c381610470565b6000806040838503121561050657600080fd5b823561051181610470565b946020939093013593505050565b60008060006060848603121561053457600080fd5b833561053f81610470565b9250602084013561054f81610470565b9150604084013561055f81610470565b809150509250925092565b60006020828403121561057c57600080fd5b81516104698161047056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH2 0x594 DUP1 PUSH2 0x32 PUSH1 0x0 CODECOPY 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 0xA3 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB500A48B GT PUSH2 0x76 JUMPI DUP1 PUSH4 0xD9A641E1 GT PUSH2 0x5B JUMPI DUP1 PUSH4 0xD9A641E1 EQ PUSH2 0x247 JUMPI DUP1 PUSH4 0xE8AE2B69 EQ PUSH2 0x288 JUMPI DUP1 PUSH4 0xF89B66EC EQ PUSH2 0x29B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xB500A48B EQ PUSH2 0x1AE JUMPI DUP1 PUSH4 0xD547741F EQ PUSH2 0x1E3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x2CB8189E EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0x2F2FF15D EQ PUSH2 0xBD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x126 JUMPI DUP1 PUSH4 0xAC4AB3FB EQ PUSH2 0x170 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xBB PUSH2 0xB6 CALLDATASIZE PUSH1 0x4 PUSH2 0x495 JUMP JUMPDEST PUSH2 0x327 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xBB PUSH2 0xCB CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP5 DUP5 MSTORE SWAP4 SWAP1 MSTORE SWAP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x146 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x19E PUSH2 0x17E CALLDATASIZE PUSH1 0x4 PUSH2 0x4F3 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP1 SWAP2 MSTORE SWAP1 DUP3 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x167 JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0xB73CE166EAD2F8E9ADD217713A7989E4EDFBA9625F71DFD2516204BB67AD3442 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x167 JUMP JUMPDEST PUSH2 0xBB PUSH2 0x1F1 CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 DUP4 MSTORE SWAP3 SWAP1 MSTORE KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x146 PUSH2 0x255 CALLDATASIZE PUSH1 0x4 PUSH2 0x495 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP1 SWAP2 MSTORE SWAP1 DUP3 MSTORE SWAP1 KECCAK256 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x19E PUSH2 0x296 CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH2 0x40F JUMP JUMPDEST PUSH2 0xBB PUSH2 0x2A9 CALLDATASIZE PUSH1 0x4 PUSH2 0x51F JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP7 DUP9 AND DUP5 MSTORE SWAP6 DUP2 MSTORE DUP6 DUP4 KECCAK256 DUP1 SLOAD SWAP8 SWAP1 SWAP6 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP8 DUP9 AND DUP2 OR SWAP1 SWAP6 SSTORE SWAP1 DUP2 MSTORE DUP5 DUP3 KECCAK256 SWAP3 DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE SWAP2 SWAP1 SWAP2 KECCAK256 DUP1 SLOAD SWAP1 SWAP3 AND OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x1D0338D900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE PUSH1 0x0 PUSH1 0x24 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x44 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x64 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP4 ADD MSTORE PUSH1 0xC0 PUSH1 0xA4 DUP4 ADD MSTORE PUSH1 0x2 PUSH1 0xC4 DUP4 ADD MSTORE PUSH32 0x3078000000000000000000000000000000000000000000000000000000000000 PUSH1 0xE4 DUP4 ADD MSTORE DUP4 AND SWAP1 PUSH4 0x1D0338D9 SWAP1 PUSH2 0x104 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x3E6 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 0x40A SWAP2 SWAP1 PUSH2 0x56A JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 DUP2 AND SWAP2 AND EQ DUP1 PUSH2 0x469 JUMPI POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP7 DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x492 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x4A8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x4B3 DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x4C3 DUP2 PUSH2 0x470 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x4E1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x4C3 DUP2 PUSH2 0x470 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x506 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x511 DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x534 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x53F DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x54F DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x55F DUP2 PUSH2 0x470 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x57C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x469 DUP2 PUSH2 0x470 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"218:1072:28:-:0;;;499:45;;;;;;;;;-1:-1:-1;520:5:28;:18;;-1:-1:-1;;;;;;520:18:28;528:10;520:18;;;218:1072;;;;;;"},"deployedBytecode":{"functionDebugData":{"@POOLS_ADMINISTRATOR_ROLE_3863":{"entryPoint":null,"id":3863,"parameterSlots":0,"returnSlots":0},"@beforeCreatePoolHook_3997":{"entryPoint":807,"id":3997,"parameterSlots":2,"returnSlots":0},"@grantRole_3923":{"entryPoint":null,"id":3923,"parameterSlots":2,"returnSlots":0},"@hasRoleOrOwner_3907":{"entryPoint":1039,"id":3907,"parameterSlots":2,"returnSlots":1},"@hasRole_3871":{"entryPoint":null,"id":3871,"parameterSlots":0,"returnSlots":0},"@owner_3865":{"entryPoint":null,"id":3865,"parameterSlots":0,"returnSlots":0},"@poolByPair_3877":{"entryPoint":null,"id":3877,"parameterSlots":0,"returnSlots":0},"@revokeRole_3939":{"entryPoint":null,"id":3939,"parameterSlots":2,"returnSlots":0},"@stubPool_3965":{"entryPoint":null,"id":3965,"parameterSlots":3,"returnSlots":0},"abi_decode_tuple_t_address_fromMemory":{"entryPoint":1386,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_address":{"entryPoint":1173,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_addresst_addresst_address":{"entryPoint":1311,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_addresst_bytes32":{"entryPoint":1267,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_bytes32t_address":{"entryPoint":1230,"id":null,"parameterSlots":2,"returnSlots":2},"abi_encode_tuple_t_address__to_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address_t_address_t_address_t_address_t_address_t_stringliteral_39bef1777deb3dfb14f64b9f81ced092c501fee72f90e93d03bb95ee89df9837__to_t_address_t_address_t_address_t_address_t_address_t_bytes_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":6,"returnSlots":1},"abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"validator_revert_address":{"entryPoint":1136,"id":null,"parameterSlots":1,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:3394:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"59:109:31","statements":[{"body":{"nodeType":"YulBlock","src":"146:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"155:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"158:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"148:6:31"},"nodeType":"YulFunctionCall","src":"148:12:31"},"nodeType":"YulExpressionStatement","src":"148:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"82:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"93:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"100:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"89:3:31"},"nodeType":"YulFunctionCall","src":"89:54:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"79:2:31"},"nodeType":"YulFunctionCall","src":"79:65:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"72:6:31"},"nodeType":"YulFunctionCall","src":"72:73:31"},"nodeType":"YulIf","src":"69:93:31"}]},"name":"validator_revert_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"48:5:31","type":""}],"src":"14:154:31"},{"body":{"nodeType":"YulBlock","src":"260:301:31","statements":[{"body":{"nodeType":"YulBlock","src":"306:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"315:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"318:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"308:6:31"},"nodeType":"YulFunctionCall","src":"308:12:31"},"nodeType":"YulExpressionStatement","src":"308:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"281:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"290:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"277:3:31"},"nodeType":"YulFunctionCall","src":"277:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"302:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"273:3:31"},"nodeType":"YulFunctionCall","src":"273:32:31"},"nodeType":"YulIf","src":"270:52:31"},{"nodeType":"YulVariableDeclaration","src":"331:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"357:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"344:12:31"},"nodeType":"YulFunctionCall","src":"344:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"335:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"401:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"376:24:31"},"nodeType":"YulFunctionCall","src":"376:31:31"},"nodeType":"YulExpressionStatement","src":"376:31:31"},{"nodeType":"YulAssignment","src":"416:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"426:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"416:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"440:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"472:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"483:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"468:3:31"},"nodeType":"YulFunctionCall","src":"468:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"455:12:31"},"nodeType":"YulFunctionCall","src":"455:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"444:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"521:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"496:24:31"},"nodeType":"YulFunctionCall","src":"496:33:31"},"nodeType":"YulExpressionStatement","src":"496:33:31"},{"nodeType":"YulAssignment","src":"538:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"548:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"538:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"218:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"229:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"241:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"249:6:31","type":""}],"src":"173:388:31"},{"body":{"nodeType":"YulBlock","src":"653:228:31","statements":[{"body":{"nodeType":"YulBlock","src":"699:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"708:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"711:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"701:6:31"},"nodeType":"YulFunctionCall","src":"701:12:31"},"nodeType":"YulExpressionStatement","src":"701:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"674:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"683:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"670:3:31"},"nodeType":"YulFunctionCall","src":"670:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"695:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"666:3:31"},"nodeType":"YulFunctionCall","src":"666:32:31"},"nodeType":"YulIf","src":"663:52:31"},{"nodeType":"YulAssignment","src":"724:33:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"747:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"734:12:31"},"nodeType":"YulFunctionCall","src":"734:23:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"724:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"766:45:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"796:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"807:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"792:3:31"},"nodeType":"YulFunctionCall","src":"792:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"779:12:31"},"nodeType":"YulFunctionCall","src":"779:32:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"770:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"845:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"820:24:31"},"nodeType":"YulFunctionCall","src":"820:31:31"},"nodeType":"YulExpressionStatement","src":"820:31:31"},{"nodeType":"YulAssignment","src":"860:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"870:5:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"860:6:31"}]}]},"name":"abi_decode_tuple_t_bytes32t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"611:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"622:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"634:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"642:6:31","type":""}],"src":"566:315:31"},{"body":{"nodeType":"YulBlock","src":"987:125:31","statements":[{"nodeType":"YulAssignment","src":"997:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1009:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1020:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1005:3:31"},"nodeType":"YulFunctionCall","src":"1005:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"997:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1039:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1054:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"1062:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1050:3:31"},"nodeType":"YulFunctionCall","src":"1050:55:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1032:6:31"},"nodeType":"YulFunctionCall","src":"1032:74:31"},"nodeType":"YulExpressionStatement","src":"1032:74:31"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"956:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"967:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"978:4:31","type":""}],"src":"886:226:31"},{"body":{"nodeType":"YulBlock","src":"1204:228:31","statements":[{"body":{"nodeType":"YulBlock","src":"1250:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1259:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1262:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1252:6:31"},"nodeType":"YulFunctionCall","src":"1252:12:31"},"nodeType":"YulExpressionStatement","src":"1252:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"1225:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"1234:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1221:3:31"},"nodeType":"YulFunctionCall","src":"1221:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"1246:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"1217:3:31"},"nodeType":"YulFunctionCall","src":"1217:32:31"},"nodeType":"YulIf","src":"1214:52:31"},{"nodeType":"YulVariableDeclaration","src":"1275:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1301:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1288:12:31"},"nodeType":"YulFunctionCall","src":"1288:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"1279:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"1345:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"1320:24:31"},"nodeType":"YulFunctionCall","src":"1320:31:31"},"nodeType":"YulExpressionStatement","src":"1320:31:31"},{"nodeType":"YulAssignment","src":"1360:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"1370:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"1360:6:31"}]},{"nodeType":"YulAssignment","src":"1384:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1411:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1422:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1407:3:31"},"nodeType":"YulFunctionCall","src":"1407:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1394:12:31"},"nodeType":"YulFunctionCall","src":"1394:32:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"1384:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_bytes32","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1162:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"1173:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"1185:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1193:6:31","type":""}],"src":"1117:315:31"},{"body":{"nodeType":"YulBlock","src":"1532:92:31","statements":[{"nodeType":"YulAssignment","src":"1542:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1554:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1565:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1550:3:31"},"nodeType":"YulFunctionCall","src":"1550:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1542:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1584:9:31"},{"arguments":[{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1609:6:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1602:6:31"},"nodeType":"YulFunctionCall","src":"1602:14:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1595:6:31"},"nodeType":"YulFunctionCall","src":"1595:22:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1577:6:31"},"nodeType":"YulFunctionCall","src":"1577:41:31"},"nodeType":"YulExpressionStatement","src":"1577:41:31"}]},"name":"abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1501:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1512:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1523:4:31","type":""}],"src":"1437:187:31"},{"body":{"nodeType":"YulBlock","src":"1730:76:31","statements":[{"nodeType":"YulAssignment","src":"1740:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1752:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1763:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1748:3:31"},"nodeType":"YulFunctionCall","src":"1748:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1740:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1782:9:31"},{"name":"value0","nodeType":"YulIdentifier","src":"1793:6:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1775:6:31"},"nodeType":"YulFunctionCall","src":"1775:25:31"},"nodeType":"YulExpressionStatement","src":"1775:25:31"}]},"name":"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1699:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1710:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1721:4:31","type":""}],"src":"1629:177:31"},{"body":{"nodeType":"YulBlock","src":"1915:425:31","statements":[{"body":{"nodeType":"YulBlock","src":"1961:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1970:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1973:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1963:6:31"},"nodeType":"YulFunctionCall","src":"1963:12:31"},"nodeType":"YulExpressionStatement","src":"1963:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"1936:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"1945:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1932:3:31"},"nodeType":"YulFunctionCall","src":"1932:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"1957:2:31","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"1928:3:31"},"nodeType":"YulFunctionCall","src":"1928:32:31"},"nodeType":"YulIf","src":"1925:52:31"},{"nodeType":"YulVariableDeclaration","src":"1986:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2012:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1999:12:31"},"nodeType":"YulFunctionCall","src":"1999:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"1990:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"2056:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2031:24:31"},"nodeType":"YulFunctionCall","src":"2031:31:31"},"nodeType":"YulExpressionStatement","src":"2031:31:31"},{"nodeType":"YulAssignment","src":"2071:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"2081:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"2071:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"2095:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2127:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2138:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2123:3:31"},"nodeType":"YulFunctionCall","src":"2123:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2110:12:31"},"nodeType":"YulFunctionCall","src":"2110:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"2099:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"2176:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2151:24:31"},"nodeType":"YulFunctionCall","src":"2151:33:31"},"nodeType":"YulExpressionStatement","src":"2151:33:31"},{"nodeType":"YulAssignment","src":"2193:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"2203:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"2193:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"2219:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2251:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2262:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2247:3:31"},"nodeType":"YulFunctionCall","src":"2247:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2234:12:31"},"nodeType":"YulFunctionCall","src":"2234:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"2223:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"2300:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2275:24:31"},"nodeType":"YulFunctionCall","src":"2275:33:31"},"nodeType":"YulExpressionStatement","src":"2275:33:31"},{"nodeType":"YulAssignment","src":"2317:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"2327:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"2317:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1865:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"1876:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"1888:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1896:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"1904:6:31","type":""}],"src":"1811:529:31"},{"body":{"nodeType":"YulBlock","src":"2658:478:31","statements":[{"nodeType":"YulVariableDeclaration","src":"2668:52:31","value":{"kind":"number","nodeType":"YulLiteral","src":"2678:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"2672:2:31","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2736:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"2751:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2759:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2747:3:31"},"nodeType":"YulFunctionCall","src":"2747:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2729:6:31"},"nodeType":"YulFunctionCall","src":"2729:34:31"},"nodeType":"YulExpressionStatement","src":"2729:34:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2783:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2794:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2779:3:31"},"nodeType":"YulFunctionCall","src":"2779:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"2803:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2811:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2799:3:31"},"nodeType":"YulFunctionCall","src":"2799:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2772:6:31"},"nodeType":"YulFunctionCall","src":"2772:43:31"},"nodeType":"YulExpressionStatement","src":"2772:43:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2835:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2846:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2831:3:31"},"nodeType":"YulFunctionCall","src":"2831:18:31"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"2855:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2863:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2851:3:31"},"nodeType":"YulFunctionCall","src":"2851:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2824:6:31"},"nodeType":"YulFunctionCall","src":"2824:43:31"},"nodeType":"YulExpressionStatement","src":"2824:43:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2887:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2898:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2883:3:31"},"nodeType":"YulFunctionCall","src":"2883:18:31"},{"arguments":[{"name":"value3","nodeType":"YulIdentifier","src":"2907:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2915:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2903:3:31"},"nodeType":"YulFunctionCall","src":"2903:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2876:6:31"},"nodeType":"YulFunctionCall","src":"2876:43:31"},"nodeType":"YulExpressionStatement","src":"2876:43:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2939:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2950:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2935:3:31"},"nodeType":"YulFunctionCall","src":"2935:19:31"},{"arguments":[{"name":"value4","nodeType":"YulIdentifier","src":"2960:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2968:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2956:3:31"},"nodeType":"YulFunctionCall","src":"2956:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2928:6:31"},"nodeType":"YulFunctionCall","src":"2928:44:31"},"nodeType":"YulExpressionStatement","src":"2928:44:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2992:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3003:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2988:3:31"},"nodeType":"YulFunctionCall","src":"2988:19:31"},{"kind":"number","nodeType":"YulLiteral","src":"3009:3:31","type":"","value":"192"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2981:6:31"},"nodeType":"YulFunctionCall","src":"2981:32:31"},"nodeType":"YulExpressionStatement","src":"2981:32:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3033:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3044:3:31","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3029:3:31"},"nodeType":"YulFunctionCall","src":"3029:19:31"},{"kind":"number","nodeType":"YulLiteral","src":"3050:1:31","type":"","value":"2"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3022:6:31"},"nodeType":"YulFunctionCall","src":"3022:30:31"},"nodeType":"YulExpressionStatement","src":"3022:30:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3072:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3083:3:31","type":"","value":"224"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3068:3:31"},"nodeType":"YulFunctionCall","src":"3068:19:31"},{"hexValue":"3078","kind":"string","nodeType":"YulLiteral","src":"3089:4:31","type":"","value":"0x"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3061:6:31"},"nodeType":"YulFunctionCall","src":"3061:33:31"},"nodeType":"YulExpressionStatement","src":"3061:33:31"},{"nodeType":"YulAssignment","src":"3103:27:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3115:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3126:3:31","type":"","value":"256"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3111:3:31"},"nodeType":"YulFunctionCall","src":"3111:19:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3103:4:31"}]}]},"name":"abi_encode_tuple_t_address_t_address_t_address_t_address_t_address_t_stringliteral_39bef1777deb3dfb14f64b9f81ced092c501fee72f90e93d03bb95ee89df9837__to_t_address_t_address_t_address_t_address_t_address_t_bytes_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2595:9:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"2606:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"2614:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"2622:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"2630:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"2638:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"2649:4:31","type":""}],"src":"2345:791:31"},{"body":{"nodeType":"YulBlock","src":"3222:170:31","statements":[{"body":{"nodeType":"YulBlock","src":"3268:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3277:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3280:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3270:6:31"},"nodeType":"YulFunctionCall","src":"3270:12:31"},"nodeType":"YulExpressionStatement","src":"3270:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"3243:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"3252:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"3239:3:31"},"nodeType":"YulFunctionCall","src":"3239:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"3264:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"3235:3:31"},"nodeType":"YulFunctionCall","src":"3235:32:31"},"nodeType":"YulIf","src":"3232:52:31"},{"nodeType":"YulVariableDeclaration","src":"3293:29:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3312:9:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"3306:5:31"},"nodeType":"YulFunctionCall","src":"3306:16:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"3297:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"3356:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"3331:24:31"},"nodeType":"YulFunctionCall","src":"3331:31:31"},"nodeType":"YulExpressionStatement","src":"3331:31:31"},{"nodeType":"YulAssignment","src":"3371:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"3381:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"3371:6:31"}]}]},"name":"abi_decode_tuple_t_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3188:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"3199:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"3211:6:31","type":""}],"src":"3141:251:31"}]},"contents":"{\n    { }\n    function validator_revert_address(value)\n    {\n        if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_address(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        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n    }\n    function abi_decode_tuple_t_bytes32t_address(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        value0 := calldataload(headStart)\n        let value := calldataload(add(headStart, 32))\n        validator_revert_address(value)\n        value1 := value\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, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_decode_tuple_t_addresst_bytes32(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_bool__to_t_bool__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, iszero(iszero(value0)))\n    }\n    function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, value0)\n    }\n    function abi_decode_tuple_t_addresst_addresst_address(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_address(value_2)\n        value2 := value_2\n    }\n    function abi_encode_tuple_t_address_t_address_t_address_t_address_t_address_t_stringliteral_39bef1777deb3dfb14f64b9f81ced092c501fee72f90e93d03bb95ee89df9837__to_t_address_t_address_t_address_t_address_t_address_t_bytes_memory_ptr__fromStack_reversed(headStart, value4, value3, value2, value1, value0) -> tail\n    {\n        let _1 := 0xffffffffffffffffffffffffffffffffffffffff\n        mstore(headStart, and(value0, _1))\n        mstore(add(headStart, 32), and(value1, _1))\n        mstore(add(headStart, 64), and(value2, _1))\n        mstore(add(headStart, 96), and(value3, _1))\n        mstore(add(headStart, 128), and(value4, _1))\n        mstore(add(headStart, 160), 192)\n        mstore(add(headStart, 192), 2)\n        mstore(add(headStart, 224), \"0x\")\n        tail := add(headStart, 256)\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}","id":31,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{},"linkReferences":{},"object":"608060405234801561001057600080fd5b50600436106100a35760003560e01c8063b500a48b11610076578063d9a641e11161005b578063d9a641e114610247578063e8ae2b6914610288578063f89b66ec1461029b57600080fd5b8063b500a48b146101ae578063d547741f146101e357600080fd5b80632cb8189e146100a85780632f2ff15d146100bd5780638da5cb5b14610126578063ac4ab3fb14610170575b600080fd5b6100bb6100b6366004610495565b610327565b005b6100bb6100cb3660046104ce565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020818152604080842094845293905291902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b6000546101469073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61019e61017e3660046104f3565b600160209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610167565b6101d57fb73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad344281565b604051908152602001610167565b6100bb6101f13660046104ce565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602090815260408083209383529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610146610255366004610495565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b61019e6102963660046104ce565b61040f565b6100bb6102a936600461051f565b73ffffffffffffffffffffffffffffffffffffffff928316600081815260026020818152604080842096881684529581528583208054979095167fffffffffffffffffffffffff0000000000000000000000000000000000000000978816811790955590815284822092825291909152919091208054909216179055565b6040517f1d0338d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000602483018190526044830181905260648301819052608483015260c060a4830152600260c48301527f307800000000000000000000000000000000000000000000000000000000000060e4830152831690631d0338d990610104016020604051808303816000875af11580156103e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a919061056a565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff83811691161480610469575073ffffffffffffffffffffffffffffffffffffffff8216600090815260016020908152604080832086845290915290205460ff165b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461049257600080fd5b50565b600080604083850312156104a857600080fd5b82356104b381610470565b915060208301356104c381610470565b809150509250929050565b600080604083850312156104e157600080fd5b8235915060208301356104c381610470565b6000806040838503121561050657600080fd5b823561051181610470565b946020939093013593505050565b60008060006060848603121561053457600080fd5b833561053f81610470565b9250602084013561054f81610470565b9150604084013561055f81610470565b809150509250925092565b60006020828403121561057c57600080fd5b81516104698161047056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0xA3 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB500A48B GT PUSH2 0x76 JUMPI DUP1 PUSH4 0xD9A641E1 GT PUSH2 0x5B JUMPI DUP1 PUSH4 0xD9A641E1 EQ PUSH2 0x247 JUMPI DUP1 PUSH4 0xE8AE2B69 EQ PUSH2 0x288 JUMPI DUP1 PUSH4 0xF89B66EC EQ PUSH2 0x29B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xB500A48B EQ PUSH2 0x1AE JUMPI DUP1 PUSH4 0xD547741F EQ PUSH2 0x1E3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x2CB8189E EQ PUSH2 0xA8 JUMPI DUP1 PUSH4 0x2F2FF15D EQ PUSH2 0xBD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x126 JUMPI DUP1 PUSH4 0xAC4AB3FB EQ PUSH2 0x170 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xBB PUSH2 0xB6 CALLDATASIZE PUSH1 0x4 PUSH2 0x495 JUMP JUMPDEST PUSH2 0x327 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xBB PUSH2 0xCB CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP5 DUP5 MSTORE SWAP4 SWAP1 MSTORE SWAP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x146 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x19E PUSH2 0x17E CALLDATASIZE PUSH1 0x4 PUSH2 0x4F3 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP1 SWAP2 MSTORE SWAP1 DUP3 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x167 JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0xB73CE166EAD2F8E9ADD217713A7989E4EDFBA9625F71DFD2516204BB67AD3442 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x167 JUMP JUMPDEST PUSH2 0xBB PUSH2 0x1F1 CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 DUP4 MSTORE SWAP3 SWAP1 MSTORE KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x146 PUSH2 0x255 CALLDATASIZE PUSH1 0x4 PUSH2 0x495 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP1 SWAP2 MSTORE SWAP1 DUP3 MSTORE SWAP1 KECCAK256 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x19E PUSH2 0x296 CALLDATASIZE PUSH1 0x4 PUSH2 0x4CE JUMP JUMPDEST PUSH2 0x40F JUMP JUMPDEST PUSH2 0xBB PUSH2 0x2A9 CALLDATASIZE PUSH1 0x4 PUSH2 0x51F JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 SWAP7 DUP9 AND DUP5 MSTORE SWAP6 DUP2 MSTORE DUP6 DUP4 KECCAK256 DUP1 SLOAD SWAP8 SWAP1 SWAP6 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP8 DUP9 AND DUP2 OR SWAP1 SWAP6 SSTORE SWAP1 DUP2 MSTORE DUP5 DUP3 KECCAK256 SWAP3 DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE SWAP2 SWAP1 SWAP2 KECCAK256 DUP1 SLOAD SWAP1 SWAP3 AND OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x1D0338D900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE PUSH1 0x0 PUSH1 0x24 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x44 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x64 DUP4 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP4 ADD MSTORE PUSH1 0xC0 PUSH1 0xA4 DUP4 ADD MSTORE PUSH1 0x2 PUSH1 0xC4 DUP4 ADD MSTORE PUSH32 0x3078000000000000000000000000000000000000000000000000000000000000 PUSH1 0xE4 DUP4 ADD MSTORE DUP4 AND SWAP1 PUSH4 0x1D0338D9 SWAP1 PUSH2 0x104 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x3E6 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 0x40A SWAP2 SWAP1 PUSH2 0x56A JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 DUP2 AND SWAP2 AND EQ DUP1 PUSH2 0x469 JUMPI POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP7 DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x492 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x4A8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x4B3 DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x4C3 DUP2 PUSH2 0x470 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x4E1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x4C3 DUP2 PUSH2 0x470 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x506 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x511 DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x534 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x53F DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x54F DUP2 PUSH2 0x470 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x55F DUP2 PUSH2 0x470 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x57C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x469 DUP2 PUSH2 0x470 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"218:1072:28:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1081:206;;;;;;:::i;:::-;;:::i;:::-;;702:101;;;;;;:::i;:::-;768:16;;;;;;793:4;768:16;;;;;;;;:22;;;;;;;;;:29;;;;;;;;;702:101;334:20;;;;;;;;;;;;1062:42:31;1050:55;;;1032:74;;1020:2;1005:18;334:20:28;;;;;;;;361:59;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1602:14:31;;1595:22;1577:41;;1565:2;1550:18;361:59:28;1437:187:31;244:83:28;;295:32;244:83;;;;;1775:25:31;;;1763:2;1748:18;244:83:28;1629:177:31;809:103:28;;;;;;:::i;:::-;876:16;;901:5;876:16;;;:7;:16;;;;;;;;:22;;;;;;;:30;;;;;;809:103;427:65;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;550:146;;;;;;:::i;:::-;;:::i;918:157::-;;;;;;:::i;:::-;996:18;;;;;;;;:10;:18;;;;;;;;:26;;;;;;;;;;;:33;;;;;;;;;;;;;;;1036:18;;;;;;:26;;;;;;;;;;;:33;;;;;;;;918:157;1081:206;1164:117;;;;;:57;2747:15:31;;;1164:117:28;;;2729:34:31;1236:1:28;2779:18:31;;;2772:43;;;2831:18;;;2824:43;;;2883:18;;;2876:43;;;2935:19;;;2928:44;3009:3;2988:19;;;2981:32;3050:1;3029:19;;;3022:30;3089:4;3068:19;;;3061:33;1164:57:28;;;;;3111:19:31;;1164:117:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1081:206;;:::o;550:146::-;626:4;647:5;;:16;;;;:5;;:16;;:42;;-1:-1:-1;667:16:28;;;;;;;:7;:16;;;;;;;;:22;;;;;;;;;;;647:42;639:51;550:146;-1:-1:-1;;;550:146:28:o;14:154:31:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:388::-;241:6;249;302:2;290:9;281:7;277:23;273:32;270:52;;;318:1;315;308:12;270:52;357:9;344:23;376:31;401:5;376:31;:::i;:::-;426:5;-1:-1:-1;483:2:31;468:18;;455:32;496:33;455:32;496:33;:::i;:::-;548:7;538:17;;;173:388;;;;;:::o;566:315::-;634:6;642;695:2;683:9;674:7;670:23;666:32;663:52;;;711:1;708;701:12;663:52;747:9;734:23;724:33;;807:2;796:9;792:18;779:32;820:31;845:5;820:31;:::i;1117:315::-;1185:6;1193;1246:2;1234:9;1225:7;1221:23;1217:32;1214:52;;;1262:1;1259;1252:12;1214:52;1301:9;1288:23;1320:31;1345:5;1320:31;:::i;:::-;1370:5;1422:2;1407:18;;;;1394:32;;-1:-1:-1;;;1117:315:31:o;1811:529::-;1888:6;1896;1904;1957:2;1945:9;1936:7;1932:23;1928:32;1925:52;;;1973:1;1970;1963:12;1925:52;2012:9;1999:23;2031:31;2056:5;2031:31;:::i;:::-;2081:5;-1:-1:-1;2138:2:31;2123:18;;2110:32;2151:33;2110:32;2151:33;:::i;:::-;2203:7;-1:-1:-1;2262:2:31;2247:18;;2234:32;2275:33;2234:32;2275:33;:::i;:::-;2327:7;2317:17;;;1811:529;;;;;:::o;3141:251::-;3211:6;3264:2;3252:9;3243:7;3239:23;3235:32;3232:52;;;3280:1;3277;3270:12;3232:52;3312:9;3306:16;3331:31;3356:5;3331:31;:::i"},"methodIdentifiers":{"POOLS_ADMINISTRATOR_ROLE()":"b500a48b","beforeCreatePoolHook(address,address)":"2cb8189e","grantRole(bytes32,address)":"2f2ff15d","hasRole(address,bytes32)":"ac4ab3fb","hasRoleOrOwner(bytes32,address)":"e8ae2b69","owner()":"8da5cb5b","poolByPair(address,address)":"d9a641e1","revokeRole(bytes32,address)":"d547741f","stubPool(address,address,address)":"f89b66ec"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"POOLS_ADMINISTRATOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pluginFactory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"beforeCreatePoolHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRoleOrOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"stubPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Mock of Algebra factory for plugins testing\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/test/MockFactory.sol\":\"MockFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"contracts/test/MockFactory.sol\":{\"keccak256\":\"0xb788d5d2aaff11b6c3fda8a9490b9018c4632639c7f3440ee4837ebee47f4922\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://ba858ee57a4617d5c6a7507bddbc3dde8ecbaffc544a511365c5ec89878566f9\",\"dweb:/ipfs/QmbjL2DGJMudipzLg99ymdRDxyU3Ya4tqCECGWu12r4x9k\"]}},\"version\":1}"}},"contracts/test/MockPool.sol":{"MockPool":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"invalidNewCommunityFee","type":"error"},{"inputs":[],"name":"invalidNewTickSpacing","type":"error"},{"inputs":[],"name":"priceOutOfRange","type":"error"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"inputs":[{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"communityVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCommunityFeePending","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getPluginFeePending","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"globalState","outputs":[{"internalType":"uint160","name":"price","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"fee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint160","name":"initialPrice","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFeeTransferTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"overrideFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pluginFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth1Token","type":"uint256"},{"internalType":"uint128","name":"fees0","type":"uint128"},{"internalType":"uint128","name":"fees1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safelyGetStateOfAMM","outputs":[{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"newCommunityFee","type":"uint16"}],"name":"setCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"setCommunityVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newFee","type":"uint16"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"setPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newConfig","type":"uint8"}],"name":"setPluginConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"setTickSpacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int24","name":"targetTick","type":"int24"}],"name":"swapToTick","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"swapWithPaymentInAdvance","outputs":[{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickTreeRoot","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTreeSecondLayer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint256","name":"liquidityTotal","type":"uint256"},{"internalType":"int128","name":"liquidityDelta","type":"int128"},{"internalType":"int24","name":"prevTick","type":"int24"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"uint256","name":"outerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"outerFeeGrowth1Token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth0Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth1Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{"@_4202":{"entryPoint":null,"id":4202,"parameterSlots":0,"returnSlots":0}},"generatedSources":[],"linkReferences":{},"object":"608060405234801561001057600080fd5b506002805464400000007d60ba1b65ff000000ffff60b81b19909116179055600b80546001600160a01b031916331790556126ff806100506000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c8063998e2cbe1161017b578063d8619037116100d8578063ef01df4f1161008c578063f30dba9311610071578063f30dba9314610cd3578063f637731d14610d89578063fff6cae91461042d57600080fd5b8063ef01df4f14610c93578063f085a61014610cb357600080fd5b8063e47cd4cf116100bd578063e47cd4cf14610b50578063e76c01e414610b70578063ecdecf4214610c8a57600080fd5b8063d861903714610b04578063ddca3f4314610b3157600080fd5b8063c677e3e01161012f578063d0c93a7c11610114578063d0c93a7c14610a73578063d5c35a7e14610a9a578063d8544cf314610aa757600080fd5b8063c677e3e014610a13578063cc1f97cf14610a4057600080fd5b8063a1eded8711610160578063a1eded87146102dd578063aafe29c014610900578063bca57f81146109f357600080fd5b8063998e2cbe1461086c5780639e4e02271461089357600080fd5b8063514ea4bf1161022957806377f8c3a9116101dd5780638380edb7116101c25780638380edb71461079a5780638e005553146107d457806397ce1c51146107f557600080fd5b806377f8c3a91461076d5780637bd78025146102dd57600080fd5b8063578b9a361161020e578063578b9a36146106e75780636378ae441461071057806367c25a471461072b57600080fd5b8063514ea4bf146105f557806353e978681461069e57600080fd5b80631dd19cb4116102805780633b3bc70e116102655780633b3bc70e14610458578063490e6cbc146104f55780634f1eb3d81461058e57600080fd5b80631dd19cb41461042d578063240a875a1461043757600080fd5b8063050a4d21146102b25780630902f1ac146102dd578063128acb08146103265780631a686502146103e2575b600080fd5b6003546102c6906301000000900460020b81565b6040805160029290920b8252519081900360200190f35b6102e5610dbc565b60405180836fffffffffffffffffffffffffffffffff168152602001826fffffffffffffffffffffffffffffffff1681526020019250505060405180910390f35b6103c9600480360360a081101561033c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135151592604082013592606083013516919081019060a08101608082013564010000000081111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460018302840111640100000000831117156103be57600080fd5b509092509050610e28565b6040805192835260208301919091528051918290030190f35b60035461040890660100000000000090046fffffffffffffffffffffffffffffffff1681565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610435610e94565b005b6104356004803603602081101561044d57600080fd5b503561ffff16610efb565b6103c96004803603608081101561046e57600080fd5b8135600290810b92602081013590910b916fffffffffffffffffffffffffffffffff60408301351691908101906080810160608201356401000000008111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460018302840111640100000000831117156104ea57600080fd5b509092509050610fbf565b6104356004803603608081101561050b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516916020810135916040820135919081019060808101606082013564010000000081111561054f57600080fd5b82018360208201111561056157600080fd5b8035906020019184600183028401116401000000008311171561058357600080fd5b50909250905061123b565b6102e5600480360360a08110156105a457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020810135600290810b91604081013590910b906fffffffffffffffffffffffffffffffff60608201358116916080013516610e28565b61065e6004803603602081101561060b57600080fd5b50600a60205235600090815260409020805460018201546002830154600390930154919290916fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041685565b604080519586526020860194909452848401929092526fffffffffffffffffffffffffffffffff9081166060850152166080830152519081900360a00190f35b6007546106be9073ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6004546106f79063ffffffff1681565b6040805163ffffffff9092168252519081900360200190f35b61071960005481565b60408051918252519081900360200190f35b600b546107559077010000000000000000000000000000000000000000000000900462ffffff1681565b6040805162ffffff9092168252519081900360200190f35b6003546106f790790100000000000000000000000000000000000000000000000000900463ffffffff1681565b6002547c0100000000000000000000000000000000000000000000000000000000900460ff16604080519115158252519081900360200190f35b610435600480360360208110156107ea57600080fd5b503561ffff16611453565b6107fd61156d565b6040805173ffffffffffffffffffffffffffffffffffffffff9098168852600296870b602089015261ffff9095168786015260ff90931660608701526fffffffffffffffffffffffffffffffff9091166080860152830b60a085015290910b60c0830152519081900360e00190f35b600b546107559074010000000000000000000000000000000000000000900462ffffff1681565b6103c9600480360360c08110156108a957600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135821692604082013515159260608301359260808101359091169181019060c0810160a082013564010000000081111561038a57600080fd5b6109c3600480360360c081101561091657600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135909116916040820135600290810b92606081013590910b916fffffffffffffffffffffffffffffffff608083013516919081019060c0810160a082013564010000000081111561098457600080fd5b82018360208201111561099657600080fd5b803590602001918460018302840111640100000000831117156109b857600080fd5b5090925090506115e2565b6040805193845260208401929092526fffffffffffffffffffffffffffffffff1682820152519081900360600190f35b61043560048036036020811015610a0957600080fd5b503560ff1661186a565b61071960048036036020811015610a2957600080fd5b5060096020523560010b6000908152604090205481565b61043560048036036020811015610a5657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611901565b6003546102c690760100000000000000000000000000000000000000000000900460020b81565b6003546102c69060020b81565b61043560048036036020811015610abd57600080fd5b50600780547fffffffffffffffffffffffff000000000000000000000000000000000000000016913573ffffffffffffffffffffffffffffffffffffffff16919091179055565b61071960048036036020811015610b1a57600080fd5b5060056020523560010b6000908152604090205481565b610b3961196c565b6040805161ffff9092168252519081900360200190f35b61043560048036036020811015610b6657600080fd5b503560020b6119d5565b60028054610c339173ffffffffffffffffffffffffffffffffffffffff82169174010000000000000000000000000000000000000000810490910b9061ffff77010000000000000000000000000000000000000000000000820481169160ff79010000000000000000000000000000000000000000000000000082048116927a010000000000000000000000000000000000000000000000000000830416917c010000000000000000000000000000000000000000000000000000000090041686565b6040805173ffffffffffffffffffffffffffffffffffffffff909716875260029590950b602087015261ffff9384168686015260ff90921660608601529091166080840152151560a0830152519081900360c00190f35b61071960015481565b6006546106be9073ffffffffffffffffffffffffffffffffffffffff1681565b61043560048036036020811015610cc957600080fd5b503560020b611cd4565b610d4d60048036036020811015610ce957600080fd5b50600860205235600290810b60009081526040902080546001820154828401546003909301549193600f82900b937001000000000000000000000000000000008304820b9373010000000000000000000000000000000000000090930490910b9186565b60408051968752600f9590950b6020870152600293840b868601529190920b6060850152608084019190915260a0830152519081900360c00190f35b61043560048036036020811015610d9f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611da0565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182919081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182919081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f7420696d706c656d656e7465640000000000000000000000000000000000604482015290519081900360640190fd5b6103e861ffff82161180610f35575060025461ffff8281167a01000000000000000000000000000000000000000000000000000090920416145b15610f6c576040517fa709b9af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002805461ffff9092167a010000000000000000000000000000000000000000000000000000027fffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60025460009081907901000000000000000000000000000000000000000000000000009004600416156110ef5760065473ffffffffffffffffffffffffffffffffffffffff16635e2411b233808a8a6110178b61268d565b8a8a6040518863ffffffff1660e01b8152600401808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018660020b81526020018560020b815260200184600f0b8152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509850505050505050505060408051808303816000875af11580156110d6573d6000803e3d6000fd5b505050506040513d60408110156110ec57600080fd5b50505b60025479010000000000000000000000000000000000000000000000000090046008161561122c5760065473ffffffffffffffffffffffffffffffffffffffff1663d685201033808a8a6111428b61268d565b6000808c8c6040518a63ffffffff1660e01b8152600401808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018860020b81526020018760020b815260200186600f0b8152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509a50505050505050505050506020604051808303816000875af1158015611213573d6000803e3d6000fd5b505050506040513d602081101561122957600080fd5b50505b50600096879650945050505050565b600254790100000000000000000000000000000000000000000000000000900460ff8116906010161561134a576006546040517f8de0a8ee000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8a81166024850152604484018a90526064840189905260a06084850190815260a48501889052941693638de0a8ee938b928b928b928b928b92909160c401848480828437600081840152601f19601f8201169050808301925050509750505050505050506020604051808303816000875af1158015611331573d6000803e3d6000fd5b505050506040513d602081101561134757600080fd5b50505b602081161561144b576006546040517f343d37ff000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8a81166024850152604484018a90526064840189905260006084850181905260a4850181905260e060c4860190815260e48601899052919095169463343d37ff948c938c938c939283928d928d9261010401848480828437600081840152601f19601f82011690508083019250505099505050505050505050506020604051808303816000875af1158015611432573d6000803e3d6000fd5b505050506040513d602081101561144857600080fd5b50505b505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331480611490575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61149957600080fd5b60025460065479010000000000000000000000000000000000000000000000000090910460801615159073ffffffffffffffffffffffffffffffffffffffff1633036114ee57806114e957600080fd5b61151c565b801580156115135750600b5473ffffffffffffffffffffffffffffffffffffffff1633145b61151c57600080fd5b506002805461ffff90921677010000000000000000000000000000000000000000000000027fffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182918291829182918291829181900360640190fd5b60025460009081908190790100000000000000000000000000000000000000000000000000900460041615611701576006546040517f5e2411b2000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8d8116602485015260028d810b60448601528c900b6064850152600f8b900b608485015260c060a4850190815260c485018a9052941693635e2411b2938e928e928e928e928e928e9260e401848480828437600081840152601f19601f8201169050808301925050509850505050505050505060408051808303816000875af11580156116e8573d6000803e3d6000fd5b505050506040513d60408110156116fe57600080fd5b50505b60025479010000000000000000000000000000000000000000000000000090046008161561185657600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6852010338b8b8b8b6000808d8d6040518a63ffffffff1660e01b8152600401808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018860020b81526020018760020b815260200186600f0b8152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509a50505050505050505050506020604051808303816000875af115801561183d573d6000803e3d6000fd5b505050506040513d602081101561185357600080fd5b50505b506000998a99508998509650505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314806118a7575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6118b057600080fd5b6002805460ff909216790100000000000000000000000000000000000000000000000000027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461192557600080fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009181900360640190fd5b60065460025473ffffffffffffffffffffffffffffffffffffffff90911690790100000000000000000000000000000000000000000000000000900460011615611b7357604080517f029c1cb700000000000000000000000000000000000000000000000000000000815233600482018190526024820152600160448201526000606482018190526084820181905260a4820181905260e060c483015260e48201819052915173ffffffffffffffffffffffffffffffffffffffff84169263029c1cb792610104808201936060939092839003909101908290875af1158015611ac2573d6000803e3d6000fd5b505050506040513d6060811015611ad857600080fd5b506020810151604090910151600b80547fffffffffffff000000000000ffffffffffffffffffffffffffffffffffffffff167701000000000000000000000000000000000000000000000062ffffff938416027fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff16177401000000000000000000000000000000000000000092909316919091029190911790555b611b7c82611fd8565b6002805473ffffffffffffffffffffffffffffffffffffffff929092167fffffffffffffffffff0000000000000000000000000000000000000000000000909216919091177401000000000000000000000000000000000000000062ffffff8516021780825579010000000000000000000000000000000000000000000000000090041615611cd057604080517f9cb5a96300000000000000000000000000000000000000000000000000000000815233600482018190526024820152600160448201526000606482018190526084820181905260a4820181905260c4820181905261010060e48301526101048201819052915173ffffffffffffffffffffffffffffffffffffffff841692639cb5a96392610124808201936020939092839003909101908290875af1158015611cb7573d6000803e3d6000fd5b505050506040513d6020811015611ccd57600080fd5b50505b5050565b60008160020b131580611cec57506101f4600282900b135b80611d195750600354600282810b760100000000000000000000000000000000000000000000909204900b145b15611d50576040517fafe09f4400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003805462ffffff909216760100000000000000000000000000000000000000000000027fffffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000611dab826122f7565b60065490915073ffffffffffffffffffffffffffffffffffffffff1615611e6557600654604080517f636fd80400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff85811660248301529151919092169163636fd80491604480830192602092919082900301816000875af1158015611e4c573d6000803e3d6000fd5b505050506040513d6020811015611e6257600080fd5b50505b600380547fffffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffff16763c000000000000000000000000000000000000000000001790556002805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffff00000000000000000000000000000000000000000000008216177401000000000000000000000000000000000000000062ffffff85160217909155790100000000000000000000000000000000000000000000000000900460ff81169060401615611fd357600654604080517f82dd652200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8681166024830152600286900b6044830152915191909216916382dd652291606480830192602092919082900301816000875af1158015611fba573d6000803e3d6000fd5b505050506040513d6020811015611fd057600080fd5b50505b505050565b6000600282900b60171d62ffffff818401821816620d89e8811115612029576040517f3c10250f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b700100000000000000000000000000000000600182161561205757506ffffcb933bd6fad37aa2d162d1a5940015b6002821615612076576ffff97272373d413259a46990580e213a0260801c5b6004821615612095576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156120b4576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156120d3576fffcb9843d60f6159c9db58835c9266440260801c5b60208216156120f2576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615612111576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615612130576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615612150576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615612170576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615612190576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156121b0576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156121d0576fd097f3bdfd2022b8845ad8f792aa58250260801c5b6120008216156121f0576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615612210576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615612230576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615612251576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615612271576e5d6af8dedb81196699c329225ee6040260801c5b6204000082106122b7576204000082161561229a576d2216e584f5fa1ea926041bedfe980260801c5b620800008216156122b7576b048a170391f7dc42444e8fa20260801c5b60008560020b13156122e6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff045b63ffffffff0160201c949350505050565b60006401000276a373ffffffffffffffffffffffffffffffffffffffff8316108061234c575073fffd8963efd1fc6a506488495d951d5263988d2673ffffffffffffffffffffffffffffffffffffffff831610155b15612383576040517f55cf1e2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b77ffffffffffffffffffffffffffffffffffffffff00000000602083901b166fffffffffffffffffffffffffffffffff811160071b81811c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c9790881196179094179092171790911717176080811061242d57607f810383901c9150612437565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581027ffffffffffffffffffffffffffffffffffd709b7e5480fba5a50fed5e62ffc5568101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461267e578873ffffffffffffffffffffffffffffffffffffffff1661265682611fd8565b73ffffffffffffffffffffffffffffffffffffffff1611156126785781612680565b80612680565b815b9998505050505050505050565b600081600f0b7fffffffffffffffffffffffffffffffff8000000000000000000000000000000081036126e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000039291505056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x2 DUP1 SLOAD PUSH5 0x400000007D PUSH1 0xBA SHL PUSH6 0xFF000000FFFF PUSH1 0xB8 SHL NOT SWAP1 SWAP2 AND OR SWAP1 SSTORE PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH2 0x26FF DUP1 PUSH2 0x50 PUSH1 0x0 CODECOPY 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 0x2AD JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x998E2CBE GT PUSH2 0x17B JUMPI DUP1 PUSH4 0xD8619037 GT PUSH2 0xD8 JUMPI DUP1 PUSH4 0xEF01DF4F GT PUSH2 0x8C JUMPI DUP1 PUSH4 0xF30DBA93 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0xF30DBA93 EQ PUSH2 0xCD3 JUMPI DUP1 PUSH4 0xF637731D EQ PUSH2 0xD89 JUMPI DUP1 PUSH4 0xFFF6CAE9 EQ PUSH2 0x42D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xEF01DF4F EQ PUSH2 0xC93 JUMPI DUP1 PUSH4 0xF085A610 EQ PUSH2 0xCB3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xE47CD4CF GT PUSH2 0xBD JUMPI DUP1 PUSH4 0xE47CD4CF EQ PUSH2 0xB50 JUMPI DUP1 PUSH4 0xE76C01E4 EQ PUSH2 0xB70 JUMPI DUP1 PUSH4 0xECDECF42 EQ PUSH2 0xC8A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xD8619037 EQ PUSH2 0xB04 JUMPI DUP1 PUSH4 0xDDCA3F43 EQ PUSH2 0xB31 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC677E3E0 GT PUSH2 0x12F JUMPI DUP1 PUSH4 0xD0C93A7C GT PUSH2 0x114 JUMPI DUP1 PUSH4 0xD0C93A7C EQ PUSH2 0xA73 JUMPI DUP1 PUSH4 0xD5C35A7E EQ PUSH2 0xA9A JUMPI DUP1 PUSH4 0xD8544CF3 EQ PUSH2 0xAA7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC677E3E0 EQ PUSH2 0xA13 JUMPI DUP1 PUSH4 0xCC1F97CF EQ PUSH2 0xA40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xA1EDED87 GT PUSH2 0x160 JUMPI DUP1 PUSH4 0xA1EDED87 EQ PUSH2 0x2DD JUMPI DUP1 PUSH4 0xAAFE29C0 EQ PUSH2 0x900 JUMPI DUP1 PUSH4 0xBCA57F81 EQ PUSH2 0x9F3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x998E2CBE EQ PUSH2 0x86C JUMPI DUP1 PUSH4 0x9E4E0227 EQ PUSH2 0x893 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x514EA4BF GT PUSH2 0x229 JUMPI DUP1 PUSH4 0x77F8C3A9 GT PUSH2 0x1DD JUMPI DUP1 PUSH4 0x8380EDB7 GT PUSH2 0x1C2 JUMPI DUP1 PUSH4 0x8380EDB7 EQ PUSH2 0x79A JUMPI DUP1 PUSH4 0x8E005553 EQ PUSH2 0x7D4 JUMPI DUP1 PUSH4 0x97CE1C51 EQ PUSH2 0x7F5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x77F8C3A9 EQ PUSH2 0x76D JUMPI DUP1 PUSH4 0x7BD78025 EQ PUSH2 0x2DD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x578B9A36 GT PUSH2 0x20E JUMPI DUP1 PUSH4 0x578B9A36 EQ PUSH2 0x6E7 JUMPI DUP1 PUSH4 0x6378AE44 EQ PUSH2 0x710 JUMPI DUP1 PUSH4 0x67C25A47 EQ PUSH2 0x72B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x514EA4BF EQ PUSH2 0x5F5 JUMPI DUP1 PUSH4 0x53E97868 EQ PUSH2 0x69E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1DD19CB4 GT PUSH2 0x280 JUMPI DUP1 PUSH4 0x3B3BC70E GT PUSH2 0x265 JUMPI DUP1 PUSH4 0x3B3BC70E EQ PUSH2 0x458 JUMPI DUP1 PUSH4 0x490E6CBC EQ PUSH2 0x4F5 JUMPI DUP1 PUSH4 0x4F1EB3D8 EQ PUSH2 0x58E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1DD19CB4 EQ PUSH2 0x42D JUMPI DUP1 PUSH4 0x240A875A EQ PUSH2 0x437 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x50A4D21 EQ PUSH2 0x2B2 JUMPI DUP1 PUSH4 0x902F1AC EQ PUSH2 0x2DD JUMPI DUP1 PUSH4 0x128ACB08 EQ PUSH2 0x326 JUMPI DUP1 PUSH4 0x1A686502 EQ PUSH2 0x3E2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH4 0x1000000 SWAP1 DIV PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x2 SWAP3 SWAP1 SWAP3 SIGNEXTEND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x2E5 PUSH2 0xDBC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP4 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP3 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xA0 DUP2 LT ISZERO PUSH2 0x33C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD ISZERO ISZERO SWAP3 PUSH1 0x40 DUP3 ADD CALLDATALOAD SWAP3 PUSH1 0x60 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0xA0 DUP2 ADD PUSH1 0x80 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x38A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x39C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x3BE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0xE28 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP1 MLOAD SWAP2 DUP3 SWAP1 SUB ADD SWAP1 RETURN JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x408 SWAP1 PUSH7 0x1000000000000 SWAP1 DIV PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH2 0xE94 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x44D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH2 0xFFFF AND PUSH2 0xEFB JUMP JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x80 DUP2 LT ISZERO PUSH2 0x46E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x40 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x80 DUP2 ADD PUSH1 0x60 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x4C8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x4EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0xFBF JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x80 DUP2 LT ISZERO PUSH2 0x50B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP2 PUSH1 0x40 DUP3 ADD CALLDATALOAD SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x80 DUP2 ADD PUSH1 0x60 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x54F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x561 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x583 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x123B JUMP JUMPDEST PUSH2 0x2E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xA0 DUP2 LT ISZERO PUSH2 0x5A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 DUP2 ADD CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP2 PUSH1 0x40 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP1 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x60 DUP3 ADD CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x80 ADD CALLDATALOAD AND PUSH2 0xE28 JUMP JUMPDEST PUSH2 0x65E PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x60B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA PUSH1 0x20 MSTORE CALLDATALOAD 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 SWAP2 SWAP3 SWAP1 SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP1 DUP3 AND SWAP2 PUSH17 0x100000000000000000000000000000000 SWAP1 DIV AND DUP6 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP6 DUP7 MSTORE PUSH1 0x20 DUP7 ADD SWAP5 SWAP1 SWAP5 MSTORE DUP5 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 DUP2 AND PUSH1 0x60 DUP6 ADD MSTORE AND PUSH1 0x80 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xA0 ADD SWAP1 RETURN JUMPDEST PUSH1 0x7 SLOAD PUSH2 0x6BE SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0x4 SLOAD PUSH2 0x6F7 SWAP1 PUSH4 0xFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH4 0xFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x719 PUSH1 0x0 SLOAD DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0xB SLOAD PUSH2 0x755 SWAP1 PUSH24 0x10000000000000000000000000000000000000000000000 SWAP1 DIV PUSH3 0xFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x6F7 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF AND PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x7EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH2 0xFFFF AND PUSH2 0x1453 JUMP JUMPDEST PUSH2 0x7FD PUSH2 0x156D JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP9 AND DUP9 MSTORE PUSH1 0x2 SWAP7 DUP8 SIGNEXTEND PUSH1 0x20 DUP10 ADD MSTORE PUSH2 0xFFFF SWAP1 SWAP6 AND DUP8 DUP7 ADD MSTORE PUSH1 0xFF SWAP1 SWAP4 AND PUSH1 0x60 DUP8 ADD MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND PUSH1 0x80 DUP7 ADD MSTORE DUP4 SIGNEXTEND PUSH1 0xA0 DUP6 ADD MSTORE SWAP1 SWAP2 SIGNEXTEND PUSH1 0xC0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xE0 ADD SWAP1 RETURN JUMPDEST PUSH1 0xB SLOAD PUSH2 0x755 SWAP1 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 DIV PUSH3 0xFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xC0 DUP2 LT ISZERO PUSH2 0x8A9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD DUP3 AND SWAP3 PUSH1 0x40 DUP3 ADD CALLDATALOAD ISZERO ISZERO SWAP3 PUSH1 0x60 DUP4 ADD CALLDATALOAD SWAP3 PUSH1 0x80 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP2 DUP2 ADD SWAP1 PUSH1 0xC0 DUP2 ADD PUSH1 0xA0 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x38A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x9C3 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xC0 DUP2 LT ISZERO PUSH2 0x916 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP2 PUSH1 0x40 DUP3 ADD CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP3 PUSH1 0x60 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x80 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0xC0 DUP2 ADD PUSH1 0xA0 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x984 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x996 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x9B8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x15E2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP4 DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 DUP3 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x60 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA09 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0xFF AND PUSH2 0x186A JUMP JUMPDEST PUSH2 0x719 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA29 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x9 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x1 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA56 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1901 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH23 0x100000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xABD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x7 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND SWAP2 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x719 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xB1A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x1 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0xB39 PUSH2 0x196C JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xB66 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x2 SIGNEXTEND PUSH2 0x19D5 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH2 0xC33 SWAP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP2 PUSH21 0x10000000000000000000000000000000000000000 DUP2 DIV SWAP1 SWAP2 SIGNEXTEND SWAP1 PUSH2 0xFFFF PUSH24 0x10000000000000000000000000000000000000000000000 DUP3 DIV DUP2 AND SWAP2 PUSH1 0xFF PUSH26 0x100000000000000000000000000000000000000000000000000 DUP3 DIV DUP2 AND SWAP3 PUSH27 0x10000000000000000000000000000000000000000000000000000 DUP4 DIV AND SWAP2 PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV AND DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP8 AND DUP8 MSTORE PUSH1 0x2 SWAP6 SWAP1 SWAP6 SIGNEXTEND PUSH1 0x20 DUP8 ADD MSTORE PUSH2 0xFFFF SWAP4 DUP5 AND DUP7 DUP7 ADD MSTORE PUSH1 0xFF SWAP1 SWAP3 AND PUSH1 0x60 DUP7 ADD MSTORE SWAP1 SWAP2 AND PUSH1 0x80 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0xA0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xC0 ADD SWAP1 RETURN JUMPDEST PUSH2 0x719 PUSH1 0x1 SLOAD DUP2 JUMP JUMPDEST PUSH1 0x6 SLOAD PUSH2 0x6BE SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xCC9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x2 SIGNEXTEND PUSH2 0x1CD4 JUMP JUMPDEST PUSH2 0xD4D PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xCE9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x8 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 DUP3 ADD SLOAD DUP3 DUP5 ADD SLOAD PUSH1 0x3 SWAP1 SWAP4 ADD SLOAD SWAP2 SWAP4 PUSH1 0xF DUP3 SWAP1 SIGNEXTEND SWAP4 PUSH17 0x100000000000000000000000000000000 DUP4 DIV DUP3 SIGNEXTEND SWAP4 PUSH20 0x100000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP1 SWAP2 SIGNEXTEND SWAP2 DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP7 DUP8 MSTORE PUSH1 0xF SWAP6 SWAP1 SWAP6 SIGNEXTEND PUSH1 0x20 DUP8 ADD MSTORE PUSH1 0x2 SWAP4 DUP5 SIGNEXTEND DUP7 DUP7 ADD MSTORE SWAP2 SWAP1 SWAP3 SIGNEXTEND PUSH1 0x60 DUP6 ADD MSTORE PUSH1 0x80 DUP5 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xA0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xC0 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xD9F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1DA0 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH2 0x3E8 PUSH2 0xFFFF DUP3 AND GT DUP1 PUSH2 0xF35 JUMPI POP PUSH1 0x2 SLOAD PUSH2 0xFFFF DUP3 DUP2 AND PUSH27 0x10000000000000000000000000000000000000000000000000000 SWAP1 SWAP3 DIV AND EQ JUMPDEST ISZERO PUSH2 0xF6C JUMPI PUSH1 0x40 MLOAD PUSH32 0xA709B9AF00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND PUSH27 0x10000000000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x4 AND ISZERO PUSH2 0x10EF JUMPI PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x5E2411B2 CALLER DUP1 DUP11 DUP11 PUSH2 0x1017 DUP12 PUSH2 0x268D JUMP JUMPDEST DUP11 DUP11 PUSH1 0x40 MLOAD DUP9 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP9 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP5 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP9 POP POP POP POP POP POP POP POP POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x10D6 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x10EC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x8 AND ISZERO PUSH2 0x122C JUMPI PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xD6852010 CALLER DUP1 DUP11 DUP11 PUSH2 0x1142 DUP12 PUSH2 0x268D JUMP JUMPDEST PUSH1 0x0 DUP1 DUP13 DUP13 PUSH1 0x40 MLOAD DUP11 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP11 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP10 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP9 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1213 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1229 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP PUSH1 0x0 SWAP7 DUP8 SWAP7 POP SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF DUP2 AND SWAP1 PUSH1 0x10 AND ISZERO PUSH2 0x134A JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP11 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD DUP11 SWAP1 MSTORE PUSH1 0x64 DUP5 ADD DUP10 SWAP1 MSTORE PUSH1 0xA0 PUSH1 0x84 DUP6 ADD SWAP1 DUP2 MSTORE PUSH1 0xA4 DUP6 ADD DUP9 SWAP1 MSTORE SWAP5 AND SWAP4 PUSH4 0x8DE0A8EE SWAP4 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 SWAP1 SWAP2 PUSH1 0xC4 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP8 POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1331 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1347 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x20 DUP2 AND ISZERO PUSH2 0x144B JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP11 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD DUP11 SWAP1 MSTORE PUSH1 0x64 DUP5 ADD DUP10 SWAP1 MSTORE PUSH1 0x0 PUSH1 0x84 DUP6 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP6 ADD DUP2 SWAP1 MSTORE PUSH1 0xE0 PUSH1 0xC4 DUP7 ADD SWAP1 DUP2 MSTORE PUSH1 0xE4 DUP7 ADD DUP10 SWAP1 MSTORE SWAP2 SWAP1 SWAP6 AND SWAP5 PUSH4 0x343D37FF SWAP5 DUP13 SWAP4 DUP13 SWAP4 DUP13 SWAP4 SWAP3 DUP4 SWAP3 DUP14 SWAP3 DUP14 SWAP3 PUSH2 0x104 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP10 POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1432 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1448 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ DUP1 PUSH2 0x1490 JUMPI POP PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x1499 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x6 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 SWAP2 DIV PUSH1 0x80 AND ISZERO ISZERO SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER SUB PUSH2 0x14EE JUMPI DUP1 PUSH2 0x14E9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x151C JUMP JUMPDEST DUP1 ISZERO DUP1 ISZERO PUSH2 0x1513 JUMPI POP PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x151C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x2 DUP1 SLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND PUSH24 0x10000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 DUP2 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x4 AND ISZERO PUSH2 0x1701 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP14 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x2 DUP14 DUP2 SIGNEXTEND PUSH1 0x44 DUP7 ADD MSTORE DUP13 SWAP1 SIGNEXTEND PUSH1 0x64 DUP6 ADD MSTORE PUSH1 0xF DUP12 SWAP1 SIGNEXTEND PUSH1 0x84 DUP6 ADD MSTORE PUSH1 0xC0 PUSH1 0xA4 DUP6 ADD SWAP1 DUP2 MSTORE PUSH1 0xC4 DUP6 ADD DUP11 SWAP1 MSTORE SWAP5 AND SWAP4 PUSH4 0x5E2411B2 SWAP4 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 PUSH1 0xE4 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP9 POP POP POP POP POP POP POP POP POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x16E8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x16FE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x8 AND ISZERO PUSH2 0x1856 JUMPI PUSH1 0x6 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xD6852010 CALLER DUP12 DUP12 DUP12 DUP12 PUSH1 0x0 DUP1 DUP14 DUP14 PUSH1 0x40 MLOAD DUP11 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP11 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP10 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP9 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x183D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1853 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP PUSH1 0x0 SWAP10 DUP11 SWAP10 POP DUP10 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ DUP1 PUSH2 0x18A7 JUMPI POP PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x18B0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH1 0xFF SWAP1 SWAP3 AND PUSH26 0x100000000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ PUSH2 0x1925 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x6 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x6 SLOAD PUSH1 0x2 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x1 AND ISZERO PUSH2 0x1B73 JUMPI PUSH1 0x40 DUP1 MLOAD PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x0 PUSH1 0x64 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xE0 PUSH1 0xC4 DUP4 ADD MSTORE PUSH1 0xE4 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND SWAP3 PUSH4 0x29C1CB7 SWAP3 PUSH2 0x104 DUP1 DUP3 ADD SWAP4 PUSH1 0x60 SWAP4 SWAP1 SWAP3 DUP4 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 DUP3 SWAP1 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1AC2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x1AD8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 DUP2 ADD MLOAD PUSH1 0x40 SWAP1 SWAP2 ADD MLOAD PUSH1 0xB DUP1 SLOAD PUSH32 0xFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH24 0x10000000000000000000000000000000000000000000000 PUSH3 0xFFFFFF SWAP4 DUP5 AND MUL PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND OR PUSH21 0x10000000000000000000000000000000000000000 SWAP3 SWAP1 SWAP4 AND SWAP2 SWAP1 SWAP2 MUL SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMPDEST PUSH2 0x1B7C DUP3 PUSH2 0x1FD8 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH32 0xFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF DUP6 AND MUL OR DUP1 DUP3 SSTORE PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV AND ISZERO PUSH2 0x1CD0 JUMPI PUSH1 0x40 DUP1 MLOAD PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x0 PUSH1 0x64 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xC4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH2 0x100 PUSH1 0xE4 DUP4 ADD MSTORE PUSH2 0x104 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND SWAP3 PUSH4 0x9CB5A963 SWAP3 PUSH2 0x124 DUP1 DUP3 ADD SWAP4 PUSH1 0x20 SWAP4 SWAP1 SWAP3 DUP4 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 DUP3 SWAP1 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1CB7 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1CCD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x2 SIGNEXTEND SGT ISZERO DUP1 PUSH2 0x1CEC JUMPI POP PUSH2 0x1F4 PUSH1 0x2 DUP3 SWAP1 SIGNEXTEND SGT JUMPDEST DUP1 PUSH2 0x1D19 JUMPI POP PUSH1 0x3 SLOAD PUSH1 0x2 DUP3 DUP2 SIGNEXTEND PUSH23 0x100000000000000000000000000000000000000000000 SWAP1 SWAP3 DIV SWAP1 SIGNEXTEND EQ JUMPDEST ISZERO PUSH2 0x1D50 JUMPI PUSH1 0x40 MLOAD PUSH32 0xAFE09F4400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND PUSH23 0x100000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1DAB DUP3 PUSH2 0x22F7 JUMP JUMPDEST PUSH1 0x6 SLOAD SWAP1 SWAP2 POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND ISZERO PUSH2 0x1E65 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP6 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE SWAP2 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP2 PUSH4 0x636FD804 SWAP2 PUSH1 0x44 DUP1 DUP4 ADD SWAP3 PUSH1 0x20 SWAP3 SWAP2 SWAP1 DUP3 SWAP1 SUB ADD DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E4C JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1E62 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH23 0x3C00000000000000000000000000000000000000000000 OR SWAP1 SSTORE PUSH1 0x2 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000 DUP3 AND OR PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF DUP6 AND MUL OR SWAP1 SWAP2 SSTORE PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF DUP2 AND SWAP1 PUSH1 0x40 AND ISZERO PUSH2 0x1FD3 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP7 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE PUSH1 0x2 DUP7 SWAP1 SIGNEXTEND PUSH1 0x44 DUP4 ADD MSTORE SWAP2 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP2 PUSH4 0x82DD6522 SWAP2 PUSH1 0x64 DUP1 DUP4 ADD SWAP3 PUSH1 0x20 SWAP3 SWAP2 SWAP1 DUP3 SWAP1 SUB ADD DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1FBA JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1FD0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 SWAP1 SIGNEXTEND PUSH1 0x17 SAR PUSH3 0xFFFFFF DUP2 DUP5 ADD DUP3 XOR AND PUSH3 0xD89E8 DUP2 GT ISZERO PUSH2 0x2029 JUMPI PUSH1 0x40 MLOAD PUSH32 0x3C10250F00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH17 0x100000000000000000000000000000000 PUSH1 0x1 DUP3 AND ISZERO PUSH2 0x2057 JUMPI POP PUSH16 0xFFFCB933BD6FAD37AA2D162D1A594001 JUMPDEST PUSH1 0x2 DUP3 AND ISZERO PUSH2 0x2076 JUMPI PUSH16 0xFFF97272373D413259A46990580E213A MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x4 DUP3 AND ISZERO PUSH2 0x2095 JUMPI PUSH16 0xFFF2E50F5F656932EF12357CF3C7FDCC MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x8 DUP3 AND ISZERO PUSH2 0x20B4 JUMPI PUSH16 0xFFE5CACA7E10E4E61C3624EAA0941CD0 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x10 DUP3 AND ISZERO PUSH2 0x20D3 JUMPI PUSH16 0xFFCB9843D60F6159C9DB58835C926644 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x20 DUP3 AND ISZERO PUSH2 0x20F2 JUMPI PUSH16 0xFF973B41FA98C081472E6896DFB254C0 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x40 DUP3 AND ISZERO PUSH2 0x2111 JUMPI PUSH16 0xFF2EA16466C96A3843EC78B326B52861 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x80 DUP3 AND ISZERO PUSH2 0x2130 JUMPI PUSH16 0xFE5DEE046A99A2A811C461F1969C3053 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x100 DUP3 AND ISZERO PUSH2 0x2150 JUMPI PUSH16 0xFCBE86C7900A88AEDCFFC83B479AA3A4 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x200 DUP3 AND ISZERO PUSH2 0x2170 JUMPI PUSH16 0xF987A7253AC413176F2B074CF7815E54 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x400 DUP3 AND ISZERO PUSH2 0x2190 JUMPI PUSH16 0xF3392B0822B70005940C7A398E4B70F3 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x800 DUP3 AND ISZERO PUSH2 0x21B0 JUMPI PUSH16 0xE7159475A2C29B7443B29C7FA6E889D9 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x1000 DUP3 AND ISZERO PUSH2 0x21D0 JUMPI PUSH16 0xD097F3BDFD2022B8845AD8F792AA5825 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x2000 DUP3 AND ISZERO PUSH2 0x21F0 JUMPI PUSH16 0xA9F746462D870FDF8A65DC1F90E061E5 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x4000 DUP3 AND ISZERO PUSH2 0x2210 JUMPI PUSH16 0x70D869A156D2A1B890BB3DF62BAF32F7 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x8000 DUP3 AND ISZERO PUSH2 0x2230 JUMPI PUSH16 0x31BE135F97D08FD981231505542FCFA6 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x10000 DUP3 AND ISZERO PUSH2 0x2251 JUMPI PUSH16 0x9AA508B5B7A84E1C677DE54F3E99BC9 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x20000 DUP3 AND ISZERO PUSH2 0x2271 JUMPI PUSH15 0x5D6AF8DEDB81196699C329225EE604 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x40000 DUP3 LT PUSH2 0x22B7 JUMPI PUSH3 0x40000 DUP3 AND ISZERO PUSH2 0x229A JUMPI PUSH14 0x2216E584F5FA1EA926041BEDFE98 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x80000 DUP3 AND ISZERO PUSH2 0x22B7 JUMPI PUSH12 0x48A170391F7DC42444E8FA2 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x0 DUP6 PUSH1 0x2 SIGNEXTEND SGT ISZERO PUSH2 0x22E6 JUMPI PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DIV JUMPDEST PUSH4 0xFFFFFFFF ADD PUSH1 0x20 SHR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH5 0x1000276A3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND LT DUP1 PUSH2 0x234C JUMPI POP PUSH20 0xFFFD8963EFD1FC6A506488495D951D5263988D26 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND LT ISZERO JUMPDEST ISZERO PUSH2 0x2383 JUMPI PUSH1 0x40 MLOAD PUSH32 0x55CF1E2300000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH24 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000 PUSH1 0x20 DUP4 SWAP1 SHL AND PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 GT PUSH1 0x7 SHL DUP2 DUP2 SHR PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH1 0x6 SHL SWAP1 DUP2 SHR PUSH4 0xFFFFFFFF DUP2 GT PUSH1 0x5 SHL SWAP1 DUP2 SHR PUSH2 0xFFFF DUP2 GT PUSH1 0x4 SHL SWAP1 DUP2 SHR PUSH1 0xFF DUP2 GT PUSH1 0x3 SWAP1 DUP2 SHL SWAP2 DUP3 SHR PUSH1 0xF DUP2 GT PUSH1 0x2 SHL SWAP1 DUP2 SHR SWAP2 DUP3 GT PUSH1 0x1 SWAP1 DUP2 SHL SWAP3 DUP4 SHR SWAP8 SWAP1 DUP9 GT SWAP7 OR SWAP1 SWAP5 OR SWAP1 SWAP3 OR OR SWAP1 SWAP2 OR OR OR PUSH1 0x80 DUP2 LT PUSH2 0x242D JUMPI PUSH1 0x7F DUP2 SUB DUP4 SWAP1 SHR SWAP2 POP PUSH2 0x2437 JUMP JUMPDEST DUP1 PUSH1 0x7F SUB DUP4 SWAP1 SHL SWAP2 POP JUMPDEST SWAP1 DUP1 MUL PUSH1 0x7F DUP2 DUP2 SHR PUSH1 0xFF DUP4 DUP2 SHR SWAP2 SWAP1 SWAP2 SHR DUP1 MUL DUP1 DUP4 SHR DUP2 DUP4 SHR SHR DUP1 MUL DUP1 DUP5 SHR DUP2 DUP5 SHR SHR DUP1 MUL DUP1 DUP6 SHR DUP2 DUP6 SHR SHR DUP1 MUL DUP1 DUP7 SHR DUP2 DUP7 SHR SHR DUP1 MUL DUP1 DUP8 SHR DUP2 DUP8 SHR SHR DUP1 MUL DUP1 DUP9 SHR DUP2 DUP9 SHR SHR DUP1 MUL DUP1 DUP10 SHR DUP2 DUP10 SHR SHR DUP1 MUL DUP1 DUP11 SHR DUP2 DUP11 SHR SHR DUP1 MUL DUP1 DUP12 SHR DUP2 DUP12 SHR SHR DUP1 MUL DUP1 DUP13 SHR DUP2 DUP13 SHR SHR DUP1 MUL DUP1 DUP14 SHR DUP2 DUP14 SHR SHR DUP1 MUL DUP1 DUP15 SHR SWAP13 DUP2 SWAP1 SHR SWAP13 SWAP1 SWAP13 SHR DUP1 MUL SWAP13 DUP14 SWAP1 SHR SWAP15 SWAP14 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80 DUP16 ADD PUSH1 0x40 SHL PUSH1 0xC0 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x8000000000000000 AND OR PUSH1 0xC1 SWAP12 SWAP1 SWAP12 SHR PUSH8 0x4000000000000000 AND SWAP11 SWAP1 SWAP11 OR PUSH1 0xC2 SWAP10 SWAP1 SWAP10 SHR PUSH8 0x2000000000000000 AND SWAP9 SWAP1 SWAP9 OR PUSH1 0xC3 SWAP8 SWAP1 SWAP8 SHR PUSH8 0x1000000000000000 AND SWAP7 SWAP1 SWAP7 OR PUSH1 0xC4 SWAP6 SWAP1 SWAP6 SHR PUSH8 0x800000000000000 AND SWAP5 SWAP1 SWAP5 OR PUSH1 0xC5 SWAP4 SWAP1 SWAP4 SHR PUSH8 0x400000000000000 AND SWAP3 SWAP1 SWAP3 OR PUSH1 0xC6 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x200000000000000 AND OR PUSH1 0xC7 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x100000000000000 AND OR PUSH1 0xC8 SWAP2 SWAP1 SWAP2 SHR PUSH7 0x80000000000000 AND OR PUSH1 0xC9 SWAP2 SWAP1 SWAP2 SHR PUSH7 0x40000000000000 AND OR PUSH1 0xCA SWAP2 SWAP1 SWAP2 SHR PUSH7 0x20000000000000 AND OR PUSH1 0xCB SWAP2 SWAP1 SWAP2 SHR PUSH7 0x10000000000000 AND OR PUSH1 0xCC SWAP2 SWAP1 SWAP2 SHR PUSH7 0x8000000000000 AND OR PUSH1 0xCD SWAP2 SWAP1 SWAP2 SHR PUSH7 0x4000000000000 AND OR PUSH10 0x3627A301D71055774C85 DUP2 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD709B7E5480FBA5A50FED5E62FFC556 DUP2 ADD PUSH1 0x80 SWAP1 DUP2 SAR SWAP1 PUSH16 0xDB2DF09E81959A81455E260799A0632F DUP4 ADD SWAP1 SAR PUSH1 0x2 DUP2 DUP2 SIGNEXTEND SWAP1 DUP4 SWAP1 SIGNEXTEND EQ PUSH2 0x267E JUMPI DUP9 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x2656 DUP3 PUSH2 0x1FD8 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND GT ISZERO PUSH2 0x2678 JUMPI DUP2 PUSH2 0x2680 JUMP JUMPDEST DUP1 PUSH2 0x2680 JUMP JUMPDEST DUP2 JUMPDEST SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0xF SIGNEXTEND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80000000000000000000000000000000 DUP2 SUB PUSH2 0x26E9 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SUB SWAP3 SWAP2 POP POP JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"921:8982:29:-:0;;;3841:130;;;;;;;;;-1:-1:-1;3862:11:29;:44;;-1:-1:-1;;;;;;;3913:27:29;;;;;;3947:5;:18;;-1:-1:-1;;;;;;3947:18:29;3955:10;3947:18;;;921:8982;;;;;;"},"deployedBytecode":{"functionDebugData":{"@burn_4457":{"entryPoint":4031,"id":4457,"parameterSlots":5,"returnSlots":2},"@collect_4481":{"entryPoint":null,"id":4481,"parameterSlots":5,"returnSlots":2},"@communityVault_4080":{"entryPoint":null,"id":4080,"parameterSlots":0,"returnSlots":0},"@fee_4156":{"entryPoint":6508,"id":4156,"parameterSlots":0,"returnSlots":1},"@flash_4670":{"entryPoint":4667,"id":4670,"parameterSlots":5,"returnSlots":0},"@getCommunityFeePending_4131":{"entryPoint":null,"id":4131,"parameterSlots":0,"returnSlots":2},"@getPluginFeePending_4145":{"entryPoint":null,"id":4145,"parameterSlots":0,"returnSlots":2},"@getReserves_4216":{"entryPoint":3516,"id":4216,"parameterSlots":0,"returnSlots":2},"@getSqrtRatioAtTick_3229":{"entryPoint":8152,"id":3229,"parameterSlots":1,"returnSlots":1},"@getTickAtSqrtRatio_3370":{"entryPoint":8951,"id":3370,"parameterSlots":1,"returnSlots":1},"@globalState_4043":{"entryPoint":null,"id":4043,"parameterSlots":0,"returnSlots":0},"@initialize_4298":{"entryPoint":7584,"id":4298,"parameterSlots":1,"returnSlots":0},"@isUnlocked_4227":{"entryPoint":null,"id":4227,"parameterSlots":0,"returnSlots":1},"@lastFeeTransferTimestamp_4063":{"entryPoint":null,"id":4063,"parameterSlots":0,"returnSlots":0},"@liquidity_4055":{"entryPoint":null,"id":4055,"parameterSlots":0,"returnSlots":0},"@mint_4379":{"entryPoint":5602,"id":4379,"parameterSlots":7,"returnSlots":3},"@nextTickGlobal_4047":{"entryPoint":null,"id":4047,"parameterSlots":0,"returnSlots":0},"@overrideFee_4115":{"entryPoint":null,"id":4115,"parameterSlots":0,"returnSlots":0},"@pluginFee_4117":{"entryPoint":null,"id":4117,"parameterSlots":0,"returnSlots":0},"@plugin_4077":{"entryPoint":null,"id":4077,"parameterSlots":0,"returnSlots":0},"@positions_4111":{"entryPoint":null,"id":4111,"parameterSlots":0,"returnSlots":0},"@prevTickGlobal_4051":{"entryPoint":null,"id":4051,"parameterSlots":0,"returnSlots":0},"@safelyGetStateOfAMM_4180":{"entryPoint":5485,"id":4180,"parameterSlots":0,"returnSlots":7},"@setCommunityFee_4699":{"entryPoint":3835,"id":4699,"parameterSlots":1,"returnSlots":0},"@setCommunityVault_4845":{"entryPoint":null,"id":4845,"parameterSlots":1,"returnSlots":0},"@setFee_4834":{"entryPoint":5203,"id":4834,"parameterSlots":1,"returnSlots":0},"@setPluginConfig_4774":{"entryPoint":6250,"id":4774,"parameterSlots":1,"returnSlots":0},"@setPlugin_4748":{"entryPoint":6401,"id":4748,"parameterSlots":1,"returnSlots":0},"@setTickSpacing_4729":{"entryPoint":7380,"id":4729,"parameterSlots":1,"returnSlots":0},"@skim_4865":{"entryPoint":3732,"id":4865,"parameterSlots":0,"returnSlots":0},"@swapToTick_4583":{"entryPoint":6613,"id":4583,"parameterSlots":1,"returnSlots":0},"@swapWithPaymentInAdvance_4609":{"entryPoint":null,"id":4609,"parameterSlots":7,"returnSlots":2},"@swap_4505":{"entryPoint":3624,"id":4505,"parameterSlots":6,"returnSlots":2},"@sync_4855":{"entryPoint":null,"id":4855,"parameterSlots":0,"returnSlots":0},"@tickSpacing_4059":{"entryPoint":null,"id":4059,"parameterSlots":0,"returnSlots":0},"@tickTable_4093":{"entryPoint":null,"id":4093,"parameterSlots":0,"returnSlots":0},"@tickTreeRoot_4067":{"entryPoint":null,"id":4067,"parameterSlots":0,"returnSlots":0},"@tickTreeSecondLayer_4073":{"entryPoint":null,"id":4073,"parameterSlots":0,"returnSlots":0},"@ticks_4087":{"entryPoint":null,"id":4087,"parameterSlots":0,"returnSlots":0},"@totalFeeGrowth0Token_4034":{"entryPoint":null,"id":4034,"parameterSlots":0,"returnSlots":0},"@totalFeeGrowth1Token_4038":{"entryPoint":null,"id":4038,"parameterSlots":0,"returnSlots":0},"negate_t_int128":{"entryPoint":9869,"id":null,"parameterSlots":1,"returnSlots":1}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:410:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"57:351:31","statements":[{"nodeType":"YulVariableDeclaration","src":"67:36:31","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"93:2:31","type":"","value":"15"},{"name":"value","nodeType":"YulIdentifier","src":"97:5:31"}],"functionName":{"name":"signextend","nodeType":"YulIdentifier","src":"82:10:31"},"nodeType":"YulFunctionCall","src":"82:21:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"71:7:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"203:168:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"224:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"227:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"217:6:31"},"nodeType":"YulFunctionCall","src":"217:88:31"},"nodeType":"YulExpressionStatement","src":"217:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"325:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"328:4:31","type":"","value":"0x11"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"318:6:31"},"nodeType":"YulFunctionCall","src":"318:15:31"},"nodeType":"YulExpressionStatement","src":"318:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"353:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"356:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"346:6:31"},"nodeType":"YulFunctionCall","src":"346:15:31"},"nodeType":"YulExpressionStatement","src":"346:15:31"}]},"condition":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"118:7:31"},{"kind":"number","nodeType":"YulLiteral","src":"127:66:31","type":"","value":"0xffffffffffffffffffffffffffffffff80000000000000000000000000000000"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"115:2:31"},"nodeType":"YulFunctionCall","src":"115:79:31"},"nodeType":"YulIf","src":"112:259:31"},{"nodeType":"YulAssignment","src":"380:22:31","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"391:1:31","type":"","value":"0"},{"name":"value_1","nodeType":"YulIdentifier","src":"394:7:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"387:3:31"},"nodeType":"YulFunctionCall","src":"387:15:31"},"variableNames":[{"name":"ret","nodeType":"YulIdentifier","src":"380:3:31"}]}]},"name":"negate_t_int128","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"39:5:31","type":""}],"returnVariables":[{"name":"ret","nodeType":"YulTypedName","src":"49:3:31","type":""}],"src":"14:394:31"}]},"contents":"{\n    { }\n    function negate_t_int128(value) -> ret\n    {\n        let value_1 := signextend(15, value)\n        if eq(value_1, 0xffffffffffffffffffffffffffffffff80000000000000000000000000000000)\n        {\n            mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n            mstore(4, 0x11)\n            revert(0, 0x24)\n        }\n        ret := sub(0, value_1)\n    }\n}","id":31,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{},"linkReferences":{},"object":"608060405234801561001057600080fd5b50600436106102ad5760003560e01c8063998e2cbe1161017b578063d8619037116100d8578063ef01df4f1161008c578063f30dba9311610071578063f30dba9314610cd3578063f637731d14610d89578063fff6cae91461042d57600080fd5b8063ef01df4f14610c93578063f085a61014610cb357600080fd5b8063e47cd4cf116100bd578063e47cd4cf14610b50578063e76c01e414610b70578063ecdecf4214610c8a57600080fd5b8063d861903714610b04578063ddca3f4314610b3157600080fd5b8063c677e3e01161012f578063d0c93a7c11610114578063d0c93a7c14610a73578063d5c35a7e14610a9a578063d8544cf314610aa757600080fd5b8063c677e3e014610a13578063cc1f97cf14610a4057600080fd5b8063a1eded8711610160578063a1eded87146102dd578063aafe29c014610900578063bca57f81146109f357600080fd5b8063998e2cbe1461086c5780639e4e02271461089357600080fd5b8063514ea4bf1161022957806377f8c3a9116101dd5780638380edb7116101c25780638380edb71461079a5780638e005553146107d457806397ce1c51146107f557600080fd5b806377f8c3a91461076d5780637bd78025146102dd57600080fd5b8063578b9a361161020e578063578b9a36146106e75780636378ae441461071057806367c25a471461072b57600080fd5b8063514ea4bf146105f557806353e978681461069e57600080fd5b80631dd19cb4116102805780633b3bc70e116102655780633b3bc70e14610458578063490e6cbc146104f55780634f1eb3d81461058e57600080fd5b80631dd19cb41461042d578063240a875a1461043757600080fd5b8063050a4d21146102b25780630902f1ac146102dd578063128acb08146103265780631a686502146103e2575b600080fd5b6003546102c6906301000000900460020b81565b6040805160029290920b8252519081900360200190f35b6102e5610dbc565b60405180836fffffffffffffffffffffffffffffffff168152602001826fffffffffffffffffffffffffffffffff1681526020019250505060405180910390f35b6103c9600480360360a081101561033c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135151592604082013592606083013516919081019060a08101608082013564010000000081111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460018302840111640100000000831117156103be57600080fd5b509092509050610e28565b6040805192835260208301919091528051918290030190f35b60035461040890660100000000000090046fffffffffffffffffffffffffffffffff1681565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610435610e94565b005b6104356004803603602081101561044d57600080fd5b503561ffff16610efb565b6103c96004803603608081101561046e57600080fd5b8135600290810b92602081013590910b916fffffffffffffffffffffffffffffffff60408301351691908101906080810160608201356401000000008111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460018302840111640100000000831117156104ea57600080fd5b509092509050610fbf565b6104356004803603608081101561050b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516916020810135916040820135919081019060808101606082013564010000000081111561054f57600080fd5b82018360208201111561056157600080fd5b8035906020019184600183028401116401000000008311171561058357600080fd5b50909250905061123b565b6102e5600480360360a08110156105a457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020810135600290810b91604081013590910b906fffffffffffffffffffffffffffffffff60608201358116916080013516610e28565b61065e6004803603602081101561060b57600080fd5b50600a60205235600090815260409020805460018201546002830154600390930154919290916fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041685565b604080519586526020860194909452848401929092526fffffffffffffffffffffffffffffffff9081166060850152166080830152519081900360a00190f35b6007546106be9073ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6004546106f79063ffffffff1681565b6040805163ffffffff9092168252519081900360200190f35b61071960005481565b60408051918252519081900360200190f35b600b546107559077010000000000000000000000000000000000000000000000900462ffffff1681565b6040805162ffffff9092168252519081900360200190f35b6003546106f790790100000000000000000000000000000000000000000000000000900463ffffffff1681565b6002547c0100000000000000000000000000000000000000000000000000000000900460ff16604080519115158252519081900360200190f35b610435600480360360208110156107ea57600080fd5b503561ffff16611453565b6107fd61156d565b6040805173ffffffffffffffffffffffffffffffffffffffff9098168852600296870b602089015261ffff9095168786015260ff90931660608701526fffffffffffffffffffffffffffffffff9091166080860152830b60a085015290910b60c0830152519081900360e00190f35b600b546107559074010000000000000000000000000000000000000000900462ffffff1681565b6103c9600480360360c08110156108a957600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135821692604082013515159260608301359260808101359091169181019060c0810160a082013564010000000081111561038a57600080fd5b6109c3600480360360c081101561091657600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135909116916040820135600290810b92606081013590910b916fffffffffffffffffffffffffffffffff608083013516919081019060c0810160a082013564010000000081111561098457600080fd5b82018360208201111561099657600080fd5b803590602001918460018302840111640100000000831117156109b857600080fd5b5090925090506115e2565b6040805193845260208401929092526fffffffffffffffffffffffffffffffff1682820152519081900360600190f35b61043560048036036020811015610a0957600080fd5b503560ff1661186a565b61071960048036036020811015610a2957600080fd5b5060096020523560010b6000908152604090205481565b61043560048036036020811015610a5657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611901565b6003546102c690760100000000000000000000000000000000000000000000900460020b81565b6003546102c69060020b81565b61043560048036036020811015610abd57600080fd5b50600780547fffffffffffffffffffffffff000000000000000000000000000000000000000016913573ffffffffffffffffffffffffffffffffffffffff16919091179055565b61071960048036036020811015610b1a57600080fd5b5060056020523560010b6000908152604090205481565b610b3961196c565b6040805161ffff9092168252519081900360200190f35b61043560048036036020811015610b6657600080fd5b503560020b6119d5565b60028054610c339173ffffffffffffffffffffffffffffffffffffffff82169174010000000000000000000000000000000000000000810490910b9061ffff77010000000000000000000000000000000000000000000000820481169160ff79010000000000000000000000000000000000000000000000000082048116927a010000000000000000000000000000000000000000000000000000830416917c010000000000000000000000000000000000000000000000000000000090041686565b6040805173ffffffffffffffffffffffffffffffffffffffff909716875260029590950b602087015261ffff9384168686015260ff90921660608601529091166080840152151560a0830152519081900360c00190f35b61071960015481565b6006546106be9073ffffffffffffffffffffffffffffffffffffffff1681565b61043560048036036020811015610cc957600080fd5b503560020b611cd4565b610d4d60048036036020811015610ce957600080fd5b50600860205235600290810b60009081526040902080546001820154828401546003909301549193600f82900b937001000000000000000000000000000000008304820b9373010000000000000000000000000000000000000090930490910b9186565b60408051968752600f9590950b6020870152600293840b868601529190920b6060850152608084019190915260a0830152519081900360c00190f35b61043560048036036020811015610d9f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611da0565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182919081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182919081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f7420696d706c656d656e7465640000000000000000000000000000000000604482015290519081900360640190fd5b6103e861ffff82161180610f35575060025461ffff8281167a01000000000000000000000000000000000000000000000000000090920416145b15610f6c576040517fa709b9af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002805461ffff9092167a010000000000000000000000000000000000000000000000000000027fffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60025460009081907901000000000000000000000000000000000000000000000000009004600416156110ef5760065473ffffffffffffffffffffffffffffffffffffffff16635e2411b233808a8a6110178b61268d565b8a8a6040518863ffffffff1660e01b8152600401808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018660020b81526020018560020b815260200184600f0b8152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509850505050505050505060408051808303816000875af11580156110d6573d6000803e3d6000fd5b505050506040513d60408110156110ec57600080fd5b50505b60025479010000000000000000000000000000000000000000000000000090046008161561122c5760065473ffffffffffffffffffffffffffffffffffffffff1663d685201033808a8a6111428b61268d565b6000808c8c6040518a63ffffffff1660e01b8152600401808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018860020b81526020018760020b815260200186600f0b8152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509a50505050505050505050506020604051808303816000875af1158015611213573d6000803e3d6000fd5b505050506040513d602081101561122957600080fd5b50505b50600096879650945050505050565b600254790100000000000000000000000000000000000000000000000000900460ff8116906010161561134a576006546040517f8de0a8ee000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8a81166024850152604484018a90526064840189905260a06084850190815260a48501889052941693638de0a8ee938b928b928b928b928b92909160c401848480828437600081840152601f19601f8201169050808301925050509750505050505050506020604051808303816000875af1158015611331573d6000803e3d6000fd5b505050506040513d602081101561134757600080fd5b50505b602081161561144b576006546040517f343d37ff000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8a81166024850152604484018a90526064840189905260006084850181905260a4850181905260e060c4860190815260e48601899052919095169463343d37ff948c938c938c939283928d928d9261010401848480828437600081840152601f19601f82011690508083019250505099505050505050505050506020604051808303816000875af1158015611432573d6000803e3d6000fd5b505050506040513d602081101561144857600080fd5b50505b505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331480611490575060065473ffffffffffffffffffffffffffffffffffffffff1633145b61149957600080fd5b60025460065479010000000000000000000000000000000000000000000000000090910460801615159073ffffffffffffffffffffffffffffffffffffffff1633036114ee57806114e957600080fd5b61151c565b801580156115135750600b5473ffffffffffffffffffffffffffffffffffffffff1633145b61151c57600080fd5b506002805461ffff90921677010000000000000000000000000000000000000000000000027fffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009182918291829182918291829181900360640190fd5b60025460009081908190790100000000000000000000000000000000000000000000000000900460041615611701576006546040517f5e2411b2000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8d8116602485015260028d810b60448601528c900b6064850152600f8b900b608485015260c060a4850190815260c485018a9052941693635e2411b2938e928e928e928e928e928e9260e401848480828437600081840152601f19601f8201169050808301925050509850505050505050505060408051808303816000875af11580156116e8573d6000803e3d6000fd5b505050506040513d60408110156116fe57600080fd5b50505b60025479010000000000000000000000000000000000000000000000000090046008161561185657600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6852010338b8b8b8b6000808d8d6040518a63ffffffff1660e01b8152600401808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018860020b81526020018760020b815260200186600f0b8152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509a50505050505050505050506020604051808303816000875af115801561183d573d6000803e3d6000fd5b505050506040513d602081101561185357600080fd5b50505b506000998a99508998509650505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314806118a7575060065473ffffffffffffffffffffffffffffffffffffffff1633145b6118b057600080fd5b6002805460ff909216790100000000000000000000000000000000000000000000000000027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461192557600080fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e74656400000000000000000000000000000000006044820152905160009181900360640190fd5b60065460025473ffffffffffffffffffffffffffffffffffffffff90911690790100000000000000000000000000000000000000000000000000900460011615611b7357604080517f029c1cb700000000000000000000000000000000000000000000000000000000815233600482018190526024820152600160448201526000606482018190526084820181905260a4820181905260e060c483015260e48201819052915173ffffffffffffffffffffffffffffffffffffffff84169263029c1cb792610104808201936060939092839003909101908290875af1158015611ac2573d6000803e3d6000fd5b505050506040513d6060811015611ad857600080fd5b506020810151604090910151600b80547fffffffffffff000000000000ffffffffffffffffffffffffffffffffffffffff167701000000000000000000000000000000000000000000000062ffffff938416027fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff16177401000000000000000000000000000000000000000092909316919091029190911790555b611b7c82611fd8565b6002805473ffffffffffffffffffffffffffffffffffffffff929092167fffffffffffffffffff0000000000000000000000000000000000000000000000909216919091177401000000000000000000000000000000000000000062ffffff8516021780825579010000000000000000000000000000000000000000000000000090041615611cd057604080517f9cb5a96300000000000000000000000000000000000000000000000000000000815233600482018190526024820152600160448201526000606482018190526084820181905260a4820181905260c4820181905261010060e48301526101048201819052915173ffffffffffffffffffffffffffffffffffffffff841692639cb5a96392610124808201936020939092839003909101908290875af1158015611cb7573d6000803e3d6000fd5b505050506040513d6020811015611ccd57600080fd5b50505b5050565b60008160020b131580611cec57506101f4600282900b135b80611d195750600354600282810b760100000000000000000000000000000000000000000000909204900b145b15611d50576040517fafe09f4400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003805462ffffff909216760100000000000000000000000000000000000000000000027fffffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000611dab826122f7565b60065490915073ffffffffffffffffffffffffffffffffffffffff1615611e6557600654604080517f636fd80400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff85811660248301529151919092169163636fd80491604480830192602092919082900301816000875af1158015611e4c573d6000803e3d6000fd5b505050506040513d6020811015611e6257600080fd5b50505b600380547fffffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffff16763c000000000000000000000000000000000000000000001790556002805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffff00000000000000000000000000000000000000000000008216177401000000000000000000000000000000000000000062ffffff85160217909155790100000000000000000000000000000000000000000000000000900460ff81169060401615611fd357600654604080517f82dd652200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8681166024830152600286900b6044830152915191909216916382dd652291606480830192602092919082900301816000875af1158015611fba573d6000803e3d6000fd5b505050506040513d6020811015611fd057600080fd5b50505b505050565b6000600282900b60171d62ffffff818401821816620d89e8811115612029576040517f3c10250f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b700100000000000000000000000000000000600182161561205757506ffffcb933bd6fad37aa2d162d1a5940015b6002821615612076576ffff97272373d413259a46990580e213a0260801c5b6004821615612095576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156120b4576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156120d3576fffcb9843d60f6159c9db58835c9266440260801c5b60208216156120f2576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615612111576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615612130576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615612150576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615612170576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615612190576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156121b0576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156121d0576fd097f3bdfd2022b8845ad8f792aa58250260801c5b6120008216156121f0576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615612210576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615612230576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615612251576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615612271576e5d6af8dedb81196699c329225ee6040260801c5b6204000082106122b7576204000082161561229a576d2216e584f5fa1ea926041bedfe980260801c5b620800008216156122b7576b048a170391f7dc42444e8fa20260801c5b60008560020b13156122e6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff045b63ffffffff0160201c949350505050565b60006401000276a373ffffffffffffffffffffffffffffffffffffffff8316108061234c575073fffd8963efd1fc6a506488495d951d5263988d2673ffffffffffffffffffffffffffffffffffffffff831610155b15612383576040517f55cf1e2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b77ffffffffffffffffffffffffffffffffffffffff00000000602083901b166fffffffffffffffffffffffffffffffff811160071b81811c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c9790881196179094179092171790911717176080811061242d57607f810383901c9150612437565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581027ffffffffffffffffffffffffffffffffffd709b7e5480fba5a50fed5e62ffc5568101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461267e578873ffffffffffffffffffffffffffffffffffffffff1661265682611fd8565b73ffffffffffffffffffffffffffffffffffffffff1611156126785781612680565b80612680565b815b9998505050505050505050565b600081600f0b7fffffffffffffffffffffffffffffffff8000000000000000000000000000000081036126e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000039291505056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2AD JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x998E2CBE GT PUSH2 0x17B JUMPI DUP1 PUSH4 0xD8619037 GT PUSH2 0xD8 JUMPI DUP1 PUSH4 0xEF01DF4F GT PUSH2 0x8C JUMPI DUP1 PUSH4 0xF30DBA93 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0xF30DBA93 EQ PUSH2 0xCD3 JUMPI DUP1 PUSH4 0xF637731D EQ PUSH2 0xD89 JUMPI DUP1 PUSH4 0xFFF6CAE9 EQ PUSH2 0x42D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xEF01DF4F EQ PUSH2 0xC93 JUMPI DUP1 PUSH4 0xF085A610 EQ PUSH2 0xCB3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xE47CD4CF GT PUSH2 0xBD JUMPI DUP1 PUSH4 0xE47CD4CF EQ PUSH2 0xB50 JUMPI DUP1 PUSH4 0xE76C01E4 EQ PUSH2 0xB70 JUMPI DUP1 PUSH4 0xECDECF42 EQ PUSH2 0xC8A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xD8619037 EQ PUSH2 0xB04 JUMPI DUP1 PUSH4 0xDDCA3F43 EQ PUSH2 0xB31 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC677E3E0 GT PUSH2 0x12F JUMPI DUP1 PUSH4 0xD0C93A7C GT PUSH2 0x114 JUMPI DUP1 PUSH4 0xD0C93A7C EQ PUSH2 0xA73 JUMPI DUP1 PUSH4 0xD5C35A7E EQ PUSH2 0xA9A JUMPI DUP1 PUSH4 0xD8544CF3 EQ PUSH2 0xAA7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC677E3E0 EQ PUSH2 0xA13 JUMPI DUP1 PUSH4 0xCC1F97CF EQ PUSH2 0xA40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xA1EDED87 GT PUSH2 0x160 JUMPI DUP1 PUSH4 0xA1EDED87 EQ PUSH2 0x2DD JUMPI DUP1 PUSH4 0xAAFE29C0 EQ PUSH2 0x900 JUMPI DUP1 PUSH4 0xBCA57F81 EQ PUSH2 0x9F3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x998E2CBE EQ PUSH2 0x86C JUMPI DUP1 PUSH4 0x9E4E0227 EQ PUSH2 0x893 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x514EA4BF GT PUSH2 0x229 JUMPI DUP1 PUSH4 0x77F8C3A9 GT PUSH2 0x1DD JUMPI DUP1 PUSH4 0x8380EDB7 GT PUSH2 0x1C2 JUMPI DUP1 PUSH4 0x8380EDB7 EQ PUSH2 0x79A JUMPI DUP1 PUSH4 0x8E005553 EQ PUSH2 0x7D4 JUMPI DUP1 PUSH4 0x97CE1C51 EQ PUSH2 0x7F5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x77F8C3A9 EQ PUSH2 0x76D JUMPI DUP1 PUSH4 0x7BD78025 EQ PUSH2 0x2DD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x578B9A36 GT PUSH2 0x20E JUMPI DUP1 PUSH4 0x578B9A36 EQ PUSH2 0x6E7 JUMPI DUP1 PUSH4 0x6378AE44 EQ PUSH2 0x710 JUMPI DUP1 PUSH4 0x67C25A47 EQ PUSH2 0x72B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x514EA4BF EQ PUSH2 0x5F5 JUMPI DUP1 PUSH4 0x53E97868 EQ PUSH2 0x69E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1DD19CB4 GT PUSH2 0x280 JUMPI DUP1 PUSH4 0x3B3BC70E GT PUSH2 0x265 JUMPI DUP1 PUSH4 0x3B3BC70E EQ PUSH2 0x458 JUMPI DUP1 PUSH4 0x490E6CBC EQ PUSH2 0x4F5 JUMPI DUP1 PUSH4 0x4F1EB3D8 EQ PUSH2 0x58E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x1DD19CB4 EQ PUSH2 0x42D JUMPI DUP1 PUSH4 0x240A875A EQ PUSH2 0x437 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x50A4D21 EQ PUSH2 0x2B2 JUMPI DUP1 PUSH4 0x902F1AC EQ PUSH2 0x2DD JUMPI DUP1 PUSH4 0x128ACB08 EQ PUSH2 0x326 JUMPI DUP1 PUSH4 0x1A686502 EQ PUSH2 0x3E2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH4 0x1000000 SWAP1 DIV PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x2 SWAP3 SWAP1 SWAP3 SIGNEXTEND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x2E5 PUSH2 0xDBC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP4 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP3 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xA0 DUP2 LT ISZERO PUSH2 0x33C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD ISZERO ISZERO SWAP3 PUSH1 0x40 DUP3 ADD CALLDATALOAD SWAP3 PUSH1 0x60 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0xA0 DUP2 ADD PUSH1 0x80 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x38A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x39C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x3BE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0xE28 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP1 MLOAD SWAP2 DUP3 SWAP1 SUB ADD SWAP1 RETURN JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x408 SWAP1 PUSH7 0x1000000000000 SWAP1 DIV PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH2 0xE94 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x44D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH2 0xFFFF AND PUSH2 0xEFB JUMP JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x80 DUP2 LT ISZERO PUSH2 0x46E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x40 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x80 DUP2 ADD PUSH1 0x60 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x4B6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x4C8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x4EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0xFBF JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x80 DUP2 LT ISZERO PUSH2 0x50B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP2 PUSH1 0x40 DUP3 ADD CALLDATALOAD SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x80 DUP2 ADD PUSH1 0x60 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x54F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x561 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x583 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x123B JUMP JUMPDEST PUSH2 0x2E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xA0 DUP2 LT ISZERO PUSH2 0x5A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 DUP2 ADD CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP2 PUSH1 0x40 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP1 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x60 DUP3 ADD CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x80 ADD CALLDATALOAD AND PUSH2 0xE28 JUMP JUMPDEST PUSH2 0x65E PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x60B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA PUSH1 0x20 MSTORE CALLDATALOAD 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 SWAP2 SWAP3 SWAP1 SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP1 DUP3 AND SWAP2 PUSH17 0x100000000000000000000000000000000 SWAP1 DIV AND DUP6 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP6 DUP7 MSTORE PUSH1 0x20 DUP7 ADD SWAP5 SWAP1 SWAP5 MSTORE DUP5 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 DUP2 AND PUSH1 0x60 DUP6 ADD MSTORE AND PUSH1 0x80 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xA0 ADD SWAP1 RETURN JUMPDEST PUSH1 0x7 SLOAD PUSH2 0x6BE SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0x4 SLOAD PUSH2 0x6F7 SWAP1 PUSH4 0xFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH4 0xFFFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x719 PUSH1 0x0 SLOAD DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0xB SLOAD PUSH2 0x755 SWAP1 PUSH24 0x10000000000000000000000000000000000000000000000 SWAP1 DIV PUSH3 0xFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x6F7 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF AND PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x7EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH2 0xFFFF AND PUSH2 0x1453 JUMP JUMPDEST PUSH2 0x7FD PUSH2 0x156D JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP9 AND DUP9 MSTORE PUSH1 0x2 SWAP7 DUP8 SIGNEXTEND PUSH1 0x20 DUP10 ADD MSTORE PUSH2 0xFFFF SWAP1 SWAP6 AND DUP8 DUP7 ADD MSTORE PUSH1 0xFF SWAP1 SWAP4 AND PUSH1 0x60 DUP8 ADD MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND PUSH1 0x80 DUP7 ADD MSTORE DUP4 SIGNEXTEND PUSH1 0xA0 DUP6 ADD MSTORE SWAP1 SWAP2 SIGNEXTEND PUSH1 0xC0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xE0 ADD SWAP1 RETURN JUMPDEST PUSH1 0xB SLOAD PUSH2 0x755 SWAP1 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 DIV PUSH3 0xFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x3C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xC0 DUP2 LT ISZERO PUSH2 0x8A9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD DUP3 AND SWAP3 PUSH1 0x40 DUP3 ADD CALLDATALOAD ISZERO ISZERO SWAP3 PUSH1 0x60 DUP4 ADD CALLDATALOAD SWAP3 PUSH1 0x80 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP2 DUP2 ADD SWAP1 PUSH1 0xC0 DUP2 ADD PUSH1 0xA0 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x38A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x9C3 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xC0 DUP2 LT ISZERO PUSH2 0x916 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP2 PUSH1 0x40 DUP3 ADD CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND SWAP3 PUSH1 0x60 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 SIGNEXTEND SWAP2 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x80 DUP4 ADD CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0xC0 DUP2 ADD PUSH1 0xA0 DUP3 ADD CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x984 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x996 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0x9B8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x15E2 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP4 DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 DUP3 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x60 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA09 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0xFF AND PUSH2 0x186A JUMP JUMPDEST PUSH2 0x719 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA29 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x9 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x1 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xA56 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1901 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH23 0x100000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH2 0x2C6 SWAP1 PUSH1 0x2 SIGNEXTEND DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xABD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x7 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND SWAP2 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x719 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xB1A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x5 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x1 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0xB39 PUSH2 0x196C JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xB66 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x2 SIGNEXTEND PUSH2 0x19D5 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH2 0xC33 SWAP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP2 PUSH21 0x10000000000000000000000000000000000000000 DUP2 DIV SWAP1 SWAP2 SIGNEXTEND SWAP1 PUSH2 0xFFFF PUSH24 0x10000000000000000000000000000000000000000000000 DUP3 DIV DUP2 AND SWAP2 PUSH1 0xFF PUSH26 0x100000000000000000000000000000000000000000000000000 DUP3 DIV DUP2 AND SWAP3 PUSH27 0x10000000000000000000000000000000000000000000000000000 DUP4 DIV AND SWAP2 PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV AND DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP8 AND DUP8 MSTORE PUSH1 0x2 SWAP6 SWAP1 SWAP6 SIGNEXTEND PUSH1 0x20 DUP8 ADD MSTORE PUSH2 0xFFFF SWAP4 DUP5 AND DUP7 DUP7 ADD MSTORE PUSH1 0xFF SWAP1 SWAP3 AND PUSH1 0x60 DUP7 ADD MSTORE SWAP1 SWAP2 AND PUSH1 0x80 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0xA0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xC0 ADD SWAP1 RETURN JUMPDEST PUSH2 0x719 PUSH1 0x1 SLOAD DUP2 JUMP JUMPDEST PUSH1 0x6 SLOAD PUSH2 0x6BE SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xCC9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x2 SIGNEXTEND PUSH2 0x1CD4 JUMP JUMPDEST PUSH2 0xD4D PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xCE9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x8 PUSH1 0x20 MSTORE CALLDATALOAD PUSH1 0x2 SWAP1 DUP2 SIGNEXTEND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 DUP3 ADD SLOAD DUP3 DUP5 ADD SLOAD PUSH1 0x3 SWAP1 SWAP4 ADD SLOAD SWAP2 SWAP4 PUSH1 0xF DUP3 SWAP1 SIGNEXTEND SWAP4 PUSH17 0x100000000000000000000000000000000 DUP4 DIV DUP3 SIGNEXTEND SWAP4 PUSH20 0x100000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP1 SWAP2 SIGNEXTEND SWAP2 DUP7 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP7 DUP8 MSTORE PUSH1 0xF SWAP6 SWAP1 SWAP6 SIGNEXTEND PUSH1 0x20 DUP8 ADD MSTORE PUSH1 0x2 SWAP4 DUP5 SIGNEXTEND DUP7 DUP7 ADD MSTORE SWAP2 SWAP1 SWAP3 SIGNEXTEND PUSH1 0x60 DUP6 ADD MSTORE PUSH1 0x80 DUP5 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xA0 DUP4 ADD MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0xC0 ADD SWAP1 RETURN JUMPDEST PUSH2 0x435 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0xD9F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1DA0 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH2 0x3E8 PUSH2 0xFFFF DUP3 AND GT DUP1 PUSH2 0xF35 JUMPI POP PUSH1 0x2 SLOAD PUSH2 0xFFFF DUP3 DUP2 AND PUSH27 0x10000000000000000000000000000000000000000000000000000 SWAP1 SWAP3 DIV AND EQ JUMPDEST ISZERO PUSH2 0xF6C JUMPI PUSH1 0x40 MLOAD PUSH32 0xA709B9AF00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND PUSH27 0x10000000000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x4 AND ISZERO PUSH2 0x10EF JUMPI PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x5E2411B2 CALLER DUP1 DUP11 DUP11 PUSH2 0x1017 DUP12 PUSH2 0x268D JUMP JUMPDEST DUP11 DUP11 PUSH1 0x40 MLOAD DUP9 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP9 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP5 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP9 POP POP POP POP POP POP POP POP POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x10D6 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x10EC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x8 AND ISZERO PUSH2 0x122C JUMPI PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xD6852010 CALLER DUP1 DUP11 DUP11 PUSH2 0x1142 DUP12 PUSH2 0x268D JUMP JUMPDEST PUSH1 0x0 DUP1 DUP13 DUP13 PUSH1 0x40 MLOAD DUP11 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP11 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP10 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP9 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1213 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1229 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP PUSH1 0x0 SWAP7 DUP8 SWAP7 POP SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF DUP2 AND SWAP1 PUSH1 0x10 AND ISZERO PUSH2 0x134A JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP11 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD DUP11 SWAP1 MSTORE PUSH1 0x64 DUP5 ADD DUP10 SWAP1 MSTORE PUSH1 0xA0 PUSH1 0x84 DUP6 ADD SWAP1 DUP2 MSTORE PUSH1 0xA4 DUP6 ADD DUP9 SWAP1 MSTORE SWAP5 AND SWAP4 PUSH4 0x8DE0A8EE SWAP4 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 DUP12 SWAP3 SWAP1 SWAP2 PUSH1 0xC4 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP8 POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1331 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1347 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x20 DUP2 AND ISZERO PUSH2 0x144B JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP11 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD DUP11 SWAP1 MSTORE PUSH1 0x64 DUP5 ADD DUP10 SWAP1 MSTORE PUSH1 0x0 PUSH1 0x84 DUP6 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP6 ADD DUP2 SWAP1 MSTORE PUSH1 0xE0 PUSH1 0xC4 DUP7 ADD SWAP1 DUP2 MSTORE PUSH1 0xE4 DUP7 ADD DUP10 SWAP1 MSTORE SWAP2 SWAP1 SWAP6 AND SWAP5 PUSH4 0x343D37FF SWAP5 DUP13 SWAP4 DUP13 SWAP4 DUP13 SWAP4 SWAP3 DUP4 SWAP3 DUP14 SWAP3 DUP14 SWAP3 PUSH2 0x104 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP10 POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1432 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1448 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ DUP1 PUSH2 0x1490 JUMPI POP PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x1499 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x6 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 SWAP2 DIV PUSH1 0x80 AND ISZERO ISZERO SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER SUB PUSH2 0x14EE JUMPI DUP1 PUSH2 0x14E9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x151C JUMP JUMPDEST DUP1 ISZERO DUP1 ISZERO PUSH2 0x1513 JUMPI POP PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x151C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x2 DUP1 SLOAD PUSH2 0xFFFF SWAP1 SWAP3 AND PUSH24 0x10000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 DUP2 SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x4 AND ISZERO PUSH2 0x1701 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 MLOAD PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP14 DUP2 AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x2 DUP14 DUP2 SIGNEXTEND PUSH1 0x44 DUP7 ADD MSTORE DUP13 SWAP1 SIGNEXTEND PUSH1 0x64 DUP6 ADD MSTORE PUSH1 0xF DUP12 SWAP1 SIGNEXTEND PUSH1 0x84 DUP6 ADD MSTORE PUSH1 0xC0 PUSH1 0xA4 DUP6 ADD SWAP1 DUP2 MSTORE PUSH1 0xC4 DUP6 ADD DUP11 SWAP1 MSTORE SWAP5 AND SWAP4 PUSH4 0x5E2411B2 SWAP4 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 DUP15 SWAP3 PUSH1 0xE4 ADD DUP5 DUP5 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP9 POP POP POP POP POP POP POP POP POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x16E8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x16FE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x2 SLOAD PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x8 AND ISZERO PUSH2 0x1856 JUMPI PUSH1 0x6 PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xD6852010 CALLER DUP12 DUP12 DUP12 DUP12 PUSH1 0x0 DUP1 DUP14 DUP14 PUSH1 0x40 MLOAD DUP11 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD DUP1 DUP11 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP10 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP9 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x2 SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0xF SIGNEXTEND DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP5 DUP5 DUP3 DUP2 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x183D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1853 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP PUSH1 0x0 SWAP10 DUP11 SWAP10 POP DUP10 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ DUP1 PUSH2 0x18A7 JUMPI POP PUSH1 0x6 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ JUMPDEST PUSH2 0x18B0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH1 0xFF SWAP1 SWAP3 AND PUSH26 0x100000000000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0xB SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER EQ PUSH2 0x1925 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x6 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x6E6F7420696D706C656D656E7465640000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD PUSH1 0x0 SWAP2 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x6 SLOAD PUSH1 0x2 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND SWAP1 PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0x1 AND ISZERO PUSH2 0x1B73 JUMPI PUSH1 0x40 DUP1 MLOAD PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x0 PUSH1 0x64 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xE0 PUSH1 0xC4 DUP4 ADD MSTORE PUSH1 0xE4 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND SWAP3 PUSH4 0x29C1CB7 SWAP3 PUSH2 0x104 DUP1 DUP3 ADD SWAP4 PUSH1 0x60 SWAP4 SWAP1 SWAP3 DUP4 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 DUP3 SWAP1 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1AC2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x1AD8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 DUP2 ADD MLOAD PUSH1 0x40 SWAP1 SWAP2 ADD MLOAD PUSH1 0xB DUP1 SLOAD PUSH32 0xFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH24 0x10000000000000000000000000000000000000000000000 PUSH3 0xFFFFFF SWAP4 DUP5 AND MUL PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND OR PUSH21 0x10000000000000000000000000000000000000000 SWAP3 SWAP1 SWAP4 AND SWAP2 SWAP1 SWAP2 MUL SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMPDEST PUSH2 0x1B7C DUP3 PUSH2 0x1FD8 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH32 0xFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF DUP6 AND MUL OR DUP1 DUP3 SSTORE PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV AND ISZERO PUSH2 0x1CD0 JUMPI PUSH1 0x40 DUP1 MLOAD PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x0 PUSH1 0x64 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x84 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xA4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0xC4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH2 0x100 PUSH1 0xE4 DUP4 ADD MSTORE PUSH2 0x104 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND SWAP3 PUSH4 0x9CB5A963 SWAP3 PUSH2 0x124 DUP1 DUP3 ADD SWAP4 PUSH1 0x20 SWAP4 SWAP1 SWAP3 DUP4 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 DUP3 SWAP1 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1CB7 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1CCD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x2 SIGNEXTEND SGT ISZERO DUP1 PUSH2 0x1CEC JUMPI POP PUSH2 0x1F4 PUSH1 0x2 DUP3 SWAP1 SIGNEXTEND SGT JUMPDEST DUP1 PUSH2 0x1D19 JUMPI POP PUSH1 0x3 SLOAD PUSH1 0x2 DUP3 DUP2 SIGNEXTEND PUSH23 0x100000000000000000000000000000000000000000000 SWAP1 SWAP3 DIV SWAP1 SIGNEXTEND EQ JUMPDEST ISZERO PUSH2 0x1D50 JUMPI PUSH1 0x40 MLOAD PUSH32 0xAFE09F4400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND PUSH23 0x100000000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1DAB DUP3 PUSH2 0x22F7 JUMP JUMPDEST PUSH1 0x6 SLOAD SWAP1 SWAP2 POP PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND ISZERO PUSH2 0x1E65 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP6 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE SWAP2 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP2 PUSH4 0x636FD804 SWAP2 PUSH1 0x44 DUP1 DUP4 ADD SWAP3 PUSH1 0x20 SWAP3 SWAP2 SWAP1 DUP3 SWAP1 SUB ADD DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E4C JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1E62 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH23 0x3C00000000000000000000000000000000000000000000 OR SWAP1 SSTORE PUSH1 0x2 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000 DUP3 AND OR PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF DUP6 AND MUL OR SWAP1 SWAP2 SSTORE PUSH26 0x100000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH1 0xFF DUP2 AND SWAP1 PUSH1 0x40 AND ISZERO PUSH2 0x1FD3 JUMPI PUSH1 0x6 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP7 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE PUSH1 0x2 DUP7 SWAP1 SIGNEXTEND PUSH1 0x44 DUP4 ADD MSTORE SWAP2 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP2 PUSH4 0x82DD6522 SWAP2 PUSH1 0x64 DUP1 DUP4 ADD SWAP3 PUSH1 0x20 SWAP3 SWAP2 SWAP1 DUP3 SWAP1 SUB ADD DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1FBA JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x1FD0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 SWAP1 SIGNEXTEND PUSH1 0x17 SAR PUSH3 0xFFFFFF DUP2 DUP5 ADD DUP3 XOR AND PUSH3 0xD89E8 DUP2 GT ISZERO PUSH2 0x2029 JUMPI PUSH1 0x40 MLOAD PUSH32 0x3C10250F00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH17 0x100000000000000000000000000000000 PUSH1 0x1 DUP3 AND ISZERO PUSH2 0x2057 JUMPI POP PUSH16 0xFFFCB933BD6FAD37AA2D162D1A594001 JUMPDEST PUSH1 0x2 DUP3 AND ISZERO PUSH2 0x2076 JUMPI PUSH16 0xFFF97272373D413259A46990580E213A MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x4 DUP3 AND ISZERO PUSH2 0x2095 JUMPI PUSH16 0xFFF2E50F5F656932EF12357CF3C7FDCC MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x8 DUP3 AND ISZERO PUSH2 0x20B4 JUMPI PUSH16 0xFFE5CACA7E10E4E61C3624EAA0941CD0 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x10 DUP3 AND ISZERO PUSH2 0x20D3 JUMPI PUSH16 0xFFCB9843D60F6159C9DB58835C926644 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x20 DUP3 AND ISZERO PUSH2 0x20F2 JUMPI PUSH16 0xFF973B41FA98C081472E6896DFB254C0 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x40 DUP3 AND ISZERO PUSH2 0x2111 JUMPI PUSH16 0xFF2EA16466C96A3843EC78B326B52861 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x80 DUP3 AND ISZERO PUSH2 0x2130 JUMPI PUSH16 0xFE5DEE046A99A2A811C461F1969C3053 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x100 DUP3 AND ISZERO PUSH2 0x2150 JUMPI PUSH16 0xFCBE86C7900A88AEDCFFC83B479AA3A4 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x200 DUP3 AND ISZERO PUSH2 0x2170 JUMPI PUSH16 0xF987A7253AC413176F2B074CF7815E54 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x400 DUP3 AND ISZERO PUSH2 0x2190 JUMPI PUSH16 0xF3392B0822B70005940C7A398E4B70F3 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x800 DUP3 AND ISZERO PUSH2 0x21B0 JUMPI PUSH16 0xE7159475A2C29B7443B29C7FA6E889D9 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x1000 DUP3 AND ISZERO PUSH2 0x21D0 JUMPI PUSH16 0xD097F3BDFD2022B8845AD8F792AA5825 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x2000 DUP3 AND ISZERO PUSH2 0x21F0 JUMPI PUSH16 0xA9F746462D870FDF8A65DC1F90E061E5 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x4000 DUP3 AND ISZERO PUSH2 0x2210 JUMPI PUSH16 0x70D869A156D2A1B890BB3DF62BAF32F7 MUL PUSH1 0x80 SHR JUMPDEST PUSH2 0x8000 DUP3 AND ISZERO PUSH2 0x2230 JUMPI PUSH16 0x31BE135F97D08FD981231505542FCFA6 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x10000 DUP3 AND ISZERO PUSH2 0x2251 JUMPI PUSH16 0x9AA508B5B7A84E1C677DE54F3E99BC9 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x20000 DUP3 AND ISZERO PUSH2 0x2271 JUMPI PUSH15 0x5D6AF8DEDB81196699C329225EE604 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x40000 DUP3 LT PUSH2 0x22B7 JUMPI PUSH3 0x40000 DUP3 AND ISZERO PUSH2 0x229A JUMPI PUSH14 0x2216E584F5FA1EA926041BEDFE98 MUL PUSH1 0x80 SHR JUMPDEST PUSH3 0x80000 DUP3 AND ISZERO PUSH2 0x22B7 JUMPI PUSH12 0x48A170391F7DC42444E8FA2 MUL PUSH1 0x80 SHR JUMPDEST PUSH1 0x0 DUP6 PUSH1 0x2 SIGNEXTEND SGT ISZERO PUSH2 0x22E6 JUMPI PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DIV JUMPDEST PUSH4 0xFFFFFFFF ADD PUSH1 0x20 SHR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH5 0x1000276A3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND LT DUP1 PUSH2 0x234C JUMPI POP PUSH20 0xFFFD8963EFD1FC6A506488495D951D5263988D26 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND LT ISZERO JUMPDEST ISZERO PUSH2 0x2383 JUMPI PUSH1 0x40 MLOAD PUSH32 0x55CF1E2300000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH24 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000 PUSH1 0x20 DUP4 SWAP1 SHL AND PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 GT PUSH1 0x7 SHL DUP2 DUP2 SHR PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH1 0x6 SHL SWAP1 DUP2 SHR PUSH4 0xFFFFFFFF DUP2 GT PUSH1 0x5 SHL SWAP1 DUP2 SHR PUSH2 0xFFFF DUP2 GT PUSH1 0x4 SHL SWAP1 DUP2 SHR PUSH1 0xFF DUP2 GT PUSH1 0x3 SWAP1 DUP2 SHL SWAP2 DUP3 SHR PUSH1 0xF DUP2 GT PUSH1 0x2 SHL SWAP1 DUP2 SHR SWAP2 DUP3 GT PUSH1 0x1 SWAP1 DUP2 SHL SWAP3 DUP4 SHR SWAP8 SWAP1 DUP9 GT SWAP7 OR SWAP1 SWAP5 OR SWAP1 SWAP3 OR OR SWAP1 SWAP2 OR OR OR PUSH1 0x80 DUP2 LT PUSH2 0x242D JUMPI PUSH1 0x7F DUP2 SUB DUP4 SWAP1 SHR SWAP2 POP PUSH2 0x2437 JUMP JUMPDEST DUP1 PUSH1 0x7F SUB DUP4 SWAP1 SHL SWAP2 POP JUMPDEST SWAP1 DUP1 MUL PUSH1 0x7F DUP2 DUP2 SHR PUSH1 0xFF DUP4 DUP2 SHR SWAP2 SWAP1 SWAP2 SHR DUP1 MUL DUP1 DUP4 SHR DUP2 DUP4 SHR SHR DUP1 MUL DUP1 DUP5 SHR DUP2 DUP5 SHR SHR DUP1 MUL DUP1 DUP6 SHR DUP2 DUP6 SHR SHR DUP1 MUL DUP1 DUP7 SHR DUP2 DUP7 SHR SHR DUP1 MUL DUP1 DUP8 SHR DUP2 DUP8 SHR SHR DUP1 MUL DUP1 DUP9 SHR DUP2 DUP9 SHR SHR DUP1 MUL DUP1 DUP10 SHR DUP2 DUP10 SHR SHR DUP1 MUL DUP1 DUP11 SHR DUP2 DUP11 SHR SHR DUP1 MUL DUP1 DUP12 SHR DUP2 DUP12 SHR SHR DUP1 MUL DUP1 DUP13 SHR DUP2 DUP13 SHR SHR DUP1 MUL DUP1 DUP14 SHR DUP2 DUP14 SHR SHR DUP1 MUL DUP1 DUP15 SHR SWAP13 DUP2 SWAP1 SHR SWAP13 SWAP1 SWAP13 SHR DUP1 MUL SWAP13 DUP14 SWAP1 SHR SWAP15 SWAP14 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80 DUP16 ADD PUSH1 0x40 SHL PUSH1 0xC0 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x8000000000000000 AND OR PUSH1 0xC1 SWAP12 SWAP1 SWAP12 SHR PUSH8 0x4000000000000000 AND SWAP11 SWAP1 SWAP11 OR PUSH1 0xC2 SWAP10 SWAP1 SWAP10 SHR PUSH8 0x2000000000000000 AND SWAP9 SWAP1 SWAP9 OR PUSH1 0xC3 SWAP8 SWAP1 SWAP8 SHR PUSH8 0x1000000000000000 AND SWAP7 SWAP1 SWAP7 OR PUSH1 0xC4 SWAP6 SWAP1 SWAP6 SHR PUSH8 0x800000000000000 AND SWAP5 SWAP1 SWAP5 OR PUSH1 0xC5 SWAP4 SWAP1 SWAP4 SHR PUSH8 0x400000000000000 AND SWAP3 SWAP1 SWAP3 OR PUSH1 0xC6 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x200000000000000 AND OR PUSH1 0xC7 SWAP2 SWAP1 SWAP2 SHR PUSH8 0x100000000000000 AND OR PUSH1 0xC8 SWAP2 SWAP1 SWAP2 SHR PUSH7 0x80000000000000 AND OR PUSH1 0xC9 SWAP2 SWAP1 SWAP2 SHR PUSH7 0x40000000000000 AND OR PUSH1 0xCA SWAP2 SWAP1 SWAP2 SHR PUSH7 0x20000000000000 AND OR PUSH1 0xCB SWAP2 SWAP1 SWAP2 SHR PUSH7 0x10000000000000 AND OR PUSH1 0xCC SWAP2 SWAP1 SWAP2 SHR PUSH7 0x8000000000000 AND OR PUSH1 0xCD SWAP2 SWAP1 SWAP2 SHR PUSH7 0x4000000000000 AND OR PUSH10 0x3627A301D71055774C85 DUP2 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD709B7E5480FBA5A50FED5E62FFC556 DUP2 ADD PUSH1 0x80 SWAP1 DUP2 SAR SWAP1 PUSH16 0xDB2DF09E81959A81455E260799A0632F DUP4 ADD SWAP1 SAR PUSH1 0x2 DUP2 DUP2 SIGNEXTEND SWAP1 DUP4 SWAP1 SIGNEXTEND EQ PUSH2 0x267E JUMPI DUP9 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x2656 DUP3 PUSH2 0x1FD8 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND GT ISZERO PUSH2 0x2678 JUMPI DUP2 PUSH2 0x2680 JUMP JUMPDEST DUP1 PUSH2 0x2680 JUMP JUMPDEST DUP2 JUMPDEST SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0xF SIGNEXTEND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80000000000000000000000000000000 DUP2 SUB PUSH2 0x26E9 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SUB SWAP3 SWAP2 POP POP JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"921:8982:29:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4014:111;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6527:148;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6527:148:29;;-1:-1:-1;6527:148:29;-1:-1:-1;6527:148:29;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1899:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9823:77;;;:::i;:::-;;8025:284;;;;;;;;;;;;;;;;-1:-1:-1;8025:284:29;;;;:::i;5686:605::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5686:605:29;;-1:-1:-1;5686:605:29;-1:-1:-1;5686:605:29;:::i;7487:481::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7487:481:29;;-1:-1:-1;7487:481:29;-1:-1:-1;7487:481:29;:::i;6336:146::-;;;;;;;;;;;;;;;;-1:-1:-1;6336:146:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3050:54::-;;;;;;;;;;;;;;;;-1:-1:-1;3050:54:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2428:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;2140:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;1486:44;;;;;;;;;;;;;;;;;;;;;;3159:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2049:47;;;;;;;;;;;;4168:109;4251:11;:20;;;;;;4168:109;;;;;;;;;;;;;;;;;9114:393;;;;;;;;;;;;;;;;-1:-1:-1;9114:393:29;;;;:::i;3680:155::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3129:25;;;;;;;;;;;;7265:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4965:676;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4965:676:29;;-1:-1:-1;4965:676:29;-1:-1:-1;4965:676:29;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8889:168;;;;;;;;;;;;;;;;-1:-1:-1;8889:168:29;;;;:::i;2613:51::-;;;;;;;;;;;;;;;;-1:-1:-1;2613:51:29;;;;;;;;;;;;;;;;8696:136;;;;;;;;;;;;;;;;-1:-1:-1;8696:136:29;;;;:::i;1974:33::-;;;;;;;;;;;;1741:36;;;;;;;;;9513:119;;;;;;;;;;;;;;;;-1:-1:-1;9592:14:29;:34;;;;9513:119;;;;9592:34;;;;;;9513:119;2251:61;;;;;;;;;;;;;;;;-1:-1:-1;2251:61:29;;;;;;;;;;;;;;;;3553:84;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6681:539;;;;;;;;;;;;;;;;-1:-1:-1;6681:539:29;;;;:::i;1658:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1572:44;;;;;;2391:30;;;;;;;;;8366:273;;;;;;;;;;;;;;;;-1:-1:-1;8366:273:29;;;;:::i;2510:59::-;;;;;;;;;;;;;;;;-1:-1:-1;2510:59:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4322:598;;;;;;;;;;;;;;;;-1:-1:-1;4322:598:29;;;;:::i;4014:111::-;4094:25;;;;;;;;;;;;;;;;;;;;;;;4069:7;;;;4094:25;;;;;;;;6527:148;6644:25;;;;;;;;;;;;;;;;;;;;;;;6621:6;;;;6644:25;;;;;;;;9823:77;9869:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8025:284;1241:3:15;8103:45:29;;;;;:92;;-1:-1:-1;8171:11:29;:24;;8152:43;;;8171:24;;;;;8152:43;8103:92;8099:155;;;8211:43;;;;;;;;;;;;;;8099:155;8261:11;:42;;;;;;;;;;;;;;;;;;8025:284::o;5686:605::-;5836:11;:24;5807:7;;;;5836:24;;;839:6:18;5836:62:29;:67;5832:211;;5929:6;;;;5914:43;5958:10;;5982;5994:7;6003:25;6011:16;6003:25;:::i;:::-;6030:4;;5914:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5832:211:29;6055:11;:24;;;;904:6:18;6055:61:29;:66;6051:215;;6147:6;;;;6132:42;6175:10;;6199;6211:7;6220:25;6228:16;6220:25;:::i;:::-;6247:1;6250;6253:4;;6132:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6051:215:29;-1:-1:-1;6280:1:29;;;;-1:-1:-1;5686:605:29;-1:-1:-1;;;;;5686:605:29:o;7487:481::-;7622:11;:24;;;;;;;;960:6:18;7657:40:29;:45;7653:149;;7728:6;;7713:81;;;;;7748:10;7713:81;;;;;;7728:6;7713:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7728:6;;;7713:34;;7760:9;;7771:7;;7780;;7789:4;;;;7713:81;;;;7789:4;;;;7713:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7653:149:29;1015:6:18;7814:39:29;;:44;7810:153;;7884:6;;7869:86;;;;;7903:10;7869:86;;;;;;7884:6;7869:86;;;;;;;;;;;;;;;;;;;7884:6;7869:86;;;;;;;;;;;;;;;;;;;;;;;;;7884:6;;;;;7869:33;;7915:9;;7926:7;;7935;;7884:6;;;7950:4;;;;7869:86;;7950:4;;;;7869:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7810:153:29;7594:374;7487:481;;;;;:::o;9114:393::-;9192:5;;;;9178:10;:19;;:43;;-1:-1:-1;9215:6:29;;;;9201:10;:20;9178:43;9170:52;;;;;;9256:11;:24;9341:6;;9256:24;;;;1119:6:18;9256:53:29;:58;;;9341:6;;9327:10;:20;9323:146;;9366:19;9358:28;;;;;;9323:146;;;9418:19;9417:20;:43;;;;-1:-1:-1;9455:5:29;;;;9441:10;:19;9417:43;9409:52;;;;;;-1:-1:-1;9477:11:29;:24;;;;;;;;;;;;;;;;;;9114:393::o;3680:155::-;3804:25;;;;;;;;;;;;;;;;;;;;;;;3743:7;;;;;;;;;;;;;;3804:25;;;;;;;4965:676;5187:11;:24;5149:7;;;;;;5187:24;;;839:6:18;5187:62:29;:67;5183:209;;5280:6;;5265:119;;;;;5309:10;5265:119;;;;;;5280:6;5265:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5280:6;;;5265:43;;5321:9;;5332:10;;5344:7;;5360:16;;5379:4;;;;5265:119;;5379:4;;;;5265:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5183:209:29;5404:11;:24;;;;904:6:18;5404:61:29;:66;5400:213;;5496:6;;;;;;;;;;;5481:42;;;5524:10;5536:9;5547:10;5559:7;5575:16;5594:1;5597;5600:4;;5481:124;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5400:213:29;-1:-1:-1;5627:1:29;;;;-1:-1:-1;5627:1:29;;-1:-1:-1;4965:676:29;-1:-1:-1;;;;;;;4965:676:29:o;8889:168::-;8978:5;;;;8964:10;:19;;:43;;-1:-1:-1;9001:6:29;;;;8987:10;:20;8964:43;8956:52;;;;;;9015:11;:36;;;;;;;;;;;;;;;;;;8889:168::o;8696:136::-;8788:5;;;;8774:10;:19;8766:28;;;;;;8801:6;:25;;;;;;;;;;;;;;;8696:136::o;3553:84::-;3606:25;;;;;;;;;;;;;;;;;;;;;;;3591:6;;3606:25;;;;;;;6681:539;6775:6;;6793:11;:24;6775:6;;;;;6793:24;;;6775:6;6793:51;:56;6789:173;;6889:65;;;;;;6908:10;6889:65;;;;;;;;;;6932:4;6889:65;;;;6938:1;6889:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:18;;;;;;:65;;;;;;;;;;;;;;;;;;:18;:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6889:65:29;;;;;;;;;6863:11;6860:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;6789:173;6990:39;7018:10;6990:27;:39::i;:::-;6970:11;:59;;;;;;;7036:29;;;;;;;;;;;;;;;;;7078:24;;;:50;:55;7074:141;;7144:63;;;;;;7162:10;7144:63;;;;;;;;;;7186:4;7144:63;;;;7192:1;7144:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:17;;;;;;:63;;;;;;;;;;;;;;;;;;:17;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7074:141:29;6728:492;6681:539;:::o;8366:273::-;8459:1;8441:14;:19;;;;:66;;;-1:-1:-1;864:3:15;8464:43:29;;;;;8441:66;:99;;;-1:-1:-1;8511:11:29;;:29;;;;:11;;;;;;:29;8441:99;8437:161;;;8556:42;;;;;;;;;;;;;;8437:161;8605:11;:28;;;;;;;;;;;;;;;;;;8366:273::o;4322:598::-;4389:10;4402:41;4430:12;4402:27;:41::i;:::-;4517:6;;4389:54;;-1:-1:-1;4517:20:29;:6;:20;4513:108;;4563:6;;4548:65;;;;;;4588:10;4548:65;;;;4563:6;4548:65;;;;;;;;;4563:6;;;;;4548:39;;:65;;;;;;;;;;;;;;4563:6;;4548:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4513:108:29;4629:11;:16;;;;;;;;;4675:24;;4708:32;;;4747:23;;;;;4629:16;4747:23;;;;;;;4675:24;;;;;;;1069:6:18;4783:38:29;:43;4779:136;;4852:6;;4837:70;;;;;;4876:10;4837:70;;;;4852:6;4837:70;;;;;;;;;;;;;;;;;4852:6;;;;;4837:38;;:70;;;;;;;;;;;;;;4852:6;;4837:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4779:136:29;4382:538;;4322:598;:::o;1513:2696:22:-;1576:13;1658:16;;;;1667:6;1658:16;1682:60;1708:18;;;1707:34;;1682:60;822:9;1754:26;;1750:74;;;1789:35;;;;;;;;;;;;;;1750:74;1849:35;1906:3;1896:13;;:18;1892:66;;-1:-1:-1;1924:34:22;1892:66;1980:3;1970:13;;:18;1966:83;;2007:34;1999:42;2046:3;1998:51;1966:83;2071:3;2061:13;;:18;2057:83;;2098:34;2090:42;2137:3;2089:51;2057:83;2162:3;2152:13;;:18;2148:83;;2189:34;2181:42;2228:3;2180:51;2148:83;2253:4;2243:14;;:19;2239:84;;2281:34;2273:42;2320:3;2272:51;2239:84;2345:4;2335:14;;:19;2331:84;;2373:34;2365:42;2412:3;2364:51;2331:84;2437:4;2427:14;;:19;2423:84;;2465:34;2457:42;2504:3;2456:51;2423:84;2529:4;2519:14;;:19;2515:84;;2557:34;2549:42;2596:3;2548:51;2515:84;2621:5;2611:15;;:20;2607:85;;2650:34;2642:42;2689:3;2641:51;2607:85;2714:5;2704:15;;:20;2700:85;;2743:34;2735:42;2782:3;2734:51;2700:85;2807:5;2797:15;;:20;2793:85;;2836:34;2828:42;2875:3;2827:51;2793:85;2900:5;2890:15;;:20;2886:85;;2929:34;2921:42;2968:3;2920:51;2886:85;2993:6;2983:16;;:21;2979:86;;3023:34;3015:42;3062:3;3014:51;2979:86;3087:6;3077:16;;:21;3073:86;;3117:34;3109:42;3156:3;3108:51;3073:86;3181:6;3171:16;;:21;3167:86;;3211:34;3203:42;3250:3;3202:51;3167:86;3275:6;3265:16;;:21;3261:86;;3305:34;3297:42;3344:3;3296:51;3261:86;3369:7;3359:17;;:22;3355:86;;3400:33;3392:41;3438:3;3391:50;3355:86;3463:7;3453:17;;:22;3449:85;;3494:32;3486:40;3531:3;3485:49;3449:85;3557:7;3546;:18;3542:214;;3590:7;3580:17;;:22;3576:83;;3621:30;3613:38;3656:3;3612:47;3576:83;3683:7;3673:17;;:22;3669:78;;3714:25;3706:33;3744:3;3705:42;3669:78;3775:1;3768:4;:8;;;3764:90;;;3822:6;3818:18;3764:90;4180:10;4172:18;4195:2;4171:26;;1513:2696;-1:-1:-1;;;;1513:2696:22:o;4602:3874::-;4668:10;998;4806:22;;;;;:49;;-1:-1:-1;1174:49:22;4832:23;;;;;4806:49;4802:98;;;4864:36;;;;;;;;;;;;;;4802:98;4924:20;4942:2;4924:20;;;;5039:34;5033:41;;5030:1;5026:49;5115:9;;;5180:18;5174:25;;5171:1;5167:33;5240:9;;;5305:10;5299:17;;5296:1;5292:25;5357:9;;;5422:6;5416:13;;5413:1;5409:21;5470:9;;;5535:4;5529:11;;5526:1;5522:19;;;5581:9;;;5646:3;5640:10;;5637:1;5633:18;5691:9;;;5750:10;;;5747:1;5743:18;;;5801:9;;;;5853:10;;;5216;;5333;;;5446;;;5557;5667;;;5777;5879;5916:3;5909:10;;5905:77;;5941:3;5935;:9;5925:5;:20;;5921:24;;5905:77;;;5978:3;5972;:9;5962:5;:20;;5958:24;;5905:77;6073:9;;;6068:3;6064:19;;;6101:11;;;;6165:9;;;;6222;;6213:19;;;6250:11;;;6314:9;6371;;6362:19;;;6399:11;;;6463:9;6520;;6511:19;;;6548:11;;;6612:9;6669;;6660:19;;;6697:11;;;6761:9;6818;;6809:19;;;6846:11;;;6910:9;6967;;6958:19;;;6995:11;;;7059:9;7116;;7107:19;;;7144:11;;;7208:9;7265;;7256:19;;;7293:11;;;7357:9;7414;;7405:19;;;7442:11;;;7506:9;7563;;7554:19;;;7591:11;;;7655:9;7712;;7703:19;;;7740:11;;;7804:9;7861;;7852:19;;;7889:11;;;;7953:9;;;;8010;;8001:19;;;;;6073:9;6007:17;;;6029:2;6006:25;6140:10;;;;;;;6130:21;6289:10;;;;;;;6279:21;;;;6438:10;;;;;;;6428:21;;;;6587:10;;;;;;;6577:21;;;;6736:10;;;;;;;6726:21;;;;6885:10;;;;;;;6875:21;;;;7034:10;;;;;;;7024:21;7183:10;;;;;;;7173:21;7332:10;;;;;;;7322:21;7481:10;;;;;;;7471:21;7630:10;;;;;;;7620:21;7779:10;;;;;;;7769:21;7928:10;;;;;;;7918:21;8077:10;;;;;;;8067:21;8135:24;8127:32;;8209:53;;;6021:3;8208:62;;;;8317:39;8301:55;;8300:64;;8381:17;;;;;;;;;:84;;8441:5;8411:35;;:26;8430:6;8411:18;:26::i;:::-;:35;;;;:54;;8458:7;8381:84;;8411:54;8449:6;8381:84;;;8401:7;8381:84;8374:91;4602:3874;-1:-1:-1;;;;;;;;;4602:3874:22:o;14:394:31:-;49:3;97:5;93:2;82:21;127:66;118:7;115:79;112:259;;227:77;224:1;217:88;328:4;325:1;318:15;356:4;353:1;346:15;112:259;391:1;387:15;;14:394;-1:-1:-1;;14:394:31:o"},"methodIdentifiers":{"burn(int24,int24,uint128,bytes)":"3b3bc70e","collect(address,int24,int24,uint128,uint128)":"4f1eb3d8","communityVault()":"53e97868","fee()":"ddca3f43","flash(address,uint256,uint256,bytes)":"490e6cbc","getCommunityFeePending()":"7bd78025","getPluginFeePending()":"a1eded87","getReserves()":"0902f1ac","globalState()":"e76c01e4","initialize(uint160)":"f637731d","isUnlocked()":"8380edb7","lastFeeTransferTimestamp()":"77f8c3a9","liquidity()":"1a686502","mint(address,address,int24,int24,uint128,bytes)":"aafe29c0","nextTickGlobal()":"d5c35a7e","overrideFee()":"998e2cbe","plugin()":"ef01df4f","pluginFee()":"67c25a47","positions(bytes32)":"514ea4bf","prevTickGlobal()":"050a4d21","safelyGetStateOfAMM()":"97ce1c51","setCommunityFee(uint16)":"240a875a","setCommunityVault(address)":"d8544cf3","setFee(uint16)":"8e005553","setPlugin(address)":"cc1f97cf","setPluginConfig(uint8)":"bca57f81","setTickSpacing(int24)":"f085a610","skim()":"1dd19cb4","swap(address,bool,int256,uint160,bytes)":"128acb08","swapToTick(int24)":"e47cd4cf","swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)":"9e4e0227","sync()":"fff6cae9","tickSpacing()":"d0c93a7c","tickTable(int16)":"c677e3e0","tickTreeRoot()":"578b9a36","tickTreeSecondLayer(int16)":"d8619037","ticks(int24)":"f30dba93","totalFeeGrowth0Token()":"6378ae44","totalFeeGrowth1Token()":"ecdecf42"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"invalidNewCommunityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewTickSpacing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"priceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickOutOfRange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"communityVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunityFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPluginFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFeeTransferTimestamp\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"overrideFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plugin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pluginFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prevTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safelyGetStateOfAMM\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"setCommunityVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newFee\",\"type\":\"uint16\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"setPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newConfig\",\"type\":\"uint8\"}],\"name\":\"setPluginConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"targetTick\",\"type\":\"int24\"}],\"name\":\"swapToTick\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"swapWithPaymentInAdvance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickTreeRoot\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTreeSecondLayer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityTotal\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"int24\",\"name\":\"prevTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"details\":\"Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0Fees must be collected separately via a call to #collect\",\"params\":{\"amount\":\"How much liquidity to burn\",\"bottomTick\":\"The lower tick of the position for which to burn liquidity\",\"data\":\"Any data that should be passed through to the plugin\",\"topTick\":\"The upper tick of the position for which to burn liquidity\"},\"returns\":{\"_0\":\"The amount of token0 sent to the recipient\",\"_1\":\"The amount of token1 sent to the recipient\"}},\"collect(address,int24,int24,uint128,uint128)\":{\"details\":\"Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\",\"params\":{\"amount0Requested\":\"How much token0 should be withdrawn from the fees owed\",\"amount1Requested\":\"How much token1 should be withdrawn from the fees owed\",\"bottomTick\":\"The lower tick of the position for which to collect fees\",\"recipient\":\"The address which should receive the fees collected\",\"topTick\":\"The upper tick of the position for which to collect fees\"},\"returns\":{\"_0\":\"The amount of fees collected in token0\",\"_1\":\"The amount of fees collected in token1\"}},\"fee()\":{\"details\":\"In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee. If the plugin implements complex fee logic, this method may return an incorrect value or revert. In this case, see the plugin implementation and related documentation.**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The current pool fee value in hundredths of a bip, i.e. 1e-6\"}},\"flash(address,uint256,uint256,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallbackAll excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee. If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\",\"params\":{\"amount0\":\"The amount of token0 to send\",\"amount1\":\"The amount of token1 to send\",\"data\":\"Any data to be passed through to the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\"}},\"getCommunityFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\",\"returns\":{\"_0\":\"The amount of token0 that will be sent to the vault\",\"_1\":\"The amount of token1 that will be sent to the vault\"}},\"getPluginFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\",\"returns\":{\"_0\":\"The amount of token0 that will be sent to the plugin\",\"_1\":\"The amount of token1 that will be sent to the plugin\"}},\"getReserves()\":{\"details\":\"If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee. If the balance exceeds uint128, the excess will be sent to the communityVault.\",\"returns\":{\"_0\":\"The last known reserve of token0\",\"_1\":\"The last known reserve of token1\"}},\"initialize(uint160)\":{\"details\":\"Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 valueInitialization should be done in one transaction with pool creation to avoid front-running\",\"params\":{\"initialPrice\":\"The initial sqrt price of the pool as a Q64.96\"}},\"isUnlocked()\":{\"details\":\"can be used to prevent read-only reentrancy. This method just returns `globalState.unlocked` value\",\"returns\":{\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"mint(address,address,int24,int24,uint128,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends on bottomTick, topTick, the amount of liquidity, and the current price.\",\"params\":{\"bottomTick\":\"The lower tick of the position in which to add liquidity\",\"data\":\"Any data that should be passed through to the callback\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"liquidityDesired\":\"The desired amount of liquidity to mint\",\"recipient\":\"The address for which the liquidity will be created\",\"topTick\":\"The upper tick of the position in which to add liquidity\"},\"returns\":{\"_0\":\"The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"_1\":\"The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"_2\":\"The actual minted amount of liquidity\"}},\"safelyGetStateOfAMM()\":{\"details\":\"Several values exposed as a single method to save gas when accessed externally. **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\",\"returns\":{\"_0\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"_1\":\"The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"_2\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"_3\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"_4\":\" The currently in-range liquidity available to the pool\",\"_5\":\"The next initialized tick after current global tick\",\"_6\":\"The previous initialized tick before (or at) current global tick\"}},\"setCommunityFee(uint16)\":{\"params\":{\"newCommunityFee\":\"The new community fee percent in thousandths (1e-3)\"}},\"setCommunityVault(address)\":{\"details\":\"Community fee vault receives collected community fees. **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\",\"params\":{\"newCommunityVault\":\"The address of new community fee vault\"}},\"setFee(uint16)\":{\"params\":{\"newFee\":\"The new fee value\"}},\"setPlugin(address)\":{\"params\":{\"newPluginAddress\":\"The new plugin address\"}},\"setPluginConfig(uint8)\":{\"params\":{\"newConfig\":\"In the new configuration of the plugin, each bit of which is responsible for a particular hook.\"}},\"setTickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The new tick spacing value\"}},\"skim()\":{\"details\":\"Only plugin can call this function\"},\"swap(address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\",\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"_1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback caller must send tokens in callback before swap calculation the actually sent amount of tokens is used for further calculations\",\"params\":{\"amountToSell\":\"The amount of the swap, only positive (exact input) amount allowed\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"_1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"sync()\":{\"details\":\"Only plugin can call this function\"}},\"stateVariables\":{\"communityVault\":{\"return\":\"The communityVault address\",\"returns\":{\"_0\":\"The communityVault address\"}},\"globalState\":{\"details\":\"**important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\",\"returns\":{\"communityFee\":\"The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\",\"fee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"price\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current tick of the pool, i.e. according to the last tick transition that was run This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"lastFeeTransferTimestamp\":{\"return\":\"The timestamp truncated to 32 bits\",\"returns\":{\"_0\":\"The timestamp truncated to 32 bits\"}},\"liquidity\":{\"details\":\"This value has no relationship to the total liquidity across all ticks. Returned value cannot exceed type(uint128).max**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"return\":\"The current in range liquidity\",\"returns\":{\"_0\":\"The current in range liquidity\"}},\"nextTickGlobal\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"return\":\"The next initialized tick\",\"returns\":{\"_0\":\"The next initialized tick\"}},\"plugin\":{\"details\":\"The plugin is subject to change\",\"return\":\"The address of currently used plugin\",\"returns\":{\"_0\":\"The address of currently used plugin\"}},\"positions\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"key\":\"The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\"},\"returns\":{\"fees0\":\"The computed amount of token0 owed to the position as of the last mint/burn/poke\",\"fees1\":\"The computed amount of token1 owed to the position as of the last mint/burn/poke\",\"innerFeeGrowth0Token\":\"Fee growth of token0 inside the tick range as of the last mint/burn/poke\",\"innerFeeGrowth1Token\":\"Fee growth of token1 inside the tick range as of the last mint/burn/poke\",\"liquidity\":\"The amount of liquidity in the position\"}},\"prevTickGlobal\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"return\":\"The previous initialized tick\",\"returns\":{\"_0\":\"The previous initialized tick\"}},\"tickSpacing\":{\"details\":\"Ticks can only be initialized by new mints at multiples of this value e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ... However, tickspacing can be changed after the ticks have been initialized. This value is an int24 to avoid casting even though it is always positive.\",\"return\":\"The current tick spacing\",\"returns\":{\"_0\":\"The current tick spacing\"}},\"tickTable\":{\"params\":{\"wordPosition\":\"Index of 256-bits word with ticks\"},\"return\":\"The 256-bits word with packed ticks info\",\"returns\":{\"_0\":\"The 256-bits word with packed ticks info\"}},\"tickTreeRoot\":{\"details\":\"Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"return\":\"The root of tick search tree as bitmap\",\"returns\":{\"_0\":\"The root of tick search tree as bitmap\"}},\"tickTreeSecondLayer\":{\"details\":\"Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"return\":\"The node of tick search tree second layer\",\"returns\":{\"_0\":\"The node of tick search tree second layer\"}},\"ticks\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"tick\":\"The tick to look up\"},\"returns\":{\"liquidityDelta\":\"How much liquidity changes when the pool price crosses the tick\",\"liquidityTotal\":\"The total amount of position liquidity that uses the pool either as tick lower or tick upper\",\"nextTick\":\"The next tick in tick list\",\"outerFeeGrowth0Token\":\"The fee growth on the other side of the tick from the current tick in token0\",\"outerFeeGrowth1Token\":\"The fee growth on the other side of the tick from the current tick in token1 In addition, these values are only relative and must be used only in comparison to previous snapshots for a specific position.\",\"prevTick\":\"The previous tick in tick list\"}},\"totalFeeGrowth0Token\":{\"details\":\"This value can overflow the uint256\",\"return\":\"The fee growth accumulator for token0\",\"returns\":{\"_0\":\"The fee growth accumulator for token0\"}},\"totalFeeGrowth1Token\":{\"details\":\"This value can overflow the uint256\",\"return\":\"The fee growth accumulator for token1\",\"returns\":{\"_0\":\"The fee growth accumulator for token1\"}}},\"title\":\"Mock of Algebra concentrated liquidity pool for plugins testing\",\"version\":1},\"userdoc\":{\"errors\":{\"invalidNewCommunityFee()\":[{\"notice\":\"Emitted if new community fee exceeds max allowed value\"}],\"invalidNewTickSpacing()\":[{\"notice\":\"Emitted if new tick spacing exceeds max allowed value\"}],\"priceOutOfRange()\":[{\"notice\":\"Emitted if price is greater than the maximum or less than the minimum allowed value\"}],\"tickOutOfRange()\":[{\"notice\":\"Emitted if tick is greater than the maximum or less than the minimum allowed value\"}]},\"kind\":\"user\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"notice\":\"Burn liquidity from the sender and account tokens owed for the liquidity to the position\"},\"collect(address,int24,int24,uint128,uint128)\":{\"notice\":\"Collects tokens owed to a position\"},\"communityVault()\":{\"notice\":\"The contract to which community fees are transferred\"},\"fee()\":{\"notice\":\"The current pool fee value\"},\"flash(address,uint256,uint256,bytes)\":{\"notice\":\"Receive token0 and/or token1 and pay it back, plus a fee, in the callback\"},\"getCommunityFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the vault\"},\"getPluginFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the plugin\"},\"getReserves()\":{\"notice\":\"The tracked token0 and token1 reserves of pool\"},\"globalState()\":{\"notice\":\"The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.\"},\"initialize(uint160)\":{\"notice\":\"Sets the initial price for the pool\"},\"isUnlocked()\":{\"notice\":\"Allows to easily get current reentrancy lock status\"},\"lastFeeTransferTimestamp()\":{\"notice\":\"The timestamp of the last sending of tokens to vault/plugin\"},\"liquidity()\":{\"notice\":\"The currently in range liquidity available to the pool\"},\"mint(address,address,int24,int24,uint128,bytes)\":{\"notice\":\"Adds liquidity for the given recipient/bottomTick/topTick position\"},\"nextTickGlobal()\":{\"notice\":\"The next initialized tick after current global tick\"},\"plugin()\":{\"notice\":\"Returns the address of currently used plugin\"},\"positions(bytes32)\":{\"notice\":\"Returns the information about a position by the position's key\"},\"prevTickGlobal()\":{\"notice\":\"The previous initialized tick before (or at) current global tick\"},\"safelyGetStateOfAMM()\":{\"notice\":\"Safely get most important state values of Algebra Integral AMM\"},\"setCommunityFee(uint16)\":{\"notice\":\"Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setCommunityVault(address)\":{\"notice\":\"Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setFee(uint16)\":{\"notice\":\"Set new pool fee. Can be called by owner if dynamic fee is disabled. Called by the plugin if dynamic fee is enabled\"},\"setPlugin(address)\":{\"notice\":\"Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setPluginConfig(uint8)\":{\"notice\":\"Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setTickSpacing(int24)\":{\"notice\":\"Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"skim()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be sent to msg.sender\"},\"swap(address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0\"},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0 with prepayment\"},\"sync()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be distributed between active LPs\"},\"tickSpacing()\":{\"notice\":\"The current tick spacing\"},\"tickTable(int16)\":{\"notice\":\"Returns 256 packed tick initialized boolean values. See TickTree for more information\"},\"tickTreeRoot()\":{\"notice\":\"The root of tick search tree\"},\"tickTreeSecondLayer(int16)\":{\"notice\":\"The second layer of tick search tree\"},\"ticks(int24)\":{\"notice\":\"Look up information about a specific tick in the pool\"},\"totalFeeGrowth0Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\"},\"totalFeeGrowth1Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/test/MockPool.sol\":\"MockPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Constants.sol\":{\"keccak256\":\"0x43f5e9ef4088f1301bc80f6446114ab1f3bdd58063fc6b107f8b1598b80e4915\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://496cb38eedc163919d59a6a196d2e566771e711b6e5e4a80a11efaa7b903c03a\",\"dweb:/ipfs/QmVf5trKkBGeXeuDsiuzXDGPVEpJRvaQsdL5Dr2HZ8ZePq\"]},\"@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0x6e562130eac2d18d5527fc12115e83a3aa0955f6be89531b6d0d5977f0784cf7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e5226566361b64a277a523430449d398434aa9956ec53ab96120bdb5eed0d36c\",\"dweb:/ipfs/QmdmE85FDGgaZBFb9WDamJQpvSx6BrpYUutudSzoRVmxMv\"]},\"@cryptoalgebra/integral-core/contracts/libraries/LiquidityMath.sol\":{\"keccak256\":\"0x84da0c74625df15073beb35957e0247b8eb9c7a50a1b02fcbd6dd98a352f0f25\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7db3b0d6a71dc17898b4cfa68e60ea39158dd03145b3a53aa112ab4c1a81a9cf\",\"dweb:/ipfs/QmWgvbT8aeUVhrNVpCHHp4Ut4MXKnJBMGFq56orFeNAe6m\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x1ce68c4b018476d007a0395bf2020cd9f8a5b69325a65465dd3d1f5877206d04\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7c2f240f89c058ea9288a6754a915597b78eabe60a5b3b3d921f02e9ca9cd105\",\"dweb:/ipfs/QmejQ2EatHjYWTRsXYojZ8VhYtLiqFGJ2juGj7y1sJPBc2\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickManagement.sol\":{\"keccak256\":\"0x34b29f669bef011b96de606c4cd19881e436b3c9f722c493e6f255f913ed7d58\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://c1edd75810055445440a0fb3e01731b2d5cd274c0476fcab6133ca8213a8d6a5\",\"dweb:/ipfs/QmfEqYPFdWM6MEMxSDWrk84CmbwCZQ55nF8dcucaTdJ2rb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol\":{\"keccak256\":\"0x2e7b1444ff69b60acac521b0d93998fb7775e0c4c5215ae31dec5bddafe1e336\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://778dc55bc1867dd899bcc93530c630f9baaff3134973f3cc5dfb62513130b790\",\"dweb:/ipfs/QmXMy8E7Y4G89nbkeha6ULUHNTeoC4t169yAYcWThFQVWC\"]},\"@cryptoalgebra/integral-core/contracts/libraries/TokenDeltaMath.sol\":{\"keccak256\":\"0xcf5faef8dad2a0ca0bce815f95fc416f20129bae96b8e47ce24b750869ad1000\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0aab6d459259a50151be1458d9da7271d39e94f74f3d20bd295613a82f168f9f\",\"dweb:/ipfs/QmcedxQjrx3JchnazwsMPEazwt55nrViVYnZL2yijvFbPB\"]},\"contracts/test/MockPool.sol\":{\"keccak256\":\"0xcbc28298f90ff7344384299da49879a15e7b17fd47fb8bfc1f605c119f8867d5\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://2093734443e327af52e504bbe0330396374b012058404b9d7fe2b882c6b2dee1\",\"dweb:/ipfs/QmUhEK1RcphN4UZSi7U2jDKpY8GH7b97AaZRf5ei4RtWut\"]}},\"version\":1}"}},"contracts/test/TestFeeDiscountPlugin.sol":{"TestFeeDiscountPlugin":{"abi":[{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_pluginFactory","type":"address"},{"internalType":"address","name":"registry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"transferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"_newFee","type":"uint24"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{"@_3617":{"entryPoint":null,"id":3617,"parameterSlots":1,"returnSlots":0},"@_460":{"entryPoint":null,"id":460,"parameterSlots":3,"returnSlots":0},"@_4911":{"entryPoint":null,"id":4911,"parameterSlots":4,"returnSlots":0},"@_52":{"entryPoint":null,"id":52,"parameterSlots":2,"returnSlots":0},"abi_decode_address_fromMemory":{"entryPoint":107,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_addresst_addresst_addresst_address_fromMemory":{"entryPoint":136,"id":null,"parameterSlots":2,"returnSlots":4}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:662:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"74:117:31","statements":[{"nodeType":"YulAssignment","src":"84:22:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"99:6:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"93:5:31"},"nodeType":"YulFunctionCall","src":"93:13:31"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"84:5:31"}]},{"body":{"nodeType":"YulBlock","src":"169:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"178:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"181:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"171:6:31"},"nodeType":"YulFunctionCall","src":"171:12:31"},"nodeType":"YulExpressionStatement","src":"171:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"128:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"139:5:31"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"154:3:31","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"159:1:31","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"150:3:31"},"nodeType":"YulFunctionCall","src":"150:11:31"},{"kind":"number","nodeType":"YulLiteral","src":"163:1:31","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"146:3:31"},"nodeType":"YulFunctionCall","src":"146:19:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"135:3:31"},"nodeType":"YulFunctionCall","src":"135:31:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"125:2:31"},"nodeType":"YulFunctionCall","src":"125:42:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"118:6:31"},"nodeType":"YulFunctionCall","src":"118:50:31"},"nodeType":"YulIf","src":"115:70:31"}]},"name":"abi_decode_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"53:6:31","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"64:5:31","type":""}],"src":"14:177:31"},{"body":{"nodeType":"YulBlock","src":"328:332:31","statements":[{"body":{"nodeType":"YulBlock","src":"375:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"384:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"387:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"377:6:31"},"nodeType":"YulFunctionCall","src":"377:12:31"},"nodeType":"YulExpressionStatement","src":"377:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"349:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"358:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"345:3:31"},"nodeType":"YulFunctionCall","src":"345:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"370:3:31","type":"","value":"128"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"341:3:31"},"nodeType":"YulFunctionCall","src":"341:33:31"},"nodeType":"YulIf","src":"338:53:31"},{"nodeType":"YulAssignment","src":"400:50:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"440:9:31"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"410:29:31"},"nodeType":"YulFunctionCall","src":"410:40:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"400:6:31"}]},{"nodeType":"YulAssignment","src":"459:59:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"503:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"514:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"499:3:31"},"nodeType":"YulFunctionCall","src":"499:18:31"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"469:29:31"},"nodeType":"YulFunctionCall","src":"469:49:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"459:6:31"}]},{"nodeType":"YulAssignment","src":"527:59:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"571:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"582:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"567:3:31"},"nodeType":"YulFunctionCall","src":"567:18:31"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"537:29:31"},"nodeType":"YulFunctionCall","src":"537:49:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"527:6:31"}]},{"nodeType":"YulAssignment","src":"595:59:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"639:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"650:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"635:3:31"},"nodeType":"YulFunctionCall","src":"635:18:31"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"605:29:31"},"nodeType":"YulFunctionCall","src":"605:49:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"595:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_addresst_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"270:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"281:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"293:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"301:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"309:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"317:6:31","type":""}],"src":"196:464:31"}]},"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_addresst_addresst_address_fromMemory(headStart, dataEnd) -> value0, value1, value2, value3\n    {\n        if slt(sub(dataEnd, headStart), 128) { revert(0, 0) }\n        value0 := abi_decode_address_fromMemory(headStart)\n        value1 := abi_decode_address_fromMemory(add(headStart, 32))\n        value2 := abi_decode_address_fromMemory(add(headStart, 64))\n        value3 := abi_decode_address_fromMemory(add(headStart, 96))\n    }\n}","id":31,"language":"Yul","name":"#utility.yul"}],"linkReferences":{},"object":"60e06040523480156200001157600080fd5b50604051620012cf380380620012cf833981016040819052620000349162000088565b6001600160a01b0391821660a05292811660805290811660c05260008054919092166001600160a01b0319909116179055620000e5565b80516001600160a01b03811681146200008357600080fd5b919050565b600080600080608085870312156200009f57600080fd5b620000aa856200006b565b9350620000ba602086016200006b565b9250620000ca604086016200006b565b9150620000da606086016200006b565b905092959194509250565b60805160a05160c0516111a862000127600039600061093f01526000505060008181610166015281816106c1015281816108750152610a7901526111a86000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638de0a8ee11610097578063d685201011610066578063d685201014610303578063e72c652d14610316578063eabb562214610329578063f20cdc1a1461038557600080fd5b80638de0a8ee146102b55780639cb5a963146102c8578063aa6b14bb146102db578063c3da7978146102ee57600080fd5b80635e2411b2116100d35780635e2411b214610226578063636fd80414610275578063689ea3701461028857806382dd6522146102a257600080fd5b8063029c1cb71461010557806316f0115b1461016157806331b25d1a146101ad578063343d37ff146101e2575b600080fd5b610118610113366004610b92565b6103a5565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909416845262ffffff92831660208501529116908201526060015b60405180910390f35b6101887f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610158565b6101d47f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f581565b604051908152602001610158565b6101f56101f0366004610c3c565b610452565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610158565b610239610234366004610cd1565b61048a565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909316835262ffffff909116602083015201610158565b6101f5610283366004610d70565b6104c6565b610290604181565b60405160ff9091168152602001610158565b6101f56102b0366004610da9565b610503565b6101f56102c3366004610df4565b610536565b6101f56102d6366004610e70565b61056c565b6101f56102e9366004610f1e565b6105a5565b6103016102fc366004610f40565b6105d7565b005b6101f5610311366004610f64565b610658565b610301610324366004610fcc565b610691565b610301610337366004611003565b6000805462ffffff90921674010000000000000000000000000000000000000000027fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546101889073ffffffffffffffffffffffffffffffffffffffff1681565b60008060006103b26106a9565b6103ce3233600060149054906101000a900462ffffff1661074e565b600080547fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000062ffffff9384168102919091178083557f029c1cb7000000000000000000000000000000000000000000000000000000009f9190049092169c509a5098505050505050505050565b600061045c6106a9565b507f343d37ff0000000000000000000000000000000000000000000000000000000098975050505050505050565b6000806104956106a9565b507f5e2411b20000000000000000000000000000000000000000000000000000000098600098509650505050505050565b60006104d06106a9565b6104da6041610828565b507f636fd804000000000000000000000000000000000000000000000000000000005b92915050565b600061050d6106a9565b507f82dd6522000000000000000000000000000000000000000000000000000000009392505050565b60006105406106a9565b507f8de0a8ee000000000000000000000000000000000000000000000000000000009695505050505050565b60006105766106a9565b507f9cb5a963000000000000000000000000000000000000000000000000000000009998505050505050505050565b60006105af6106a9565b507faa6b14bb0000000000000000000000000000000000000000000000000000000092915050565b6105df6108eb565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b653279060200160405180910390a150565b60006106626106a9565b507fd6852010000000000000000000000000000000000000000000000000000000009998505050505050505050565b6106996108eb565b6106a48382846109c8565b505050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461074c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f6e6c7920706f6f6c2063616e2063616c6c2074686973000000000000000000604482015260640160405180910390fd5b565b600080546040517f1101ce3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152858116602483015283921690631101ce3e906044016020604051808303816000875af11580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed919061103a565b61ffff1690506103e86108008282611084565b62ffffff168462ffffff1661081591906110a7565b61081f91906110be565b95945050505050565b6000610832610a71565b93505050508160ff168160ff16146108e7576040517fbca57f8100000000000000000000000000000000000000000000000000000000815260ff831660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063bca57f8190602401600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f560048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa15801561099b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bf91906110f9565b61074c57600080fd5b60006040517fa9059cbb0000000000000000000000000000000000000000000000000000000060005273ffffffffffffffffffffffffffffffffffffffff841660045282602452602060006044600080895af19150813d1560203d146001600051141617169150806040525080610a6b576040517fe465903e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000806000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b069190611116565b5093989297509095509350915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610b3857600080fd5b50565b8015158114610b3857600080fd5b60008083601f840112610b5b57600080fd5b50813567ffffffffffffffff811115610b7357600080fd5b602083019150836020828501011115610b8b57600080fd5b9250929050565b60008060008060008060008060e0898b031215610bae57600080fd5b8835610bb981610b16565b97506020890135610bc981610b16565b96506040890135610bd981610b3b565b9550606089013594506080890135610bf081610b16565b935060a0890135610c0081610b3b565b925060c089013567ffffffffffffffff811115610c1c57600080fd5b610c288b828c01610b49565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b031215610c5857600080fd5b8835610c6381610b16565b97506020890135610c7381610b16565b965060408901359550606089013594506080890135935060a0890135925060c089013567ffffffffffffffff811115610c1c57600080fd5b8060020b8114610b3857600080fd5b8035600f81900b8114610ccc57600080fd5b919050565b600080600080600080600060c0888a031215610cec57600080fd5b8735610cf781610b16565b96506020880135610d0781610b16565b95506040880135610d1781610cab565b94506060880135610d2781610cab565b9350610d3560808901610cba565b925060a088013567ffffffffffffffff811115610d5157600080fd5b610d5d8a828b01610b49565b989b979a50959850939692959293505050565b60008060408385031215610d8357600080fd5b8235610d8e81610b16565b91506020830135610d9e81610b16565b809150509250929050565b600080600060608486031215610dbe57600080fd5b8335610dc981610b16565b92506020840135610dd981610b16565b91506040840135610de981610cab565b809150509250925092565b60008060008060008060a08789031215610e0d57600080fd5b8635610e1881610b16565b95506020870135610e2881610b16565b94506040870135935060608701359250608087013567ffffffffffffffff811115610e5257600080fd5b610e5e89828a01610b49565b979a9699509497509295939492505050565b60008060008060008060008060006101008a8c031215610e8f57600080fd5b8935610e9a81610b16565b985060208a0135610eaa81610b16565b975060408a0135610eba81610b3b565b965060608a0135955060808a0135610ed181610b16565b945060a08a0135935060c08a0135925060e08a013567ffffffffffffffff811115610efb57600080fd5b610f078c828d01610b49565b915080935050809150509295985092959850929598565b60008060408385031215610f3157600080fd5b50508035926020909101359150565b600060208284031215610f5257600080fd5b8135610f5d81610b16565b9392505050565b60008060008060008060008060006101008a8c031215610f8357600080fd5b8935610f8e81610b16565b985060208a0135610f9e81610b16565b975060408a0135610fae81610cab565b965060608a0135610fbe81610cab565b9550610ed160808b01610cba565b600080600060608486031215610fe157600080fd5b8335610fec81610b16565b9250602084013591506040840135610de981610b16565b60006020828403121561101557600080fd5b813562ffffff81168114610f5d57600080fd5b805161ffff81168114610ccc57600080fd5b60006020828403121561104c57600080fd5b610f5d82611028565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b62ffffff8281168282160390808211156110a0576110a0611055565b5092915050565b80820281158282048414176104fd576104fd611055565b6000826110f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561110b57600080fd5b8151610f5d81610b3b565b60008060008060008060c0878903121561112f57600080fd5b865161113a81610b16565b602088015190965061114b81610cab565b945061115960408801611028565b9350606087015160ff8116811461116f57600080fd5b925061117d60808801611028565b915060a087015161118d81610b3b565b80915050929550929550929556fea164736f6c6343000814000a","opcodes":"PUSH1 0xE0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x12CF CODESIZE SUB DUP1 PUSH3 0x12CF DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x88 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0xA0 MSTORE SWAP3 DUP2 AND PUSH1 0x80 MSTORE SWAP1 DUP2 AND PUSH1 0xC0 MSTORE PUSH1 0x0 DUP1 SLOAD SWAP2 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT SWAP1 SWAP2 AND OR SWAP1 SSTORE PUSH3 0xE5 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x83 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH3 0x9F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0xAA DUP6 PUSH3 0x6B JUMP JUMPDEST SWAP4 POP PUSH3 0xBA PUSH1 0x20 DUP7 ADD PUSH3 0x6B JUMP JUMPDEST SWAP3 POP PUSH3 0xCA PUSH1 0x40 DUP7 ADD PUSH3 0x6B JUMP JUMPDEST SWAP2 POP PUSH3 0xDA PUSH1 0x60 DUP7 ADD PUSH3 0x6B JUMP JUMPDEST SWAP1 POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH2 0x11A8 PUSH3 0x127 PUSH1 0x0 CODECOPY PUSH1 0x0 PUSH2 0x93F ADD MSTORE PUSH1 0x0 POP POP PUSH1 0x0 DUP2 DUP2 PUSH2 0x166 ADD MSTORE DUP2 DUP2 PUSH2 0x6C1 ADD MSTORE DUP2 DUP2 PUSH2 0x875 ADD MSTORE PUSH2 0xA79 ADD MSTORE PUSH2 0x11A8 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 0x100 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DE0A8EE GT PUSH2 0x97 JUMPI DUP1 PUSH4 0xD6852010 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xD6852010 EQ PUSH2 0x303 JUMPI DUP1 PUSH4 0xE72C652D EQ PUSH2 0x316 JUMPI DUP1 PUSH4 0xEABB5622 EQ PUSH2 0x329 JUMPI DUP1 PUSH4 0xF20CDC1A EQ PUSH2 0x385 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x8DE0A8EE EQ PUSH2 0x2B5 JUMPI DUP1 PUSH4 0x9CB5A963 EQ PUSH2 0x2C8 JUMPI DUP1 PUSH4 0xAA6B14BB EQ PUSH2 0x2DB JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0x2EE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x5E2411B2 GT PUSH2 0xD3 JUMPI DUP1 PUSH4 0x5E2411B2 EQ PUSH2 0x226 JUMPI DUP1 PUSH4 0x636FD804 EQ PUSH2 0x275 JUMPI DUP1 PUSH4 0x689EA370 EQ PUSH2 0x288 JUMPI DUP1 PUSH4 0x82DD6522 EQ PUSH2 0x2A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x29C1CB7 EQ PUSH2 0x105 JUMPI DUP1 PUSH4 0x16F0115B EQ PUSH2 0x161 JUMPI DUP1 PUSH4 0x31B25D1A EQ PUSH2 0x1AD JUMPI DUP1 PUSH4 0x343D37FF EQ PUSH2 0x1E2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x118 PUSH2 0x113 CALLDATASIZE PUSH1 0x4 PUSH2 0xB92 JUMP JUMPDEST PUSH2 0x3A5 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP5 AND DUP5 MSTORE PUSH3 0xFFFFFF SWAP3 DUP4 AND PUSH1 0x20 DUP6 ADD MSTORE SWAP2 AND SWAP1 DUP3 ADD MSTORE PUSH1 0x60 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x188 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1D4 PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x1F0 CALLDATASIZE PUSH1 0x4 PUSH2 0xC3C JUMP JUMPDEST PUSH2 0x452 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x239 PUSH2 0x234 CALLDATASIZE PUSH1 0x4 PUSH2 0xCD1 JUMP JUMPDEST PUSH2 0x48A JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP4 AND DUP4 MSTORE PUSH3 0xFFFFFF SWAP1 SWAP2 AND PUSH1 0x20 DUP4 ADD MSTORE ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x283 CALLDATASIZE PUSH1 0x4 PUSH2 0xD70 JUMP JUMPDEST PUSH2 0x4C6 JUMP JUMPDEST PUSH2 0x290 PUSH1 0x41 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0xFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2B0 CALLDATASIZE PUSH1 0x4 PUSH2 0xDA9 JUMP JUMPDEST PUSH2 0x503 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2C3 CALLDATASIZE PUSH1 0x4 PUSH2 0xDF4 JUMP JUMPDEST PUSH2 0x536 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2D6 CALLDATASIZE PUSH1 0x4 PUSH2 0xE70 JUMP JUMPDEST PUSH2 0x56C JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2E9 CALLDATASIZE PUSH1 0x4 PUSH2 0xF1E JUMP JUMPDEST PUSH2 0x5A5 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x2FC CALLDATASIZE PUSH1 0x4 PUSH2 0xF40 JUMP JUMPDEST PUSH2 0x5D7 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1F5 PUSH2 0x311 CALLDATASIZE PUSH1 0x4 PUSH2 0xF64 JUMP JUMPDEST PUSH2 0x658 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x324 CALLDATASIZE PUSH1 0x4 PUSH2 0xFCC JUMP JUMPDEST PUSH2 0x691 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x337 CALLDATASIZE PUSH1 0x4 PUSH2 0x1003 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x188 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3B2 PUSH2 0x6A9 JUMP JUMPDEST PUSH2 0x3CE ORIGIN CALLER PUSH1 0x0 PUSH1 0x14 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH3 0xFFFFFF AND PUSH2 0x74E JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF SWAP4 DUP5 AND DUP2 MUL SWAP2 SWAP1 SWAP2 OR DUP1 DUP4 SSTORE PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 SWAP16 SWAP2 SWAP1 DIV SWAP1 SWAP3 AND SWAP13 POP SWAP11 POP SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x45C PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x495 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 SWAP9 PUSH1 0x0 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4D0 PUSH2 0x6A9 JUMP JUMPDEST PUSH2 0x4DA PUSH1 0x41 PUSH2 0x828 JUMP JUMPDEST POP PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x50D PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x540 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x576 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5AF PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0xAA6B14BB00000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x5DF PUSH2 0x8EB JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH32 0x3B1F0D57F07483280D598EF402C5B2B96BE1A42E65B21992BDAFEA3476B65327 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x662 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0xD685201000000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x699 PUSH2 0x8EB JUMP JUMPDEST PUSH2 0x6A4 DUP4 DUP3 DUP5 PUSH2 0x9C8 JUMP JUMPDEST POP POP POP JUMP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH32 0x0 AND EQ PUSH2 0x74C JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920706F6F6C2063616E2063616C6C2074686973000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH32 0x1101CE3E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP7 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE DUP6 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE DUP4 SWAP3 AND SWAP1 PUSH4 0x1101CE3E SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x7C9 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 0x7ED SWAP2 SWAP1 PUSH2 0x103A JUMP JUMPDEST PUSH2 0xFFFF AND SWAP1 POP PUSH2 0x3E8 PUSH2 0x800 DUP3 DUP3 PUSH2 0x1084 JUMP JUMPDEST PUSH3 0xFFFFFF AND DUP5 PUSH3 0xFFFFFF AND PUSH2 0x815 SWAP2 SWAP1 PUSH2 0x10A7 JUMP JUMPDEST PUSH2 0x81F SWAP2 SWAP1 PUSH2 0x10BE JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x832 PUSH2 0xA71 JUMP JUMPDEST SWAP4 POP POP POP POP DUP2 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH2 0x8E7 JUMPI PUSH1 0x40 MLOAD PUSH32 0xBCA57F8100000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0xFF DUP4 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xBCA57F81 SWAP1 PUSH1 0x24 ADD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x8CE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x8E2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x99B 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 0x9BF SWAP2 SWAP1 PUSH2 0x10F9 JUMP JUMPDEST PUSH2 0x74C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD PUSH32 0xA9059CBB00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH1 0x4 MSTORE DUP3 PUSH1 0x24 MSTORE PUSH1 0x20 PUSH1 0x0 PUSH1 0x44 PUSH1 0x0 DUP1 DUP10 GAS CALL SWAP2 POP DUP2 RETURNDATASIZE ISZERO PUSH1 0x20 RETURNDATASIZE EQ PUSH1 0x1 PUSH1 0x0 MLOAD EQ AND OR AND SWAP2 POP DUP1 PUSH1 0x40 MSTORE POP DUP1 PUSH2 0xA6B JUMPI PUSH1 0x40 MLOAD PUSH32 0xE465903E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xE76C01E4 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xC0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xAE2 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 0xB06 SWAP2 SWAP1 PUSH2 0x1116 JUMP JUMPDEST POP SWAP4 SWAP9 SWAP3 SWAP8 POP SWAP1 SWAP6 POP SWAP4 POP SWAP2 POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xB5B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xB73 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xB8B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0xBAE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0xBB9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0xBC9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD PUSH2 0xBD9 DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD PUSH2 0xBF0 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD PUSH2 0xC00 DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC1C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC28 DUP12 DUP3 DUP13 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP10 SWAP13 SWAP9 SWAP12 POP SWAP7 SWAP10 POP SWAP5 SWAP8 SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0xC58 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0xC63 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0xC73 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC1C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x2 SIGNEXTEND DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0xF DUP2 SWAP1 SIGNEXTEND DUP2 EQ PUSH2 0xCCC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xC0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0xCEC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0xCF7 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0xD07 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0xD17 DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH2 0xD27 DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP4 POP PUSH2 0xD35 PUSH1 0x80 DUP10 ADD PUSH2 0xCBA JUMP JUMPDEST SWAP3 POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD51 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xD5D DUP11 DUP3 DUP12 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP9 SWAP12 SWAP8 SWAP11 POP SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xD83 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0xD8E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0xD9E DUP2 PUSH2 0xB16 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xDBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0xDC9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0xDD9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0xDE9 DUP2 PUSH2 0xCAB JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xA0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0xE0D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 CALLDATALOAD PUSH2 0xE18 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP6 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH2 0xE28 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP5 POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP4 POP PUSH1 0x60 DUP8 ADD CALLDATALOAD SWAP3 POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xE52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xE5E DUP10 DUP3 DUP11 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP8 SWAP11 SWAP7 SWAP10 POP SWAP5 SWAP8 POP SWAP3 SWAP6 SWAP4 SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0xE8F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0xE9A DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0xEAA DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0xEBA DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD PUSH2 0xED1 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP3 POP PUSH1 0xE0 DUP11 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xEFB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF07 DUP13 DUP3 DUP14 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP2 POP DUP1 SWAP4 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xF31 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xF52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xF5D DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0xF83 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0xF8E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0xF9E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0xFAE DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD PUSH2 0xFBE DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP6 POP PUSH2 0xED1 PUSH1 0x80 DUP12 ADD PUSH2 0xCBA JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xFE1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0xFEC DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0xDE9 DUP2 PUSH2 0xB16 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1015 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0xF5D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0xCCC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x104C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF5D DUP3 PUSH2 0x1028 JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH3 0xFFFFFF DUP3 DUP2 AND DUP3 DUP3 AND SUB SWAP1 DUP1 DUP3 GT ISZERO PUSH2 0x10A0 JUMPI PUSH2 0x10A0 PUSH2 0x1055 JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x4FD JUMPI PUSH2 0x4FD PUSH2 0x1055 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x10F4 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x110B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xF5D DUP2 PUSH2 0xB3B JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x112F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 MLOAD PUSH2 0x113A DUP2 PUSH2 0xB16 JUMP JUMPDEST PUSH1 0x20 DUP9 ADD MLOAD SWAP1 SWAP7 POP PUSH2 0x114B DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP5 POP PUSH2 0x1159 PUSH1 0x40 DUP9 ADD PUSH2 0x1028 JUMP JUMPDEST SWAP4 POP PUSH1 0x60 DUP8 ADD MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x116F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP PUSH2 0x117D PUSH1 0x80 DUP9 ADD PUSH2 0x1028 JUMP JUMPDEST SWAP2 POP PUSH1 0xA0 DUP8 ADD MLOAD PUSH2 0x118D DUP2 PUSH2 0xB3B JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"305:1171:30:-:0;;;558:168;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;1254:47:0;;;;;;;;;;436:18:1;;::::1;;::::0;806:19:24;:42;;;;;;-1:-1:-1;;;;;;806:42:24;;;;;;305:1171:30;;14:177:31;93:13;;-1:-1:-1;;;;;135:31:31;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:464::-;293:6;301;309;317;370:3;358:9;349:7;345:23;341:33;338:53;;;387:1;384;377:12;338:53;410:40;440:9;410:40;:::i;:::-;400:50;;469:49;514:2;503:9;499:18;469:49;:::i;:::-;459:59;;537:49;582:2;571:9;567:18;537:49;:::i;:::-;527:59;;605:49;650:2;639:9;635:18;605:49;:::i;:::-;595:59;;196:464;;;;;;;:::o;:::-;305:1171:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{"@ALGEBRA_BASE_PLUGIN_MANAGER_22":{"entryPoint":null,"id":22,"parameterSlots":0,"returnSlots":0},"@_applyFeeDiscount_3657":{"entryPoint":1870,"id":3657,"parameterSlots":3,"returnSlots":1},"@_authorize_476":{"entryPoint":2283,"id":476,"parameterSlots":0,"returnSlots":0},"@_checkIfFromPool_64":{"entryPoint":1705,"id":64,"parameterSlots":0,"returnSlots":0},"@_getPoolState_91":{"entryPoint":2673,"id":91,"parameterSlots":0,"returnSlots":4},"@_updatePluginConfigInPool_374":{"entryPoint":2088,"id":374,"parameterSlots":1,"returnSlots":0},"@afterFlash_351":{"entryPoint":1106,"id":351,"parameterSlots":8,"returnSlots":1},"@afterInitialize_4951":{"entryPoint":1283,"id":4951,"parameterSlots":3,"returnSlots":1},"@afterModifyPosition_238":{"entryPoint":1624,"id":238,"parameterSlots":9,"returnSlots":1},"@afterSwap_301":{"entryPoint":1388,"id":301,"parameterSlots":9,"returnSlots":1},"@beforeFlash_324":{"entryPoint":1334,"id":324,"parameterSlots":6,"returnSlots":1},"@beforeInitialize_4932":{"entryPoint":1222,"id":4932,"parameterSlots":2,"returnSlots":1},"@beforeModifyPosition_209":{"entryPoint":1162,"id":209,"parameterSlots":7,"returnSlots":2},"@beforeSwap_4995":{"entryPoint":933,"id":4995,"parameterSlots":8,"returnSlots":3},"@collectPluginFee_126":{"entryPoint":1681,"id":126,"parameterSlots":3,"returnSlots":0},"@defaultPluginConfig_4891":{"entryPoint":null,"id":4891,"parameterSlots":0,"returnSlots":0},"@feeDiscountRegistry_3607":{"entryPoint":null,"id":3607,"parameterSlots":0,"returnSlots":0},"@handlePluginFee_144":{"entryPoint":1445,"id":144,"parameterSlots":2,"returnSlots":1},"@pool_27":{"entryPoint":null,"id":27,"parameterSlots":0,"returnSlots":0},"@safeTransfer_2298":{"entryPoint":2504,"id":2298,"parameterSlots":3,"returnSlots":0},"@setFeeDiscountRegistry_3675":{"entryPoint":1495,"id":3675,"parameterSlots":1,"returnSlots":0},"@setFee_5005":{"entryPoint":null,"id":5005,"parameterSlots":1,"returnSlots":0},"abi_decode_bytes_calldata":{"entryPoint":2889,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_int128":{"entryPoint":3258,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_address":{"entryPoint":3904,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr":{"entryPoint":2962,"id":null,"parameterSlots":2,"returnSlots":8},"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr":{"entryPoint":3696,"id":null,"parameterSlots":2,"returnSlots":9},"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr":{"entryPoint":3281,"id":null,"parameterSlots":2,"returnSlots":7},"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":3940,"id":null,"parameterSlots":2,"returnSlots":9},"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":3572,"id":null,"parameterSlots":2,"returnSlots":6},"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":3132,"id":null,"parameterSlots":2,"returnSlots":8},"abi_decode_tuple_t_addresst_uint160":{"entryPoint":3440,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_addresst_uint160t_int24":{"entryPoint":3497,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_addresst_uint256t_address":{"entryPoint":4044,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_bool_fromMemory":{"entryPoint":4345,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory":{"entryPoint":4374,"id":null,"parameterSlots":2,"returnSlots":6},"abi_decode_tuple_t_uint16_fromMemory":{"entryPoint":4154,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint24":{"entryPoint":4099,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint256t_uint256":{"entryPoint":3870,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_uint16_fromMemory":{"entryPoint":4136,"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_address__to_t_address_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":4,"returnSlots":1},"abi_encode_tuple_t_stringliteral_b7deb07899b60a5f738285d4979109597e20f4e85555ea89670e2ec5bd1854eb__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},"checked_div_t_uint256":{"entryPoint":4286,"id":null,"parameterSlots":2,"returnSlots":1},"checked_mul_t_uint256":{"entryPoint":4263,"id":null,"parameterSlots":2,"returnSlots":1},"checked_sub_t_uint24":{"entryPoint":4228,"id":null,"parameterSlots":2,"returnSlots":1},"panic_error_0x11":{"entryPoint":4181,"id":null,"parameterSlots":0,"returnSlots":0},"validator_revert_address":{"entryPoint":2838,"id":null,"parameterSlots":1,"returnSlots":0},"validator_revert_bool":{"entryPoint":2875,"id":null,"parameterSlots":1,"returnSlots":0},"validator_revert_int24":{"entryPoint":3243,"id":null,"parameterSlots":1,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:14360:31","statements":[{"nodeType":"YulBlock","src":"6:3:31","statements":[]},{"body":{"nodeType":"YulBlock","src":"59:109:31","statements":[{"body":{"nodeType":"YulBlock","src":"146:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"155:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"158:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"148:6:31"},"nodeType":"YulFunctionCall","src":"148:12:31"},"nodeType":"YulExpressionStatement","src":"148:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"82:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"93:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"100:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"89:3:31"},"nodeType":"YulFunctionCall","src":"89:54:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"79:2:31"},"nodeType":"YulFunctionCall","src":"79:65:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"72:6:31"},"nodeType":"YulFunctionCall","src":"72:73:31"},"nodeType":"YulIf","src":"69:93:31"}]},"name":"validator_revert_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"48:5:31","type":""}],"src":"14:154:31"},{"body":{"nodeType":"YulBlock","src":"215:76:31","statements":[{"body":{"nodeType":"YulBlock","src":"269:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"278:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"281:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"271:6:31"},"nodeType":"YulFunctionCall","src":"271:12:31"},"nodeType":"YulExpressionStatement","src":"271:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"238:5:31"},{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"259:5:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"252:6:31"},"nodeType":"YulFunctionCall","src":"252:13:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"245:6:31"},"nodeType":"YulFunctionCall","src":"245:21:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"235:2:31"},"nodeType":"YulFunctionCall","src":"235:32:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"228:6:31"},"nodeType":"YulFunctionCall","src":"228:40:31"},"nodeType":"YulIf","src":"225:60:31"}]},"name":"validator_revert_bool","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"204:5:31","type":""}],"src":"173:118:31"},{"body":{"nodeType":"YulBlock","src":"368:275:31","statements":[{"body":{"nodeType":"YulBlock","src":"417:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"426:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"429:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"419:6:31"},"nodeType":"YulFunctionCall","src":"419:12:31"},"nodeType":"YulExpressionStatement","src":"419:12:31"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"396:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"404:4:31","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"392:3:31"},"nodeType":"YulFunctionCall","src":"392:17:31"},{"name":"end","nodeType":"YulIdentifier","src":"411:3:31"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"388:3:31"},"nodeType":"YulFunctionCall","src":"388:27:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"381:6:31"},"nodeType":"YulFunctionCall","src":"381:35:31"},"nodeType":"YulIf","src":"378:55:31"},{"nodeType":"YulAssignment","src":"442:30:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"465:6:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"452:12:31"},"nodeType":"YulFunctionCall","src":"452:20:31"},"variableNames":[{"name":"length","nodeType":"YulIdentifier","src":"442:6:31"}]},{"body":{"nodeType":"YulBlock","src":"515:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"524:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"527:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"517:6:31"},"nodeType":"YulFunctionCall","src":"517:12:31"},"nodeType":"YulExpressionStatement","src":"517:12:31"}]},"condition":{"arguments":[{"name":"length","nodeType":"YulIdentifier","src":"487:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"495:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"484:2:31"},"nodeType":"YulFunctionCall","src":"484:30:31"},"nodeType":"YulIf","src":"481:50:31"},{"nodeType":"YulAssignment","src":"540:29:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"556:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"564:4:31","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"552:3:31"},"nodeType":"YulFunctionCall","src":"552:17:31"},"variableNames":[{"name":"arrayPos","nodeType":"YulIdentifier","src":"540:8:31"}]},{"body":{"nodeType":"YulBlock","src":"621:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"630:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"633:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"623:6:31"},"nodeType":"YulFunctionCall","src":"623:12:31"},"nodeType":"YulExpressionStatement","src":"623:12:31"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"592:6:31"},{"name":"length","nodeType":"YulIdentifier","src":"600:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"588:3:31"},"nodeType":"YulFunctionCall","src":"588:19:31"},{"kind":"number","nodeType":"YulLiteral","src":"609:4:31","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"584:3:31"},"nodeType":"YulFunctionCall","src":"584:30:31"},{"name":"end","nodeType":"YulIdentifier","src":"616:3:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"581:2:31"},"nodeType":"YulFunctionCall","src":"581:39:31"},"nodeType":"YulIf","src":"578:59:31"}]},"name":"abi_decode_bytes_calldata","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"331:6:31","type":""},{"name":"end","nodeType":"YulTypedName","src":"339:3:31","type":""}],"returnVariables":[{"name":"arrayPos","nodeType":"YulTypedName","src":"347:8:31","type":""},{"name":"length","nodeType":"YulTypedName","src":"357:6:31","type":""}],"src":"296:347:31"},{"body":{"nodeType":"YulBlock","src":"832:983:31","statements":[{"body":{"nodeType":"YulBlock","src":"879:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"888:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"891:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"881:6:31"},"nodeType":"YulFunctionCall","src":"881:12:31"},"nodeType":"YulExpressionStatement","src":"881:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"853:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"862:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"849:3:31"},"nodeType":"YulFunctionCall","src":"849:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"874:3:31","type":"","value":"224"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"845:3:31"},"nodeType":"YulFunctionCall","src":"845:33:31"},"nodeType":"YulIf","src":"842:53:31"},{"nodeType":"YulVariableDeclaration","src":"904:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"930:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"917:12:31"},"nodeType":"YulFunctionCall","src":"917:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"908:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"974:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"949:24:31"},"nodeType":"YulFunctionCall","src":"949:31:31"},"nodeType":"YulExpressionStatement","src":"949:31:31"},{"nodeType":"YulAssignment","src":"989:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"999:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"989:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"1013:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1045:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1056:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1041:3:31"},"nodeType":"YulFunctionCall","src":"1041:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1028:12:31"},"nodeType":"YulFunctionCall","src":"1028:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"1017:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"1094:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"1069:24:31"},"nodeType":"YulFunctionCall","src":"1069:33:31"},"nodeType":"YulExpressionStatement","src":"1069:33:31"},{"nodeType":"YulAssignment","src":"1111:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"1121:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"1111:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"1137:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1169:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1180:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1165:3:31"},"nodeType":"YulFunctionCall","src":"1165:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1152:12:31"},"nodeType":"YulFunctionCall","src":"1152:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"1141:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"1215:7:31"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"1193:21:31"},"nodeType":"YulFunctionCall","src":"1193:30:31"},"nodeType":"YulExpressionStatement","src":"1193:30:31"},{"nodeType":"YulAssignment","src":"1232:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"1242:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"1232:6:31"}]},{"nodeType":"YulAssignment","src":"1258:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1285:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1296:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1281:3:31"},"nodeType":"YulFunctionCall","src":"1281:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1268:12:31"},"nodeType":"YulFunctionCall","src":"1268:32:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"1258:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"1309:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1341:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1352:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1337:3:31"},"nodeType":"YulFunctionCall","src":"1337:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1324:12:31"},"nodeType":"YulFunctionCall","src":"1324:33:31"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"1313:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"1391:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"1366:24:31"},"nodeType":"YulFunctionCall","src":"1366:33:31"},"nodeType":"YulExpressionStatement","src":"1366:33:31"},{"nodeType":"YulAssignment","src":"1408:17:31","value":{"name":"value_3","nodeType":"YulIdentifier","src":"1418:7:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"1408:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"1434:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1466:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1477:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1462:3:31"},"nodeType":"YulFunctionCall","src":"1462:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1449:12:31"},"nodeType":"YulFunctionCall","src":"1449:33:31"},"variables":[{"name":"value_4","nodeType":"YulTypedName","src":"1438:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_4","nodeType":"YulIdentifier","src":"1513:7:31"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"1491:21:31"},"nodeType":"YulFunctionCall","src":"1491:30:31"},"nodeType":"YulExpressionStatement","src":"1491:30:31"},{"nodeType":"YulAssignment","src":"1530:17:31","value":{"name":"value_4","nodeType":"YulIdentifier","src":"1540:7:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"1530:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"1556:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1587:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"1598:3:31","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1583:3:31"},"nodeType":"YulFunctionCall","src":"1583:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1570:12:31"},"nodeType":"YulFunctionCall","src":"1570:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"1560:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"1646:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1655:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1658:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1648:6:31"},"nodeType":"YulFunctionCall","src":"1648:12:31"},"nodeType":"YulExpressionStatement","src":"1648:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1618:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"1626:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1615:2:31"},"nodeType":"YulFunctionCall","src":"1615:30:31"},"nodeType":"YulIf","src":"1612:50:31"},{"nodeType":"YulVariableDeclaration","src":"1671:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1727:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"1738:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1723:3:31"},"nodeType":"YulFunctionCall","src":"1723:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"1747:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"1697:25:31"},"nodeType":"YulFunctionCall","src":"1697:58:31"},"variables":[{"name":"value6_1","nodeType":"YulTypedName","src":"1675:8:31","type":""},{"name":"value7_1","nodeType":"YulTypedName","src":"1685:8:31","type":""}]},{"nodeType":"YulAssignment","src":"1764:18:31","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"1774:8:31"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"1764:6:31"}]},{"nodeType":"YulAssignment","src":"1791:18:31","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"1801:8:31"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"1791:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"742:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"753:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"765:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"773:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"781:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"789:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"797:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"805:6:31","type":""},{"name":"value6","nodeType":"YulTypedName","src":"813:6:31","type":""},{"name":"value7","nodeType":"YulTypedName","src":"821:6:31","type":""}],"src":"648:1167:31"},{"body":{"nodeType":"YulBlock","src":"1971:280:31","statements":[{"nodeType":"YulAssignment","src":"1981:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1993:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2004:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1989:3:31"},"nodeType":"YulFunctionCall","src":"1989:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1981:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2023:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"2038:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"2046:66:31","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2034:3:31"},"nodeType":"YulFunctionCall","src":"2034:79:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2016:6:31"},"nodeType":"YulFunctionCall","src":"2016:98:31"},"nodeType":"YulExpressionStatement","src":"2016:98:31"},{"nodeType":"YulVariableDeclaration","src":"2123:18:31","value":{"kind":"number","nodeType":"YulLiteral","src":"2133:8:31","type":"","value":"0xffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"2127:2:31","type":""}]},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2161:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2172:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2157:3:31"},"nodeType":"YulFunctionCall","src":"2157:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"2181:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2189:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2177:3:31"},"nodeType":"YulFunctionCall","src":"2177:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2150:6:31"},"nodeType":"YulFunctionCall","src":"2150:43:31"},"nodeType":"YulExpressionStatement","src":"2150:43:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2213:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2224:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2209:3:31"},"nodeType":"YulFunctionCall","src":"2209:18:31"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"2233:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"2241:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2229:3:31"},"nodeType":"YulFunctionCall","src":"2229:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2202:6:31"},"nodeType":"YulFunctionCall","src":"2202:43:31"},"nodeType":"YulExpressionStatement","src":"2202:43:31"}]},"name":"abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1924:9:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"1935:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1943:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1951:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1962:4:31","type":""}],"src":"1820:431:31"},{"body":{"nodeType":"YulBlock","src":"2357:125:31","statements":[{"nodeType":"YulAssignment","src":"2367:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2379:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2390:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2375:3:31"},"nodeType":"YulFunctionCall","src":"2375:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"2367:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2409:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"2424:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"2432:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2420:3:31"},"nodeType":"YulFunctionCall","src":"2420:55:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2402:6:31"},"nodeType":"YulFunctionCall","src":"2402:74:31"},"nodeType":"YulExpressionStatement","src":"2402:74:31"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2326:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"2337:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"2348:4:31","type":""}],"src":"2256:226:31"},{"body":{"nodeType":"YulBlock","src":"2588:76:31","statements":[{"nodeType":"YulAssignment","src":"2598:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2610:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"2621:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2606:3:31"},"nodeType":"YulFunctionCall","src":"2606:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"2598:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2640:9:31"},{"name":"value0","nodeType":"YulIdentifier","src":"2651:6:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2633:6:31"},"nodeType":"YulFunctionCall","src":"2633:25:31"},"nodeType":"YulExpressionStatement","src":"2633:25:31"}]},"name":"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2557:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"2568:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"2579:4:31","type":""}],"src":"2487:177:31"},{"body":{"nodeType":"YulBlock","src":"2860:770:31","statements":[{"body":{"nodeType":"YulBlock","src":"2907:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2916:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2919:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2909:6:31"},"nodeType":"YulFunctionCall","src":"2909:12:31"},"nodeType":"YulExpressionStatement","src":"2909:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"2881:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"2890:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2877:3:31"},"nodeType":"YulFunctionCall","src":"2877:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"2902:3:31","type":"","value":"224"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"2873:3:31"},"nodeType":"YulFunctionCall","src":"2873:33:31"},"nodeType":"YulIf","src":"2870:53:31"},{"nodeType":"YulVariableDeclaration","src":"2932:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2958:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2945:12:31"},"nodeType":"YulFunctionCall","src":"2945:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"2936:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"3002:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2977:24:31"},"nodeType":"YulFunctionCall","src":"2977:31:31"},"nodeType":"YulExpressionStatement","src":"2977:31:31"},{"nodeType":"YulAssignment","src":"3017:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"3027:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"3017:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"3041:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3073:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3084:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3069:3:31"},"nodeType":"YulFunctionCall","src":"3069:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3056:12:31"},"nodeType":"YulFunctionCall","src":"3056:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"3045:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"3122:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"3097:24:31"},"nodeType":"YulFunctionCall","src":"3097:33:31"},"nodeType":"YulExpressionStatement","src":"3097:33:31"},{"nodeType":"YulAssignment","src":"3139:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"3149:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"3139:6:31"}]},{"nodeType":"YulAssignment","src":"3165:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3192:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3203:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3188:3:31"},"nodeType":"YulFunctionCall","src":"3188:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3175:12:31"},"nodeType":"YulFunctionCall","src":"3175:32:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"3165:6:31"}]},{"nodeType":"YulAssignment","src":"3216:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3243:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3254:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3239:3:31"},"nodeType":"YulFunctionCall","src":"3239:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3226:12:31"},"nodeType":"YulFunctionCall","src":"3226:32:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"3216:6:31"}]},{"nodeType":"YulAssignment","src":"3267:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3294:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3305:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3290:3:31"},"nodeType":"YulFunctionCall","src":"3290:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3277:12:31"},"nodeType":"YulFunctionCall","src":"3277:33:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"3267:6:31"}]},{"nodeType":"YulAssignment","src":"3319:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3346:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3357:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3342:3:31"},"nodeType":"YulFunctionCall","src":"3342:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3329:12:31"},"nodeType":"YulFunctionCall","src":"3329:33:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"3319:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"3371:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3402:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3413:3:31","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3398:3:31"},"nodeType":"YulFunctionCall","src":"3398:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3385:12:31"},"nodeType":"YulFunctionCall","src":"3385:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"3375:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"3461:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3470:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3473:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3463:6:31"},"nodeType":"YulFunctionCall","src":"3463:12:31"},"nodeType":"YulExpressionStatement","src":"3463:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"3433:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"3441:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3430:2:31"},"nodeType":"YulFunctionCall","src":"3430:30:31"},"nodeType":"YulIf","src":"3427:50:31"},{"nodeType":"YulVariableDeclaration","src":"3486:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3542:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"3553:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3538:3:31"},"nodeType":"YulFunctionCall","src":"3538:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3562:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"3512:25:31"},"nodeType":"YulFunctionCall","src":"3512:58:31"},"variables":[{"name":"value6_1","nodeType":"YulTypedName","src":"3490:8:31","type":""},{"name":"value7_1","nodeType":"YulTypedName","src":"3500:8:31","type":""}]},{"nodeType":"YulAssignment","src":"3579:18:31","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"3589:8:31"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"3579:6:31"}]},{"nodeType":"YulAssignment","src":"3606:18:31","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"3616:8:31"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"3606:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2770:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"2781:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"2793:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"2801:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"2809:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"2817:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"2825:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"2833:6:31","type":""},{"name":"value6","nodeType":"YulTypedName","src":"2841:6:31","type":""},{"name":"value7","nodeType":"YulTypedName","src":"2849:6:31","type":""}],"src":"2669:961:31"},{"body":{"nodeType":"YulBlock","src":"3734:149:31","statements":[{"nodeType":"YulAssignment","src":"3744:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3756:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"3767:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3752:3:31"},"nodeType":"YulFunctionCall","src":"3752:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3744:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3786:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"3801:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"3809:66:31","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"3797:3:31"},"nodeType":"YulFunctionCall","src":"3797:79:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3779:6:31"},"nodeType":"YulFunctionCall","src":"3779:98:31"},"nodeType":"YulExpressionStatement","src":"3779:98:31"}]},"name":"abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3703:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3714:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3725:4:31","type":""}],"src":"3635:248:31"},{"body":{"nodeType":"YulBlock","src":"3931:75:31","statements":[{"body":{"nodeType":"YulBlock","src":"3984:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3993:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3996:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3986:6:31"},"nodeType":"YulFunctionCall","src":"3986:12:31"},"nodeType":"YulExpressionStatement","src":"3986:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"3954:5:31"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3972:1:31","type":"","value":"2"},{"name":"value","nodeType":"YulIdentifier","src":"3975:5:31"}],"functionName":{"name":"signextend","nodeType":"YulIdentifier","src":"3961:10:31"},"nodeType":"YulFunctionCall","src":"3961:20:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"3951:2:31"},"nodeType":"YulFunctionCall","src":"3951:31:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"3944:6:31"},"nodeType":"YulFunctionCall","src":"3944:39:31"},"nodeType":"YulIf","src":"3941:59:31"}]},"name":"validator_revert_int24","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"3920:5:31","type":""}],"src":"3888:118:31"},{"body":{"nodeType":"YulBlock","src":"4059:114:31","statements":[{"nodeType":"YulAssignment","src":"4069:29:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"4091:6:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4078:12:31"},"nodeType":"YulFunctionCall","src":"4078:20:31"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"4069:5:31"}]},{"body":{"nodeType":"YulBlock","src":"4151:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4160:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4163:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4153:6:31"},"nodeType":"YulFunctionCall","src":"4153:12:31"},"nodeType":"YulExpressionStatement","src":"4153:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4120:5:31"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4138:2:31","type":"","value":"15"},{"name":"value","nodeType":"YulIdentifier","src":"4142:5:31"}],"functionName":{"name":"signextend","nodeType":"YulIdentifier","src":"4127:10:31"},"nodeType":"YulFunctionCall","src":"4127:21:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"4117:2:31"},"nodeType":"YulFunctionCall","src":"4117:32:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4110:6:31"},"nodeType":"YulFunctionCall","src":"4110:40:31"},"nodeType":"YulIf","src":"4107:60:31"}]},"name":"abi_decode_int128","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"4038:6:31","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"4049:5:31","type":""}],"src":"4011:162:31"},{"body":{"nodeType":"YulBlock","src":"4347:865:31","statements":[{"body":{"nodeType":"YulBlock","src":"4394:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4403:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4406:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4396:6:31"},"nodeType":"YulFunctionCall","src":"4396:12:31"},"nodeType":"YulExpressionStatement","src":"4396:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"4368:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"4377:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4364:3:31"},"nodeType":"YulFunctionCall","src":"4364:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"4389:3:31","type":"","value":"192"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"4360:3:31"},"nodeType":"YulFunctionCall","src":"4360:33:31"},"nodeType":"YulIf","src":"4357:53:31"},{"nodeType":"YulVariableDeclaration","src":"4419:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4445:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4432:12:31"},"nodeType":"YulFunctionCall","src":"4432:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"4423:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4489:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"4464:24:31"},"nodeType":"YulFunctionCall","src":"4464:31:31"},"nodeType":"YulExpressionStatement","src":"4464:31:31"},{"nodeType":"YulAssignment","src":"4504:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"4514:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"4504:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"4528:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4560:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4571:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4556:3:31"},"nodeType":"YulFunctionCall","src":"4556:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4543:12:31"},"nodeType":"YulFunctionCall","src":"4543:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"4532:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"4609:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"4584:24:31"},"nodeType":"YulFunctionCall","src":"4584:33:31"},"nodeType":"YulExpressionStatement","src":"4584:33:31"},{"nodeType":"YulAssignment","src":"4626:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"4636:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"4626:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"4652:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4684:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4695:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4680:3:31"},"nodeType":"YulFunctionCall","src":"4680:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4667:12:31"},"nodeType":"YulFunctionCall","src":"4667:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"4656:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"4731:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"4708:22:31"},"nodeType":"YulFunctionCall","src":"4708:31:31"},"nodeType":"YulExpressionStatement","src":"4708:31:31"},{"nodeType":"YulAssignment","src":"4748:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"4758:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"4748:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"4774:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4806:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4817:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4802:3:31"},"nodeType":"YulFunctionCall","src":"4802:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4789:12:31"},"nodeType":"YulFunctionCall","src":"4789:32:31"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"4778:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"4853:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"4830:22:31"},"nodeType":"YulFunctionCall","src":"4830:31:31"},"nodeType":"YulExpressionStatement","src":"4830:31:31"},{"nodeType":"YulAssignment","src":"4870:17:31","value":{"name":"value_3","nodeType":"YulIdentifier","src":"4880:7:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"4870:6:31"}]},{"nodeType":"YulAssignment","src":"4896:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4928:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4939:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4924:3:31"},"nodeType":"YulFunctionCall","src":"4924:19:31"}],"functionName":{"name":"abi_decode_int128","nodeType":"YulIdentifier","src":"4906:17:31"},"nodeType":"YulFunctionCall","src":"4906:38:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"4896:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"4953:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4984:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"4995:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4980:3:31"},"nodeType":"YulFunctionCall","src":"4980:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4967:12:31"},"nodeType":"YulFunctionCall","src":"4967:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"4957:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"5043:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5052:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5055:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5045:6:31"},"nodeType":"YulFunctionCall","src":"5045:12:31"},"nodeType":"YulExpressionStatement","src":"5045:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"5015:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"5023:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5012:2:31"},"nodeType":"YulFunctionCall","src":"5012:30:31"},"nodeType":"YulIf","src":"5009:50:31"},{"nodeType":"YulVariableDeclaration","src":"5068:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5124:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"5135:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5120:3:31"},"nodeType":"YulFunctionCall","src":"5120:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"5144:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"5094:25:31"},"nodeType":"YulFunctionCall","src":"5094:58:31"},"variables":[{"name":"value5_1","nodeType":"YulTypedName","src":"5072:8:31","type":""},{"name":"value6_1","nodeType":"YulTypedName","src":"5082:8:31","type":""}]},{"nodeType":"YulAssignment","src":"5161:18:31","value":{"name":"value5_1","nodeType":"YulIdentifier","src":"5171:8:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"5161:6:31"}]},{"nodeType":"YulAssignment","src":"5188:18:31","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"5198:8:31"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"5188:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4265:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"4276:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"4288:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"4296:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"4304:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"4312:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"4320:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"4328:6:31","type":""},{"name":"value6","nodeType":"YulTypedName","src":"4336:6:31","type":""}],"src":"4178:1034:31"},{"body":{"nodeType":"YulBlock","src":"5342:207:31","statements":[{"nodeType":"YulAssignment","src":"5352:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5364:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5375:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5360:3:31"},"nodeType":"YulFunctionCall","src":"5360:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5352:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5394:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"5409:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"5417:66:31","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"5405:3:31"},"nodeType":"YulFunctionCall","src":"5405:79:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5387:6:31"},"nodeType":"YulFunctionCall","src":"5387:98:31"},"nodeType":"YulExpressionStatement","src":"5387:98:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5505:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5516:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5501:3:31"},"nodeType":"YulFunctionCall","src":"5501:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"5525:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"5533:8:31","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"5521:3:31"},"nodeType":"YulFunctionCall","src":"5521:21:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5494:6:31"},"nodeType":"YulFunctionCall","src":"5494:49:31"},"nodeType":"YulExpressionStatement","src":"5494:49:31"}]},"name":"abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5303:9:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"5314:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"5322:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"5333:4:31","type":""}],"src":"5217:332:31"},{"body":{"nodeType":"YulBlock","src":"5641:301:31","statements":[{"body":{"nodeType":"YulBlock","src":"5687:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5696:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5699:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5689:6:31"},"nodeType":"YulFunctionCall","src":"5689:12:31"},"nodeType":"YulExpressionStatement","src":"5689:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"5662:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"5671:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"5658:3:31"},"nodeType":"YulFunctionCall","src":"5658:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"5683:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"5654:3:31"},"nodeType":"YulFunctionCall","src":"5654:32:31"},"nodeType":"YulIf","src":"5651:52:31"},{"nodeType":"YulVariableDeclaration","src":"5712:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5738:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5725:12:31"},"nodeType":"YulFunctionCall","src":"5725:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"5716:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"5782:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"5757:24:31"},"nodeType":"YulFunctionCall","src":"5757:31:31"},"nodeType":"YulExpressionStatement","src":"5757:31:31"},{"nodeType":"YulAssignment","src":"5797:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"5807:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"5797:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"5821:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5853:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"5864:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5849:3:31"},"nodeType":"YulFunctionCall","src":"5849:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5836:12:31"},"nodeType":"YulFunctionCall","src":"5836:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"5825:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"5902:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"5877:24:31"},"nodeType":"YulFunctionCall","src":"5877:33:31"},"nodeType":"YulExpressionStatement","src":"5877:33:31"},{"nodeType":"YulAssignment","src":"5919:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"5929:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"5919:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_uint160","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5599:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"5610:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"5622:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"5630:6:31","type":""}],"src":"5554:388:31"},{"body":{"nodeType":"YulBlock","src":"6044:87:31","statements":[{"nodeType":"YulAssignment","src":"6054:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6066:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"6077:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6062:3:31"},"nodeType":"YulFunctionCall","src":"6062:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6054:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6096:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"6111:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"6119:4:31","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6107:3:31"},"nodeType":"YulFunctionCall","src":"6107:17:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6089:6:31"},"nodeType":"YulFunctionCall","src":"6089:36:31"},"nodeType":"YulExpressionStatement","src":"6089:36:31"}]},"name":"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6013:9:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"6024:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"6035:4:31","type":""}],"src":"5947:184:31"},{"body":{"nodeType":"YulBlock","src":"6238:423:31","statements":[{"body":{"nodeType":"YulBlock","src":"6284:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6293:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6296:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"6286:6:31"},"nodeType":"YulFunctionCall","src":"6286:12:31"},"nodeType":"YulExpressionStatement","src":"6286:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"6259:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"6268:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"6255:3:31"},"nodeType":"YulFunctionCall","src":"6255:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"6280:2:31","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"6251:3:31"},"nodeType":"YulFunctionCall","src":"6251:32:31"},"nodeType":"YulIf","src":"6248:52:31"},{"nodeType":"YulVariableDeclaration","src":"6309:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6335:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6322:12:31"},"nodeType":"YulFunctionCall","src":"6322:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"6313:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6379:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6354:24:31"},"nodeType":"YulFunctionCall","src":"6354:31:31"},"nodeType":"YulExpressionStatement","src":"6354:31:31"},{"nodeType":"YulAssignment","src":"6394:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"6404:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"6394:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"6418:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6450:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"6461:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6446:3:31"},"nodeType":"YulFunctionCall","src":"6446:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6433:12:31"},"nodeType":"YulFunctionCall","src":"6433:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"6422:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"6499:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6474:24:31"},"nodeType":"YulFunctionCall","src":"6474:33:31"},"nodeType":"YulExpressionStatement","src":"6474:33:31"},{"nodeType":"YulAssignment","src":"6516:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"6526:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"6516:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"6542:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6574:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"6585:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6570:3:31"},"nodeType":"YulFunctionCall","src":"6570:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6557:12:31"},"nodeType":"YulFunctionCall","src":"6557:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"6546:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"6621:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"6598:22:31"},"nodeType":"YulFunctionCall","src":"6598:31:31"},"nodeType":"YulExpressionStatement","src":"6598:31:31"},{"nodeType":"YulAssignment","src":"6638:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"6648:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"6638:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_uint160t_int24","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6188:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"6199:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"6211:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"6219:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"6227:6:31","type":""}],"src":"6136:525:31"},{"body":{"nodeType":"YulBlock","src":"6823:666:31","statements":[{"body":{"nodeType":"YulBlock","src":"6870:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6879:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6882:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"6872:6:31"},"nodeType":"YulFunctionCall","src":"6872:12:31"},"nodeType":"YulExpressionStatement","src":"6872:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"6844:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"6853:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"6840:3:31"},"nodeType":"YulFunctionCall","src":"6840:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"6865:3:31","type":"","value":"160"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"6836:3:31"},"nodeType":"YulFunctionCall","src":"6836:33:31"},"nodeType":"YulIf","src":"6833:53:31"},{"nodeType":"YulVariableDeclaration","src":"6895:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6921:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6908:12:31"},"nodeType":"YulFunctionCall","src":"6908:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"6899:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6965:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6940:24:31"},"nodeType":"YulFunctionCall","src":"6940:31:31"},"nodeType":"YulExpressionStatement","src":"6940:31:31"},{"nodeType":"YulAssignment","src":"6980:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"6990:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"6980:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"7004:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7036:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"7047:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7032:3:31"},"nodeType":"YulFunctionCall","src":"7032:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7019:12:31"},"nodeType":"YulFunctionCall","src":"7019:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"7008:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"7085:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7060:24:31"},"nodeType":"YulFunctionCall","src":"7060:33:31"},"nodeType":"YulExpressionStatement","src":"7060:33:31"},{"nodeType":"YulAssignment","src":"7102:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"7112:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"7102:6:31"}]},{"nodeType":"YulAssignment","src":"7128:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7155:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"7166:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7151:3:31"},"nodeType":"YulFunctionCall","src":"7151:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7138:12:31"},"nodeType":"YulFunctionCall","src":"7138:32:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"7128:6:31"}]},{"nodeType":"YulAssignment","src":"7179:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7206:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"7217:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7202:3:31"},"nodeType":"YulFunctionCall","src":"7202:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7189:12:31"},"nodeType":"YulFunctionCall","src":"7189:32:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"7179:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"7230:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7261:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"7272:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7257:3:31"},"nodeType":"YulFunctionCall","src":"7257:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7244:12:31"},"nodeType":"YulFunctionCall","src":"7244:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"7234:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"7320:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7329:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"7332:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"7322:6:31"},"nodeType":"YulFunctionCall","src":"7322:12:31"},"nodeType":"YulExpressionStatement","src":"7322:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"7292:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"7300:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"7289:2:31"},"nodeType":"YulFunctionCall","src":"7289:30:31"},"nodeType":"YulIf","src":"7286:50:31"},{"nodeType":"YulVariableDeclaration","src":"7345:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7401:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"7412:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7397:3:31"},"nodeType":"YulFunctionCall","src":"7397:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"7421:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"7371:25:31"},"nodeType":"YulFunctionCall","src":"7371:58:31"},"variables":[{"name":"value4_1","nodeType":"YulTypedName","src":"7349:8:31","type":""},{"name":"value5_1","nodeType":"YulTypedName","src":"7359:8:31","type":""}]},{"nodeType":"YulAssignment","src":"7438:18:31","value":{"name":"value4_1","nodeType":"YulIdentifier","src":"7448:8:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"7438:6:31"}]},{"nodeType":"YulAssignment","src":"7465:18:31","value":{"name":"value5_1","nodeType":"YulIdentifier","src":"7475:8:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"7465:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6749:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"6760:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"6772:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"6780:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"6788:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"6796:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"6804:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"6812:6:31","type":""}],"src":"6666:823:31"},{"body":{"nodeType":"YulBlock","src":"7696:965:31","statements":[{"body":{"nodeType":"YulBlock","src":"7743:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7752:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"7755:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"7745:6:31"},"nodeType":"YulFunctionCall","src":"7745:12:31"},"nodeType":"YulExpressionStatement","src":"7745:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"7717:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"7726:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"7713:3:31"},"nodeType":"YulFunctionCall","src":"7713:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"7738:3:31","type":"","value":"256"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"7709:3:31"},"nodeType":"YulFunctionCall","src":"7709:33:31"},"nodeType":"YulIf","src":"7706:53:31"},{"nodeType":"YulVariableDeclaration","src":"7768:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7794:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7781:12:31"},"nodeType":"YulFunctionCall","src":"7781:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"7772:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"7838:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7813:24:31"},"nodeType":"YulFunctionCall","src":"7813:31:31"},"nodeType":"YulExpressionStatement","src":"7813:31:31"},{"nodeType":"YulAssignment","src":"7853:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"7863:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"7853:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"7877:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7909:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"7920:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7905:3:31"},"nodeType":"YulFunctionCall","src":"7905:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7892:12:31"},"nodeType":"YulFunctionCall","src":"7892:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"7881:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"7958:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7933:24:31"},"nodeType":"YulFunctionCall","src":"7933:33:31"},"nodeType":"YulExpressionStatement","src":"7933:33:31"},{"nodeType":"YulAssignment","src":"7975:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"7985:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"7975:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"8001:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8033:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8044:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8029:3:31"},"nodeType":"YulFunctionCall","src":"8029:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8016:12:31"},"nodeType":"YulFunctionCall","src":"8016:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"8005:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"8079:7:31"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"8057:21:31"},"nodeType":"YulFunctionCall","src":"8057:30:31"},"nodeType":"YulExpressionStatement","src":"8057:30:31"},{"nodeType":"YulAssignment","src":"8096:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"8106:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"8096:6:31"}]},{"nodeType":"YulAssignment","src":"8122:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8149:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8160:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8145:3:31"},"nodeType":"YulFunctionCall","src":"8145:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8132:12:31"},"nodeType":"YulFunctionCall","src":"8132:32:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"8122:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"8173:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8205:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8216:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8201:3:31"},"nodeType":"YulFunctionCall","src":"8201:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8188:12:31"},"nodeType":"YulFunctionCall","src":"8188:33:31"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"8177:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"8255:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"8230:24:31"},"nodeType":"YulFunctionCall","src":"8230:33:31"},"nodeType":"YulExpressionStatement","src":"8230:33:31"},{"nodeType":"YulAssignment","src":"8272:17:31","value":{"name":"value_3","nodeType":"YulIdentifier","src":"8282:7:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"8272:6:31"}]},{"nodeType":"YulAssignment","src":"8298:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8325:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8336:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8321:3:31"},"nodeType":"YulFunctionCall","src":"8321:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8308:12:31"},"nodeType":"YulFunctionCall","src":"8308:33:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"8298:6:31"}]},{"nodeType":"YulAssignment","src":"8350:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8377:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8388:3:31","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8373:3:31"},"nodeType":"YulFunctionCall","src":"8373:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8360:12:31"},"nodeType":"YulFunctionCall","src":"8360:33:31"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"8350:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"8402:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8433:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8444:3:31","type":"","value":"224"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8429:3:31"},"nodeType":"YulFunctionCall","src":"8429:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8416:12:31"},"nodeType":"YulFunctionCall","src":"8416:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"8406:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"8492:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8501:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"8504:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8494:6:31"},"nodeType":"YulFunctionCall","src":"8494:12:31"},"nodeType":"YulExpressionStatement","src":"8494:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"8464:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"8472:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"8461:2:31"},"nodeType":"YulFunctionCall","src":"8461:30:31"},"nodeType":"YulIf","src":"8458:50:31"},{"nodeType":"YulVariableDeclaration","src":"8517:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8573:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"8584:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8569:3:31"},"nodeType":"YulFunctionCall","src":"8569:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"8593:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"8543:25:31"},"nodeType":"YulFunctionCall","src":"8543:58:31"},"variables":[{"name":"value7_1","nodeType":"YulTypedName","src":"8521:8:31","type":""},{"name":"value8_1","nodeType":"YulTypedName","src":"8531:8:31","type":""}]},{"nodeType":"YulAssignment","src":"8610:18:31","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"8620:8:31"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"8610:6:31"}]},{"nodeType":"YulAssignment","src":"8637:18:31","value":{"name":"value8_1","nodeType":"YulIdentifier","src":"8647:8:31"},"variableNames":[{"name":"value8","nodeType":"YulIdentifier","src":"8637:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"7598:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"7609:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"7621:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"7629:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"7637:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"7645:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"7653:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"7661:6:31","type":""},{"name":"value6","nodeType":"YulTypedName","src":"7669:6:31","type":""},{"name":"value7","nodeType":"YulTypedName","src":"7677:6:31","type":""},{"name":"value8","nodeType":"YulTypedName","src":"7685:6:31","type":""}],"src":"7494:1167:31"},{"body":{"nodeType":"YulBlock","src":"8753:161:31","statements":[{"body":{"nodeType":"YulBlock","src":"8799:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8808:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"8811:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8801:6:31"},"nodeType":"YulFunctionCall","src":"8801:12:31"},"nodeType":"YulExpressionStatement","src":"8801:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"8774:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"8783:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"8770:3:31"},"nodeType":"YulFunctionCall","src":"8770:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"8795:2:31","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"8766:3:31"},"nodeType":"YulFunctionCall","src":"8766:32:31"},"nodeType":"YulIf","src":"8763:52:31"},{"nodeType":"YulAssignment","src":"8824:33:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8847:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8834:12:31"},"nodeType":"YulFunctionCall","src":"8834:23:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"8824:6:31"}]},{"nodeType":"YulAssignment","src":"8866:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8893:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"8904:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8889:3:31"},"nodeType":"YulFunctionCall","src":"8889:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8876:12:31"},"nodeType":"YulFunctionCall","src":"8876:32:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"8866:6:31"}]}]},"name":"abi_decode_tuple_t_uint256t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"8711:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"8722:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"8734:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"8742:6:31","type":""}],"src":"8666:248:31"},{"body":{"nodeType":"YulBlock","src":"8989:177:31","statements":[{"body":{"nodeType":"YulBlock","src":"9035:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9044:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"9047:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"9037:6:31"},"nodeType":"YulFunctionCall","src":"9037:12:31"},"nodeType":"YulExpressionStatement","src":"9037:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"9010:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"9019:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"9006:3:31"},"nodeType":"YulFunctionCall","src":"9006:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"9031:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"9002:3:31"},"nodeType":"YulFunctionCall","src":"9002:32:31"},"nodeType":"YulIf","src":"8999:52:31"},{"nodeType":"YulVariableDeclaration","src":"9060:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9086:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9073:12:31"},"nodeType":"YulFunctionCall","src":"9073:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"9064:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"9130:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"9105:24:31"},"nodeType":"YulFunctionCall","src":"9105:31:31"},"nodeType":"YulExpressionStatement","src":"9105:31:31"},{"nodeType":"YulAssignment","src":"9145:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"9155:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"9145:6:31"}]}]},"name":"abi_decode_tuple_t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"8955:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"8966:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"8978:6:31","type":""}],"src":"8919:247:31"},{"body":{"nodeType":"YulBlock","src":"9374:969:31","statements":[{"body":{"nodeType":"YulBlock","src":"9421:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9430:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"9433:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"9423:6:31"},"nodeType":"YulFunctionCall","src":"9423:12:31"},"nodeType":"YulExpressionStatement","src":"9423:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"9395:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"9404:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"9391:3:31"},"nodeType":"YulFunctionCall","src":"9391:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"9416:3:31","type":"","value":"256"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"9387:3:31"},"nodeType":"YulFunctionCall","src":"9387:33:31"},"nodeType":"YulIf","src":"9384:53:31"},{"nodeType":"YulVariableDeclaration","src":"9446:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9472:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9459:12:31"},"nodeType":"YulFunctionCall","src":"9459:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"9450:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"9516:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"9491:24:31"},"nodeType":"YulFunctionCall","src":"9491:31:31"},"nodeType":"YulExpressionStatement","src":"9491:31:31"},{"nodeType":"YulAssignment","src":"9531:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"9541:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"9531:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"9555:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9587:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"9598:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9583:3:31"},"nodeType":"YulFunctionCall","src":"9583:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9570:12:31"},"nodeType":"YulFunctionCall","src":"9570:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"9559:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"9636:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"9611:24:31"},"nodeType":"YulFunctionCall","src":"9611:33:31"},"nodeType":"YulExpressionStatement","src":"9611:33:31"},{"nodeType":"YulAssignment","src":"9653:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"9663:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"9653:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"9679:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9711:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"9722:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9707:3:31"},"nodeType":"YulFunctionCall","src":"9707:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9694:12:31"},"nodeType":"YulFunctionCall","src":"9694:32:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"9683:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"9758:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"9735:22:31"},"nodeType":"YulFunctionCall","src":"9735:31:31"},"nodeType":"YulExpressionStatement","src":"9735:31:31"},{"nodeType":"YulAssignment","src":"9775:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"9785:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"9775:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"9801:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9833:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"9844:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9829:3:31"},"nodeType":"YulFunctionCall","src":"9829:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9816:12:31"},"nodeType":"YulFunctionCall","src":"9816:32:31"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"9805:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"9880:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"9857:22:31"},"nodeType":"YulFunctionCall","src":"9857:31:31"},"nodeType":"YulExpressionStatement","src":"9857:31:31"},{"nodeType":"YulAssignment","src":"9897:17:31","value":{"name":"value_3","nodeType":"YulIdentifier","src":"9907:7:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"9897:6:31"}]},{"nodeType":"YulAssignment","src":"9923:48:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9955:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"9966:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9951:3:31"},"nodeType":"YulFunctionCall","src":"9951:19:31"}],"functionName":{"name":"abi_decode_int128","nodeType":"YulIdentifier","src":"9933:17:31"},"nodeType":"YulFunctionCall","src":"9933:38:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"9923:6:31"}]},{"nodeType":"YulAssignment","src":"9980:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10007:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"10018:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10003:3:31"},"nodeType":"YulFunctionCall","src":"10003:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9990:12:31"},"nodeType":"YulFunctionCall","src":"9990:33:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"9980:6:31"}]},{"nodeType":"YulAssignment","src":"10032:43:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10059:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"10070:3:31","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10055:3:31"},"nodeType":"YulFunctionCall","src":"10055:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10042:12:31"},"nodeType":"YulFunctionCall","src":"10042:33:31"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"10032:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"10084:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10115:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"10126:3:31","type":"","value":"224"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10111:3:31"},"nodeType":"YulFunctionCall","src":"10111:19:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10098:12:31"},"nodeType":"YulFunctionCall","src":"10098:33:31"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"10088:6:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"10174:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"10183:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"10186:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"10176:6:31"},"nodeType":"YulFunctionCall","src":"10176:12:31"},"nodeType":"YulExpressionStatement","src":"10176:12:31"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"10146:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"10154:18:31","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"10143:2:31"},"nodeType":"YulFunctionCall","src":"10143:30:31"},"nodeType":"YulIf","src":"10140:50:31"},{"nodeType":"YulVariableDeclaration","src":"10199:84:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10255:9:31"},{"name":"offset","nodeType":"YulIdentifier","src":"10266:6:31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10251:3:31"},"nodeType":"YulFunctionCall","src":"10251:22:31"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"10275:7:31"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"10225:25:31"},"nodeType":"YulFunctionCall","src":"10225:58:31"},"variables":[{"name":"value7_1","nodeType":"YulTypedName","src":"10203:8:31","type":""},{"name":"value8_1","nodeType":"YulTypedName","src":"10213:8:31","type":""}]},{"nodeType":"YulAssignment","src":"10292:18:31","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"10302:8:31"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"10292:6:31"}]},{"nodeType":"YulAssignment","src":"10319:18:31","value":{"name":"value8_1","nodeType":"YulIdentifier","src":"10329:8:31"},"variableNames":[{"name":"value8","nodeType":"YulIdentifier","src":"10319:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"9276:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"9287:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"9299:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"9307:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"9315:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"9323:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"9331:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"9339:6:31","type":""},{"name":"value6","nodeType":"YulTypedName","src":"9347:6:31","type":""},{"name":"value7","nodeType":"YulTypedName","src":"9355:6:31","type":""},{"name":"value8","nodeType":"YulTypedName","src":"9363:6:31","type":""}],"src":"9171:1172:31"},{"body":{"nodeType":"YulBlock","src":"10452:352:31","statements":[{"body":{"nodeType":"YulBlock","src":"10498:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"10507:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"10510:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"10500:6:31"},"nodeType":"YulFunctionCall","src":"10500:12:31"},"nodeType":"YulExpressionStatement","src":"10500:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"10473:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"10482:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"10469:3:31"},"nodeType":"YulFunctionCall","src":"10469:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"10494:2:31","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"10465:3:31"},"nodeType":"YulFunctionCall","src":"10465:32:31"},"nodeType":"YulIf","src":"10462:52:31"},{"nodeType":"YulVariableDeclaration","src":"10523:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10549:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10536:12:31"},"nodeType":"YulFunctionCall","src":"10536:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"10527:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"10593:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"10568:24:31"},"nodeType":"YulFunctionCall","src":"10568:31:31"},"nodeType":"YulExpressionStatement","src":"10568:31:31"},{"nodeType":"YulAssignment","src":"10608:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"10618:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"10608:6:31"}]},{"nodeType":"YulAssignment","src":"10632:42:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10659:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"10670:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10655:3:31"},"nodeType":"YulFunctionCall","src":"10655:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10642:12:31"},"nodeType":"YulFunctionCall","src":"10642:32:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"10632:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"10683:47:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10715:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"10726:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10711:3:31"},"nodeType":"YulFunctionCall","src":"10711:18:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10698:12:31"},"nodeType":"YulFunctionCall","src":"10698:32:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"10687:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"10764:7:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"10739:24:31"},"nodeType":"YulFunctionCall","src":"10739:33:31"},"nodeType":"YulExpressionStatement","src":"10739:33:31"},{"nodeType":"YulAssignment","src":"10781:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"10791:7:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"10781:6:31"}]}]},"name":"abi_decode_tuple_t_addresst_uint256t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"10402:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"10413:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"10425:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"10433:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"10441:6:31","type":""}],"src":"10348:456:31"},{"body":{"nodeType":"YulBlock","src":"10878:205:31","statements":[{"body":{"nodeType":"YulBlock","src":"10924:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"10933:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"10936:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"10926:6:31"},"nodeType":"YulFunctionCall","src":"10926:12:31"},"nodeType":"YulExpressionStatement","src":"10926:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"10899:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"10908:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"10895:3:31"},"nodeType":"YulFunctionCall","src":"10895:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"10920:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"10891:3:31"},"nodeType":"YulFunctionCall","src":"10891:32:31"},"nodeType":"YulIf","src":"10888:52:31"},{"nodeType":"YulVariableDeclaration","src":"10949:36:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10975:9:31"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"10962:12:31"},"nodeType":"YulFunctionCall","src":"10962:23:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"10953:5:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"11037:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11046:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"11049:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"11039:6:31"},"nodeType":"YulFunctionCall","src":"11039:12:31"},"nodeType":"YulExpressionStatement","src":"11039:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11007:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11018:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"11025:8:31","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11014:3:31"},"nodeType":"YulFunctionCall","src":"11014:20:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"11004:2:31"},"nodeType":"YulFunctionCall","src":"11004:31:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"10997:6:31"},"nodeType":"YulFunctionCall","src":"10997:39:31"},"nodeType":"YulIf","src":"10994:59:31"},{"nodeType":"YulAssignment","src":"11062:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"11072:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"11062:6:31"}]}]},"name":"abi_decode_tuple_t_uint24","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"10844:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"10855:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"10867:6:31","type":""}],"src":"10809:274:31"},{"body":{"nodeType":"YulBlock","src":"11262:173:31","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11279:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11290:2:31","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11272:6:31"},"nodeType":"YulFunctionCall","src":"11272:21:31"},"nodeType":"YulExpressionStatement","src":"11272:21:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11313:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11324:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11309:3:31"},"nodeType":"YulFunctionCall","src":"11309:18:31"},{"kind":"number","nodeType":"YulLiteral","src":"11329:2:31","type":"","value":"23"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11302:6:31"},"nodeType":"YulFunctionCall","src":"11302:30:31"},"nodeType":"YulExpressionStatement","src":"11302:30:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11352:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11363:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11348:3:31"},"nodeType":"YulFunctionCall","src":"11348:18:31"},{"hexValue":"4f6e6c7920706f6f6c2063616e2063616c6c2074686973","kind":"string","nodeType":"YulLiteral","src":"11368:25:31","type":"","value":"Only pool can call this"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11341:6:31"},"nodeType":"YulFunctionCall","src":"11341:53:31"},"nodeType":"YulExpressionStatement","src":"11341:53:31"},{"nodeType":"YulAssignment","src":"11403:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11415:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11426:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11411:3:31"},"nodeType":"YulFunctionCall","src":"11411:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"11403:4:31"}]}]},"name":"abi_encode_tuple_t_stringliteral_b7deb07899b60a5f738285d4979109597e20f4e85555ea89670e2ec5bd1854eb__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11239:9:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"11253:4:31","type":""}],"src":"11088:347:31"},{"body":{"nodeType":"YulBlock","src":"11569:198:31","statements":[{"nodeType":"YulAssignment","src":"11579:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11591:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11602:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11587:3:31"},"nodeType":"YulFunctionCall","src":"11587:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"11579:4:31"}]},{"nodeType":"YulVariableDeclaration","src":"11614:52:31","value":{"kind":"number","nodeType":"YulLiteral","src":"11624:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"11618:2:31","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11682:9:31"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"11697:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"11705:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11693:3:31"},"nodeType":"YulFunctionCall","src":"11693:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11675:6:31"},"nodeType":"YulFunctionCall","src":"11675:34:31"},"nodeType":"YulExpressionStatement","src":"11675:34:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11729:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"11740:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11725:3:31"},"nodeType":"YulFunctionCall","src":"11725:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"11749:6:31"},{"name":"_1","nodeType":"YulIdentifier","src":"11757:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11745:3:31"},"nodeType":"YulFunctionCall","src":"11745:15:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"11718:6:31"},"nodeType":"YulFunctionCall","src":"11718:43:31"},"nodeType":"YulExpressionStatement","src":"11718:43:31"}]},"name":"abi_encode_tuple_t_address_t_address__to_t_address_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11530:9:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"11541:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"11549:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"11560:4:31","type":""}],"src":"11440:327:31"},{"body":{"nodeType":"YulBlock","src":"11831:104:31","statements":[{"nodeType":"YulAssignment","src":"11841:22:31","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"11856:6:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"11850:5:31"},"nodeType":"YulFunctionCall","src":"11850:13:31"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"11841:5:31"}]},{"body":{"nodeType":"YulBlock","src":"11913:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11922:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"11925:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"11915:6:31"},"nodeType":"YulFunctionCall","src":"11915:12:31"},"nodeType":"YulExpressionStatement","src":"11915:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11885:5:31"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11896:5:31"},{"kind":"number","nodeType":"YulLiteral","src":"11903:6:31","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"11892:3:31"},"nodeType":"YulFunctionCall","src":"11892:18:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"11882:2:31"},"nodeType":"YulFunctionCall","src":"11882:29:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"11875:6:31"},"nodeType":"YulFunctionCall","src":"11875:37:31"},"nodeType":"YulIf","src":"11872:57:31"}]},"name":"abi_decode_uint16_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"11810:6:31","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"11821:5:31","type":""}],"src":"11772:163:31"},{"body":{"nodeType":"YulBlock","src":"12020:126:31","statements":[{"body":{"nodeType":"YulBlock","src":"12066:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12075:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12078:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12068:6:31"},"nodeType":"YulFunctionCall","src":"12068:12:31"},"nodeType":"YulExpressionStatement","src":"12068:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"12041:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"12050:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"12037:3:31"},"nodeType":"YulFunctionCall","src":"12037:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"12062:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"12033:3:31"},"nodeType":"YulFunctionCall","src":"12033:32:31"},"nodeType":"YulIf","src":"12030:52:31"},{"nodeType":"YulAssignment","src":"12091:49:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12130:9:31"}],"functionName":{"name":"abi_decode_uint16_fromMemory","nodeType":"YulIdentifier","src":"12101:28:31"},"nodeType":"YulFunctionCall","src":"12101:39:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"12091:6:31"}]}]},"name":"abi_decode_tuple_t_uint16_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11986:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"11997:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"12009:6:31","type":""}],"src":"11940:206:31"},{"body":{"nodeType":"YulBlock","src":"12183:152:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12200:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12203:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12193:6:31"},"nodeType":"YulFunctionCall","src":"12193:88:31"},"nodeType":"YulExpressionStatement","src":"12193:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12297:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"12300:4:31","type":"","value":"0x11"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12290:6:31"},"nodeType":"YulFunctionCall","src":"12290:15:31"},"nodeType":"YulExpressionStatement","src":"12290:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12321:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12324:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12314:6:31"},"nodeType":"YulFunctionCall","src":"12314:15:31"},"nodeType":"YulExpressionStatement","src":"12314:15:31"}]},"name":"panic_error_0x11","nodeType":"YulFunctionDefinition","src":"12151:184:31"},{"body":{"nodeType":"YulBlock","src":"12388:125:31","statements":[{"nodeType":"YulVariableDeclaration","src":"12398:18:31","value":{"kind":"number","nodeType":"YulLiteral","src":"12408:8:31","type":"","value":"0xffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"12402:2:31","type":""}]},{"nodeType":"YulAssignment","src":"12425:35:31","value":{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12441:1:31"},{"name":"_1","nodeType":"YulIdentifier","src":"12444:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"12437:3:31"},"nodeType":"YulFunctionCall","src":"12437:10:31"},{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"12453:1:31"},{"name":"_1","nodeType":"YulIdentifier","src":"12456:2:31"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"12449:3:31"},"nodeType":"YulFunctionCall","src":"12449:10:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"12433:3:31"},"nodeType":"YulFunctionCall","src":"12433:27:31"},"variableNames":[{"name":"diff","nodeType":"YulIdentifier","src":"12425:4:31"}]},{"body":{"nodeType":"YulBlock","src":"12485:22:31","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"12487:16:31"},"nodeType":"YulFunctionCall","src":"12487:18:31"},"nodeType":"YulExpressionStatement","src":"12487:18:31"}]},"condition":{"arguments":[{"name":"diff","nodeType":"YulIdentifier","src":"12475:4:31"},{"name":"_1","nodeType":"YulIdentifier","src":"12481:2:31"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"12472:2:31"},"nodeType":"YulFunctionCall","src":"12472:12:31"},"nodeType":"YulIf","src":"12469:38:31"}]},"name":"checked_sub_t_uint24","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"12370:1:31","type":""},{"name":"y","nodeType":"YulTypedName","src":"12373:1:31","type":""}],"returnVariables":[{"name":"diff","nodeType":"YulTypedName","src":"12379:4:31","type":""}],"src":"12340:173:31"},{"body":{"nodeType":"YulBlock","src":"12570:116:31","statements":[{"nodeType":"YulAssignment","src":"12580:20:31","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12595:1:31"},{"name":"y","nodeType":"YulIdentifier","src":"12598:1:31"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"12591:3:31"},"nodeType":"YulFunctionCall","src":"12591:9:31"},"variableNames":[{"name":"product","nodeType":"YulIdentifier","src":"12580:7:31"}]},{"body":{"nodeType":"YulBlock","src":"12658:22:31","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"12660:16:31"},"nodeType":"YulFunctionCall","src":"12660:18:31"},"nodeType":"YulExpressionStatement","src":"12660:18:31"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12629:1:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"12622:6:31"},"nodeType":"YulFunctionCall","src":"12622:9:31"},{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"12636:1:31"},{"arguments":[{"name":"product","nodeType":"YulIdentifier","src":"12643:7:31"},{"name":"x","nodeType":"YulIdentifier","src":"12652:1:31"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"12639:3:31"},"nodeType":"YulFunctionCall","src":"12639:15:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"12633:2:31"},"nodeType":"YulFunctionCall","src":"12633:22:31"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"12619:2:31"},"nodeType":"YulFunctionCall","src":"12619:37:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"12612:6:31"},"nodeType":"YulFunctionCall","src":"12612:45:31"},"nodeType":"YulIf","src":"12609:71:31"}]},"name":"checked_mul_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"12549:1:31","type":""},{"name":"y","nodeType":"YulTypedName","src":"12552:1:31","type":""}],"returnVariables":[{"name":"product","nodeType":"YulTypedName","src":"12558:7:31","type":""}],"src":"12518:168:31"},{"body":{"nodeType":"YulBlock","src":"12737:228:31","statements":[{"body":{"nodeType":"YulBlock","src":"12768:168:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12789:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12792:77:31","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12782:6:31"},"nodeType":"YulFunctionCall","src":"12782:88:31"},"nodeType":"YulExpressionStatement","src":"12782:88:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12890:1:31","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"12893:4:31","type":"","value":"0x12"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12883:6:31"},"nodeType":"YulFunctionCall","src":"12883:15:31"},"nodeType":"YulExpressionStatement","src":"12883:15:31"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12918:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12921:4:31","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12911:6:31"},"nodeType":"YulFunctionCall","src":"12911:15:31"},"nodeType":"YulExpressionStatement","src":"12911:15:31"}]},"condition":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"12757:1:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"12750:6:31"},"nodeType":"YulFunctionCall","src":"12750:9:31"},"nodeType":"YulIf","src":"12747:189:31"},{"nodeType":"YulAssignment","src":"12945:14:31","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"12954:1:31"},{"name":"y","nodeType":"YulIdentifier","src":"12957:1:31"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"12950:3:31"},"nodeType":"YulFunctionCall","src":"12950:9:31"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"12945:1:31"}]}]},"name":"checked_div_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"12722:1:31","type":""},{"name":"y","nodeType":"YulTypedName","src":"12725:1:31","type":""}],"returnVariables":[{"name":"r","nodeType":"YulTypedName","src":"12731:1:31","type":""}],"src":"12691:274:31"},{"body":{"nodeType":"YulBlock","src":"13099:168:31","statements":[{"nodeType":"YulAssignment","src":"13109:26:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13121:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"13132:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13117:3:31"},"nodeType":"YulFunctionCall","src":"13117:18:31"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"13109:4:31"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13151:9:31"},{"name":"value0","nodeType":"YulIdentifier","src":"13162:6:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13144:6:31"},"nodeType":"YulFunctionCall","src":"13144:25:31"},"nodeType":"YulExpressionStatement","src":"13144:25:31"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13189:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"13200:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13185:3:31"},"nodeType":"YulFunctionCall","src":"13185:18:31"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"13209:6:31"},{"kind":"number","nodeType":"YulLiteral","src":"13217:42:31","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"13205:3:31"},"nodeType":"YulFunctionCall","src":"13205:55:31"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13178:6:31"},"nodeType":"YulFunctionCall","src":"13178:83:31"},"nodeType":"YulExpressionStatement","src":"13178:83:31"}]},"name":"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13060:9:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"13071:6:31","type":""},{"name":"value0","nodeType":"YulTypedName","src":"13079:6:31","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"13090:4:31","type":""}],"src":"12970:297:31"},{"body":{"nodeType":"YulBlock","src":"13350:167:31","statements":[{"body":{"nodeType":"YulBlock","src":"13396:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13405:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13408:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13398:6:31"},"nodeType":"YulFunctionCall","src":"13398:12:31"},"nodeType":"YulExpressionStatement","src":"13398:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"13371:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"13380:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"13367:3:31"},"nodeType":"YulFunctionCall","src":"13367:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"13392:2:31","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"13363:3:31"},"nodeType":"YulFunctionCall","src":"13363:32:31"},"nodeType":"YulIf","src":"13360:52:31"},{"nodeType":"YulVariableDeclaration","src":"13421:29:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13440:9:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"13434:5:31"},"nodeType":"YulFunctionCall","src":"13434:16:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"13425:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"13481:5:31"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"13459:21:31"},"nodeType":"YulFunctionCall","src":"13459:28:31"},"nodeType":"YulExpressionStatement","src":"13459:28:31"},{"nodeType":"YulAssignment","src":"13496:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"13506:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"13496:6:31"}]}]},"name":"abi_decode_tuple_t_bool_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13316:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"13327:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"13339:6:31","type":""}],"src":"13272:245:31"},{"body":{"nodeType":"YulBlock","src":"13679:679:31","statements":[{"body":{"nodeType":"YulBlock","src":"13726:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13735:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13738:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13728:6:31"},"nodeType":"YulFunctionCall","src":"13728:12:31"},"nodeType":"YulExpressionStatement","src":"13728:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"13700:7:31"},{"name":"headStart","nodeType":"YulIdentifier","src":"13709:9:31"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"13696:3:31"},"nodeType":"YulFunctionCall","src":"13696:23:31"},{"kind":"number","nodeType":"YulLiteral","src":"13721:3:31","type":"","value":"192"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"13692:3:31"},"nodeType":"YulFunctionCall","src":"13692:33:31"},"nodeType":"YulIf","src":"13689:53:31"},{"nodeType":"YulVariableDeclaration","src":"13751:29:31","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13770:9:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"13764:5:31"},"nodeType":"YulFunctionCall","src":"13764:16:31"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"13755:5:31","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"13814:5:31"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"13789:24:31"},"nodeType":"YulFunctionCall","src":"13789:31:31"},"nodeType":"YulExpressionStatement","src":"13789:31:31"},{"nodeType":"YulAssignment","src":"13829:15:31","value":{"name":"value","nodeType":"YulIdentifier","src":"13839:5:31"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"13829:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"13853:40:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13878:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"13889:2:31","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13874:3:31"},"nodeType":"YulFunctionCall","src":"13874:18:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"13868:5:31"},"nodeType":"YulFunctionCall","src":"13868:25:31"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"13857:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"13925:7:31"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"13902:22:31"},"nodeType":"YulFunctionCall","src":"13902:31:31"},"nodeType":"YulExpressionStatement","src":"13902:31:31"},{"nodeType":"YulAssignment","src":"13942:17:31","value":{"name":"value_1","nodeType":"YulIdentifier","src":"13952:7:31"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"13942:6:31"}]},{"nodeType":"YulAssignment","src":"13968:58:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14011:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"14022:2:31","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14007:3:31"},"nodeType":"YulFunctionCall","src":"14007:18:31"}],"functionName":{"name":"abi_decode_uint16_fromMemory","nodeType":"YulIdentifier","src":"13978:28:31"},"nodeType":"YulFunctionCall","src":"13978:48:31"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"13968:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"14035:40:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14060:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"14071:2:31","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14056:3:31"},"nodeType":"YulFunctionCall","src":"14056:18:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14050:5:31"},"nodeType":"YulFunctionCall","src":"14050:25:31"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"14039:7:31","type":""}]},{"body":{"nodeType":"YulBlock","src":"14127:16:31","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"14136:1:31","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"14139:1:31","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"14129:6:31"},"nodeType":"YulFunctionCall","src":"14129:12:31"},"nodeType":"YulExpressionStatement","src":"14129:12:31"}]},"condition":{"arguments":[{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"14097:7:31"},{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"14110:7:31"},{"kind":"number","nodeType":"YulLiteral","src":"14119:4:31","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"14106:3:31"},"nodeType":"YulFunctionCall","src":"14106:18:31"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"14094:2:31"},"nodeType":"YulFunctionCall","src":"14094:31:31"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"14087:6:31"},"nodeType":"YulFunctionCall","src":"14087:39:31"},"nodeType":"YulIf","src":"14084:59:31"},{"nodeType":"YulAssignment","src":"14152:17:31","value":{"name":"value_2","nodeType":"YulIdentifier","src":"14162:7:31"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"14152:6:31"}]},{"nodeType":"YulAssignment","src":"14178:59:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14221:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"14232:3:31","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14217:3:31"},"nodeType":"YulFunctionCall","src":"14217:19:31"}],"functionName":{"name":"abi_decode_uint16_fromMemory","nodeType":"YulIdentifier","src":"14188:28:31"},"nodeType":"YulFunctionCall","src":"14188:49:31"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"14178:6:31"}]},{"nodeType":"YulVariableDeclaration","src":"14246:41:31","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14271:9:31"},{"kind":"number","nodeType":"YulLiteral","src":"14282:3:31","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14267:3:31"},"nodeType":"YulFunctionCall","src":"14267:19:31"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14261:5:31"},"nodeType":"YulFunctionCall","src":"14261:26:31"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"14250:7:31","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"14318:7:31"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"14296:21:31"},"nodeType":"YulFunctionCall","src":"14296:30:31"},"nodeType":"YulExpressionStatement","src":"14296:30:31"},{"nodeType":"YulAssignment","src":"14335:17:31","value":{"name":"value_3","nodeType":"YulIdentifier","src":"14345:7:31"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"14335:6:31"}]}]},"name":"abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13605:9:31","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"13616:7:31","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"13628:6:31","type":""},{"name":"value1","nodeType":"YulTypedName","src":"13636:6:31","type":""},{"name":"value2","nodeType":"YulTypedName","src":"13644:6:31","type":""},{"name":"value3","nodeType":"YulTypedName","src":"13652:6:31","type":""},{"name":"value4","nodeType":"YulTypedName","src":"13660:6:31","type":""},{"name":"value5","nodeType":"YulTypedName","src":"13668:6:31","type":""}],"src":"13522:836:31"}]},"contents":"{\n    { }\n    function validator_revert_address(value)\n    {\n        if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n    }\n    function validator_revert_bool(value)\n    {\n        if iszero(eq(value, iszero(iszero(value)))) { revert(0, 0) }\n    }\n    function abi_decode_bytes_calldata(offset, end) -> arrayPos, length\n    {\n        if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) }\n        length := calldataload(offset)\n        if gt(length, 0xffffffffffffffff) { revert(0, 0) }\n        arrayPos := add(offset, 0x20)\n        if gt(add(add(offset, length), 0x20), end) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7\n    {\n        if slt(sub(dataEnd, headStart), 224) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_bool(value_2)\n        value2 := value_2\n        value3 := calldataload(add(headStart, 96))\n        let value_3 := calldataload(add(headStart, 128))\n        validator_revert_address(value_3)\n        value4 := value_3\n        let value_4 := calldataload(add(headStart, 160))\n        validator_revert_bool(value_4)\n        value5 := value_4\n        let offset := calldataload(add(headStart, 192))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value6_1, value7_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value6 := value6_1\n        value7 := value7_1\n    }\n    function abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed(headStart, value2, value1, value0) -> tail\n    {\n        tail := add(headStart, 96)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n        let _1 := 0xffffff\n        mstore(add(headStart, 32), and(value1, _1))\n        mstore(add(headStart, 64), and(value2, _1))\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, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, value0)\n    }\n    function abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7\n    {\n        if slt(sub(dataEnd, headStart), 224) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        value2 := calldataload(add(headStart, 64))\n        value3 := calldataload(add(headStart, 96))\n        value4 := calldataload(add(headStart, 128))\n        value5 := calldataload(add(headStart, 160))\n        let offset := calldataload(add(headStart, 192))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value6_1, value7_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value6 := value6_1\n        value7 := value7_1\n    }\n    function abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n    }\n    function validator_revert_int24(value)\n    {\n        if iszero(eq(value, signextend(2, value))) { revert(0, 0) }\n    }\n    function abi_decode_int128(offset) -> value\n    {\n        value := calldataload(offset)\n        if iszero(eq(value, signextend(15, value))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6\n    {\n        if slt(sub(dataEnd, headStart), 192) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n        let value_3 := calldataload(add(headStart, 96))\n        validator_revert_int24(value_3)\n        value3 := value_3\n        value4 := abi_decode_int128(add(headStart, 128))\n        let offset := calldataload(add(headStart, 160))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value5_1, value6_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value5 := value5_1\n        value6 := value6_1\n    }\n    function abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n        mstore(add(headStart, 32), and(value1, 0xffffff))\n    }\n    function abi_decode_tuple_t_addresst_uint160(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        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\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    function abi_decode_tuple_t_addresst_uint160t_int24(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n    }\n    function abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5\n    {\n        if slt(sub(dataEnd, headStart), 160) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        value2 := calldataload(add(headStart, 64))\n        value3 := calldataload(add(headStart, 96))\n        let offset := calldataload(add(headStart, 128))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value4_1, value5_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value4 := value4_1\n        value5 := value5_1\n    }\n    function abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7, value8\n    {\n        if slt(sub(dataEnd, headStart), 256) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_bool(value_2)\n        value2 := value_2\n        value3 := calldataload(add(headStart, 96))\n        let value_3 := calldataload(add(headStart, 128))\n        validator_revert_address(value_3)\n        value4 := value_3\n        value5 := calldataload(add(headStart, 160))\n        value6 := calldataload(add(headStart, 192))\n        let offset := calldataload(add(headStart, 224))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value7_1, value8_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value7 := value7_1\n        value8 := value8_1\n    }\n    function abi_decode_tuple_t_uint256t_uint256(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        value0 := calldataload(headStart)\n        value1 := calldataload(add(headStart, 32))\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_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7, value8\n    {\n        if slt(sub(dataEnd, headStart), 256) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n        let value_3 := calldataload(add(headStart, 96))\n        validator_revert_int24(value_3)\n        value3 := value_3\n        value4 := abi_decode_int128(add(headStart, 128))\n        value5 := calldataload(add(headStart, 160))\n        value6 := calldataload(add(headStart, 192))\n        let offset := calldataload(add(headStart, 224))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value7_1, value8_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value7 := value7_1\n        value8 := value8_1\n    }\n    function abi_decode_tuple_t_addresst_uint256t_address(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        value1 := calldataload(add(headStart, 32))\n        let value_1 := calldataload(add(headStart, 64))\n        validator_revert_address(value_1)\n        value2 := value_1\n    }\n    function abi_decode_tuple_t_uint24(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := calldataload(headStart)\n        if iszero(eq(value, and(value, 0xffffff))) { revert(0, 0) }\n        value0 := value\n    }\n    function abi_encode_tuple_t_stringliteral_b7deb07899b60a5f738285d4979109597e20f4e85555ea89670e2ec5bd1854eb__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), \"Only pool can call this\")\n        tail := add(headStart, 96)\n    }\n    function abi_encode_tuple_t_address_t_address__to_t_address_t_address__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        let _1 := 0xffffffffffffffffffffffffffffffffffffffff\n        mstore(headStart, and(value0, _1))\n        mstore(add(headStart, 32), and(value1, _1))\n    }\n    function abi_decode_uint16_fromMemory(offset) -> value\n    {\n        value := mload(offset)\n        if iszero(eq(value, and(value, 0xffff))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_uint16_fromMemory(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        value0 := abi_decode_uint16_fromMemory(headStart)\n    }\n    function panic_error_0x11()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n        mstore(4, 0x11)\n        revert(0, 0x24)\n    }\n    function checked_sub_t_uint24(x, y) -> diff\n    {\n        let _1 := 0xffffff\n        diff := sub(and(x, _1), and(y, _1))\n        if gt(diff, _1) { panic_error_0x11() }\n    }\n    function checked_mul_t_uint256(x, y) -> product\n    {\n        product := mul(x, y)\n        if iszero(or(iszero(x), eq(y, div(product, x)))) { panic_error_0x11() }\n    }\n    function checked_div_t_uint256(x, y) -> r\n    {\n        if iszero(y)\n        {\n            mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n            mstore(4, 0x12)\n            revert(0, 0x24)\n        }\n        r := div(x, y)\n    }\n    function abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        mstore(headStart, value0)\n        mstore(add(headStart, 32), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := mload(headStart)\n        validator_revert_bool(value)\n        value0 := value\n    }\n    function abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5\n    {\n        if slt(sub(dataEnd, headStart), 192) { revert(0, 0) }\n        let value := mload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := mload(add(headStart, 32))\n        validator_revert_int24(value_1)\n        value1 := value_1\n        value2 := abi_decode_uint16_fromMemory(add(headStart, 64))\n        let value_2 := mload(add(headStart, 96))\n        if iszero(eq(value_2, and(value_2, 0xff))) { revert(0, 0) }\n        value3 := value_2\n        value4 := abi_decode_uint16_fromMemory(add(headStart, 128))\n        let value_3 := mload(add(headStart, 160))\n        validator_revert_bool(value_3)\n        value5 := value_3\n    }\n}","id":31,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{"27":[{"length":32,"start":358},{"length":32,"start":1729},{"length":32,"start":2165},{"length":32,"start":2681}],"442":[{"length":32,"start":2367}]},"linkReferences":{},"object":"608060405234801561001057600080fd5b50600436106101005760003560e01c80638de0a8ee11610097578063d685201011610066578063d685201014610303578063e72c652d14610316578063eabb562214610329578063f20cdc1a1461038557600080fd5b80638de0a8ee146102b55780639cb5a963146102c8578063aa6b14bb146102db578063c3da7978146102ee57600080fd5b80635e2411b2116100d35780635e2411b214610226578063636fd80414610275578063689ea3701461028857806382dd6522146102a257600080fd5b8063029c1cb71461010557806316f0115b1461016157806331b25d1a146101ad578063343d37ff146101e2575b600080fd5b610118610113366004610b92565b6103a5565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909416845262ffffff92831660208501529116908201526060015b60405180910390f35b6101887f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610158565b6101d47f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f581565b604051908152602001610158565b6101f56101f0366004610c3c565b610452565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610158565b610239610234366004610cd1565b61048a565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909316835262ffffff909116602083015201610158565b6101f5610283366004610d70565b6104c6565b610290604181565b60405160ff9091168152602001610158565b6101f56102b0366004610da9565b610503565b6101f56102c3366004610df4565b610536565b6101f56102d6366004610e70565b61056c565b6101f56102e9366004610f1e565b6105a5565b6103016102fc366004610f40565b6105d7565b005b6101f5610311366004610f64565b610658565b610301610324366004610fcc565b610691565b610301610337366004611003565b6000805462ffffff90921674010000000000000000000000000000000000000000027fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546101889073ffffffffffffffffffffffffffffffffffffffff1681565b60008060006103b26106a9565b6103ce3233600060149054906101000a900462ffffff1661074e565b600080547fffffffffffffffffff000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000062ffffff9384168102919091178083557f029c1cb7000000000000000000000000000000000000000000000000000000009f9190049092169c509a5098505050505050505050565b600061045c6106a9565b507f343d37ff0000000000000000000000000000000000000000000000000000000098975050505050505050565b6000806104956106a9565b507f5e2411b20000000000000000000000000000000000000000000000000000000098600098509650505050505050565b60006104d06106a9565b6104da6041610828565b507f636fd804000000000000000000000000000000000000000000000000000000005b92915050565b600061050d6106a9565b507f82dd6522000000000000000000000000000000000000000000000000000000009392505050565b60006105406106a9565b507f8de0a8ee000000000000000000000000000000000000000000000000000000009695505050505050565b60006105766106a9565b507f9cb5a963000000000000000000000000000000000000000000000000000000009998505050505050505050565b60006105af6106a9565b507faa6b14bb0000000000000000000000000000000000000000000000000000000092915050565b6105df6108eb565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b653279060200160405180910390a150565b60006106626106a9565b507fd6852010000000000000000000000000000000000000000000000000000000009998505050505050505050565b6106996108eb565b6106a48382846109c8565b505050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461074c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f6e6c7920706f6f6c2063616e2063616c6c2074686973000000000000000000604482015260640160405180910390fd5b565b600080546040517f1101ce3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152858116602483015283921690631101ce3e906044016020604051808303816000875af11580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed919061103a565b61ffff1690506103e86108008282611084565b62ffffff168462ffffff1661081591906110a7565b61081f91906110be565b95945050505050565b6000610832610a71565b93505050508160ff168160ff16146108e7576040517fbca57f8100000000000000000000000000000000000000000000000000000000815260ff831660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063bca57f8190602401600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f560048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa15801561099b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bf91906110f9565b61074c57600080fd5b60006040517fa9059cbb0000000000000000000000000000000000000000000000000000000060005273ffffffffffffffffffffffffffffffffffffffff841660045282602452602060006044600080895af19150813d1560203d146001600051141617169150806040525080610a6b576040517fe465903e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000806000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b069190611116565b5093989297509095509350915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610b3857600080fd5b50565b8015158114610b3857600080fd5b60008083601f840112610b5b57600080fd5b50813567ffffffffffffffff811115610b7357600080fd5b602083019150836020828501011115610b8b57600080fd5b9250929050565b60008060008060008060008060e0898b031215610bae57600080fd5b8835610bb981610b16565b97506020890135610bc981610b16565b96506040890135610bd981610b3b565b9550606089013594506080890135610bf081610b16565b935060a0890135610c0081610b3b565b925060c089013567ffffffffffffffff811115610c1c57600080fd5b610c288b828c01610b49565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b031215610c5857600080fd5b8835610c6381610b16565b97506020890135610c7381610b16565b965060408901359550606089013594506080890135935060a0890135925060c089013567ffffffffffffffff811115610c1c57600080fd5b8060020b8114610b3857600080fd5b8035600f81900b8114610ccc57600080fd5b919050565b600080600080600080600060c0888a031215610cec57600080fd5b8735610cf781610b16565b96506020880135610d0781610b16565b95506040880135610d1781610cab565b94506060880135610d2781610cab565b9350610d3560808901610cba565b925060a088013567ffffffffffffffff811115610d5157600080fd5b610d5d8a828b01610b49565b989b979a50959850939692959293505050565b60008060408385031215610d8357600080fd5b8235610d8e81610b16565b91506020830135610d9e81610b16565b809150509250929050565b600080600060608486031215610dbe57600080fd5b8335610dc981610b16565b92506020840135610dd981610b16565b91506040840135610de981610cab565b809150509250925092565b60008060008060008060a08789031215610e0d57600080fd5b8635610e1881610b16565b95506020870135610e2881610b16565b94506040870135935060608701359250608087013567ffffffffffffffff811115610e5257600080fd5b610e5e89828a01610b49565b979a9699509497509295939492505050565b60008060008060008060008060006101008a8c031215610e8f57600080fd5b8935610e9a81610b16565b985060208a0135610eaa81610b16565b975060408a0135610eba81610b3b565b965060608a0135955060808a0135610ed181610b16565b945060a08a0135935060c08a0135925060e08a013567ffffffffffffffff811115610efb57600080fd5b610f078c828d01610b49565b915080935050809150509295985092959850929598565b60008060408385031215610f3157600080fd5b50508035926020909101359150565b600060208284031215610f5257600080fd5b8135610f5d81610b16565b9392505050565b60008060008060008060008060006101008a8c031215610f8357600080fd5b8935610f8e81610b16565b985060208a0135610f9e81610b16565b975060408a0135610fae81610cab565b965060608a0135610fbe81610cab565b9550610ed160808b01610cba565b600080600060608486031215610fe157600080fd5b8335610fec81610b16565b9250602084013591506040840135610de981610b16565b60006020828403121561101557600080fd5b813562ffffff81168114610f5d57600080fd5b805161ffff81168114610ccc57600080fd5b60006020828403121561104c57600080fd5b610f5d82611028565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b62ffffff8281168282160390808211156110a0576110a0611055565b5092915050565b80820281158282048414176104fd576104fd611055565b6000826110f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561110b57600080fd5b8151610f5d81610b3b565b60008060008060008060c0878903121561112f57600080fd5b865161113a81610b16565b602088015190965061114b81610cab565b945061115960408801611028565b9350606087015160ff8116811461116f57600080fd5b925061117d60808801611028565b915060a087015161118d81610b3b565b80915050929550929550929556fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x100 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DE0A8EE GT PUSH2 0x97 JUMPI DUP1 PUSH4 0xD6852010 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xD6852010 EQ PUSH2 0x303 JUMPI DUP1 PUSH4 0xE72C652D EQ PUSH2 0x316 JUMPI DUP1 PUSH4 0xEABB5622 EQ PUSH2 0x329 JUMPI DUP1 PUSH4 0xF20CDC1A EQ PUSH2 0x385 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x8DE0A8EE EQ PUSH2 0x2B5 JUMPI DUP1 PUSH4 0x9CB5A963 EQ PUSH2 0x2C8 JUMPI DUP1 PUSH4 0xAA6B14BB EQ PUSH2 0x2DB JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0x2EE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x5E2411B2 GT PUSH2 0xD3 JUMPI DUP1 PUSH4 0x5E2411B2 EQ PUSH2 0x226 JUMPI DUP1 PUSH4 0x636FD804 EQ PUSH2 0x275 JUMPI DUP1 PUSH4 0x689EA370 EQ PUSH2 0x288 JUMPI DUP1 PUSH4 0x82DD6522 EQ PUSH2 0x2A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x29C1CB7 EQ PUSH2 0x105 JUMPI DUP1 PUSH4 0x16F0115B EQ PUSH2 0x161 JUMPI DUP1 PUSH4 0x31B25D1A EQ PUSH2 0x1AD JUMPI DUP1 PUSH4 0x343D37FF EQ PUSH2 0x1E2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x118 PUSH2 0x113 CALLDATASIZE PUSH1 0x4 PUSH2 0xB92 JUMP JUMPDEST PUSH2 0x3A5 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP5 AND DUP5 MSTORE PUSH3 0xFFFFFF SWAP3 DUP4 AND PUSH1 0x20 DUP6 ADD MSTORE SWAP2 AND SWAP1 DUP3 ADD MSTORE PUSH1 0x60 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x188 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1D4 PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x1F0 CALLDATASIZE PUSH1 0x4 PUSH2 0xC3C JUMP JUMPDEST PUSH2 0x452 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x239 PUSH2 0x234 CALLDATASIZE PUSH1 0x4 PUSH2 0xCD1 JUMP JUMPDEST PUSH2 0x48A JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP4 AND DUP4 MSTORE PUSH3 0xFFFFFF SWAP1 SWAP2 AND PUSH1 0x20 DUP4 ADD MSTORE ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x283 CALLDATASIZE PUSH1 0x4 PUSH2 0xD70 JUMP JUMPDEST PUSH2 0x4C6 JUMP JUMPDEST PUSH2 0x290 PUSH1 0x41 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0xFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x158 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2B0 CALLDATASIZE PUSH1 0x4 PUSH2 0xDA9 JUMP JUMPDEST PUSH2 0x503 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2C3 CALLDATASIZE PUSH1 0x4 PUSH2 0xDF4 JUMP JUMPDEST PUSH2 0x536 JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2D6 CALLDATASIZE PUSH1 0x4 PUSH2 0xE70 JUMP JUMPDEST PUSH2 0x56C JUMP JUMPDEST PUSH2 0x1F5 PUSH2 0x2E9 CALLDATASIZE PUSH1 0x4 PUSH2 0xF1E JUMP JUMPDEST PUSH2 0x5A5 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x2FC CALLDATASIZE PUSH1 0x4 PUSH2 0xF40 JUMP JUMPDEST PUSH2 0x5D7 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1F5 PUSH2 0x311 CALLDATASIZE PUSH1 0x4 PUSH2 0xF64 JUMP JUMPDEST PUSH2 0x658 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x324 CALLDATASIZE PUSH1 0x4 PUSH2 0xFCC JUMP JUMPDEST PUSH2 0x691 JUMP JUMPDEST PUSH2 0x301 PUSH2 0x337 CALLDATASIZE PUSH1 0x4 PUSH2 0x1003 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH3 0xFFFFFF SWAP1 SWAP3 AND PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x188 SWAP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3B2 PUSH2 0x6A9 JUMP JUMPDEST PUSH2 0x3CE ORIGIN CALLER PUSH1 0x0 PUSH1 0x14 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH3 0xFFFFFF AND PUSH2 0x74E JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH21 0x10000000000000000000000000000000000000000 PUSH3 0xFFFFFF SWAP4 DUP5 AND DUP2 MUL SWAP2 SWAP1 SWAP2 OR DUP1 DUP4 SSTORE PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 SWAP16 SWAP2 SWAP1 DIV SWAP1 SWAP3 AND SWAP13 POP SWAP11 POP SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x45C PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x495 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 SWAP9 PUSH1 0x0 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4D0 PUSH2 0x6A9 JUMP JUMPDEST PUSH2 0x4DA PUSH1 0x41 PUSH2 0x828 JUMP JUMPDEST POP PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x50D PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x540 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x576 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5AF PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0xAA6B14BB00000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x5DF PUSH2 0x8EB JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH32 0x3B1F0D57F07483280D598EF402C5B2B96BE1A42E65B21992BDAFEA3476B65327 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x662 PUSH2 0x6A9 JUMP JUMPDEST POP PUSH32 0xD685201000000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x699 PUSH2 0x8EB JUMP JUMPDEST PUSH2 0x6A4 DUP4 DUP3 DUP5 PUSH2 0x9C8 JUMP JUMPDEST POP POP POP JUMP JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH32 0x0 AND EQ PUSH2 0x74C JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920706F6F6C2063616E2063616C6C2074686973000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH32 0x1101CE3E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP7 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE DUP6 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE DUP4 SWAP3 AND SWAP1 PUSH4 0x1101CE3E SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x7C9 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 0x7ED SWAP2 SWAP1 PUSH2 0x103A JUMP JUMPDEST PUSH2 0xFFFF AND SWAP1 POP PUSH2 0x3E8 PUSH2 0x800 DUP3 DUP3 PUSH2 0x1084 JUMP JUMPDEST PUSH3 0xFFFFFF AND DUP5 PUSH3 0xFFFFFF AND PUSH2 0x815 SWAP2 SWAP1 PUSH2 0x10A7 JUMP JUMPDEST PUSH2 0x81F SWAP2 SWAP1 PUSH2 0x10BE JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x832 PUSH2 0xA71 JUMP JUMPDEST SWAP4 POP POP POP POP DUP2 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH2 0x8E7 JUMPI PUSH1 0x40 MLOAD PUSH32 0xBCA57F8100000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0xFF DUP4 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xBCA57F81 SWAP1 PUSH1 0x24 ADD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x8CE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x8E2 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x99B 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 0x9BF SWAP2 SWAP1 PUSH2 0x10F9 JUMP JUMPDEST PUSH2 0x74C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD PUSH32 0xA9059CBB00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH1 0x4 MSTORE DUP3 PUSH1 0x24 MSTORE PUSH1 0x20 PUSH1 0x0 PUSH1 0x44 PUSH1 0x0 DUP1 DUP10 GAS CALL SWAP2 POP DUP2 RETURNDATASIZE ISZERO PUSH1 0x20 RETURNDATASIZE EQ PUSH1 0x1 PUSH1 0x0 MLOAD EQ AND OR AND SWAP2 POP DUP1 PUSH1 0x40 MSTORE POP DUP1 PUSH2 0xA6B JUMPI PUSH1 0x40 MLOAD PUSH32 0xE465903E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xE76C01E4 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xC0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xAE2 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 0xB06 SWAP2 SWAP1 PUSH2 0x1116 JUMP JUMPDEST POP SWAP4 SWAP9 SWAP3 SWAP8 POP SWAP1 SWAP6 POP SWAP4 POP SWAP2 POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xB5B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xB73 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xB8B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0xBAE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0xBB9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0xBC9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD PUSH2 0xBD9 DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD PUSH2 0xBF0 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD PUSH2 0xC00 DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC1C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC28 DUP12 DUP3 DUP13 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP10 SWAP13 SWAP9 SWAP12 POP SWAP7 SWAP10 POP SWAP5 SWAP8 SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0xC58 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0xC63 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0xC73 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC1C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x2 SIGNEXTEND DUP2 EQ PUSH2 0xB38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0xF DUP2 SWAP1 SIGNEXTEND DUP2 EQ PUSH2 0xCCC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xC0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0xCEC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0xCF7 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0xD07 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0xD17 DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH2 0xD27 DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP4 POP PUSH2 0xD35 PUSH1 0x80 DUP10 ADD PUSH2 0xCBA JUMP JUMPDEST SWAP3 POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD51 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xD5D DUP11 DUP3 DUP12 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP9 SWAP12 SWAP8 SWAP11 POP SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xD83 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0xD8E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0xD9E DUP2 PUSH2 0xB16 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xDBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0xDC9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0xDD9 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0xDE9 DUP2 PUSH2 0xCAB JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xA0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0xE0D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 CALLDATALOAD PUSH2 0xE18 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP6 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH2 0xE28 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP5 POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP4 POP PUSH1 0x60 DUP8 ADD CALLDATALOAD SWAP3 POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xE52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xE5E DUP10 DUP3 DUP11 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP8 SWAP11 SWAP7 SWAP10 POP SWAP5 SWAP8 POP SWAP3 SWAP6 SWAP4 SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0xE8F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0xE9A DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0xEAA DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0xEBA DUP2 PUSH2 0xB3B JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD PUSH2 0xED1 DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP3 POP PUSH1 0xE0 DUP11 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xEFB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF07 DUP13 DUP3 DUP14 ADD PUSH2 0xB49 JUMP JUMPDEST SWAP2 POP DUP1 SWAP4 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xF31 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xF52 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xF5D DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0xF83 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0xF8E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0xF9E DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0xFAE DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD PUSH2 0xFBE DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP6 POP PUSH2 0xED1 PUSH1 0x80 DUP12 ADD PUSH2 0xCBA JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xFE1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0xFEC DUP2 PUSH2 0xB16 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0xDE9 DUP2 PUSH2 0xB16 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1015 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0xF5D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0xCCC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x104C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF5D DUP3 PUSH2 0x1028 JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH3 0xFFFFFF DUP3 DUP2 AND DUP3 DUP3 AND SUB SWAP1 DUP1 DUP3 GT ISZERO PUSH2 0x10A0 JUMPI PUSH2 0x10A0 PUSH2 0x1055 JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x4FD JUMPI PUSH2 0x4FD PUSH2 0x1055 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x10F4 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x110B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xF5D DUP2 PUSH2 0xB3B JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x112F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 MLOAD PUSH2 0x113A DUP2 PUSH2 0xB16 JUMP JUMPDEST PUSH1 0x20 DUP9 ADD MLOAD SWAP1 SWAP7 POP PUSH2 0x114B DUP2 PUSH2 0xCAB JUMP JUMPDEST SWAP5 POP PUSH2 0x1159 PUSH1 0x40 DUP9 ADD PUSH2 0x1028 JUMP JUMPDEST SWAP4 POP PUSH1 0x60 DUP8 ADD MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x116F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP PUSH2 0x117D PUSH1 0x80 DUP9 ADD PUSH2 0x1028 JUMP JUMPDEST SWAP2 POP PUSH1 0xA0 DUP8 ADD MLOAD PUSH2 0x118D DUP2 PUSH2 0xB3B JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"305:1171:30:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1131:265;;;;;;:::i;:::-;;:::i;:::-;;;;2046:66:31;2034:79;;;2016:98;;2133:8;2177:15;;;2172:2;2157:18;;2150:43;2229:15;;2209:18;;;2202:43;2004:2;1989:18;1131:265:30;;;;;;;;1050:29:0;;;;;;;;2432:42:31;2420:55;;;2402:74;;2390:2;2375:18;1050:29:0;2256:226:31;896:94:0;;950:40;896:94;;;;;2633:25:31;;;2621:2;2606:18;896:94:0;2487:177:31;3704:196:0;;;;;;:::i;:::-;;:::i;:::-;;;3809:66:31;3797:79;;;3779:98;;3767:2;3752:18;3704:196:0;3635:248:31;2566:215:0;;;;;;:::i;:::-;;:::i;:::-;;;;5417:66:31;5405:79;;;5387:98;;5533:8;5521:21;;;5516:2;5501:18;;5494:49;5360:18;2566:215:0;5217:332:31;760:201:30;;;;;;:::i;:::-;;:::i;441:110::-;;500:50;441:110;;;;;6119:4:31;6107:17;;;6089:36;;6077:2;6062:18;441:110:30;5947:184:31;967:158:30;;;;;;:::i;:::-;;:::i;3518:180:0:-;;;;;;:::i;:::-;;:::i;3315:197::-;;;;;;:::i;:::-;;:::i;2052:151::-;;;;;;:::i;:::-;;:::i;1182:207:24:-;;;;;;:::i;:::-;;:::i;:::-;;2787:263:0;;;;;;:::i;:::-;;:::i;1835:177::-;;;;;;:::i;:::-;;:::i;1404:67:30:-;;;;;;:::i;:::-;1452:3;:13;;;;;;;;;;;;;;;;;;1404:67;707:43:24;;;;;;;;;1131:265:30;1250:6;1258;1266;1158:18:0;:16;:18::i;:::-;1287:45:30::1;1305:9;1316:10;1328:3;;;;;;;;;;;1287:17;:45::i;:::-;1281:3;:51:::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;1347:34;;1383:3;;::::1;::::0;;::::1;::::0;-1:-1:-1;1281:3:30;-1:-1:-1;1131:265:30;-1:-1:-1;;;;;;;;;1131:265:30:o;3704:196:0:-;3838:6;1158:18;:16;:18::i;:::-;-1:-1:-1;3860:34:0;3704:196;;;;;;;;;;:::o;2566:215::-;2696:6;2704;1158:18;:16;:18::i;:::-;-1:-1:-1;2727:44:0;;2773:1:::1;::::0;-1:-1:-1;2566:215:0;-1:-1:-1;;;;;;;2566:215:0:o;760:201:30:-;840:6;1158:18:0;:16;:18::i;:::-;855:46:30::1;500:50:::0;855:25:::1;:46::i;:::-;-1:-1:-1::0;915:40:30;1183:1:0::1;760:201:30::0;;;;:::o;967:158::-;1058:6;1158:18:0;:16;:18::i;:::-;-1:-1:-1;1080:39:30;967:158;;;;;:::o;3518:180:0:-;3635:6;1158:18;:16;:18::i;:::-;-1:-1:-1;3657:35:0;3518:180;;;;;;;;:::o;3315:197::-;3451:6;1158:18;:16;:18::i;:::-;-1:-1:-1;3473:33:0;3315:197;;;;;;;;;;;:::o;2052:151::-;2136:6;1158:18;:16;:18::i;:::-;-1:-1:-1;2158:39:0;2052:151;;;;:::o;1182:207:24:-;1269:12;:10;:12::i;:::-;1288:19;:42;;;;;;;;;;;;;1342:41;;2402:74:31;;;1342:41:24;;2390:2:31;2375:18;1342:41:24;;;;;;;1182:207;:::o;2787:263:0:-;2979:6;1158:18;:16;:18::i;:::-;-1:-1:-1;3001:43:0;2787:263;;;;;;;;;;;:::o;1835:177::-;1936:12;:10;:12::i;:::-;1955:51;1981:5;1988:9;1999:6;1955:25;:51::i;:::-;1835:177;;;:::o;1313:109::-;1370:10;:18;1384:4;1370:18;;1362:54;;;;;;;11290:2:31;1362:54:0;;;11272:21:31;11329:2;11309:18;;;11302:30;11368:25;11348:18;;;11341:53;11411:18;;1362:54:0;;;;;;;;1313:109::o;860:316:24:-;945:17;1013:19;;992:66;;;;;1013:19;11693:15:31;;;992:66:24;;;11675:34:31;11745:15;;;11725:18;;;11718:43;945:17:24;;1013:19;;992:54;;11587:18:31;;992:66:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;971:87;;;-1:-1:-1;696:4:24;1102:38;971:87;696:4;1102:38;:::i;:::-;1086:55;;1094:3;1086:12;;:55;;;;:::i;:::-;1085:84;;;;:::i;:::-;1065:105;860:316;-1:-1:-1;;;;;860:316:24:o;3906:249:0:-;3987:25;4016:15;:13;:15::i;:::-;3980:51;;;;;4065:15;4042:38;;:19;:38;;;4038:112;;4091:51;;;;;6119:4:31;6107:17;;4091:51:0;;;6089:36:31;4104:4:0;4091:34;;;;;6062:18:31;;4091:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4038:112;3973:182;3906:249;:::o;463:153:1:-;530:80;;;;;950:40:0;530:80:1;;;13144:25:31;599:10:1;13185:18:31;;;13178:83;546:7:1;530:39;;;;;13117:18:31;;530:80:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;522:89;;;;;865:967:20;945:12;1011:4;1005:11;1073:66;1067:4;1060:80;1208:42;1204:2;1200:51;1194:4;1187:65;1303:6;1297:4;1290:20;1433:4;1430:1;1424:4;1421:1;1418;1411:5;1404;1399:39;1388:50;;1673:7;1645:16;1638:24;1632:2;1614:16;1611:24;1607:1;1603;1597:8;1594:15;1590:46;1587:76;1456:232;1445:243;;1708:17;1702:4;1695:31;;1776:7;1771:56;;1792:35;;;;;;;;;;;;;;1771:56;939:893;865:967;;;:::o;1478:196:0:-;1526:13;1541:10;1553;1565:18;1649:4;1631:35;;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1592:76:0;;;;-1:-1:-1;1592:76:0;;-1:-1:-1;1592:76:0;-1:-1:-1;1478:196:0;-1:-1:-1;;1478:196:0:o;14:154:31:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:118::-;259:5;252:13;245:21;238:5;235:32;225:60;;281:1;278;271:12;296:347;347:8;357:6;411:3;404:4;396:6;392:17;388:27;378:55;;429:1;426;419:12;378:55;-1:-1:-1;452:20:31;;495:18;484:30;;481:50;;;527:1;524;517:12;481:50;564:4;556:6;552:17;540:29;;616:3;609:4;600:6;592;588:19;584:30;581:39;578:59;;;633:1;630;623:12;578:59;296:347;;;;;:::o;648:1167::-;765:6;773;781;789;797;805;813;821;874:3;862:9;853:7;849:23;845:33;842:53;;;891:1;888;881:12;842:53;930:9;917:23;949:31;974:5;949:31;:::i;:::-;999:5;-1:-1:-1;1056:2:31;1041:18;;1028:32;1069:33;1028:32;1069:33;:::i;:::-;1121:7;-1:-1:-1;1180:2:31;1165:18;;1152:32;1193:30;1152:32;1193:30;:::i;:::-;1242:7;-1:-1:-1;1296:2:31;1281:18;;1268:32;;-1:-1:-1;1352:3:31;1337:19;;1324:33;1366;1324;1366;:::i;:::-;1418:7;-1:-1:-1;1477:3:31;1462:19;;1449:33;1491:30;1449:33;1491:30;:::i;:::-;1540:7;-1:-1:-1;1598:3:31;1583:19;;1570:33;1626:18;1615:30;;1612:50;;;1658:1;1655;1648:12;1612:50;1697:58;1747:7;1738:6;1727:9;1723:22;1697:58;:::i;:::-;648:1167;;;;-1:-1:-1;648:1167:31;;-1:-1:-1;648:1167:31;;;;;;1774:8;-1:-1:-1;;;648:1167:31:o;2669:961::-;2793:6;2801;2809;2817;2825;2833;2841;2849;2902:3;2890:9;2881:7;2877:23;2873:33;2870:53;;;2919:1;2916;2909:12;2870:53;2958:9;2945:23;2977:31;3002:5;2977:31;:::i;:::-;3027:5;-1:-1:-1;3084:2:31;3069:18;;3056:32;3097:33;3056:32;3097:33;:::i;:::-;3149:7;-1:-1:-1;3203:2:31;3188:18;;3175:32;;-1:-1:-1;3254:2:31;3239:18;;3226:32;;-1:-1:-1;3305:3:31;3290:19;;3277:33;;-1:-1:-1;3357:3:31;3342:19;;3329:33;;-1:-1:-1;3413:3:31;3398:19;;3385:33;3441:18;3430:30;;3427:50;;;3473:1;3470;3463:12;3888:118;3975:5;3972:1;3961:20;3954:5;3951:31;3941:59;;3996:1;3993;3986:12;4011:162;4078:20;;4138:2;4127:21;;;4117:32;;4107:60;;4163:1;4160;4153:12;4107:60;4011:162;;;:::o;4178:1034::-;4288:6;4296;4304;4312;4320;4328;4336;4389:3;4377:9;4368:7;4364:23;4360:33;4357:53;;;4406:1;4403;4396:12;4357:53;4445:9;4432:23;4464:31;4489:5;4464:31;:::i;:::-;4514:5;-1:-1:-1;4571:2:31;4556:18;;4543:32;4584:33;4543:32;4584:33;:::i;:::-;4636:7;-1:-1:-1;4695:2:31;4680:18;;4667:32;4708:31;4667:32;4708:31;:::i;:::-;4758:7;-1:-1:-1;4817:2:31;4802:18;;4789:32;4830:31;4789:32;4830:31;:::i;:::-;4880:7;-1:-1:-1;4906:38:31;4939:3;4924:19;;4906:38;:::i;:::-;4896:48;;4995:3;4984:9;4980:19;4967:33;5023:18;5015:6;5012:30;5009:50;;;5055:1;5052;5045:12;5009:50;5094:58;5144:7;5135:6;5124:9;5120:22;5094:58;:::i;:::-;4178:1034;;;;-1:-1:-1;4178:1034:31;;-1:-1:-1;4178:1034:31;;;;5068:84;;-1:-1:-1;;;4178:1034:31:o;5554:388::-;5622:6;5630;5683:2;5671:9;5662:7;5658:23;5654:32;5651:52;;;5699:1;5696;5689:12;5651:52;5738:9;5725:23;5757:31;5782:5;5757:31;:::i;:::-;5807:5;-1:-1:-1;5864:2:31;5849:18;;5836:32;5877:33;5836:32;5877:33;:::i;:::-;5929:7;5919:17;;;5554:388;;;;;:::o;6136:525::-;6211:6;6219;6227;6280:2;6268:9;6259:7;6255:23;6251:32;6248:52;;;6296:1;6293;6286:12;6248:52;6335:9;6322:23;6354:31;6379:5;6354:31;:::i;:::-;6404:5;-1:-1:-1;6461:2:31;6446:18;;6433:32;6474:33;6433:32;6474:33;:::i;:::-;6526:7;-1:-1:-1;6585:2:31;6570:18;;6557:32;6598:31;6557:32;6598:31;:::i;:::-;6648:7;6638:17;;;6136:525;;;;;:::o;6666:823::-;6772:6;6780;6788;6796;6804;6812;6865:3;6853:9;6844:7;6840:23;6836:33;6833:53;;;6882:1;6879;6872:12;6833:53;6921:9;6908:23;6940:31;6965:5;6940:31;:::i;:::-;6990:5;-1:-1:-1;7047:2:31;7032:18;;7019:32;7060:33;7019:32;7060:33;:::i;:::-;7112:7;-1:-1:-1;7166:2:31;7151:18;;7138:32;;-1:-1:-1;7217:2:31;7202:18;;7189:32;;-1:-1:-1;7272:3:31;7257:19;;7244:33;7300:18;7289:30;;7286:50;;;7332:1;7329;7322:12;7286:50;7371:58;7421:7;7412:6;7401:9;7397:22;7371:58;:::i;:::-;6666:823;;;;-1:-1:-1;6666:823:31;;-1:-1:-1;6666:823:31;;7448:8;;6666:823;-1:-1:-1;;;6666:823:31:o;7494:1167::-;7621:6;7629;7637;7645;7653;7661;7669;7677;7685;7738:3;7726:9;7717:7;7713:23;7709:33;7706:53;;;7755:1;7752;7745:12;7706:53;7794:9;7781:23;7813:31;7838:5;7813:31;:::i;:::-;7863:5;-1:-1:-1;7920:2:31;7905:18;;7892:32;7933:33;7892:32;7933:33;:::i;:::-;7985:7;-1:-1:-1;8044:2:31;8029:18;;8016:32;8057:30;8016:32;8057:30;:::i;:::-;8106:7;-1:-1:-1;8160:2:31;8145:18;;8132:32;;-1:-1:-1;8216:3:31;8201:19;;8188:33;8230;8188;8230;:::i;:::-;8282:7;-1:-1:-1;8336:3:31;8321:19;;8308:33;;-1:-1:-1;8388:3:31;8373:19;;8360:33;;-1:-1:-1;8444:3:31;8429:19;;8416:33;8472:18;8461:30;;8458:50;;;8504:1;8501;8494:12;8458:50;8543:58;8593:7;8584:6;8573:9;8569:22;8543:58;:::i;:::-;8517:84;;8620:8;8610:18;;;8647:8;8637:18;;;7494:1167;;;;;;;;;;;:::o;8666:248::-;8734:6;8742;8795:2;8783:9;8774:7;8770:23;8766:32;8763:52;;;8811:1;8808;8801:12;8763:52;-1:-1:-1;;8834:23:31;;;8904:2;8889:18;;;8876:32;;-1:-1:-1;8666:248:31:o;8919:247::-;8978:6;9031:2;9019:9;9010:7;9006:23;9002:32;8999:52;;;9047:1;9044;9037:12;8999:52;9086:9;9073:23;9105:31;9130:5;9105:31;:::i;:::-;9155:5;8919:247;-1:-1:-1;;;8919:247:31:o;9171:1172::-;9299:6;9307;9315;9323;9331;9339;9347;9355;9363;9416:3;9404:9;9395:7;9391:23;9387:33;9384:53;;;9433:1;9430;9423:12;9384:53;9472:9;9459:23;9491:31;9516:5;9491:31;:::i;:::-;9541:5;-1:-1:-1;9598:2:31;9583:18;;9570:32;9611:33;9570:32;9611:33;:::i;:::-;9663:7;-1:-1:-1;9722:2:31;9707:18;;9694:32;9735:31;9694:32;9735:31;:::i;:::-;9785:7;-1:-1:-1;9844:2:31;9829:18;;9816:32;9857:31;9816:32;9857:31;:::i;:::-;9907:7;-1:-1:-1;9933:38:31;9966:3;9951:19;;9933:38;:::i;10348:456::-;10425:6;10433;10441;10494:2;10482:9;10473:7;10469:23;10465:32;10462:52;;;10510:1;10507;10500:12;10462:52;10549:9;10536:23;10568:31;10593:5;10568:31;:::i;:::-;10618:5;-1:-1:-1;10670:2:31;10655:18;;10642:32;;-1:-1:-1;10726:2:31;10711:18;;10698:32;10739:33;10698:32;10739:33;:::i;10809:274::-;10867:6;10920:2;10908:9;10899:7;10895:23;10891:32;10888:52;;;10936:1;10933;10926:12;10888:52;10975:9;10962:23;11025:8;11018:5;11014:20;11007:5;11004:31;10994:59;;11049:1;11046;11039:12;11772:163;11850:13;;11903:6;11892:18;;11882:29;;11872:57;;11925:1;11922;11915:12;11940:206;12009:6;12062:2;12050:9;12041:7;12037:23;12033:32;12030:52;;;12078:1;12075;12068:12;12030:52;12101:39;12130:9;12101:39;:::i;12151:184::-;12203:77;12200:1;12193:88;12300:4;12297:1;12290:15;12324:4;12321:1;12314:15;12340:173;12408:8;12449:10;;;12437;;;12433:27;;12472:12;;;12469:38;;;12487:18;;:::i;:::-;12469:38;12340:173;;;;:::o;12518:168::-;12591:9;;;12622;;12639:15;;;12633:22;;12619:37;12609:71;;12660:18;;:::i;12691:274::-;12731:1;12757;12747:189;;12792:77;12789:1;12782:88;12893:4;12890:1;12883:15;12921:4;12918:1;12911:15;12747:189;-1:-1:-1;12950:9:31;;12691:274::o;13272:245::-;13339:6;13392:2;13380:9;13371:7;13367:23;13363:32;13360:52;;;13408:1;13405;13398:12;13360:52;13440:9;13434:16;13459:28;13481:5;13459:28;:::i;13522:836::-;13628:6;13636;13644;13652;13660;13668;13721:3;13709:9;13700:7;13696:23;13692:33;13689:53;;;13738:1;13735;13728:12;13689:53;13770:9;13764:16;13789:31;13814:5;13789:31;:::i;:::-;13889:2;13874:18;;13868:25;13839:5;;-1:-1:-1;13902:31:31;13868:25;13902:31;:::i;:::-;13952:7;-1:-1:-1;13978:48:31;14022:2;14007:18;;13978:48;:::i;:::-;13968:58;;14071:2;14060:9;14056:18;14050:25;14119:4;14110:7;14106:18;14097:7;14094:31;14084:59;;14139:1;14136;14129:12;14084:59;14162:7;-1:-1:-1;14188:49:31;14232:3;14217:19;;14188:49;:::i;:::-;14178:59;;14282:3;14271:9;14267:19;14261:26;14296:30;14318:7;14296:30;:::i;:::-;14345:7;14335:17;;;13522:836;;;;;;;;:::o"},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","feeDiscountRegistry()":"f20cdc1a","handlePluginFee(uint256,uint256)":"aa6b14bb","pool()":"16f0115b","setFee(uint24)":"eabb5622","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_pluginFactory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"_newFee\",\"type\":\"uint24\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"stateVariables\":{\"defaultPluginConfig\":{\"return\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\",\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}}},\"title\":\"Algebra Integral 1.2 limit order plugin\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/test/TestFeeDiscountPlugin.sol\":\"TestFeeDiscountPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/AbstractPlugin.sol\":{\"keccak256\":\"0xca12778d7c1fc43c394f3fe93e4b16302c39c888b3bc04f7723db2cc69d60940\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://39bdd043ff3fe72cc19c7c7c08080d80babdb795e78134df121f14fd3e461eff\",\"dweb:/ipfs/QmZX8bECwCRNfS6cTQjc9T5wpCXjijG9S6RWWWbJgGvf3y\"]},\"@cryptoalgebra/abstract-plugin/contracts/BaseAbstractPlugin.sol\":{\"keccak256\":\"0x8668bf51349f615ab941e9c30c563d12e5037a883dc9ccafe59eb75ea78e4d7d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://683360746f021dde02b919ace2fba5a3ee59c428391993272625c6cd24acffc1\",\"dweb:/ipfs/QmW4H3TE3GWBrpZXE6NGUKupCEf7yFtLWpGDXwemF6cWB3\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0xf48e61f16fda95e335305a39661eeb3e55a75acf7775b8977969fa009ff7ca10\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e20c4fa273d16758f73420ba441f4821b2839e3eb9a84da063a4ebbcee6cbaec\",\"dweb:/ipfs/QmXehxH1xGfWJbYzqHGSBr3ZmPLzNjjY99aGrhy8o7Gqup\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0x7cb9c22922bd9b9fadde18d3f4bb799792c9c54db9c6f55940f44460bdb8b283\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a97a65a2ad9c39ef9534f733d9a5d14675ba7d14d437cbef1e51ca8344f493da\",\"dweb:/ipfs/QmSFMgSpbF9TyYwGyQyJQRfBAVGsq55z1LoRCmrcj3HszD\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]},\"contracts/FeeDiscountPlugin.sol\":{\"keccak256\":\"0xa13e2dc174a9695cc893016bece4f9cd7c7fbbd151c81de8215ae21ffe0d84f1\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://92cb3df32419f8f6f626d02cda3935661c54e3399cf09829c1f36fa84096c14e\",\"dweb:/ipfs/QmRXmpAb3F18LcKwARwDnvDkmQz4DnuYrWk5mHaRuESnNY\"]},\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]},\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]},\"contracts/test/TestFeeDiscountPlugin.sol\":{\"keccak256\":\"0x7631bb65f787107b162d621a32e619c08023b29cdae86b7d8724fb44f707783d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://62e503dbcedaf9ccced92d211b5e674eccb7ea4a626f1d1bb287f1692231696a\",\"dweb:/ipfs/Qma3wEnQJDnmG8QuQRUZkh8GsrjsfVidmDyZxAhUYCWFDF\"]}},\"version\":1}"}}}}}