diff --git a/.changeset/fast-pans-sleep.md b/.changeset/fast-pans-sleep.md new file mode 100644 index 00000000..10961543 --- /dev/null +++ b/.changeset/fast-pans-sleep.md @@ -0,0 +1,5 @@ +--- +'@reservoir0x/relay-kit-ui': patch +--- + +Fix high price impact warning diff --git a/packages/ui/src/components/widgets/WidgetErrorWell.tsx b/packages/ui/src/components/widgets/WidgetErrorWell.tsx index 6546ed18..02967f9d 100644 --- a/packages/ui/src/components/widgets/WidgetErrorWell.tsx +++ b/packages/ui/src/components/widgets/WidgetErrorWell.tsx @@ -44,8 +44,7 @@ export const WidgetErrorWell: FC = ({ const isHighPriceImpact = Number(quote?.details?.totalImpact?.percent) < -3.5 const totalImpactUsd = quote?.details?.totalImpact?.usd const showHighPriceImpactWarning = - isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= 10 - + isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= -10 const isInsufficientLiquidityError = fetchQuoteErrorMessage?.includes('No quotes found')