From 765af614b09e99f0373ca665f43be833268ec4f0 Mon Sep 17 00:00:00 2001 From: ben2x4 <86395884+ben2x4@users.noreply.github.com> Date: Sun, 6 Feb 2022 19:54:46 -0800 Subject: [PATCH] V1.0.1 feedback (#157) * fix underlying asset decimal calculation * fix typo --- features/liquidity/components/ManageLiquidityCard.tsx | 2 +- features/swap/hooks/useTokenSwap.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/liquidity/components/ManageLiquidityCard.tsx b/features/liquidity/components/ManageLiquidityCard.tsx index 673c3fdc..2000963d 100644 --- a/features/liquidity/components/ManageLiquidityCard.tsx +++ b/features/liquidity/components/ManageLiquidityCard.tsx @@ -38,7 +38,7 @@ export const ManageLiquidityCard = ({ const providedLiquidity = myReserve?.[0] > 0 const tokenAReserve = formatTokenBalance( - convertMicroDenomToDenom(myReserve[0], tokenB.decimals), + convertMicroDenomToDenom(myReserve[0], tokenA.decimals), { includeCommaSeparation: true } ) const tokenBReserve = formatTokenBalance( diff --git a/features/swap/hooks/useTokenSwap.tsx b/features/swap/hooks/useTokenSwap.tsx index bca8f410..0747bfb7 100644 --- a/features/swap/hooks/useTokenSwap.tsx +++ b/features/swap/hooks/useTokenSwap.tsx @@ -107,7 +107,7 @@ export const useTokenSwap = ({ toast.custom((t) => ( } color="valid" />} - title="Swap successfull!" + title="Swap successful!" onClose={() => toast.dismiss(t.id)} /> ))