replace sol logo

This commit is contained in:
saml33 2022-12-08 10:03:56 +11:00
parent 95a165fc67
commit 7a736158f7
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { Group } from '@blockworks-foundation/mango-v4'
import { WRAPPED_SOL_MINT } from '@project-serum/serum/lib/token-instructions'
import { CLUSTER } from '@store/mangoStore'
import { useQuery } from '@tanstack/react-query'
import useMangoGroup from 'hooks/useMangoGroup'
@ -41,6 +42,15 @@ const useJupiterMints = (): {
}
)
if (res?.data?.mangoTokens.length) {
const findSol = res.data.mangoTokens.find(
(t) => t.address === WRAPPED_SOL_MINT.toString()
)
if (findSol) {
findSol.logoURI = '/icons/sol.svg'
}
}
return {
mangoTokens: res?.data?.mangoTokens || [],
jupiterTokens: res?.data?.jupiterTokens || [],