diff --git a/libs/defi/oeth/src/redeem/components/Swapper.tsx b/libs/defi/oeth/src/redeem/components/Swapper.tsx index c24f1ecf0..ef27c1223 100644 --- a/libs/defi/oeth/src/redeem/components/Swapper.tsx +++ b/libs/defi/oeth/src/redeem/components/Swapper.tsx @@ -40,11 +40,7 @@ import { useSwapState, useWatchBalance, } from '@origin/shared/providers'; -import { - formatError, - getFormatPrecision, - isNilOrEmpty, -} from '@origin/shared/utils'; +import { formatError, isNilOrEmpty } from '@origin/shared/utils'; import { format, from, mul } from 'dnum'; import { useIntl } from 'react-intl'; import { useAccount } from 'wagmi'; @@ -344,7 +340,7 @@ function SwapperWrapped({ amountIn === 0n; return ( - + @@ -399,7 +395,7 @@ function SwapperWrapped({ borderColor: 'divider', }} > - + {format([amountOut ?? 0n, tokenOut?.decimals ?? 18], { - digits: getFormatPrecision([ - amountOut ?? 0n, - tokenOut?.decimals ?? 18, - ]), + digits: 18, decimalsRounding: 'ROUND_DOWN', })}