From eae45b16d9cd5f8f303e1a93e201fbe1be5af807 Mon Sep 17 00:00:00 2001 From: Maxime OUAIRY Date: Thu, 11 Dec 2025 19:09:42 +0100 Subject: [PATCH] feat: add etherlink and MSU pricing and multicall --- packages/assets-controllers/CHANGELOG.md | 3 +++ packages/assets-controllers/src/multicall.ts | 5 +++++ .../assets-controllers/src/token-prices-service/codefi-v2.ts | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 48312a9ce0e..d666a03b5b9 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Export `selectAllAssets` ([#7496](https://github.com/MetaMask/core/pull/7496)) +- Add multicall address for `MSU (MapleStory Universe)` ([#7453](https://github.com/MetaMask/core/pull/7453)) +- Add MSU (MapleStory Universe) and Etherlink in Spot Prices support ([#7453](https://github.com/MetaMask/core/pull/7453)) ### Changed @@ -24,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump `@metamask/multichain-account-service` from `^4.0.1` to `^4.1.0` ([#7515](https://github.com/MetaMask/core/pull/7515) - Bump `@metamask/controller-utils` from `^11.16.0` to `^11.17.0` ([#7534](https://github.com/MetaMask/core/pull/7534)) - Bump `@metamask/network-controller` from `^27.0.0` to `^27.1.0` ([#7534](https://github.com/MetaMask/core/pull/7534)) +- Populate Monad Spot Prices info (instead of set to `null`) ([#7453](https://github.com/MetaMask/core/pull/7453)) ## [94.1.0] diff --git a/packages/assets-controllers/src/multicall.ts b/packages/assets-controllers/src/multicall.ts index 3b8a2f9568a..e6e98850326 100644 --- a/packages/assets-controllers/src/multicall.ts +++ b/packages/assets-controllers/src/multicall.ts @@ -72,6 +72,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = { '0xe9fe': '0xcA11bde05977b3631167028862bE2a173976CA11', '0xd3a0': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x84444': '0xcA11bde05977b3631167028862bE2a173976CA11', + // Rootstock, bytecode OK and referenced as "RSK" in https://www.multicall3.com/deployments '0x1e': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x1f': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x2329': '0xcA11bde05977b3631167028862bE2a173976CA11', @@ -177,6 +178,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = { '0x45b': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x3d': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x41a6ace': '0xcA11bde05977b3631167028862bE2a173976CA11', + // Etherlink mainnet, bytecode OK and referenced in https://www.multicall3.com/deployments '0xa729': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x1f47b': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x1b59': '0xca11bde05977b3631167028862be2a173976ca11', @@ -246,6 +248,7 @@ const MULTICALL_CONTRACT_BY_CHAINID = { '0x46f': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x659': '0xca11bde05977b3631167028862be2a173976ca11', '0x139c968f9': '0xcA11bde05977b3631167028862bE2a173976CA11', + // BOB, bytecode OK and referenced in https://www.multicall3.com/deployments '0xed88': '0xcA11bde05977b3631167028862bE2a173976CA11', '0xd036': '0xcA11bde05977b3631167028862bE2a173976CA11', '0x1f3': '0xcA11bde05977b3631167028862bE2a173976CA11', @@ -301,6 +304,8 @@ const MULTICALL_CONTRACT_BY_CHAINID = { '0x18c7': '0xcA11bde05977b3631167028862bE2a173976CA11', // MegaETH mainnet, contract found matching multicall3 bytecode '0x10e6': '0xcA11bde05977b3631167028862bE2a173976CA11', + // MSU (contract they deployed by their team for us) + '0x10b3e': '0x99423C88EB5723A590b4C644426069042f137B9e', } as Record; const multicallAbi = [ diff --git a/packages/assets-controllers/src/token-prices-service/codefi-v2.ts b/packages/assets-controllers/src/token-prices-service/codefi-v2.ts index 745b5e13bd6..e999a084bf4 100644 --- a/packages/assets-controllers/src/token-prices-service/codefi-v2.ts +++ b/packages/assets-controllers/src/token-prices-service/codefi-v2.ts @@ -248,7 +248,7 @@ export const SPOT_PRICES_SUPPORT_INFO = { '0x6a': 'eip155:106/erc20:0x0000000000000000000000000000000000000000', // 'eip155:106/slip44:5655640', // Velas EVM Mainnet - Native symbol: VLX '0x80': 'eip155:128/erc20:0x0000000000000000000000000000000000000000', // 'eip155:128/slip44:1010', // Huobi ECO Chain Mainnet - Native symbol: HT '0x89': 'eip155:137/slip44:966', // Polygon Mainnet - Native symbol: POL - '0x8f': null, // 'eip155:143/slip44:268435779', // Monad Mainnet - Native symbol: MON + '0x8f': 'eip155:143/slip44:268435779', // Monad Mainnet - Native symbol: MON '0x92': 'eip155:146/slip44:10007', // Sonic Mainnet - Native symbol: S '0xfa': 'eip155:250/slip44:1007', // Fantom Opera - Native symbol: FTM '0x141': 'eip155:321/erc20:0x0000000000000000000000000000000000000000', // 'eip155:321/slip44:641', // KCC Mainnet - Native symbol: KCS @@ -266,8 +266,10 @@ export const SPOT_PRICES_SUPPORT_INFO = { '0xa4b1': 'eip155:42161/slip44:60', // Arbitrum One - Native symbol: ETH '0xa4ec': 'eip155:42220/slip44:52752', // Celo Mainnet - Native symbol: CELO '0xa516': 'eip155:42262/erc20:0x0000000000000000000000000000000000000000', // 'eip155:42262/slip44:474', // Oasis Emerald - Native symbol: ROSE + '0xa729': 'eip155:42793/erc20:0x0000000000000000000000000000000000000000', // Etherlink - Native symbol: XTZ (Tezos L2) '0xa86a': 'eip155:43114/slip44:9005', // Avalanche C-Chain - Native symbol: AVAX '0xe708': 'eip155:59144/slip44:60', // Linea Mainnet - Native symbol: ETH + '0x10b3e': 'eip155:68414/erc20:0x0000000000000000000000000000000000000000', // MapleStory Universe - no slip44 '0x13c31': 'eip155:81457/erc20:0x0000000000000000000000000000000000000000', // 'eip155:81457/slip44:60', // Blast Mainnet - Native symbol: ETH '0x17dcd': 'eip155:97741/erc20:0x0000000000000000000000000000000000000000', // 'eip155:97741/slip44:XXX', // Pepe Unchained Mainnet - Native symbol: PEPU '0x518af': null, // 'eip155:333999/slip44:1997', // Polis Mainnet - Native symbol: POLIS