Skip to content

Commit 17eaeff

Browse files
committed
feat: add etherlink and MSU pricing and multicall
1 parent 3ca081c commit 17eaeff

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

packages/assets-controllers/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add multicall address for `MSU (MapleStory Universe)` ([#7453](https://github.com/MetaMask/core/pull/7453))
13+
- Add MSU (MapleStory Universe) and Etherlink in Spot Prices support ([#7453](https://github.com/MetaMask/core/pull/7453))
14+
15+
### Changed
16+
17+
- Populate Monad Spot Prices info (instead of set to `null`) ([#7453](https://github.com/MetaMask/core/pull/7453))
18+
1019
## [94.0.0]
1120

1221
### Added

packages/assets-controllers/src/multicall.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = {
7272
'0xe9fe': '0xcA11bde05977b3631167028862bE2a173976CA11',
7373
'0xd3a0': '0xcA11bde05977b3631167028862bE2a173976CA11',
7474
'0x84444': '0xcA11bde05977b3631167028862bE2a173976CA11',
75+
// Rootstock, bytecode OK and referenced as "RSK" in https://www.multicall3.com/deployments
7576
'0x1e': '0xcA11bde05977b3631167028862bE2a173976CA11',
7677
'0x1f': '0xcA11bde05977b3631167028862bE2a173976CA11',
7778
'0x2329': '0xcA11bde05977b3631167028862bE2a173976CA11',
@@ -177,6 +178,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = {
177178
'0x45b': '0xcA11bde05977b3631167028862bE2a173976CA11',
178179
'0x3d': '0xcA11bde05977b3631167028862bE2a173976CA11',
179180
'0x41a6ace': '0xcA11bde05977b3631167028862bE2a173976CA11',
181+
// Etherlink mainnet, bytecode OK and referenced in https://www.multicall3.com/deployments
180182
'0xa729': '0xcA11bde05977b3631167028862bE2a173976CA11',
181183
'0x1f47b': '0xcA11bde05977b3631167028862bE2a173976CA11',
182184
'0x1b59': '0xca11bde05977b3631167028862be2a173976ca11',
@@ -246,6 +248,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = {
246248
'0x46f': '0xcA11bde05977b3631167028862bE2a173976CA11',
247249
'0x659': '0xca11bde05977b3631167028862be2a173976ca11',
248250
'0x139c968f9': '0xcA11bde05977b3631167028862bE2a173976CA11',
251+
// BOB, bytecode OK and referenced in https://www.multicall3.com/deployments
249252
'0xed88': '0xcA11bde05977b3631167028862bE2a173976CA11',
250253
'0xd036': '0xcA11bde05977b3631167028862bE2a173976CA11',
251254
'0x1f3': '0xcA11bde05977b3631167028862bE2a173976CA11',
@@ -301,6 +304,8 @@ const MULTICALL_CONTRACT_BY_CHAINID = {
301304
'0x18c7': '0xcA11bde05977b3631167028862bE2a173976CA11',
302305
// MegaETH mainnet, contract found matching multicall3 bytecode
303306
'0x10e6': '0xcA11bde05977b3631167028862bE2a173976CA11',
307+
// MSU (contract they deployed by their team for us)
308+
'0x10b3e': '0x99423C88EB5723A590b4C644426069042f137B9e',
304309
} as Record<Hex, Hex>;
305310

306311
const multicallAbi = [

packages/assets-controllers/src/token-prices-service/codefi-v2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const SPOT_PRICES_SUPPORT_INFO = {
246246
'0x6a': 'eip155:106/erc20:0x0000000000000000000000000000000000000000', // 'eip155:106/slip44:5655640', // Velas EVM Mainnet - Native symbol: VLX
247247
'0x80': 'eip155:128/erc20:0x0000000000000000000000000000000000000000', // 'eip155:128/slip44:1010', // Huobi ECO Chain Mainnet - Native symbol: HT
248248
'0x89': 'eip155:137/slip44:966', // Polygon Mainnet - Native symbol: POL
249-
'0x8f': null, // 'eip155:143/slip44:268435779', // Monad Mainnet - Native symbol: MON
249+
'0x8f': 'eip155:143/slip44:268435779', // Monad Mainnet - Native symbol: MON
250250
'0x92': 'eip155:146/slip44:10007', // Sonic Mainnet - Native symbol: S
251251
'0xfa': 'eip155:250/slip44:1007', // Fantom Opera - Native symbol: FTM
252252
'0x141': 'eip155:321/erc20:0x0000000000000000000000000000000000000000', // 'eip155:321/slip44:641', // KCC Mainnet - Native symbol: KCS
@@ -264,8 +264,10 @@ export const SPOT_PRICES_SUPPORT_INFO = {
264264
'0xa4b1': 'eip155:42161/slip44:60', // Arbitrum One - Native symbol: ETH
265265
'0xa4ec': 'eip155:42220/slip44:52752', // Celo Mainnet - Native symbol: CELO
266266
'0xa516': 'eip155:42262/erc20:0x0000000000000000000000000000000000000000', // 'eip155:42262/slip44:474', // Oasis Emerald - Native symbol: ROSE
267+
'0xa729': 'eip155:42793/erc20:0x0000000000000000000000000000000000000000', // Etherlink - Native symbol: XTZ (Tezos L2)
267268
'0xa86a': 'eip155:43114/slip44:9005', // Avalanche C-Chain - Native symbol: AVAX
268269
'0xe708': 'eip155:59144/slip44:60', // Linea Mainnet - Native symbol: ETH
270+
'0x10b3e': 'eip155:68414/erc20:0x0000000000000000000000000000000000000000', // MapleStory Universe - no slip44
269271
'0x13c31': 'eip155:81457/erc20:0x0000000000000000000000000000000000000000', // 'eip155:81457/slip44:60', // Blast Mainnet - Native symbol: ETH
270272
'0x17dcd': 'eip155:97741/erc20:0x0000000000000000000000000000000000000000', // 'eip155:97741/slip44:XXX', // Pepe Unchained Mainnet - Native symbol: PEPU
271273
'0x518af': null, // 'eip155:333999/slip44:1997', // Polis Mainnet - Native symbol: POLIS

0 commit comments

Comments
 (0)