Function useSquidRoute

  • Parameters

    • amountError: null | string
    • debouncedTokenAmountIn: string
    • Optional destinationAsset: SkipSupportedAsset
    • Optional destinationChain: SkipSupportedChainData
    • Optional destinationAddress: string
    • Optional debouncedSettings: {
          arrivalGas: boolean;
          boost: boolean;
          slippage: number;
      }
      • arrivalGas: boolean
      • boost: boolean
      • slippage: number
    • Optional sourceAsset: SkipSupportedAsset
    • Optional sourceChain: SkipSupportedChainData
    • Optional userEvmAddress: string
    • Optional disableRevalidation: boolean
    • Optional enabled: boolean

    Returns {
        amountOut: string;
        isLoadingRoute: boolean;
        routeError: any;
        routeResponse: undefined | RouteData;
    }

    • amountOut: string
    • isLoadingRoute: boolean
    • routeError: any
    • routeResponse: undefined | RouteData