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
1 change: 1 addition & 0 deletions packages/automation-scripts/src/erc20/coingecko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const coingeckoPlatformMapping: Record<string, string | undefined> = {
'optimistic-ethereum': EvmIdMap.optimism,
'polygon-pos': EvmIdMap.polygon,
'arbitrum-one': EvmIdMap.arbitrum,
base: EvmIdMap.base,
fantom: EvmIdMap.fantom,
};

Expand Down
13 changes: 13 additions & 0 deletions packages/coins/src/evm/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,17 @@ export default [
chain: 42161,
color: '#12AAFF',
},
{
id: 'base',
abbr: 'ETH',
name: 'Base',
magnitude: 18,
isTest: false,
coinGeckoId: 'ethereum',
coinIndex: '8000003c',
feesUnit: 'Gwei',
network: 'base',
chain: 8453,
color: '#0052FF',
},
];
2 changes: 2 additions & 0 deletions packages/coins/src/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const EvmIdMap = {
avalanche: 'avalanche',
arbitrum: 'arbitrum',
optimism: 'optimism',
base: 'base',
} as const;

export type EvmId = (typeof EvmIdMap)[keyof typeof EvmIdMap];
Expand Down Expand Up @@ -61,6 +62,7 @@ const coinSpecificUnits: Record<string, ICoinUnit[]> = {
],
[EvmIdMap.arbitrum]: units,
[EvmIdMap.optimism]: units,
[EvmIdMap.base]: units,
};

export const evmCoinList: Record<string, IEvmCoinInfo> = coinList.reduce<
Expand Down
2 changes: 2 additions & 0 deletions packages/cysync-core/src/components/CoinIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
FantomIcon,
PolygonIcon,
OptimismIcon,
BaseIcon,
SolanaIcon,
NearIcon,
MediaQuery,
Expand Down Expand Up @@ -47,6 +48,7 @@ const coinToIconMap: Record<string, React.FC<IconProps> | undefined> = {
[EvmIdMap.ethereum]: EthereumIcon,
[EvmIdMap.arbitrum]: ArbitrumIcon,
[EvmIdMap.optimism]: OptimismIcon,
[EvmIdMap.base]: BaseIcon,
[EvmIdMap.binance]: BinanceIcon,
[EvmIdMap.polygon]: PolygonIcon,
[EvmIdMap.fantom]: FantomIcon,
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/icons/base-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.