From 2fafcb3bf727ab72b6f2a0eade3fa1a15981befd 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 | 2 ++ packages/assets-controllers/src/multicall.ts | 5 +++++ .../assets-controllers/src/token-prices-service/codefi-v2.ts | 2 ++ 3 files changed, 9 insertions(+) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 362646dce32..467e868ff6d 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update spot-prices endpoint list of supported chains and assets ([#7543](https://github.com/MetaMask/core/pull/7543)) - 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 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 7c740dec37c..4189ad97143 100644 --- a/packages/assets-controllers/src/token-prices-service/codefi-v2.ts +++ b/packages/assets-controllers/src/token-prices-service/codefi-v2.ts @@ -257,6 +257,7 @@ export const SPOT_PRICES_SUPPORT_INFO = { '0xe8': 'eip155:232/erc20:0x0000000000000000000000000000000000000000', // Lens Mainnet - Native symbol: GHO '0xfa': 'eip155:250/slip44:1007', // Fantom Opera - Native symbol: FTM '0xfc': 'eip155:252/erc20:0x0000000000000000000000000000000000000000', // Fraxtal - native symbol: FRAX + '0x10b3e': 'eip155:68414/erc20:0x0000000000000000000000000000000000000000', // MapleStory Universe - no slip44 '0x120': 'eip155:288/slip44:60', // Boba Network (Ethereum L2) - Native symbol: ETH '0x141': 'eip155:321/slip44:641', // KCC Mainnet - Native symbol: KCS '0x144': 'eip155:324/slip44:60', // zkSync Era Mainnet (Ethereum L2) - Native symbol: ETH @@ -270,6 +271,7 @@ export const SPOT_PRICES_SUPPORT_INFO = { '0x505': 'eip155:1285/slip44:1285', // Moonriver - Native symbol: MOVR '0x531': 'eip155:1329/slip44:19000118', // Sei Mainnet - Native symbol: SEI '0x74c': 'eip155:1868/erc20:0x0000000000000000000000000000000000000000', // Soneium - Native symbol: ETH + '0xa729': 'eip155:42793/erc20:0x0000000000000000000000000000000000000000', // Etherlink - Native symbol: XTZ (Tezos L2) '0xab5': 'eip155:2741/erc20:0x0000000000000000000000000000000000000000', // Abstract - Native symbol: ETH '0x10e6': 'eip155:4326/erc20:0x0000000000000000000000000000000000000000', // MegaETH Mainnet - Native symbol: ETH '0x1388': 'eip155:5000/erc20:0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000', // Mantle - Native symbol: MNT