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 240bb3f + 4a1d771 commit 7e5d0d4Copy full SHA for 7e5d0d4
src/components/Swap/Swap.tsx
@@ -748,7 +748,7 @@ export const Swap: React.FC<ISwap> = ({
748
749
onSwap(
750
simulateResult.poolKey,
751
- BigInt((+slippTolerance * Number(PERCENTAGE_DENOMINATOR)) / 100),
+ BigInt(Math.round((+slippTolerance * Number(PERCENTAGE_DENOMINATOR)) / 100)),
752
simulateResult.targetSqrtPrice,
753
tokenFrom,
754
tokenTo,
@@ -777,7 +777,7 @@ export const Swap: React.FC<ISwap> = ({
777
778
779
780
781
782
783
0 commit comments