Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 050a4b4

Browse files
committed
fix amm update key
1 parent 1f905a0 commit 050a4b4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/store/liquidity.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,11 @@ function checkLiquidity(poolInfos: { [poolId: string]: liquidityItemApi }, offic
243243
} else {
244244
for (let itemIndex = 0; itemIndex < LIQUIDITY_POOLS.length; itemIndex += 1) {
245245
if (
246-
LIQUIDITY_POOLS[itemIndex].ammId === itemLiquidity.ammId &&
247-
LIQUIDITY_POOLS[itemIndex].name !== itemLiquidity.name &&
248-
LIQUIDITY_POOLS[itemIndex].official !== itemLiquidity.official
246+
LIQUIDITY_POOLS[itemIndex].ammId === itemLiquidity.ammId && (
247+
LIQUIDITY_POOLS[itemIndex].name !== itemLiquidity.name ||
248+
LIQUIDITY_POOLS[itemIndex].official !== itemLiquidity.official ||
249+
LIQUIDITY_POOLS[itemIndex].serumMarket !== itemLiquidity.serumMarket
250+
)
249251
) {
250252
LIQUIDITY_POOLS[itemIndex] = itemLiquidity
251253
}

0 commit comments

Comments
 (0)