From c9a49aca0190e137685c594babf62b5b444c6194 Mon Sep 17 00:00:00 2001 From: pedromcunha Date: Mon, 11 Nov 2024 16:44:18 -0500 Subject: [PATCH 1/2] Fix high price impact warning --- packages/ui/src/components/widgets/WidgetErrorWell.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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') From 31b754fb6db153a06cb1bed6421b00c954fee941 Mon Sep 17 00:00:00 2001 From: pedromcunha Date: Mon, 11 Nov 2024 16:46:17 -0500 Subject: [PATCH 2/2] feat: changeset --- .changeset/fast-pans-sleep.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fast-pans-sleep.md 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