-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconst.ts
More file actions
44 lines (41 loc) · 1.32 KB
/
const.ts
File metadata and controls
44 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { SupportedChainId } from '@cowprotocol/cow-sdk';
import BigNumber from 'bignumber.js';
interface TokenAddressAndDecimals {
address: string;
decimals: number;
}
export const USDC: Record<SupportedChainId, TokenAddressAndDecimals> = {
[SupportedChainId.MAINNET]: {
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
decimals: 6,
},
[SupportedChainId.GNOSIS_CHAIN]: {
address: '0x2a22f9c3b484c3629090feed35f17ff8f88f76f0',
decimals: 6,
},
[SupportedChainId.ARBITRUM_ONE]: {
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
decimals: 6,
},
[SupportedChainId.BASE]: {
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
decimals: 6,
},
[SupportedChainId.POLYGON]: {
// https://polygonscan.com/address/0x3c499c542cef5e3811e1192ce70d8cc03d5c3359
address: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359',
decimals: 6,
},
[SupportedChainId.AVALANCHE]: {
// https://snowtrace.io/token/0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e
address: '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e',
decimals: 6,
},
[SupportedChainId.SEPOLIA]: {
address: '0xbe72E441BF55620febc26715db68d3494213D8Cb',
decimals: 18,
},
};
export const ZeroBigNumber = new BigNumber(0);
export const OneBigNumber = new BigNumber(1);
export const TenBigNumber = new BigNumber(10);