[
  {
    "type": "constructor",
    "inputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "FACTORY",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IUmbraeLBFactory"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "UPGRADE_INTERFACE_VERSION",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "WETH",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "addLiquidity",
    "inputs": [
      {
        "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": "minTotalLiquidity",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "activeIdDesired",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "idSlippage",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "deltaIds",
        "type": "int256[]",
        "internalType": "int256[]"
      },
      {
        "name": "distributionX",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "distributionY",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "to",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "deadline",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "liquidityMinted",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "getDetailedSwapQuote",
    "inputs": [
      {
        "name": "amountIn",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "path",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "binSteps",
        "type": "uint16[]",
        "internalType": "uint16[]"
      },
      {
        "name": "pools",
        "type": "address[]",
        "internalType": "address[]"
      }
    ],
    "outputs": [
      {
        "name": "amountOut",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "consumedAmountIn",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "feesPerHop",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "priceImpact",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountsPerHop",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "activeBinsPerPair",
        "type": "uint24[]",
        "internalType": "uint24[]"
      },
      {
        "name": "liquidityExhausted",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "getSwapOut",
    "inputs": [
      {
        "name": "amountIn",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "path",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "binSteps",
        "type": "uint16[]",
        "internalType": "uint16[]"
      }
    ],
    "outputs": [
      {
        "name": "amountOut",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "initialize",
    "inputs": [
      {
        "name": "factory_",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "weth_",
        "type": "address",
        "internalType": "address"
      },
      {
        "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": "removeLiquidity",
    "inputs": [
      {
        "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": "amountXMin",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountYMin",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "ids",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "amounts",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "to",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "deadline",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amountX",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountY",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "renounceOwnership",
    "inputs": [],
    "outputs": [],
    "stateMutability": "pure"
  },
  {
    "type": "function",
    "name": "rescuePairLp",
    "inputs": [
      {
        "name": "pair",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "ids",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "amounts",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "to",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "setViewer",
    "inputs": [
      {
        "name": "viewer_",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "swapExactTokensForTokens",
    "inputs": [
      {
        "name": "amountIn",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amountOutMin",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "path",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "binSteps",
        "type": "uint16[]",
        "internalType": "uint16[]"
      },
      {
        "name": "pools",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "to",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "deadline",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amountOut",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "swapTokensForExactTokens",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "",
        "type": "uint16[]",
        "internalType": "uint16[]"
      },
      {
        "name": "",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "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": "PairLpRescued",
    "inputs": [
      {
        "name": "pair",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "to",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "ids",
        "type": "uint256[]",
        "indexed": false,
        "internalType": "uint256[]"
      },
      {
        "name": "amounts",
        "type": "uint256[]",
        "indexed": false,
        "internalType": "uint256[]"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "RouterInitialized",
    "inputs": [
      {
        "name": "factory",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "weth",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "owner",
        "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": "ERC1967InvalidImplementation",
    "inputs": [
      {
        "name": "implementation",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "ERC1967NonPayable",
    "inputs": []
  },
  {
    "type": "error",
    "name": "FailedCall",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InvalidInitialization",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ActiveBinRequiresBothSides",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ActiveBinRequiresBothSides",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ActiveIdSlippage",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ActiveIdSlippage",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ExactOutputSwapsDisabled",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ExcessiveInputAmount",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__Expired",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ExplicitPoolsRequired",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__FeeOnTransferNotSupported",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InsufficientAmountOut",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidDistribution",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidDistribution",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidPath",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidPath",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidPath",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidPool",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__InvalidToken",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__NoQuotablePool",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__PairNotFound",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__StatedAmountExceeded",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__UnexpectedTokenBalance",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__UnexpectedTokenBalance",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__UnsupportedDecimals",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__UnsupportedDecimals",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__UntrackedPairBalance",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ViewerNotSet",
    "inputs": []
  },
  {
    "type": "error",
    "name": "LBRouter__ZeroAmount",
    "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": "ReentrancyGuardReentrantCall",
    "inputs": []
  },
  {
    "type": "error",
    "name": "RenounceOwnershipDisabled",
    "inputs": []
  },
  {
    "type": "error",
    "name": "TransferHelper__NoCode",
    "inputs": []
  },
  {
    "type": "error",
    "name": "TransferHelper__TransferFromFailed",
    "inputs": []
  },
  {
    "type": "error",
    "name": "TransferHelper__TransferFromReturnedFalse",
    "inputs": []
  },
  {
    "type": "error",
    "name": "UUPSUnauthorizedCallContext",
    "inputs": []
  },
  {
    "type": "error",
    "name": "UUPSUnsupportedProxiableUUID",
    "inputs": [
      {
        "name": "slot",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ]
  }
]