Skip to content

Commit

Permalink
feat: add BASE stablecoins
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Oct 31, 2024
1 parent 264f9aa commit 3450c83
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion libs/common-const/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,60 @@ export const DAI_BASE = new TokenWithLogo(
'Dai Stablecoin',
)

export const DOLA_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0x4621b7A9c75199271F773Ebd9A499dbd165c3191', SupportedChainId.BASE),
SupportedChainId.BASE,
'0x4621b7A9c75199271F773Ebd9A499dbd165c3191',
18,
'DOLA',
'Dola USD Stablecoin',
)

export const USDZ_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0x04d5ddf5f3a8939889f11e97f8c4bb48317f1938', SupportedChainId.BASE),
SupportedChainId.BASE,
'0x04d5ddf5f3a8939889f11e97f8c4bb48317f1938',
18,
'USDz',
'USDz',
)

export const EURC_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42', SupportedChainId.BASE),
SupportedChainId.BASE,
'0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42',
18,
'EURC',
'EURC',
)

export const CGUSD_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0xca72827a3d211cfd8f6b00ac98824872b72cab49', SupportedChainId.BASE),
SupportedChainId.BASE,
'0xca72827a3d211cfd8f6b00ac98824872b72cab49',
18,
'cgUSD',
'Cygnus Global USD',
)

export const USD_PLUS_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0xb79dd08ea68a908a97220c76d19a6aa9cbde4376', SupportedChainId.BASE),
SupportedChainId.BASE,
'0xb79dd08ea68a908a97220c76d19a6aa9cbde4376',
18,
'USD+',
'USD+',
)

export const EUSD_BASE = new TokenWithLogo(
cowprotocolTokenLogoUrl('0xcfa3ef56d303ae4faaba0592388f19d7c3399fb4', SupportedChainId.BASE),
SupportedChainId.BASE,
'0xcfa3ef56d303ae4faaba0592388f19d7c3399fb4',
18,
'eUSD',
'Electronic Dollar',
)

// Sepolia

export const GNO_SEPOLIA = new TokenWithLogo(
Expand Down Expand Up @@ -308,7 +362,6 @@ const V_COW_TOKEN_SEPOLIA = new TokenWithLogo(
'CoW Protocol Virtual Token',
)

// TODO: V_COW not present in all chains, make sure code using it can handle that
export const V_COW: Record<SupportedChainId, TokenWithLogo | null> = {
[SupportedChainId.MAINNET]: V_COW_TOKEN_MAINNET,
[SupportedChainId.GNOSIS_CHAIN]: V_COW_TOKEN_XDAI,
Expand Down Expand Up @@ -407,11 +460,23 @@ const ARBITRUM_ONE_STABLECOINS = [
MIM_ARBITRUM_ONE.address,
].map((t) => t.toLowerCase())

const _BASE_STABLECOINS = [
USDC_BASE.address,
DAI_BASE.address,
DOLA_BASE.address,
USDZ_BASE.address,
EURC_BASE.address,
CGUSD_BASE.address,
USD_PLUS_BASE.address,
EUSD_BASE.address,
]

export const STABLECOINS: Record<ChainId, Set<string>> = {
[SupportedChainId.MAINNET]: new Set(),
[SupportedChainId.GNOSIS_CHAIN]: new Set(GNOSIS_CHAIN_STABLECOINS),
[SupportedChainId.ARBITRUM_ONE]: new Set(ARBITRUM_ONE_STABLECOINS),
[SupportedChainId.SEPOLIA]: new Set(),
[SupportedChainId.BASE]: new Set(),
}

/**
Expand Down

0 comments on commit 3450c83

Please sign in to comment.