From 2faf4ab3d455fd27b0843539b85d878be7b76df8 Mon Sep 17 00:00:00 2001 From: EREN Date: Sat, 7 Dec 2024 08:49:55 -0300 Subject: [PATCH 1/2] add sonic --- src/components/VaultIdentity/styles.ts | 3 +++ src/config/boost/sonic.json | 1 + src/config/config.tsx | 21 ++++++++++++++++++- src/config/vault/sonic.json | 1 + src/features/data/apis/config-types.ts | 1 + .../components/ChainHolding/styles.tsx | 5 ++++- src/images/networks/sonic.svg | 8 +++++++ 7 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/config/boost/sonic.json create mode 100644 src/config/vault/sonic.json create mode 100644 src/images/networks/sonic.svg diff --git a/src/components/VaultIdentity/styles.ts b/src/components/VaultIdentity/styles.ts index 3edd04c3a..c67f9b5b5 100644 --- a/src/components/VaultIdentity/styles.ts +++ b/src/components/VaultIdentity/styles.ts @@ -130,4 +130,7 @@ export const styles = (theme: Theme) => ({ 'vaultNetwork-scroll': { backgroundColor: '#ffe6c8', }, + 'vaultNetwork-sonic': { + backgroundColor: '#EC5409', + }, }); diff --git a/src/config/boost/sonic.json b/src/config/boost/sonic.json new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/src/config/boost/sonic.json @@ -0,0 +1 @@ +[] diff --git a/src/config/config.tsx b/src/config/config.tsx index e58a02424..e2123e87b 100644 --- a/src/config/config.tsx +++ b/src/config/config.tsx @@ -763,7 +763,6 @@ export const config = { appMulticallContractAddress: '0xB58AD63989237E962F3E618eEeb43c30574c6F72', providerName: 'Scroll', native: { symbol: 'ETH', oracleId: 'ETH', decimals: 18 }, - new: true, gas: { type: 'eip1559', blocks: 100, @@ -773,6 +772,26 @@ export const config = { }, stableCoins: ['USDT', 'USDC', 'loreUSD'], }, + sonic: { + name: 'Sonic', + chainId: 146, + rpc: ['https://rpc.soniclabs.com'], + explorerUrl: 'https://explorer.soniclabs.com/', + multicallAddress: '0x0000000000000000000000000000000000000000', + multicall3Address: '0x0000000000000000000000000000000000000000', + appMulticallContractAddress: '0x0000000000000000000000000000000000000000', + providerName: 'Sonic', + native: { symbol: 'S', oracleId: 'WS', decimals: 18 }, + new: true, + gas: { + type: 'eip1559', + blocks: 100, + percentile: 0.7, + baseSafetyMargin: 0.2, + priorityMinimum: '10000000', // 0.01 gwei + }, + stableCoins: [], + }, aurora: { name: 'Aurora', chainId: 1313161554, diff --git a/src/config/vault/sonic.json b/src/config/vault/sonic.json new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/src/config/vault/sonic.json @@ -0,0 +1 @@ +[] diff --git a/src/features/data/apis/config-types.ts b/src/features/data/apis/config-types.ts index d093d31ce..247aaec42 100644 --- a/src/features/data/apis/config-types.ts +++ b/src/features/data/apis/config-types.ts @@ -190,6 +190,7 @@ type ChainId = | 'sei' | 'rootstock' | 'scroll' + | 'sonic' | 'aurora' | 'emerald' | 'celo' diff --git a/src/features/treasury/components/DaoHoldings/components/ChainHolding/styles.tsx b/src/features/treasury/components/DaoHoldings/components/ChainHolding/styles.tsx index 8cdd1c902..510af37bf 100644 --- a/src/features/treasury/components/DaoHoldings/components/ChainHolding/styles.tsx +++ b/src/features/treasury/components/DaoHoldings/components/ChainHolding/styles.tsx @@ -138,7 +138,10 @@ export const styles = (theme: Theme) => ({ 'headerNetwork-scroll': { backgroundColor: 'rgb(201, 203, 206)', }, + 'headerNetwork-sonic': { + backgroundColor: 'rgb(201, 203, 206)', + }, 'headerMM-system9': { - backgroundColor: 'rgba(243, 243, 200, 0.5)', + backgroundColor: 'rgba(236, 84, 9, 0.5)', }, }); diff --git a/src/images/networks/sonic.svg b/src/images/networks/sonic.svg new file mode 100644 index 000000000..f0214057c --- /dev/null +++ b/src/images/networks/sonic.svg @@ -0,0 +1,8 @@ + + + + + + + + From 200b401c9ea866d67577af7a0fc2ef43dfe6307e Mon Sep 17 00:00:00 2001 From: EREN Date: Mon, 16 Dec 2024 15:14:47 -0300 Subject: [PATCH 2/2] update multicall3 address --- src/config/config.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.tsx b/src/config/config.tsx index c54787bb0..e3f673c0f 100644 --- a/src/config/config.tsx +++ b/src/config/config.tsx @@ -748,9 +748,9 @@ export const config = { chainId: 146, new: true, rpc: ['https://rpc.soniclabs.com'], - explorerUrl: 'https://explorer.soniclabs.com/', + explorerUrl: 'https://sonicscan.org/', multicallAddress: '0x0000000000000000000000000000000000000000', - multicall3Address: '0x0000000000000000000000000000000000000000', + multicall3Address: '0xcA11bde05977b3631167028862bE2a173976CA11', appMulticallContractAddress: '0x0000000000000000000000000000000000000000', providerName: 'Sonic', native: { symbol: 'S', oracleId: 'WS', decimals: 18 },