[
  {
    "type": "constructor",
    "inputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "UPGRADE_INTERFACE_VERSION",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "calculateExpectedAddLiquidityAmounts",
    "inputs": [
      {
        "name": "positionManager",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenX",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenY",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "binStep",
        "type": "uint16",
        "internalType": "uint16"
      },
      {
        "name": "baseFactor",
        "type": "uint16",
        "internalType": "uint16"
      },
      {
        "name": "binIds",
        "type": "uint24[]",
        "internalType": "uint24[]"
      },
      {
        "name": "liquidityAmounts",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "outputs": [
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "calculateExpectedStrategyAmounts",
    "inputs": [
      {
        "name": "positionManager",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenX",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenY",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "binStep",
        "type": "uint16",
        "internalType": "uint16"
      },
      {
        "name": "baseFactor",
        "type": "uint16",
        "internalType": "uint16"
      },
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "strategy",
        "type": "uint8",
        "internalType": "enum IPositionNFTManager.Strategy"
      },
      {
        "name": "binRange",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "bidAskRatio",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "centerBinId",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "skipActiveBin",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [
      {
        "name": "usedX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "usedY",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "binIds",
        "type": "uint24[]",
        "internalType": "uint24[]"
      },
      {
        "name": "liquidityAmounts",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "calculateStrategyDistribution",
    "inputs": [
      {
        "name": "pair",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "binStep",
        "type": "uint16",
        "internalType": "uint16"
      },
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "strategy",
        "type": "uint8",
        "internalType": "enum IPositionNFTManager.Strategy"
      },
      {
        "name": "binRange",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "bidAskRatio",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "centerBinId",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "skipActiveBin",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [
      {
        "name": "usedX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "usedY",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "binIds",
        "type": "uint24[]",
        "internalType": "uint24[]"
      },
      {
        "name": "liquidityAmounts",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "calculateWithdrawalAmounts",
    "inputs": [
      {
        "name": "positionManager",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "bps",
        "type": "uint16",
        "internalType": "uint16"
      }
    ],
    "outputs": [
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "lpAmountsToRemove",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "getClaimableFees",
    "inputs": [
      {
        "name": "positionManager",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "initialize",
    "inputs": [
      {
        "name": "owner_",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "owner",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "proxiableUUID",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "renounceOwnership",
    "inputs": [],
    "outputs": [],
    "stateMutability": "pure"
  },
  {
    "type": "function",
    "name": "transferOwnership",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "upgradeToAndCall",
    "inputs": [
      {
        "name": "newImplementation",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "type": "event",
    "name": "Initialized",
    "inputs": [
      {
        "name": "version",
        "type": "uint64",
        "indexed": false,
        "internalType": "uint64"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "OwnershipTransferred",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "Upgraded",
    "inputs": [
      {
        "name": "implementation",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "error",
    "name": "AddressEmptyCode",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "ArrayLengthMismatch",
    "inputs": []
  },
  {
    "type": "error",
    "name": "ERC1967InvalidImplementation",
    "inputs": [
      {
        "name": "implementation",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "ERC1967NonPayable",
    "inputs": []
  },
  {
    "type": "error",
    "name": "FailedCall",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InvalidBps",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InvalidInitialization",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InvalidScopedFeeClaimState",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LiquidityCalculator__PriceOutOfRange",
    "inputs": []
  },
  {
    "type": "error",
    "name": "NotInitializing",
    "inputs": []
  },
  {
    "type": "error",
    "name": "OwnableInvalidOwner",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "OwnableUnauthorizedAccount",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "PairNotFound",
    "inputs": []
  },
  {
    "type": "error",
    "name": "RenounceOwnershipDisabled",
    "inputs": []
  },
  {
    "type": "error",
    "name": "UUPSUnauthorizedCallContext",
    "inputs": []
  },
  {
    "type": "error",
    "name": "UUPSUnsupportedProxiableUUID",
    "inputs": [
      {
        "name": "slot",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ]
  }
]