Function usePriceImpact

  • Parameters

    Returns {
        priceImpactPercentage: undefined;
        usdAmountIn: undefined;
        usdAmountOut: undefined;
        warning: undefined;
    } | {
        priceImpactPercentage: undefined;
        usdAmountIn: undefined;
        usdAmountOut: undefined;
        warning: "LOW_INFO_WARNING";
    } | {
        priceImpactPercentage: BigNumber;
        usdAmountIn: undefined;
        usdAmountOut: undefined;
        warning: "CAUTION_WARNING";
    } | {
        priceImpactPercentage: BigNumber;
        usdAmountIn: BigNumber;
        usdAmountOut: BigNumber;
        warning: "REQUEST_CONFIRMATION";
    } | {
        priceImpactPercentage: undefined;
        usdAmountIn: undefined;
        usdAmountOut: undefined;
        warning: "NONE";
    }