{
  "contractName": "SwapMath",
  "abi": [],
  "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Computes the result of a swap within ticks\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SwapMath.sol\":\"SwapMath\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol\":{\"keccak256\":\"0xb466ea5c68592e0aab06e0ffa0937b047a2ec0916c2a181dee91f439e06c36d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90e2d3770039b4430765a328d1abc6d035ad5a6e71906ab8f120220f3a9a9899\",\"dweb:/ipfs/QmTJFjBkBJGL98BjRnyH48yDZC94LU42SuuEPkd5qhgTnW\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FullMath.sol\":{\"keccak256\":\"0xe511530871deaef86692cea9adb6076d26d7b47fd4815ce51af52af981026057\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc5a6ae776be3e7dcbd23d49ffbc9d792fed0ddf4b111ebb64b9bb2133ec263e\",\"dweb:/ipfs/QmbAUtWqvipzEARQpFpkzYKBELy3qeW5WXnZxHFU84sxG7\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/LowGasSafeMath.sol\":{\"keccak256\":\"0xf2583083971cf8a4274e14515aabbf9f4855193e34fe2addb0ca7b1589519b0c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cbf0ada2bba8827d459101a2359e4682be749b9ddd0a3c44f26119c9a0898e82\",\"dweb:/ipfs/QmPmKotXLza9j7sjNaXSYY9XbyZhkkQ3nMeWE9tiHKeouC\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SafeCast.sol\":{\"keccak256\":\"0x4a12ab60fdb663b341bb3a2f5c6631ba40b7b6fa9d131c9540b60dbb4196a27e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d55e89b639f5ea027798cf3f246f38209308e812b8e568d19aa487bcdc8008a0\",\"dweb:/ipfs/QmfRWZGxKK21EgQea2PLxgJ6aypEbQjQSotHiruXGmKVm6\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SqrtPriceMath.sol\":{\"keccak256\":\"0x4f69701d331d364b69a1cda77cd7b983a0079d36ae0e06b0bb1d64ae56c3705e\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://f9ed4f172da650484c97d31cce084e905e69c3f3b072141cb15363f4ed0cd03c\",\"dweb:/ipfs/QmPNDM667PxzbbR8YDbtibFaPMGrcbK71GKpFPkGgDEYvb\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SwapMath.sol\":{\"keccak256\":\"0xcd310be830646d0d55bef86683847577f742704d227471ad7b4cab3df9c47cf7\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://e6029f7cbb62563f488ee9c4510fee69b5408b64119065d912c1bd682baeef84\",\"dweb:/ipfs/Qmed5zZvcEbqmDmkyGV2huNzrK3mk8KrF9UQohKWLTcc3n\"]},\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/UnsafeMath.sol\":{\"keccak256\":\"0x5f36d7d16348d8c37fe64fda932018d6e5e8acecd054f0f97d32db62d20c6c88\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://4bd4e817ea3d2c26bb2be7e58db3eaa403119562c18d4c09cc92fb31aa231496\",\"dweb:/ipfs/QmbpjgL8Hf1mhmUyf9hpuPk4noGAggCdTqaRBFKqNF3AQw\"]}},\"version\":1}",
  "bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200774e267e47f9792f0641c4c634850f8e08ef1b6cf84e06c6eb7760fa3aa256964736f6c63430007060033",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200774e267e47f9792f0641c4c634850f8e08ef1b6cf84e06c6eb7760fa3aa256964736f6c63430007060033",
  "immutableReferences": {},
  "generatedSources": [],
  "deployedGeneratedSources": [],
  "sourceMap": "292:4340:27:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "292:4340:27:-:0;;;;;;;;",
  "source": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity >=0.5.0;\n\nimport './FullMath.sol';\nimport './SqrtPriceMath.sol';\n\n/// @title Computes the result of a swap within ticks\n/// @notice Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.\nlibrary SwapMath {\n    /// @notice Computes the result of swapping some amount in, or amount out, given the parameters of the swap\n    /// @dev The fee, plus the amount in, will never exceed the amount remaining if the swap's `amountSpecified` is positive\n    /// @param sqrtRatioCurrentX96 The current sqrt price of the pool\n    /// @param sqrtRatioTargetX96 The price that cannot be exceeded, from which the direction of the swap is inferred\n    /// @param liquidity The usable liquidity\n    /// @param amountRemaining How much input or output amount is remaining to be swapped in/out\n    /// @param feePips The fee taken from the input amount, expressed in hundredths of a bip\n    /// @return sqrtRatioNextX96 The price after swapping the amount in/out, not to exceed the price target\n    /// @return amountIn The amount to be swapped in, of either token0 or token1, based on the direction of the swap\n    /// @return amountOut The amount to be received, of either token0 or token1, based on the direction of the swap\n    /// @return feeAmount The amount of input that will be taken as a fee\n    function computeSwapStep(\n        uint160 sqrtRatioCurrentX96,\n        uint160 sqrtRatioTargetX96,\n        uint128 liquidity,\n        int256 amountRemaining,\n        uint24 feePips\n    )\n        internal\n        pure\n        returns (\n            uint160 sqrtRatioNextX96,\n            uint256 amountIn,\n            uint256 amountOut,\n            uint256 feeAmount\n        )\n    {\n        bool zeroForOne = sqrtRatioCurrentX96 >= sqrtRatioTargetX96;\n        bool exactIn = amountRemaining >= 0;\n\n        if (exactIn) {\n            uint256 amountRemainingLessFee = FullMath.mulDiv(uint256(amountRemaining), 1e6 - feePips, 1e6);\n            amountIn = zeroForOne\n                ? SqrtPriceMath.getAmount0Delta(sqrtRatioTargetX96, sqrtRatioCurrentX96, liquidity, true)\n                : SqrtPriceMath.getAmount1Delta(sqrtRatioCurrentX96, sqrtRatioTargetX96, liquidity, true);\n            if (amountRemainingLessFee >= amountIn) sqrtRatioNextX96 = sqrtRatioTargetX96;\n            else\n                sqrtRatioNextX96 = SqrtPriceMath.getNextSqrtPriceFromInput(\n                    sqrtRatioCurrentX96,\n                    liquidity,\n                    amountRemainingLessFee,\n                    zeroForOne\n                );\n        } else {\n            amountOut = zeroForOne\n                ? SqrtPriceMath.getAmount1Delta(sqrtRatioTargetX96, sqrtRatioCurrentX96, liquidity, false)\n                : SqrtPriceMath.getAmount0Delta(sqrtRatioCurrentX96, sqrtRatioTargetX96, liquidity, false);\n            if (uint256(-amountRemaining) >= amountOut) sqrtRatioNextX96 = sqrtRatioTargetX96;\n            else\n                sqrtRatioNextX96 = SqrtPriceMath.getNextSqrtPriceFromOutput(\n                    sqrtRatioCurrentX96,\n                    liquidity,\n                    uint256(-amountRemaining),\n                    zeroForOne\n                );\n        }\n\n        bool max = sqrtRatioTargetX96 == sqrtRatioNextX96;\n\n        // get the input/output amounts\n        if (zeroForOne) {\n            amountIn = max && exactIn\n                ? amountIn\n                : SqrtPriceMath.getAmount0Delta(sqrtRatioNextX96, sqrtRatioCurrentX96, liquidity, true);\n            amountOut = max && !exactIn\n                ? amountOut\n                : SqrtPriceMath.getAmount1Delta(sqrtRatioNextX96, sqrtRatioCurrentX96, liquidity, false);\n        } else {\n            amountIn = max && exactIn\n                ? amountIn\n                : SqrtPriceMath.getAmount1Delta(sqrtRatioCurrentX96, sqrtRatioNextX96, liquidity, true);\n            amountOut = max && !exactIn\n                ? amountOut\n                : SqrtPriceMath.getAmount0Delta(sqrtRatioCurrentX96, sqrtRatioNextX96, liquidity, false);\n        }\n\n        // cap the output amount to not exceed the remaining output amount\n        if (!exactIn && amountOut > uint256(-amountRemaining)) {\n            amountOut = uint256(-amountRemaining);\n        }\n\n        if (exactIn && sqrtRatioNextX96 != sqrtRatioTargetX96) {\n            // we didn't reach the target, so take the remainder of the maximum input as fee\n            feeAmount = uint256(amountRemaining) - amountIn;\n        } else {\n            feeAmount = FullMath.mulDivRoundingUp(amountIn, feePips, 1e6 - feePips);\n        }\n    }\n}\n",
  "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SwapMath.sol",
  "ast": {
    "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SwapMath.sol",
    "exportedSymbols": {
      "FixedPoint96": [
        3817
      ],
      "FullMath": [
        3990
      ],
      "LowGasSafeMath": [
        4172
      ],
      "SafeCast": [
        5150
      ],
      "SqrtPriceMath": [
        5666
      ],
      "SwapMath": [
        5927
      ],
      "UnsafeMath": [
        7237
      ]
    },
    "id": 5928,
    "license": "BUSL-1.1",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 5668,
        "literals": [
          "solidity",
          ">=",
          "0.5",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "37:24:27"
      },
      {
        "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FullMath.sol",
        "file": "./FullMath.sol",
        "id": 5669,
        "nodeType": "ImportDirective",
        "scope": 5928,
        "sourceUnit": 3991,
        "src": "63:24:27",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SqrtPriceMath.sol",
        "file": "./SqrtPriceMath.sol",
        "id": 5670,
        "nodeType": "ImportDirective",
        "scope": 5928,
        "sourceUnit": 5667,
        "src": "88:29:27",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": {
          "id": 5671,
          "nodeType": "StructuredDocumentation",
          "src": "119:173:27",
          "text": "@title Computes the result of a swap within ticks\n @notice Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick."
        },
        "fullyImplemented": true,
        "id": 5927,
        "linearizedBaseContracts": [
          5927
        ],
        "name": "SwapMath",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 5925,
              "nodeType": "Block",
              "src": "1769:2861:27",
              "statements": [
                {
                  "assignments": [
                    5694
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 5694,
                      "mutability": "mutable",
                      "name": "zeroForOne",
                      "nodeType": "VariableDeclaration",
                      "scope": 5925,
                      "src": "1779:15:27",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 5693,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "1779:4:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 5698,
                  "initialValue": {
                    "commonType": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    },
                    "id": 5697,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 5695,
                      "name": "sqrtRatioCurrentX96",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5674,
                      "src": "1797:19:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint160",
                        "typeString": "uint160"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": ">=",
                    "rightExpression": {
                      "id": 5696,
                      "name": "sqrtRatioTargetX96",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5676,
                      "src": "1820:18:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint160",
                        "typeString": "uint160"
                      }
                    },
                    "src": "1797:41:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1779:59:27"
                },
                {
                  "assignments": [
                    5700
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 5700,
                      "mutability": "mutable",
                      "name": "exactIn",
                      "nodeType": "VariableDeclaration",
                      "scope": 5925,
                      "src": "1848:12:27",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 5699,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "1848:4:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 5704,
                  "initialValue": {
                    "commonType": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    },
                    "id": 5703,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 5701,
                      "name": "amountRemaining",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5680,
                      "src": "1863:15:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int256",
                        "typeString": "int256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": ">=",
                    "rightExpression": {
                      "hexValue": "30",
                      "id": 5702,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1882:1:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_0_by_1",
                        "typeString": "int_const 0"
                      },
                      "value": "0"
                    },
                    "src": "1863:20:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1848:35:27"
                },
                {
                  "condition": {
                    "id": 5705,
                    "name": "exactIn",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 5700,
                    "src": "1898:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 5803,
                    "nodeType": "Block",
                    "src": "2629:619:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5775,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5758,
                            "name": "amountOut",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5689,
                            "src": "2643:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "id": 5759,
                              "name": "zeroForOne",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5694,
                              "src": "2655:10:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5769,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "2821:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5770,
                                  "name": "sqrtRatioTargetX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5676,
                                  "src": "2842:18:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5771,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "2862:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "66616c7365",
                                  "id": 5772,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "2873:5:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5767,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "2791:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5768,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount0Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5533,
                                "src": "2791:29:27",
                                "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": 5773,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2791:88:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5774,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "2655:224:27",
                            "trueExpression": {
                              "arguments": [
                                {
                                  "id": 5762,
                                  "name": "sqrtRatioTargetX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5676,
                                  "src": "2714:18:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5763,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "2734:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5764,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "2755:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "66616c7365",
                                  "id": 5765,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "2766:5:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5760,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "2684:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5761,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount1Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5581,
                                "src": "2684:29:27",
                                "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": 5766,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2684:88:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2643:236:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5776,
                        "nodeType": "ExpressionStatement",
                        "src": "2643:236:27"
                      },
                      {
                        "condition": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 5783,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "arguments": [
                              {
                                "id": 5780,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "-",
                                "prefix": true,
                                "src": "2905:16:27",
                                "subExpression": {
                                  "id": 5779,
                                  "name": "amountRemaining",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5680,
                                  "src": "2906:15:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int256",
                                  "typeString": "int256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_int256",
                                  "typeString": "int256"
                                }
                              ],
                              "id": 5778,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "2897:7:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint256_$",
                                "typeString": "type(uint256)"
                              },
                              "typeName": {
                                "id": 5777,
                                "name": "uint256",
                                "nodeType": "ElementaryTypeName",
                                "src": "2897:7:27",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 5781,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2897:25:27",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": ">=",
                          "rightExpression": {
                            "id": 5782,
                            "name": "amountOut",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5689,
                            "src": "2926:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2897:38:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "expression": {
                            "id": 5800,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftHandSide": {
                              "id": 5788,
                              "name": "sqrtRatioNextX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5685,
                              "src": "3009:16:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "nodeType": "Assignment",
                            "operator": "=",
                            "rightHandSide": {
                              "arguments": [
                                {
                                  "id": 5791,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "3090:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5792,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "3131:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "arguments": [
                                    {
                                      "id": 5796,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "nodeType": "UnaryOperation",
                                      "operator": "-",
                                      "prefix": true,
                                      "src": "3170:16:27",
                                      "subExpression": {
                                        "id": 5795,
                                        "name": "amountRemaining",
                                        "nodeType": "Identifier",
                                        "overloadedDeclarations": [],
                                        "referencedDeclaration": 5680,
                                        "src": "3171:15:27",
                                        "typeDescriptions": {
                                          "typeIdentifier": "t_int256",
                                          "typeString": "int256"
                                        }
                                      },
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_int256",
                                        "typeString": "int256"
                                      }
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_int256",
                                        "typeString": "int256"
                                      }
                                    ],
                                    "id": 5794,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "3162:7:27",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_uint256_$",
                                      "typeString": "type(uint256)"
                                    },
                                    "typeName": {
                                      "id": 5793,
                                      "name": "uint256",
                                      "nodeType": "ElementaryTypeName",
                                      "src": "3162:7:27",
                                      "typeDescriptions": {}
                                    }
                                  },
                                  "id": 5797,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "3162:25:27",
                                  "tryCall": false,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "id": 5798,
                                  "name": "zeroForOne",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5694,
                                  "src": "3209:10:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  },
                                  {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                ],
                                "expression": {
                                  "id": 5789,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "3028:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5790,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getNextSqrtPriceFromOutput",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5463,
                                "src": "3028:40:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_internal_pure$_t_uint160_$_t_uint128_$_t_uint256_$_t_bool_$returns$_t_uint160_$",
                                  "typeString": "function (uint160,uint128,uint256,bool) pure returns (uint160)"
                                }
                              },
                              "id": 5799,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "3028:209:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "src": "3009:228:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          },
                          "id": 5801,
                          "nodeType": "ExpressionStatement",
                          "src": "3009:228:27"
                        },
                        "id": 5802,
                        "nodeType": "IfStatement",
                        "src": "2893:344:27",
                        "trueBody": {
                          "expression": {
                            "id": 5786,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftHandSide": {
                              "id": 5784,
                              "name": "sqrtRatioNextX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5685,
                              "src": "2937:16:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "nodeType": "Assignment",
                            "operator": "=",
                            "rightHandSide": {
                              "id": 5785,
                              "name": "sqrtRatioTargetX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5676,
                              "src": "2956:18:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "src": "2937:37:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          },
                          "id": 5787,
                          "nodeType": "ExpressionStatement",
                          "src": "2937:37:27"
                        }
                      }
                    ]
                  },
                  "id": 5804,
                  "nodeType": "IfStatement",
                  "src": "1894:1354:27",
                  "trueBody": {
                    "id": 5757,
                    "nodeType": "Block",
                    "src": "1907:716:27",
                    "statements": [
                      {
                        "assignments": [
                          5707
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 5707,
                            "mutability": "mutable",
                            "name": "amountRemainingLessFee",
                            "nodeType": "VariableDeclaration",
                            "scope": 5757,
                            "src": "1921:30:27",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 5706,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "1921:7:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 5719,
                        "initialValue": {
                          "arguments": [
                            {
                              "arguments": [
                                {
                                  "id": 5712,
                                  "name": "amountRemaining",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5680,
                                  "src": "1978:15:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                ],
                                "id": 5711,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "1970:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint256_$",
                                  "typeString": "type(uint256)"
                                },
                                "typeName": {
                                  "id": 5710,
                                  "name": "uint256",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "1970:7:27",
                                  "typeDescriptions": {}
                                }
                              },
                              "id": 5713,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "1970:24:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            {
                              "commonType": {
                                "typeIdentifier": "t_uint24",
                                "typeString": "uint24"
                              },
                              "id": 5716,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "hexValue": "316536",
                                "id": 5714,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "1996:3:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_1000000_by_1",
                                  "typeString": "int_const 1000000"
                                },
                                "value": "1e6"
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "-",
                              "rightExpression": {
                                "id": 5715,
                                "name": "feePips",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5682,
                                "src": "2002:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                }
                              },
                              "src": "1996:13:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint24",
                                "typeString": "uint24"
                              }
                            },
                            {
                              "hexValue": "316536",
                              "id": 5717,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2011:3:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_1000000_by_1",
                                "typeString": "int_const 1000000"
                              },
                              "value": "1e6"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              },
                              {
                                "typeIdentifier": "t_uint24",
                                "typeString": "uint24"
                              },
                              {
                                "typeIdentifier": "t_rational_1000000_by_1",
                                "typeString": "int_const 1000000"
                              }
                            ],
                            "expression": {
                              "id": 5708,
                              "name": "FullMath",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 3990,
                              "src": "1954:8:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_contract$_FullMath_$3990_$",
                                "typeString": "type(library FullMath)"
                              }
                            },
                            "id": 5709,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "mulDiv",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 3946,
                            "src": "1954:15:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
                              "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
                            }
                          },
                          "id": 5718,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1954:61:27",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "1921:94:27"
                      },
                      {
                        "expression": {
                          "id": 5737,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5720,
                            "name": "amountIn",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5687,
                            "src": "2029:8:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "id": 5721,
                              "name": "zeroForOne",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5694,
                              "src": "2040:10:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5731,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "2205:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5732,
                                  "name": "sqrtRatioTargetX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5676,
                                  "src": "2226:18:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5733,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "2246:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "74727565",
                                  "id": 5734,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "2257:4:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5729,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "2175:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5730,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount1Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5581,
                                "src": "2175:29:27",
                                "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": 5735,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2175:87:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5736,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "2040:222:27",
                            "trueExpression": {
                              "arguments": [
                                {
                                  "id": 5724,
                                  "name": "sqrtRatioTargetX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5676,
                                  "src": "2099:18:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5725,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "2119:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5726,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "2140:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "74727565",
                                  "id": 5727,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "2151:4:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5722,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "2069:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5723,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount0Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5533,
                                "src": "2069:29:27",
                                "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": 5728,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2069:87:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2029:233:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5738,
                        "nodeType": "ExpressionStatement",
                        "src": "2029:233:27"
                      },
                      {
                        "condition": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 5741,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "id": 5739,
                            "name": "amountRemainingLessFee",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5707,
                            "src": "2280:22:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": ">=",
                          "rightExpression": {
                            "id": 5740,
                            "name": "amountIn",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5687,
                            "src": "2306:8:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "2280:34:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "falseBody": {
                          "expression": {
                            "id": 5754,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftHandSide": {
                              "id": 5746,
                              "name": "sqrtRatioNextX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5685,
                              "src": "2388:16:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "nodeType": "Assignment",
                            "operator": "=",
                            "rightHandSide": {
                              "arguments": [
                                {
                                  "id": 5749,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "2468:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5750,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "2509:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "id": 5751,
                                  "name": "amountRemainingLessFee",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5707,
                                  "src": "2540:22:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                {
                                  "id": 5752,
                                  "name": "zeroForOne",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5694,
                                  "src": "2584:10:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  },
                                  {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  },
                                  {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                ],
                                "expression": {
                                  "id": 5747,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "2407:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5748,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getNextSqrtPriceFromInput",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5421,
                                "src": "2407:39:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_function_internal_pure$_t_uint160_$_t_uint128_$_t_uint256_$_t_bool_$returns$_t_uint160_$",
                                  "typeString": "function (uint160,uint128,uint256,bool) pure returns (uint160)"
                                }
                              },
                              "id": 5753,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "2407:205:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "src": "2388:224:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          },
                          "id": 5755,
                          "nodeType": "ExpressionStatement",
                          "src": "2388:224:27"
                        },
                        "id": 5756,
                        "nodeType": "IfStatement",
                        "src": "2276:336:27",
                        "trueBody": {
                          "expression": {
                            "id": 5744,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftHandSide": {
                              "id": 5742,
                              "name": "sqrtRatioNextX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5685,
                              "src": "2316:16:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "nodeType": "Assignment",
                            "operator": "=",
                            "rightHandSide": {
                              "id": 5743,
                              "name": "sqrtRatioTargetX96",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5676,
                              "src": "2335:18:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              }
                            },
                            "src": "2316:37:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          },
                          "id": 5745,
                          "nodeType": "ExpressionStatement",
                          "src": "2316:37:27"
                        }
                      }
                    ]
                  }
                },
                {
                  "assignments": [
                    5806
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 5806,
                      "mutability": "mutable",
                      "name": "max",
                      "nodeType": "VariableDeclaration",
                      "scope": 5925,
                      "src": "3258:8:27",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 5805,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "3258:4:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 5810,
                  "initialValue": {
                    "commonType": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    },
                    "id": 5809,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 5807,
                      "name": "sqrtRatioTargetX96",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5676,
                      "src": "3269:18:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint160",
                        "typeString": "uint160"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "id": 5808,
                      "name": "sqrtRatioNextX96",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5685,
                      "src": "3291:16:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint160",
                        "typeString": "uint160"
                      }
                    },
                    "src": "3269:38:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3258:49:27"
                },
                {
                  "condition": {
                    "id": 5811,
                    "name": "zeroForOne",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 5694,
                    "src": "3362:10:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 5875,
                    "nodeType": "Block",
                    "src": "3735:355:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5857,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5844,
                            "name": "amountIn",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5687,
                            "src": "3749:8:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "commonType": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              "id": 5847,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "id": 5845,
                                "name": "max",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5806,
                                "src": "3760:3:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "&&",
                              "rightExpression": {
                                "id": 5846,
                                "name": "exactIn",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5700,
                                "src": "3767:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "src": "3760:14:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5851,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "3850:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5852,
                                  "name": "sqrtRatioNextX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5685,
                                  "src": "3871:16:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5853,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "3889:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "74727565",
                                  "id": 5854,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "3900:4:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5849,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "3820:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5850,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount1Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5581,
                                "src": "3820:29:27",
                                "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": 5855,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "3820:85:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5856,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3760:145:27",
                            "trueExpression": {
                              "id": 5848,
                              "name": "amountIn",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5687,
                              "src": "3793:8:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "3749:156:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5858,
                        "nodeType": "ExpressionStatement",
                        "src": "3749:156:27"
                      },
                      {
                        "expression": {
                          "id": 5873,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5859,
                            "name": "amountOut",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5689,
                            "src": "3919:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "commonType": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              "id": 5863,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "id": 5860,
                                "name": "max",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5806,
                                "src": "3931:3:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "&&",
                              "rightExpression": {
                                "id": 5862,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "!",
                                "prefix": true,
                                "src": "3938:8:27",
                                "subExpression": {
                                  "id": 5861,
                                  "name": "exactIn",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5700,
                                  "src": "3939:7:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "src": "3931:15:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5867,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "4023:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5868,
                                  "name": "sqrtRatioNextX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5685,
                                  "src": "4044:16:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5869,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "4062:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "66616c7365",
                                  "id": 5870,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "4073:5:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5865,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "3993:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5866,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount0Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5533,
                                "src": "3993:29:27",
                                "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": 5871,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "3993:86:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5872,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3931:148:27",
                            "trueExpression": {
                              "id": 5864,
                              "name": "amountOut",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5689,
                              "src": "3965:9:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "3919:160:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5874,
                        "nodeType": "ExpressionStatement",
                        "src": "3919:160:27"
                      }
                    ]
                  },
                  "id": 5876,
                  "nodeType": "IfStatement",
                  "src": "3358:732:27",
                  "trueBody": {
                    "id": 5843,
                    "nodeType": "Block",
                    "src": "3374:355:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5825,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5812,
                            "name": "amountIn",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5687,
                            "src": "3388:8:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "commonType": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              "id": 5815,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "id": 5813,
                                "name": "max",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5806,
                                "src": "3399:3:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "&&",
                              "rightExpression": {
                                "id": 5814,
                                "name": "exactIn",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5700,
                                "src": "3406:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "src": "3399:14:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5819,
                                  "name": "sqrtRatioNextX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5685,
                                  "src": "3489:16:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5820,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "3507:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5821,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "3528:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "74727565",
                                  "id": 5822,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "3539:4:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5817,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "3459:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5818,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount0Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5533,
                                "src": "3459:29:27",
                                "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": 5823,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "3459:85:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5824,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3399:145:27",
                            "trueExpression": {
                              "id": 5816,
                              "name": "amountIn",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5687,
                              "src": "3432:8:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "3388:156:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5826,
                        "nodeType": "ExpressionStatement",
                        "src": "3388:156:27"
                      },
                      {
                        "expression": {
                          "id": 5841,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5827,
                            "name": "amountOut",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5689,
                            "src": "3558:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "condition": {
                              "commonType": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              "id": 5831,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "id": 5828,
                                "name": "max",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5806,
                                "src": "3570:3:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "&&",
                              "rightExpression": {
                                "id": 5830,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "!",
                                "prefix": true,
                                "src": "3577:8:27",
                                "subExpression": {
                                  "id": 5829,
                                  "name": "exactIn",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5700,
                                  "src": "3578:7:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_bool",
                                    "typeString": "bool"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "src": "3570:15:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            "falseExpression": {
                              "arguments": [
                                {
                                  "id": 5835,
                                  "name": "sqrtRatioNextX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5685,
                                  "src": "3662:16:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5836,
                                  "name": "sqrtRatioCurrentX96",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5674,
                                  "src": "3680:19:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint160",
                                    "typeString": "uint160"
                                  }
                                },
                                {
                                  "id": 5837,
                                  "name": "liquidity",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5678,
                                  "src": "3701:9:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint128",
                                    "typeString": "uint128"
                                  }
                                },
                                {
                                  "hexValue": "66616c7365",
                                  "id": 5838,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "bool",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "3712:5:27",
                                  "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"
                                  }
                                ],
                                "expression": {
                                  "id": 5833,
                                  "name": "SqrtPriceMath",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5666,
                                  "src": "3632:13:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_contract$_SqrtPriceMath_$5666_$",
                                    "typeString": "type(library SqrtPriceMath)"
                                  }
                                },
                                "id": 5834,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "memberName": "getAmount1Delta",
                                "nodeType": "MemberAccess",
                                "referencedDeclaration": 5581,
                                "src": "3632:29:27",
                                "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": 5839,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "functionCall",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "3632:86:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "id": 5840,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "Conditional",
                            "src": "3570:148:27",
                            "trueExpression": {
                              "id": 5832,
                              "name": "amountOut",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5689,
                              "src": "3604:9:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "3558:160:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5842,
                        "nodeType": "ExpressionStatement",
                        "src": "3558:160:27"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 5886,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 5878,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "!",
                      "prefix": true,
                      "src": "4179:8:27",
                      "subExpression": {
                        "id": 5877,
                        "name": "exactIn",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5700,
                        "src": "4180:7:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "commonType": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "id": 5885,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 5879,
                        "name": "amountOut",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5689,
                        "src": "4191:9:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": ">",
                      "rightExpression": {
                        "arguments": [
                          {
                            "id": 5883,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "UnaryOperation",
                            "operator": "-",
                            "prefix": true,
                            "src": "4211:16:27",
                            "subExpression": {
                              "id": 5882,
                              "name": "amountRemaining",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5680,
                              "src": "4212:15:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_int256",
                                "typeString": "int256"
                              }
                            },
                            "typeDescriptions": {
                              "typeIdentifier": "t_int256",
                              "typeString": "int256"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_int256",
                              "typeString": "int256"
                            }
                          ],
                          "id": 5881,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "4203:7:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_uint256_$",
                            "typeString": "type(uint256)"
                          },
                          "typeName": {
                            "id": 5880,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "4203:7:27",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 5884,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "4203:25:27",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "src": "4191:37:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4179:49:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 5896,
                  "nodeType": "IfStatement",
                  "src": "4175:117:27",
                  "trueBody": {
                    "id": 5895,
                    "nodeType": "Block",
                    "src": "4230:62:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5893,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5887,
                            "name": "amountOut",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5689,
                            "src": "4244:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "arguments": [
                              {
                                "id": 5891,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "UnaryOperation",
                                "operator": "-",
                                "prefix": true,
                                "src": "4264:16:27",
                                "subExpression": {
                                  "id": 5890,
                                  "name": "amountRemaining",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5680,
                                  "src": "4265:15:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                },
                                "typeDescriptions": {
                                  "typeIdentifier": "t_int256",
                                  "typeString": "int256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_int256",
                                  "typeString": "int256"
                                }
                              ],
                              "id": 5889,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4256:7:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint256_$",
                                "typeString": "type(uint256)"
                              },
                              "typeName": {
                                "id": 5888,
                                "name": "uint256",
                                "nodeType": "ElementaryTypeName",
                                "src": "4256:7:27",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 5892,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4256:25:27",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "4244:37:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5894,
                        "nodeType": "ExpressionStatement",
                        "src": "4244:37:27"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 5901,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 5897,
                      "name": "exactIn",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5700,
                      "src": "4306:7:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "commonType": {
                        "typeIdentifier": "t_uint160",
                        "typeString": "uint160"
                      },
                      "id": 5900,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 5898,
                        "name": "sqrtRatioNextX96",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5685,
                        "src": "4317:16:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "id": 5899,
                        "name": "sqrtRatioTargetX96",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5676,
                        "src": "4337:18:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      },
                      "src": "4317:38:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4306:49:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 5923,
                    "nodeType": "Block",
                    "src": "4528:96:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5921,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5912,
                            "name": "feeAmount",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5691,
                            "src": "4542:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "arguments": [
                              {
                                "id": 5915,
                                "name": "amountIn",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5687,
                                "src": "4580:8:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              {
                                "id": 5916,
                                "name": "feePips",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 5682,
                                "src": "4590:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                }
                              },
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                },
                                "id": 5919,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "hexValue": "316536",
                                  "id": 5917,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "4599:3:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_1000000_by_1",
                                    "typeString": "int_const 1000000"
                                  },
                                  "value": "1e6"
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "-",
                                "rightExpression": {
                                  "id": 5918,
                                  "name": "feePips",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5682,
                                  "src": "4605:7:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint24",
                                    "typeString": "uint24"
                                  }
                                },
                                "src": "4599:13:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                },
                                {
                                  "typeIdentifier": "t_uint24",
                                  "typeString": "uint24"
                                }
                              ],
                              "expression": {
                                "id": 5913,
                                "name": "FullMath",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 3990,
                                "src": "4554:8:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_contract$_FullMath_$3990_$",
                                  "typeString": "type(library FullMath)"
                                }
                              },
                              "id": 5914,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "mulDivRoundingUp",
                              "nodeType": "MemberAccess",
                              "referencedDeclaration": 3989,
                              "src": "4554:25:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
                                "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
                              }
                            },
                            "id": 5920,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4554:59:27",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "4542:71:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5922,
                        "nodeType": "ExpressionStatement",
                        "src": "4542:71:27"
                      }
                    ]
                  },
                  "id": 5924,
                  "nodeType": "IfStatement",
                  "src": "4302:322:27",
                  "trueBody": {
                    "id": 5911,
                    "nodeType": "Block",
                    "src": "4357:165:27",
                    "statements": [
                      {
                        "expression": {
                          "id": 5909,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "id": 5902,
                            "name": "feeAmount",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5691,
                            "src": "4464:9:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "commonType": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "id": 5908,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "leftExpression": {
                              "arguments": [
                                {
                                  "id": 5905,
                                  "name": "amountRemaining",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 5680,
                                  "src": "4484:15:27",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_int256",
                                    "typeString": "int256"
                                  }
                                ],
                                "id": 5904,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "4476:7:27",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_uint256_$",
                                  "typeString": "type(uint256)"
                                },
                                "typeName": {
                                  "id": 5903,
                                  "name": "uint256",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "4476:7:27",
                                  "typeDescriptions": {}
                                }
                              },
                              "id": 5906,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "4476:24:27",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "nodeType": "BinaryOperation",
                            "operator": "-",
                            "rightExpression": {
                              "id": 5907,
                              "name": "amountIn",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 5687,
                              "src": "4503:8:27",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "src": "4476:35:27",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "src": "4464:47:27",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 5910,
                        "nodeType": "ExpressionStatement",
                        "src": "4464:47:27"
                      }
                    ]
                  }
                }
              ]
            },
            "documentation": {
              "id": 5672,
              "nodeType": "StructuredDocumentation",
              "src": "315:1071:27",
              "text": "@notice Computes the result of swapping some amount in, or amount out, given the parameters of the swap\n @dev The fee, plus the amount in, will never exceed the amount remaining if the swap's `amountSpecified` is positive\n @param sqrtRatioCurrentX96 The current sqrt price of the pool\n @param sqrtRatioTargetX96 The price that cannot be exceeded, from which the direction of the swap is inferred\n @param liquidity The usable liquidity\n @param amountRemaining How much input or output amount is remaining to be swapped in/out\n @param feePips The fee taken from the input amount, expressed in hundredths of a bip\n @return sqrtRatioNextX96 The price after swapping the amount in/out, not to exceed the price target\n @return amountIn The amount to be swapped in, of either token0 or token1, based on the direction of the swap\n @return amountOut The amount to be received, of either token0 or token1, based on the direction of the swap\n @return feeAmount The amount of input that will be taken as a fee"
            },
            "id": 5926,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "computeSwapStep",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 5683,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5674,
                  "mutability": "mutable",
                  "name": "sqrtRatioCurrentX96",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1425:27:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint160",
                    "typeString": "uint160"
                  },
                  "typeName": {
                    "id": 5673,
                    "name": "uint160",
                    "nodeType": "ElementaryTypeName",
                    "src": "1425:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5676,
                  "mutability": "mutable",
                  "name": "sqrtRatioTargetX96",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1462:26:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint160",
                    "typeString": "uint160"
                  },
                  "typeName": {
                    "id": 5675,
                    "name": "uint160",
                    "nodeType": "ElementaryTypeName",
                    "src": "1462:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5678,
                  "mutability": "mutable",
                  "name": "liquidity",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1498:17:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint128",
                    "typeString": "uint128"
                  },
                  "typeName": {
                    "id": 5677,
                    "name": "uint128",
                    "nodeType": "ElementaryTypeName",
                    "src": "1498:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint128",
                      "typeString": "uint128"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5680,
                  "mutability": "mutable",
                  "name": "amountRemaining",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1525:22:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_int256",
                    "typeString": "int256"
                  },
                  "typeName": {
                    "id": 5679,
                    "name": "int256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1525:6:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_int256",
                      "typeString": "int256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5682,
                  "mutability": "mutable",
                  "name": "feePips",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1557:14:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 5681,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "1557:6:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1415:162:27"
            },
            "returnParameters": {
              "id": 5692,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 5685,
                  "mutability": "mutable",
                  "name": "sqrtRatioNextX96",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1638:24:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint160",
                    "typeString": "uint160"
                  },
                  "typeName": {
                    "id": 5684,
                    "name": "uint160",
                    "nodeType": "ElementaryTypeName",
                    "src": "1638:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint160",
                      "typeString": "uint160"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5687,
                  "mutability": "mutable",
                  "name": "amountIn",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1676:16:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5686,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1676:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5689,
                  "mutability": "mutable",
                  "name": "amountOut",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1706:17:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5688,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1706:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 5691,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nodeType": "VariableDeclaration",
                  "scope": 5926,
                  "src": "1737:17:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 5690,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1737:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1624:140:27"
            },
            "scope": 5927,
            "src": "1391:3239:27",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "scope": 5928,
        "src": "292:4340:27"
      }
    ],
    "src": "37:4596:27"
  },
  "legacyAST": {
    "attributes": {
      "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SwapMath.sol",
      "exportedSymbols": {
        "FixedPoint96": [
          3817
        ],
        "FullMath": [
          3990
        ],
        "LowGasSafeMath": [
          4172
        ],
        "SafeCast": [
          5150
        ],
        "SqrtPriceMath": [
          5666
        ],
        "SwapMath": [
          5927
        ],
        "UnsafeMath": [
          7237
        ]
      },
      "license": "BUSL-1.1"
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            ">=",
            "0.5",
            ".0"
          ]
        },
        "id": 5668,
        "name": "PragmaDirective",
        "src": "37:24:27"
      },
      {
        "attributes": {
          "SourceUnit": 3991,
          "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FullMath.sol",
          "file": "./FullMath.sol",
          "scope": 5928,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 5669,
        "name": "ImportDirective",
        "src": "63:24:27"
      },
      {
        "attributes": {
          "SourceUnit": 5667,
          "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/SqrtPriceMath.sol",
          "file": "./SqrtPriceMath.sol",
          "scope": 5928,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 5670,
        "name": "ImportDirective",
        "src": "88:29:27"
      },
      {
        "attributes": {
          "abstract": false,
          "baseContracts": [
            null
          ],
          "contractDependencies": [
            null
          ],
          "contractKind": "library",
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            5927
          ],
          "name": "SwapMath",
          "scope": 5928
        },
        "children": [
          {
            "attributes": {
              "text": "@title Computes the result of a swap within ticks\n @notice Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick."
            },
            "id": 5671,
            "name": "StructuredDocumentation",
            "src": "119:173:27"
          },
          {
            "attributes": {
              "implemented": true,
              "isConstructor": false,
              "kind": "function",
              "modifiers": [
                null
              ],
              "name": "computeSwapStep",
              "scope": 5927,
              "stateMutability": "pure",
              "virtual": false,
              "visibility": "internal"
            },
            "children": [
              {
                "attributes": {
                  "text": "@notice Computes the result of swapping some amount in, or amount out, given the parameters of the swap\n @dev The fee, plus the amount in, will never exceed the amount remaining if the swap's `amountSpecified` is positive\n @param sqrtRatioCurrentX96 The current sqrt price of the pool\n @param sqrtRatioTargetX96 The price that cannot be exceeded, from which the direction of the swap is inferred\n @param liquidity The usable liquidity\n @param amountRemaining How much input or output amount is remaining to be swapped in/out\n @param feePips The fee taken from the input amount, expressed in hundredths of a bip\n @return sqrtRatioNextX96 The price after swapping the amount in/out, not to exceed the price target\n @return amountIn The amount to be swapped in, of either token0 or token1, based on the direction of the swap\n @return amountOut The amount to be received, of either token0 or token1, based on the direction of the swap\n @return feeAmount The amount of input that will be taken as a fee"
                },
                "id": 5672,
                "name": "StructuredDocumentation",
                "src": "315:1071:27"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "sqrtRatioCurrentX96",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint160",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint160",
                          "type": "uint160"
                        },
                        "id": 5673,
                        "name": "ElementaryTypeName",
                        "src": "1425:7:27"
                      }
                    ],
                    "id": 5674,
                    "name": "VariableDeclaration",
                    "src": "1425:27:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "sqrtRatioTargetX96",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint160",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint160",
                          "type": "uint160"
                        },
                        "id": 5675,
                        "name": "ElementaryTypeName",
                        "src": "1462:7:27"
                      }
                    ],
                    "id": 5676,
                    "name": "VariableDeclaration",
                    "src": "1462:26:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "liquidity",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint128",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint128",
                          "type": "uint128"
                        },
                        "id": 5677,
                        "name": "ElementaryTypeName",
                        "src": "1498:7:27"
                      }
                    ],
                    "id": 5678,
                    "name": "VariableDeclaration",
                    "src": "1498:17:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "amountRemaining",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int256",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int256",
                          "type": "int256"
                        },
                        "id": 5679,
                        "name": "ElementaryTypeName",
                        "src": "1525:6:27"
                      }
                    ],
                    "id": 5680,
                    "name": "VariableDeclaration",
                    "src": "1525:22:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "feePips",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint24",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint24",
                          "type": "uint24"
                        },
                        "id": 5681,
                        "name": "ElementaryTypeName",
                        "src": "1557:6:27"
                      }
                    ],
                    "id": 5682,
                    "name": "VariableDeclaration",
                    "src": "1557:14:27"
                  }
                ],
                "id": 5683,
                "name": "ParameterList",
                "src": "1415:162:27"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "sqrtRatioNextX96",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint160",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint160",
                          "type": "uint160"
                        },
                        "id": 5684,
                        "name": "ElementaryTypeName",
                        "src": "1638:7:27"
                      }
                    ],
                    "id": 5685,
                    "name": "VariableDeclaration",
                    "src": "1638:24:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "amountIn",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5686,
                        "name": "ElementaryTypeName",
                        "src": "1676:7:27"
                      }
                    ],
                    "id": 5687,
                    "name": "VariableDeclaration",
                    "src": "1676:16:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "amountOut",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5688,
                        "name": "ElementaryTypeName",
                        "src": "1706:7:27"
                      }
                    ],
                    "id": 5689,
                    "name": "VariableDeclaration",
                    "src": "1706:17:27"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "mutability": "mutable",
                      "name": "feeAmount",
                      "scope": 5926,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "uint256",
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "uint256",
                          "type": "uint256"
                        },
                        "id": 5690,
                        "name": "ElementaryTypeName",
                        "src": "1737:7:27"
                      }
                    ],
                    "id": 5691,
                    "name": "VariableDeclaration",
                    "src": "1737:17:27"
                  }
                ],
                "id": 5692,
                "name": "ParameterList",
                "src": "1624:140:27"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "assignments": [
                        5694
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "zeroForOne",
                          "scope": 5925,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bool",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bool",
                              "type": "bool"
                            },
                            "id": 5693,
                            "name": "ElementaryTypeName",
                            "src": "1779:4:27"
                          }
                        ],
                        "id": 5694,
                        "name": "VariableDeclaration",
                        "src": "1779:15:27"
                      },
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_uint160",
                            "typeString": "uint160"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": ">=",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5674,
                              "type": "uint160",
                              "value": "sqrtRatioCurrentX96"
                            },
                            "id": 5695,
                            "name": "Identifier",
                            "src": "1797:19:27"
                          },
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5676,
                              "type": "uint160",
                              "value": "sqrtRatioTargetX96"
                            },
                            "id": 5696,
                            "name": "Identifier",
                            "src": "1820:18:27"
                          }
                        ],
                        "id": 5697,
                        "name": "BinaryOperation",
                        "src": "1797:41:27"
                      }
                    ],
                    "id": 5698,
                    "name": "VariableDeclarationStatement",
                    "src": "1779:59:27"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        5700
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "exactIn",
                          "scope": 5925,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bool",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bool",
                              "type": "bool"
                            },
                            "id": 5699,
                            "name": "ElementaryTypeName",
                            "src": "1848:4:27"
                          }
                        ],
                        "id": 5700,
                        "name": "VariableDeclaration",
                        "src": "1848:12:27"
                      },
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": ">=",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5680,
                              "type": "int256",
                              "value": "amountRemaining"
                            },
                            "id": 5701,
                            "name": "Identifier",
                            "src": "1863:15:27"
                          },
                          {
                            "attributes": {
                              "hexvalue": "30",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "token": "number",
                              "type": "int_const 0",
                              "value": "0"
                            },
                            "id": 5702,
                            "name": "Literal",
                            "src": "1882:1:27"
                          }
                        ],
                        "id": 5703,
                        "name": "BinaryOperation",
                        "src": "1863:20:27"
                      }
                    ],
                    "id": 5704,
                    "name": "VariableDeclarationStatement",
                    "src": "1848:35:27"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 5700,
                          "type": "bool",
                          "value": "exactIn"
                        },
                        "id": 5705,
                        "name": "Identifier",
                        "src": "1898:7:27"
                      },
                      {
                        "children": [
                          {
                            "attributes": {
                              "assignments": [
                                5707
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "mutability": "mutable",
                                  "name": "amountRemainingLessFee",
                                  "scope": 5757,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "uint256",
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "name": "uint256",
                                      "type": "uint256"
                                    },
                                    "id": 5706,
                                    "name": "ElementaryTypeName",
                                    "src": "1921:7:27"
                                  }
                                ],
                                "id": 5707,
                                "name": "VariableDeclaration",
                                "src": "1921:30:27"
                              },
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "tryCall": false,
                                  "type": "uint256",
                                  "type_conversion": false
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_uint256",
                                          "typeString": "uint256"
                                        },
                                        {
                                          "typeIdentifier": "t_uint24",
                                          "typeString": "uint24"
                                        },
                                        {
                                          "typeIdentifier": "t_rational_1000000_by_1",
                                          "typeString": "int_const 1000000"
                                        }
                                      ],
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "member_name": "mulDiv",
                                      "referencedDeclaration": 3946,
                                      "type": "function (uint256,uint256,uint256) pure returns (uint256)"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 3990,
                                          "type": "type(library FullMath)",
                                          "value": "FullMath"
                                        },
                                        "id": 5708,
                                        "name": "Identifier",
                                        "src": "1954:8:27"
                                      }
                                    ],
                                    "id": 5709,
                                    "name": "MemberAccess",
                                    "src": "1954:15:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "isStructConstructorCall": false,
                                      "lValueRequested": false,
                                      "names": [
                                        null
                                      ],
                                      "tryCall": false,
                                      "type": "uint256",
                                      "type_conversion": true
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_int256",
                                              "typeString": "int256"
                                            }
                                          ],
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "type": "type(uint256)"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "name": "uint256"
                                            },
                                            "id": 5710,
                                            "name": "ElementaryTypeName",
                                            "src": "1970:7:27"
                                          }
                                        ],
                                        "id": 5711,
                                        "name": "ElementaryTypeNameExpression",
                                        "src": "1970:7:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5680,
                                          "type": "int256",
                                          "value": "amountRemaining"
                                        },
                                        "id": 5712,
                                        "name": "Identifier",
                                        "src": "1978:15:27"
                                      }
                                    ],
                                    "id": 5713,
                                    "name": "FunctionCall",
                                    "src": "1970:24:27"
                                  },
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_uint24",
                                        "typeString": "uint24"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "-",
                                      "type": "uint24"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "hexvalue": "316536",
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "token": "number",
                                          "type": "int_const 1000000",
                                          "value": "1e6"
                                        },
                                        "id": 5714,
                                        "name": "Literal",
                                        "src": "1996:3:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5682,
                                          "type": "uint24",
                                          "value": "feePips"
                                        },
                                        "id": 5715,
                                        "name": "Identifier",
                                        "src": "2002:7:27"
                                      }
                                    ],
                                    "id": 5716,
                                    "name": "BinaryOperation",
                                    "src": "1996:13:27"
                                  },
                                  {
                                    "attributes": {
                                      "hexvalue": "316536",
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "token": "number",
                                      "type": "int_const 1000000",
                                      "value": "1e6"
                                    },
                                    "id": 5717,
                                    "name": "Literal",
                                    "src": "2011:3:27"
                                  }
                                ],
                                "id": 5718,
                                "name": "FunctionCall",
                                "src": "1954:61:27"
                              }
                            ],
                            "id": 5719,
                            "name": "VariableDeclarationStatement",
                            "src": "1921:94:27"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5687,
                                      "type": "uint256",
                                      "value": "amountIn"
                                    },
                                    "id": 5720,
                                    "name": "Identifier",
                                    "src": "2029:8:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5694,
                                          "type": "bool",
                                          "value": "zeroForOne"
                                        },
                                        "id": 5721,
                                        "name": "Identifier",
                                        "src": "2040:10:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount0Delta",
                                              "referencedDeclaration": 5533,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5722,
                                                "name": "Identifier",
                                                "src": "2069:13:27"
                                              }
                                            ],
                                            "id": 5723,
                                            "name": "MemberAccess",
                                            "src": "2069:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5676,
                                              "type": "uint160",
                                              "value": "sqrtRatioTargetX96"
                                            },
                                            "id": 5724,
                                            "name": "Identifier",
                                            "src": "2099:18:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5725,
                                            "name": "Identifier",
                                            "src": "2119:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5726,
                                            "name": "Identifier",
                                            "src": "2140:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "74727565",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "true"
                                            },
                                            "id": 5727,
                                            "name": "Literal",
                                            "src": "2151:4:27"
                                          }
                                        ],
                                        "id": 5728,
                                        "name": "FunctionCall",
                                        "src": "2069:87:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount1Delta",
                                              "referencedDeclaration": 5581,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5729,
                                                "name": "Identifier",
                                                "src": "2175:13:27"
                                              }
                                            ],
                                            "id": 5730,
                                            "name": "MemberAccess",
                                            "src": "2175:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5731,
                                            "name": "Identifier",
                                            "src": "2205:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5676,
                                              "type": "uint160",
                                              "value": "sqrtRatioTargetX96"
                                            },
                                            "id": 5732,
                                            "name": "Identifier",
                                            "src": "2226:18:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5733,
                                            "name": "Identifier",
                                            "src": "2246:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "74727565",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "true"
                                            },
                                            "id": 5734,
                                            "name": "Literal",
                                            "src": "2257:4:27"
                                          }
                                        ],
                                        "id": 5735,
                                        "name": "FunctionCall",
                                        "src": "2175:87:27"
                                      }
                                    ],
                                    "id": 5736,
                                    "name": "Conditional",
                                    "src": "2040:222:27"
                                  }
                                ],
                                "id": 5737,
                                "name": "Assignment",
                                "src": "2029:233:27"
                              }
                            ],
                            "id": 5738,
                            "name": "ExpressionStatement",
                            "src": "2029:233:27"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": ">=",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5707,
                                      "type": "uint256",
                                      "value": "amountRemainingLessFee"
                                    },
                                    "id": 5739,
                                    "name": "Identifier",
                                    "src": "2280:22:27"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5687,
                                      "type": "uint256",
                                      "value": "amountIn"
                                    },
                                    "id": 5740,
                                    "name": "Identifier",
                                    "src": "2306:8:27"
                                  }
                                ],
                                "id": 5741,
                                "name": "BinaryOperation",
                                "src": "2280:34:27"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "=",
                                      "type": "uint160"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5685,
                                          "type": "uint160",
                                          "value": "sqrtRatioNextX96"
                                        },
                                        "id": 5742,
                                        "name": "Identifier",
                                        "src": "2316:16:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5676,
                                          "type": "uint160",
                                          "value": "sqrtRatioTargetX96"
                                        },
                                        "id": 5743,
                                        "name": "Identifier",
                                        "src": "2335:18:27"
                                      }
                                    ],
                                    "id": 5744,
                                    "name": "Assignment",
                                    "src": "2316:37:27"
                                  }
                                ],
                                "id": 5745,
                                "name": "ExpressionStatement",
                                "src": "2316:37:27"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "=",
                                      "type": "uint160"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5685,
                                          "type": "uint160",
                                          "value": "sqrtRatioNextX96"
                                        },
                                        "id": 5746,
                                        "name": "Identifier",
                                        "src": "2388:16:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint160",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getNextSqrtPriceFromInput",
                                              "referencedDeclaration": 5421,
                                              "type": "function (uint160,uint128,uint256,bool) pure returns (uint160)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5747,
                                                "name": "Identifier",
                                                "src": "2407:13:27"
                                              }
                                            ],
                                            "id": 5748,
                                            "name": "MemberAccess",
                                            "src": "2407:39:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5749,
                                            "name": "Identifier",
                                            "src": "2468:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5750,
                                            "name": "Identifier",
                                            "src": "2509:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5707,
                                              "type": "uint256",
                                              "value": "amountRemainingLessFee"
                                            },
                                            "id": 5751,
                                            "name": "Identifier",
                                            "src": "2540:22:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5694,
                                              "type": "bool",
                                              "value": "zeroForOne"
                                            },
                                            "id": 5752,
                                            "name": "Identifier",
                                            "src": "2584:10:27"
                                          }
                                        ],
                                        "id": 5753,
                                        "name": "FunctionCall",
                                        "src": "2407:205:27"
                                      }
                                    ],
                                    "id": 5754,
                                    "name": "Assignment",
                                    "src": "2388:224:27"
                                  }
                                ],
                                "id": 5755,
                                "name": "ExpressionStatement",
                                "src": "2388:224:27"
                              }
                            ],
                            "id": 5756,
                            "name": "IfStatement",
                            "src": "2276:336:27"
                          }
                        ],
                        "id": 5757,
                        "name": "Block",
                        "src": "1907:716:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5689,
                                      "type": "uint256",
                                      "value": "amountOut"
                                    },
                                    "id": 5758,
                                    "name": "Identifier",
                                    "src": "2643:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5694,
                                          "type": "bool",
                                          "value": "zeroForOne"
                                        },
                                        "id": 5759,
                                        "name": "Identifier",
                                        "src": "2655:10:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount1Delta",
                                              "referencedDeclaration": 5581,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5760,
                                                "name": "Identifier",
                                                "src": "2684:13:27"
                                              }
                                            ],
                                            "id": 5761,
                                            "name": "MemberAccess",
                                            "src": "2684:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5676,
                                              "type": "uint160",
                                              "value": "sqrtRatioTargetX96"
                                            },
                                            "id": 5762,
                                            "name": "Identifier",
                                            "src": "2714:18:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5763,
                                            "name": "Identifier",
                                            "src": "2734:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5764,
                                            "name": "Identifier",
                                            "src": "2755:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "66616c7365",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "false"
                                            },
                                            "id": 5765,
                                            "name": "Literal",
                                            "src": "2766:5:27"
                                          }
                                        ],
                                        "id": 5766,
                                        "name": "FunctionCall",
                                        "src": "2684:88:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount0Delta",
                                              "referencedDeclaration": 5533,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5767,
                                                "name": "Identifier",
                                                "src": "2791:13:27"
                                              }
                                            ],
                                            "id": 5768,
                                            "name": "MemberAccess",
                                            "src": "2791:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5769,
                                            "name": "Identifier",
                                            "src": "2821:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5676,
                                              "type": "uint160",
                                              "value": "sqrtRatioTargetX96"
                                            },
                                            "id": 5770,
                                            "name": "Identifier",
                                            "src": "2842:18:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5771,
                                            "name": "Identifier",
                                            "src": "2862:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "66616c7365",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "false"
                                            },
                                            "id": 5772,
                                            "name": "Literal",
                                            "src": "2873:5:27"
                                          }
                                        ],
                                        "id": 5773,
                                        "name": "FunctionCall",
                                        "src": "2791:88:27"
                                      }
                                    ],
                                    "id": 5774,
                                    "name": "Conditional",
                                    "src": "2655:224:27"
                                  }
                                ],
                                "id": 5775,
                                "name": "Assignment",
                                "src": "2643:236:27"
                              }
                            ],
                            "id": 5776,
                            "name": "ExpressionStatement",
                            "src": "2643:236:27"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": ">=",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "isStructConstructorCall": false,
                                      "lValueRequested": false,
                                      "names": [
                                        null
                                      ],
                                      "tryCall": false,
                                      "type": "uint256",
                                      "type_conversion": true
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_int256",
                                              "typeString": "int256"
                                            }
                                          ],
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "type": "type(uint256)"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "name": "uint256"
                                            },
                                            "id": 5777,
                                            "name": "ElementaryTypeName",
                                            "src": "2897:7:27"
                                          }
                                        ],
                                        "id": 5778,
                                        "name": "ElementaryTypeNameExpression",
                                        "src": "2897:7:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "-",
                                          "prefix": true,
                                          "type": "int256"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5680,
                                              "type": "int256",
                                              "value": "amountRemaining"
                                            },
                                            "id": 5779,
                                            "name": "Identifier",
                                            "src": "2906:15:27"
                                          }
                                        ],
                                        "id": 5780,
                                        "name": "UnaryOperation",
                                        "src": "2905:16:27"
                                      }
                                    ],
                                    "id": 5781,
                                    "name": "FunctionCall",
                                    "src": "2897:25:27"
                                  },
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5689,
                                      "type": "uint256",
                                      "value": "amountOut"
                                    },
                                    "id": 5782,
                                    "name": "Identifier",
                                    "src": "2926:9:27"
                                  }
                                ],
                                "id": 5783,
                                "name": "BinaryOperation",
                                "src": "2897:38:27"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "=",
                                      "type": "uint160"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5685,
                                          "type": "uint160",
                                          "value": "sqrtRatioNextX96"
                                        },
                                        "id": 5784,
                                        "name": "Identifier",
                                        "src": "2937:16:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5676,
                                          "type": "uint160",
                                          "value": "sqrtRatioTargetX96"
                                        },
                                        "id": 5785,
                                        "name": "Identifier",
                                        "src": "2956:18:27"
                                      }
                                    ],
                                    "id": 5786,
                                    "name": "Assignment",
                                    "src": "2937:37:27"
                                  }
                                ],
                                "id": 5787,
                                "name": "ExpressionStatement",
                                "src": "2937:37:27"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "=",
                                      "type": "uint160"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5685,
                                          "type": "uint160",
                                          "value": "sqrtRatioNextX96"
                                        },
                                        "id": 5788,
                                        "name": "Identifier",
                                        "src": "3009:16:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint160",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint256",
                                                  "typeString": "uint256"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getNextSqrtPriceFromOutput",
                                              "referencedDeclaration": 5463,
                                              "type": "function (uint160,uint128,uint256,bool) pure returns (uint160)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5789,
                                                "name": "Identifier",
                                                "src": "3028:13:27"
                                              }
                                            ],
                                            "id": 5790,
                                            "name": "MemberAccess",
                                            "src": "3028:40:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5791,
                                            "name": "Identifier",
                                            "src": "3090:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5792,
                                            "name": "Identifier",
                                            "src": "3131:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "tryCall": false,
                                              "type": "uint256",
                                              "type_conversion": true
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_int256",
                                                      "typeString": "int256"
                                                    }
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": true,
                                                  "lValueRequested": false,
                                                  "type": "type(uint256)"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "name": "uint256"
                                                    },
                                                    "id": 5793,
                                                    "name": "ElementaryTypeName",
                                                    "src": "3162:7:27"
                                                  }
                                                ],
                                                "id": 5794,
                                                "name": "ElementaryTypeNameExpression",
                                                "src": "3162:7:27"
                                              },
                                              {
                                                "attributes": {
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "-",
                                                  "prefix": true,
                                                  "type": "int256"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 5680,
                                                      "type": "int256",
                                                      "value": "amountRemaining"
                                                    },
                                                    "id": 5795,
                                                    "name": "Identifier",
                                                    "src": "3171:15:27"
                                                  }
                                                ],
                                                "id": 5796,
                                                "name": "UnaryOperation",
                                                "src": "3170:16:27"
                                              }
                                            ],
                                            "id": 5797,
                                            "name": "FunctionCall",
                                            "src": "3162:25:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5694,
                                              "type": "bool",
                                              "value": "zeroForOne"
                                            },
                                            "id": 5798,
                                            "name": "Identifier",
                                            "src": "3209:10:27"
                                          }
                                        ],
                                        "id": 5799,
                                        "name": "FunctionCall",
                                        "src": "3028:209:27"
                                      }
                                    ],
                                    "id": 5800,
                                    "name": "Assignment",
                                    "src": "3009:228:27"
                                  }
                                ],
                                "id": 5801,
                                "name": "ExpressionStatement",
                                "src": "3009:228:27"
                              }
                            ],
                            "id": 5802,
                            "name": "IfStatement",
                            "src": "2893:344:27"
                          }
                        ],
                        "id": 5803,
                        "name": "Block",
                        "src": "2629:619:27"
                      }
                    ],
                    "id": 5804,
                    "name": "IfStatement",
                    "src": "1894:1354:27"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        5806
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "mutability": "mutable",
                          "name": "max",
                          "scope": 5925,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bool",
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bool",
                              "type": "bool"
                            },
                            "id": 5805,
                            "name": "ElementaryTypeName",
                            "src": "3258:4:27"
                          }
                        ],
                        "id": 5806,
                        "name": "VariableDeclaration",
                        "src": "3258:8:27"
                      },
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_uint160",
                            "typeString": "uint160"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "==",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5676,
                              "type": "uint160",
                              "value": "sqrtRatioTargetX96"
                            },
                            "id": 5807,
                            "name": "Identifier",
                            "src": "3269:18:27"
                          },
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5685,
                              "type": "uint160",
                              "value": "sqrtRatioNextX96"
                            },
                            "id": 5808,
                            "name": "Identifier",
                            "src": "3291:16:27"
                          }
                        ],
                        "id": 5809,
                        "name": "BinaryOperation",
                        "src": "3269:38:27"
                      }
                    ],
                    "id": 5810,
                    "name": "VariableDeclarationStatement",
                    "src": "3258:49:27"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 5694,
                          "type": "bool",
                          "value": "zeroForOne"
                        },
                        "id": 5811,
                        "name": "Identifier",
                        "src": "3362:10:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5687,
                                      "type": "uint256",
                                      "value": "amountIn"
                                    },
                                    "id": 5812,
                                    "name": "Identifier",
                                    "src": "3388:8:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "&&",
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5806,
                                              "type": "bool",
                                              "value": "max"
                                            },
                                            "id": 5813,
                                            "name": "Identifier",
                                            "src": "3399:3:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5700,
                                              "type": "bool",
                                              "value": "exactIn"
                                            },
                                            "id": 5814,
                                            "name": "Identifier",
                                            "src": "3406:7:27"
                                          }
                                        ],
                                        "id": 5815,
                                        "name": "BinaryOperation",
                                        "src": "3399:14:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5687,
                                          "type": "uint256",
                                          "value": "amountIn"
                                        },
                                        "id": 5816,
                                        "name": "Identifier",
                                        "src": "3432:8:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount0Delta",
                                              "referencedDeclaration": 5533,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5817,
                                                "name": "Identifier",
                                                "src": "3459:13:27"
                                              }
                                            ],
                                            "id": 5818,
                                            "name": "MemberAccess",
                                            "src": "3459:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5685,
                                              "type": "uint160",
                                              "value": "sqrtRatioNextX96"
                                            },
                                            "id": 5819,
                                            "name": "Identifier",
                                            "src": "3489:16:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5820,
                                            "name": "Identifier",
                                            "src": "3507:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5821,
                                            "name": "Identifier",
                                            "src": "3528:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "74727565",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "true"
                                            },
                                            "id": 5822,
                                            "name": "Literal",
                                            "src": "3539:4:27"
                                          }
                                        ],
                                        "id": 5823,
                                        "name": "FunctionCall",
                                        "src": "3459:85:27"
                                      }
                                    ],
                                    "id": 5824,
                                    "name": "Conditional",
                                    "src": "3399:145:27"
                                  }
                                ],
                                "id": 5825,
                                "name": "Assignment",
                                "src": "3388:156:27"
                              }
                            ],
                            "id": 5826,
                            "name": "ExpressionStatement",
                            "src": "3388:156:27"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5689,
                                      "type": "uint256",
                                      "value": "amountOut"
                                    },
                                    "id": 5827,
                                    "name": "Identifier",
                                    "src": "3558:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "&&",
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5806,
                                              "type": "bool",
                                              "value": "max"
                                            },
                                            "id": 5828,
                                            "name": "Identifier",
                                            "src": "3570:3:27"
                                          },
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "operator": "!",
                                              "prefix": true,
                                              "type": "bool"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5700,
                                                  "type": "bool",
                                                  "value": "exactIn"
                                                },
                                                "id": 5829,
                                                "name": "Identifier",
                                                "src": "3578:7:27"
                                              }
                                            ],
                                            "id": 5830,
                                            "name": "UnaryOperation",
                                            "src": "3577:8:27"
                                          }
                                        ],
                                        "id": 5831,
                                        "name": "BinaryOperation",
                                        "src": "3570:15:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5689,
                                          "type": "uint256",
                                          "value": "amountOut"
                                        },
                                        "id": 5832,
                                        "name": "Identifier",
                                        "src": "3604:9:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount1Delta",
                                              "referencedDeclaration": 5581,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5833,
                                                "name": "Identifier",
                                                "src": "3632:13:27"
                                              }
                                            ],
                                            "id": 5834,
                                            "name": "MemberAccess",
                                            "src": "3632:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5685,
                                              "type": "uint160",
                                              "value": "sqrtRatioNextX96"
                                            },
                                            "id": 5835,
                                            "name": "Identifier",
                                            "src": "3662:16:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5836,
                                            "name": "Identifier",
                                            "src": "3680:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5837,
                                            "name": "Identifier",
                                            "src": "3701:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "66616c7365",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "false"
                                            },
                                            "id": 5838,
                                            "name": "Literal",
                                            "src": "3712:5:27"
                                          }
                                        ],
                                        "id": 5839,
                                        "name": "FunctionCall",
                                        "src": "3632:86:27"
                                      }
                                    ],
                                    "id": 5840,
                                    "name": "Conditional",
                                    "src": "3570:148:27"
                                  }
                                ],
                                "id": 5841,
                                "name": "Assignment",
                                "src": "3558:160:27"
                              }
                            ],
                            "id": 5842,
                            "name": "ExpressionStatement",
                            "src": "3558:160:27"
                          }
                        ],
                        "id": 5843,
                        "name": "Block",
                        "src": "3374:355:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5687,
                                      "type": "uint256",
                                      "value": "amountIn"
                                    },
                                    "id": 5844,
                                    "name": "Identifier",
                                    "src": "3749:8:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "&&",
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5806,
                                              "type": "bool",
                                              "value": "max"
                                            },
                                            "id": 5845,
                                            "name": "Identifier",
                                            "src": "3760:3:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5700,
                                              "type": "bool",
                                              "value": "exactIn"
                                            },
                                            "id": 5846,
                                            "name": "Identifier",
                                            "src": "3767:7:27"
                                          }
                                        ],
                                        "id": 5847,
                                        "name": "BinaryOperation",
                                        "src": "3760:14:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5687,
                                          "type": "uint256",
                                          "value": "amountIn"
                                        },
                                        "id": 5848,
                                        "name": "Identifier",
                                        "src": "3793:8:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount1Delta",
                                              "referencedDeclaration": 5581,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5849,
                                                "name": "Identifier",
                                                "src": "3820:13:27"
                                              }
                                            ],
                                            "id": 5850,
                                            "name": "MemberAccess",
                                            "src": "3820:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5851,
                                            "name": "Identifier",
                                            "src": "3850:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5685,
                                              "type": "uint160",
                                              "value": "sqrtRatioNextX96"
                                            },
                                            "id": 5852,
                                            "name": "Identifier",
                                            "src": "3871:16:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5853,
                                            "name": "Identifier",
                                            "src": "3889:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "74727565",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "true"
                                            },
                                            "id": 5854,
                                            "name": "Literal",
                                            "src": "3900:4:27"
                                          }
                                        ],
                                        "id": 5855,
                                        "name": "FunctionCall",
                                        "src": "3820:85:27"
                                      }
                                    ],
                                    "id": 5856,
                                    "name": "Conditional",
                                    "src": "3760:145:27"
                                  }
                                ],
                                "id": 5857,
                                "name": "Assignment",
                                "src": "3749:156:27"
                              }
                            ],
                            "id": 5858,
                            "name": "ExpressionStatement",
                            "src": "3749:156:27"
                          },
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5689,
                                      "type": "uint256",
                                      "value": "amountOut"
                                    },
                                    "id": 5859,
                                    "name": "Identifier",
                                    "src": "3919:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "&&",
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5806,
                                              "type": "bool",
                                              "value": "max"
                                            },
                                            "id": 5860,
                                            "name": "Identifier",
                                            "src": "3931:3:27"
                                          },
                                          {
                                            "attributes": {
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "operator": "!",
                                              "prefix": true,
                                              "type": "bool"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5700,
                                                  "type": "bool",
                                                  "value": "exactIn"
                                                },
                                                "id": 5861,
                                                "name": "Identifier",
                                                "src": "3939:7:27"
                                              }
                                            ],
                                            "id": 5862,
                                            "name": "UnaryOperation",
                                            "src": "3938:8:27"
                                          }
                                        ],
                                        "id": 5863,
                                        "name": "BinaryOperation",
                                        "src": "3931:15:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5689,
                                          "type": "uint256",
                                          "value": "amountOut"
                                        },
                                        "id": 5864,
                                        "name": "Identifier",
                                        "src": "3965:9:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint160",
                                                  "typeString": "uint160"
                                                },
                                                {
                                                  "typeIdentifier": "t_uint128",
                                                  "typeString": "uint128"
                                                },
                                                {
                                                  "typeIdentifier": "t_bool",
                                                  "typeString": "bool"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getAmount0Delta",
                                              "referencedDeclaration": 5533,
                                              "type": "function (uint160,uint160,uint128,bool) pure returns (uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 5666,
                                                  "type": "type(library SqrtPriceMath)",
                                                  "value": "SqrtPriceMath"
                                                },
                                                "id": 5865,
                                                "name": "Identifier",
                                                "src": "3993:13:27"
                                              }
                                            ],
                                            "id": 5866,
                                            "name": "MemberAccess",
                                            "src": "3993:29:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5674,
                                              "type": "uint160",
                                              "value": "sqrtRatioCurrentX96"
                                            },
                                            "id": 5867,
                                            "name": "Identifier",
                                            "src": "4023:19:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5685,
                                              "type": "uint160",
                                              "value": "sqrtRatioNextX96"
                                            },
                                            "id": 5868,
                                            "name": "Identifier",
                                            "src": "4044:16:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5678,
                                              "type": "uint128",
                                              "value": "liquidity"
                                            },
                                            "id": 5869,
                                            "name": "Identifier",
                                            "src": "4062:9:27"
                                          },
                                          {
                                            "attributes": {
                                              "hexvalue": "66616c7365",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "bool",
                                              "type": "bool",
                                              "value": "false"
                                            },
                                            "id": 5870,
                                            "name": "Literal",
                                            "src": "4073:5:27"
                                          }
                                        ],
                                        "id": 5871,
                                        "name": "FunctionCall",
                                        "src": "3993:86:27"
                                      }
                                    ],
                                    "id": 5872,
                                    "name": "Conditional",
                                    "src": "3931:148:27"
                                  }
                                ],
                                "id": 5873,
                                "name": "Assignment",
                                "src": "3919:160:27"
                              }
                            ],
                            "id": 5874,
                            "name": "ExpressionStatement",
                            "src": "3919:160:27"
                          }
                        ],
                        "id": 5875,
                        "name": "Block",
                        "src": "3735:355:27"
                      }
                    ],
                    "id": 5876,
                    "name": "IfStatement",
                    "src": "3358:732:27"
                  },
                  {
                    "attributes": {},
                    "children": [
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "&&",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "!",
                              "prefix": true,
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 5700,
                                  "type": "bool",
                                  "value": "exactIn"
                                },
                                "id": 5877,
                                "name": "Identifier",
                                "src": "4180:7:27"
                              }
                            ],
                            "id": 5878,
                            "name": "UnaryOperation",
                            "src": "4179:8:27"
                          },
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": ">",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 5689,
                                  "type": "uint256",
                                  "value": "amountOut"
                                },
                                "id": 5879,
                                "name": "Identifier",
                                "src": "4191:9:27"
                              },
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "tryCall": false,
                                  "type": "uint256",
                                  "type_conversion": true
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_int256",
                                          "typeString": "int256"
                                        }
                                      ],
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "type": "type(uint256)"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "name": "uint256"
                                        },
                                        "id": 5880,
                                        "name": "ElementaryTypeName",
                                        "src": "4203:7:27"
                                      }
                                    ],
                                    "id": 5881,
                                    "name": "ElementaryTypeNameExpression",
                                    "src": "4203:7:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "-",
                                      "prefix": true,
                                      "type": "int256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5680,
                                          "type": "int256",
                                          "value": "amountRemaining"
                                        },
                                        "id": 5882,
                                        "name": "Identifier",
                                        "src": "4212:15:27"
                                      }
                                    ],
                                    "id": 5883,
                                    "name": "UnaryOperation",
                                    "src": "4211:16:27"
                                  }
                                ],
                                "id": 5884,
                                "name": "FunctionCall",
                                "src": "4203:25:27"
                              }
                            ],
                            "id": 5885,
                            "name": "BinaryOperation",
                            "src": "4191:37:27"
                          }
                        ],
                        "id": 5886,
                        "name": "BinaryOperation",
                        "src": "4179:49:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5689,
                                      "type": "uint256",
                                      "value": "amountOut"
                                    },
                                    "id": 5887,
                                    "name": "Identifier",
                                    "src": "4244:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "isStructConstructorCall": false,
                                      "lValueRequested": false,
                                      "names": [
                                        null
                                      ],
                                      "tryCall": false,
                                      "type": "uint256",
                                      "type_conversion": true
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_int256",
                                              "typeString": "int256"
                                            }
                                          ],
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": true,
                                          "lValueRequested": false,
                                          "type": "type(uint256)"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "name": "uint256"
                                            },
                                            "id": 5888,
                                            "name": "ElementaryTypeName",
                                            "src": "4256:7:27"
                                          }
                                        ],
                                        "id": 5889,
                                        "name": "ElementaryTypeNameExpression",
                                        "src": "4256:7:27"
                                      },
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "-",
                                          "prefix": true,
                                          "type": "int256"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5680,
                                              "type": "int256",
                                              "value": "amountRemaining"
                                            },
                                            "id": 5890,
                                            "name": "Identifier",
                                            "src": "4265:15:27"
                                          }
                                        ],
                                        "id": 5891,
                                        "name": "UnaryOperation",
                                        "src": "4264:16:27"
                                      }
                                    ],
                                    "id": 5892,
                                    "name": "FunctionCall",
                                    "src": "4256:25:27"
                                  }
                                ],
                                "id": 5893,
                                "name": "Assignment",
                                "src": "4244:37:27"
                              }
                            ],
                            "id": 5894,
                            "name": "ExpressionStatement",
                            "src": "4244:37:27"
                          }
                        ],
                        "id": 5895,
                        "name": "Block",
                        "src": "4230:62:27"
                      }
                    ],
                    "id": 5896,
                    "name": "IfStatement",
                    "src": "4175:117:27"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "commonType": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "&&",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 5700,
                              "type": "bool",
                              "value": "exactIn"
                            },
                            "id": 5897,
                            "name": "Identifier",
                            "src": "4306:7:27"
                          },
                          {
                            "attributes": {
                              "commonType": {
                                "typeIdentifier": "t_uint160",
                                "typeString": "uint160"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "!=",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 5685,
                                  "type": "uint160",
                                  "value": "sqrtRatioNextX96"
                                },
                                "id": 5898,
                                "name": "Identifier",
                                "src": "4317:16:27"
                              },
                              {
                                "attributes": {
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 5676,
                                  "type": "uint160",
                                  "value": "sqrtRatioTargetX96"
                                },
                                "id": 5899,
                                "name": "Identifier",
                                "src": "4337:18:27"
                              }
                            ],
                            "id": 5900,
                            "name": "BinaryOperation",
                            "src": "4317:38:27"
                          }
                        ],
                        "id": 5901,
                        "name": "BinaryOperation",
                        "src": "4306:49:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5691,
                                      "type": "uint256",
                                      "value": "feeAmount"
                                    },
                                    "id": 5902,
                                    "name": "Identifier",
                                    "src": "4464:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "commonType": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                      },
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "operator": "-",
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "tryCall": false,
                                          "type": "uint256",
                                          "type_conversion": true
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_int256",
                                                  "typeString": "int256"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "type": "type(uint256)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "name": "uint256"
                                                },
                                                "id": 5903,
                                                "name": "ElementaryTypeName",
                                                "src": "4476:7:27"
                                              }
                                            ],
                                            "id": 5904,
                                            "name": "ElementaryTypeNameExpression",
                                            "src": "4476:7:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5680,
                                              "type": "int256",
                                              "value": "amountRemaining"
                                            },
                                            "id": 5905,
                                            "name": "Identifier",
                                            "src": "4484:15:27"
                                          }
                                        ],
                                        "id": 5906,
                                        "name": "FunctionCall",
                                        "src": "4476:24:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5687,
                                          "type": "uint256",
                                          "value": "amountIn"
                                        },
                                        "id": 5907,
                                        "name": "Identifier",
                                        "src": "4503:8:27"
                                      }
                                    ],
                                    "id": 5908,
                                    "name": "BinaryOperation",
                                    "src": "4476:35:27"
                                  }
                                ],
                                "id": 5909,
                                "name": "Assignment",
                                "src": "4464:47:27"
                              }
                            ],
                            "id": 5910,
                            "name": "ExpressionStatement",
                            "src": "4464:47:27"
                          }
                        ],
                        "id": 5911,
                        "name": "Block",
                        "src": "4357:165:27"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "=",
                                  "type": "uint256"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5691,
                                      "type": "uint256",
                                      "value": "feeAmount"
                                    },
                                    "id": 5912,
                                    "name": "Identifier",
                                    "src": "4542:9:27"
                                  },
                                  {
                                    "attributes": {
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "isStructConstructorCall": false,
                                      "lValueRequested": false,
                                      "names": [
                                        null
                                      ],
                                      "tryCall": false,
                                      "type": "uint256",
                                      "type_conversion": false
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": [
                                            {
                                              "typeIdentifier": "t_uint256",
                                              "typeString": "uint256"
                                            },
                                            {
                                              "typeIdentifier": "t_uint24",
                                              "typeString": "uint24"
                                            },
                                            {
                                              "typeIdentifier": "t_uint24",
                                              "typeString": "uint24"
                                            }
                                          ],
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "member_name": "mulDivRoundingUp",
                                          "referencedDeclaration": 3989,
                                          "type": "function (uint256,uint256,uint256) pure returns (uint256)"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 3990,
                                              "type": "type(library FullMath)",
                                              "value": "FullMath"
                                            },
                                            "id": 5913,
                                            "name": "Identifier",
                                            "src": "4554:8:27"
                                          }
                                        ],
                                        "id": 5914,
                                        "name": "MemberAccess",
                                        "src": "4554:25:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5687,
                                          "type": "uint256",
                                          "value": "amountIn"
                                        },
                                        "id": 5915,
                                        "name": "Identifier",
                                        "src": "4580:8:27"
                                      },
                                      {
                                        "attributes": {
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 5682,
                                          "type": "uint24",
                                          "value": "feePips"
                                        },
                                        "id": 5916,
                                        "name": "Identifier",
                                        "src": "4590:7:27"
                                      },
                                      {
                                        "attributes": {
                                          "commonType": {
                                            "typeIdentifier": "t_uint24",
                                            "typeString": "uint24"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "-",
                                          "type": "uint24"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "hexvalue": "316536",
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": true,
                                              "lValueRequested": false,
                                              "token": "number",
                                              "type": "int_const 1000000",
                                              "value": "1e6"
                                            },
                                            "id": 5917,
                                            "name": "Literal",
                                            "src": "4599:3:27"
                                          },
                                          {
                                            "attributes": {
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 5682,
                                              "type": "uint24",
                                              "value": "feePips"
                                            },
                                            "id": 5918,
                                            "name": "Identifier",
                                            "src": "4605:7:27"
                                          }
                                        ],
                                        "id": 5919,
                                        "name": "BinaryOperation",
                                        "src": "4599:13:27"
                                      }
                                    ],
                                    "id": 5920,
                                    "name": "FunctionCall",
                                    "src": "4554:59:27"
                                  }
                                ],
                                "id": 5921,
                                "name": "Assignment",
                                "src": "4542:71:27"
                              }
                            ],
                            "id": 5922,
                            "name": "ExpressionStatement",
                            "src": "4542:71:27"
                          }
                        ],
                        "id": 5923,
                        "name": "Block",
                        "src": "4528:96:27"
                      }
                    ],
                    "id": 5924,
                    "name": "IfStatement",
                    "src": "4302:322:27"
                  }
                ],
                "id": 5925,
                "name": "Block",
                "src": "1769:2861:27"
              }
            ],
            "id": 5926,
            "name": "FunctionDefinition",
            "src": "1391:3239:27"
          }
        ],
        "id": 5927,
        "name": "ContractDefinition",
        "src": "292:4340:27"
      }
    ],
    "id": 5928,
    "name": "SourceUnit",
    "src": "37:4596:27"
  },
  "compiler": {
    "name": "solc",
    "version": "0.7.6+commit.7338295f.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.1",
  "updatedAt": "2022-01-17T20:05:41.787Z",
  "devdoc": {
    "kind": "dev",
    "methods": {},
    "title": "Computes the result of a swap within ticks",
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "notice": "Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.",
    "version": 1
  }
}