From 0fa94c1d0955a0ff88c5c95d47846fc9614cfc83 Mon Sep 17 00:00:00 2001 From: nattadex Date: Thu, 18 Jul 2024 11:50:07 +0800 Subject: [PATCH] update add liquidity --- .../screens/Dex/DexAddLiquidity.tsx | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/mobile-app/app/screens/AppNavigator/screens/Dex/DexAddLiquidity.tsx b/mobile-app/app/screens/AppNavigator/screens/Dex/DexAddLiquidity.tsx index 648f02ab14..5324c7501d 100644 --- a/mobile-app/app/screens/AppNavigator/screens/Dex/DexAddLiquidity.tsx +++ b/mobile-app/app/screens/AppNavigator/screens/Dex/DexAddLiquidity.tsx @@ -403,15 +403,15 @@ export function AddLiquidityScreen(props: Props): JSX.Element { hasAError ? TransactionCardStatus.Error : isInputAFocus - ? TransactionCardStatus.Active - : undefined, + ? TransactionCardStatus.Active + : undefined, ); setTokenBTransactionCardStatus( hasBError ? TransactionCardStatus.Error : isInputBFocus - ? TransactionCardStatus.Active - : undefined, + ? TransactionCardStatus.Active + : undefined, ); }, [hasAError, hasBError, isInputAFocus, isInputBFocus]); @@ -443,6 +443,20 @@ export function AddLiquidityScreen(props: Props): JSX.Element { // side effect to state setPair({ ...poolpair, + tokenA: { + ...poolpair.tokenA, + displaySymbol: + poolpair.tokenA.id === "3" + ? "csUSDT" + : poolpair.tokenA.displaySymbol, + }, + tokenB: { + ...poolpair.tokenB, + displaySymbol: + poolpair.tokenB.id === "3" + ? "csUSDT" + : poolpair.tokenB.displaySymbol, + }, aSymbol, bSymbol, aToBRate: new BigNumber(poolpair.tokenB.reserve).div(