Skip to content

Commit 7b662c8

Browse files
committed
fix: default to mainnet logo for COW token
1 parent d9557ff commit 7b662c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/common-const/src/tokens.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,12 @@ const COW_TOKEN_SYMBOL = 'COW'
595595
const COW_TOKEN_NAME = 'CoW Protocol Token'
596596
const COW_TOKEN_DECIMALS = 18
597597

598-
function getCowTokenForChain(chain: SupportedChainId, logoURI?: string): TokenWithLogo | null {
598+
const DEFAULT_LOGO_URI = cowprotocolTokenLogoUrl(
599+
COW_CONTRACT_ADDRESS[SupportedChainId.MAINNET]!.toLowerCase(),
600+
SupportedChainId.MAINNET,
601+
)
602+
603+
function getCowTokenForChain(chain: SupportedChainId, logoURI: string = DEFAULT_LOGO_URI): TokenWithLogo | null {
599604
const address = COW_CONTRACT_ADDRESS[chain]
600605

601606
if (!address) return null

0 commit comments

Comments
 (0)