Skip to content

Commit beb4220

Browse files
authored
Merge pull request #367 from reservoirprotocol/fix/high-price-impact-warning
Fix high price impact warning
2 parents daeb4b0 + 31b754f commit beb4220

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/fast-pans-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ export const WidgetErrorWell: FC<Props> = ({
4646
const isHighPriceImpact = Number(quote?.details?.totalImpact?.percent) < -3.5
4747
const totalImpactUsd = quote?.details?.totalImpact?.usd
4848
const showHighPriceImpactWarning =
49-
isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= 10
50-
49+
isHighPriceImpact && totalImpactUsd && Number(totalImpactUsd) <= -10
5150
const isInsufficientLiquidityError =
5251
fetchQuoteErrorMessage?.includes('No quotes found')
5352

0 commit comments

Comments
 (0)