We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents daeb4b0 + 31b754f commit beb4220Copy full SHA for beb4220
.changeset/fast-pans-sleep.md
@@ -0,0 +1,5 @@
1
+---
2
+'@reservoir0x/relay-kit-ui': patch
3
4
+
5
+Fix high price impact warning
packages/ui/src/components/widgets/WidgetErrorWell.tsx
@@ -46,8 +46,7 @@ export const WidgetErrorWell: FC<Props> = ({
46
const isHighPriceImpact = Number(quote?.details?.totalImpact?.percent) < -3.5
47
const totalImpactUsd = quote?.details?.totalImpact?.usd
48
const showHighPriceImpactWarning =
49
- isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= 10
50
-
+ isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= -10
51
const isInsufficientLiquidityError =
52
fetchQuoteErrorMessage?.includes('No quotes found')
53
0 commit comments