Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/common-const/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const COW_CONTRACT_ADDRESS: Record<SupportedChainId, string | null> = {
[SupportedChainId.POLYGON]: '0x2f4efd3aa42e15a1ec6114547151b63ee5d39958',
[SupportedChainId.AVALANCHE]: null,
[SupportedChainId.LENS]: null,
[SupportedChainId.BNB]: null, // TODO: add BNB COW token address when available
[SupportedChainId.BNB]: '0x5bfdaa3f7c28b9994b56135403bf1acea02595b0',
[SupportedChainId.LINEA]: null,
[SupportedChainId.PLASMA]: null,
}
Expand Down
7 changes: 6 additions & 1 deletion libs/common-const/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,12 @@ const COW_TOKEN_SYMBOL = 'COW'
const COW_TOKEN_NAME = 'CoW Protocol Token'
const COW_TOKEN_DECIMALS = 18

function getCowTokenForChain(chain: SupportedChainId, logoURI?: string): TokenWithLogo | null {
const DEFAULT_LOGO_URI = cowprotocolTokenLogoUrl(
COW_CONTRACT_ADDRESS[SupportedChainId.MAINNET]!.toLowerCase(),
SupportedChainId.MAINNET,
)

function getCowTokenForChain(chain: SupportedChainId, logoURI: string = DEFAULT_LOGO_URI): TokenWithLogo | null {
const address = COW_CONTRACT_ADDRESS[chain]

if (!address) return null
Expand Down
2 changes: 2 additions & 0 deletions libs/tokens/src/const/defaultFavoriteTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
CBBTC_BASE,
COW_TOKEN_ARBITRUM,
COW_TOKEN_BASE,
COW_TOKEN_BNB,
COW_TOKEN_MAINNET,
COW_TOKEN_SEPOLIA,
COW_TOKEN_XDAI,
Expand Down Expand Up @@ -119,6 +120,7 @@ export const DEFAULT_FAVORITE_TOKENS: Record<SupportedChainId, TokensMap> = {
BUSD_BNB,
DAI_BNB,
BTCB_BNB,
COW_TOKEN_BNB,
]),
[SupportedChainId.LINEA]: tokensListToMap([WRAPPED_NATIVE_CURRENCIES[SupportedChainId.LINEA], USDC_LINEA]),
[SupportedChainId.PLASMA]: tokensListToMap([WRAPPED_NATIVE_CURRENCIES[SupportedChainId.PLASMA], USDT_PLASMA]),
Expand Down