From 399f0a231b78a19735bfe3a8a8456032d837b0ea Mon Sep 17 00:00:00 2001 From: man0s <95379755+losman0s@users.noreply.github.com> Date: Mon, 18 Sep 2023 00:58:07 +0800 Subject: [PATCH] checkpoint --- .../src/components/Staking/StakingCard/StakingCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marginfi-v2-ui/src/components/Staking/StakingCard/StakingCard.tsx b/apps/marginfi-v2-ui/src/components/Staking/StakingCard/StakingCard.tsx index fce5fa4375..92a6c42aef 100644 --- a/apps/marginfi-v2-ui/src/components/Staking/StakingCard/StakingCard.tsx +++ b/apps/marginfi-v2-ui/src/components/Staking/StakingCard/StakingCard.tsx @@ -220,7 +220,7 @@ export const StakingCard: FC = () => { const priceImpact = Number(newQuote.priceImpactPct); const displayedPriceImpact = Number(quoteResponseMeta.quoteResponse.priceImpactPct); const priceImpactIncrease = (priceImpact - displayedPriceImpact) / displayedPriceImpact; - if (displayedPriceImpact > 0 && priceImpactIncrease > 0.001) { + if (displayedPriceImpact > 0 && priceImpact >= 0.01 && priceImpactIncrease > 0.001) { throw new Error("Price impact increased too much from quote, please try again"); }