-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathmusd.ts
More file actions
49 lines (41 loc) · 1.57 KB
/
musd.ts
File metadata and controls
49 lines (41 loc) · 1.57 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
45
46
47
48
49
/**
* mUSD Conversion Constants for Earn namespace
*/
import { CHAIN_IDS } from '@metamask/transaction-controller';
import { Hex } from '@metamask/utils';
import MusdIcon from '../../../../images/musd-icon-2x.png';
export const MUSD_TOKEN = {
symbol: 'MUSD',
name: 'MUSD',
decimals: 6,
imageSource: MusdIcon,
} as const;
export const MUSD_CONVERSION_DEFAULT_CHAIN_ID = CHAIN_IDS.MAINNET;
export const MUSD_TOKEN_ADDRESS_BY_CHAIN: Record<Hex, Hex> = {
[CHAIN_IDS.MAINNET]: '0xaca92e438df0b2401ff60da7e4337b687a2435da',
[CHAIN_IDS.LINEA_MAINNET]: '0xaca92e438df0b2401ff60da7e4337b687a2435da',
[CHAIN_IDS.BSC]: '0xaca92e438df0b2401ff60da7e4337b687a2435da',
};
/**
* Chains where mUSD CTA should show (buy routes available).
* BSC is excluded as buy routes are not yet available.
*/
export const MUSD_BUYABLE_CHAIN_IDS: Hex[] = [
CHAIN_IDS.MAINNET,
CHAIN_IDS.LINEA_MAINNET,
// CHAIN_IDS.BSC, // TODO: Uncomment once buy routes are available
];
export const MUSD_TOKEN_ASSET_ID_BY_CHAIN: Record<Hex, string> = {
[CHAIN_IDS.MAINNET]:
'eip155:1/erc20:0xacA92E438df0B2401fF60dA7E4337B687a2435DA',
[CHAIN_IDS.LINEA_MAINNET]:
'eip155:59144/erc20:0xacA92E438df0B2401fF60dA7E4337B687a2435DA',
[CHAIN_IDS.BSC]: 'eip155:56/erc20:0xacA92E438df0B2401fF60dA7E4337B687a2435DA',
};
export const MUSD_CURRENCY = 'MUSD';
export const MUSD_CONVERSION_APY = 3;
/**
* Default blocked countries for mUSD conversion when no remote or env config is available.
* This is a safety fallback to ensure geo-blocking is always active.
*/
export const DEFAULT_MUSD_BLOCKED_COUNTRIES = ['GB'];