Skip to content

Commit

Permalink
🩹 clmm info cache have owner checker 2
Browse files Browse the repository at this point in the history
  • Loading branch information
edsolater committed Dec 21, 2023
1 parent eddeda9 commit 7c9f3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application/concentrated/useConcentratedInfoLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export default function useConcentratedInfoLoader() {
}
},
// if is waiting token acc, wait longer, if it's refresh wait 500ms, if it's firs time loading set to 0
isWaitingTokenAcc ? 1000 : useConcentrated.getState().sdkParsedAmmPools.length > 0 ? 500 : 0,
+50 /* ensure token parse is after cache clear */
(isWaitingTokenAcc ? 1000 : useConcentrated.getState().sdkParsedAmmPools.length > 0 ? 500 : 0) +
50 /* ensure token parse is after cache clear */
)
}, [apiAmmPools, connection, toPubString(owner), toPubString(tokenAccountsOwner), chainTimeOffset, tokenAccounts])

Expand Down

1 comment on commit 7c9f3d1

@vercel
Copy link

@vercel vercel bot commented on 7c9f3d1 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.