Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
losman0s committed Sep 17, 2023
1 parent fc49295 commit 399f0a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 399f0a2

Please sign in to comment.