Skip to content

Commit

Permalink
update add liquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
nattadex committed Jul 18, 2024
1 parent 5200955 commit 0fa94c1
Showing 1 changed file with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0fa94c1

Please sign in to comment.