Skip to content

Commit e6f55de

Browse files
committed
Add sonic as full deployment
1 parent f22f3fc commit e6f55de

File tree

3 files changed

+38
-26
lines changed

3 files changed

+38
-26
lines changed

constants/configs/configs.js

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ZERO_ADDRESS } from '#root/utils/Web3/index.js';
66
const configs = {
77
ethereum: {
88
poolsBaseUrlOld: 'https://classic.curve.fi/',
9-
poolsBaseUrl: 'https://curve.fi/#/ethereum/pools/',
9+
poolsBaseUrl: 'https://curve.fi/dex/#/ethereum/pools/',
1010
nativeCurrencySymbol: 'ETH',
1111
chainId: 1,
1212
nativeCurrencyCoingeckoId: 'ethereum',
@@ -78,17 +78,17 @@ const configs = {
7878
'0xfc636d819d1a98433402ec9dec633d864014f28c', , // Contains an exploited asset that was stopped
7979
'0x68934f60758243eafaf4d2cfed27bf8010bede3a', , // Contains an exploited asset that was stopped
8080
].map(lc),
81-
lendingVaultsBaseUrl: 'https://lend.curve.fi/#/ethereum/markets/',
81+
lendingVaultsBaseUrl: 'https://curve.fi/lend/#/ethereum/markets/',
8282
lendingVaultRegistries: {
8383
oneway: '0xea6876dde9e3467564acbee1ed5bac88783205e0',
8484
},
8585
lendingVaultRegistriesUrlFragments: {
86-
oneway: 'one-way-market', // e.g. https://lend.curve.fi/#/ethereum/markets/one-way-market-3/vault/deposit
86+
oneway: 'one-way-market', // e.g. https://curve.fi/lend/#/ethereum/markets/one-way-market-3/vault/deposit
8787
},
8888
},
8989
polygon: {
9090
poolsBaseUrlOld: 'https://polygon.curve.fi/',
91-
poolsBaseUrl: 'https://curve.fi/#/polygon/pools/',
91+
poolsBaseUrl: 'https://curve.fi/dex/#/polygon/pools/',
9292
shortId: 'poly',
9393
nativeCurrencySymbol: 'MATIC',
9494
chainId: 137,
@@ -156,7 +156,7 @@ const configs = {
156156
},
157157
fantom: {
158158
poolsBaseUrlOld: 'https://ftm.curve.fi/',
159-
poolsBaseUrl: 'https://curve.fi/#/fantom/pools/',
159+
poolsBaseUrl: 'https://curve.fi/dex/#/fantom/pools/',
160160
shortId: 'ftm',
161161
nativeCurrencySymbol: 'FTM',
162162
chainId: 250,
@@ -213,7 +213,7 @@ const configs = {
213213
},
214214
arbitrum: {
215215
poolsBaseUrlOld: 'https://arbitrum.curve.fi/',
216-
poolsBaseUrl: 'https://curve.fi/#/arbitrum/pools/',
216+
poolsBaseUrl: 'https://curve.fi/dex/#/arbitrum/pools/',
217217
shortId: 'arbi',
218218
nativeCurrencySymbol: 'ETH',
219219
chainId: 42161,
@@ -266,17 +266,17 @@ const configs = {
266266
]),
267267
DISABLED_POOLS_ADDRESSES: [].map(lc),
268268
graphEndpoint: undefined,
269-
lendingVaultsBaseUrl: 'https://lend.curve.fi/#/arbitrum/markets/',
269+
lendingVaultsBaseUrl: 'https://curve.fi/lend/#/arbitrum/markets/',
270270
lendingVaultRegistries: {
271271
oneway: '0xcaEC110C784c9DF37240a8Ce096D352A75922DeA',
272272
},
273273
lendingVaultRegistriesUrlFragments: {
274-
oneway: 'one-way-market', // e.g. https://lend.curve.fi/#/arbitrum/markets/one-way-market-3/vault/deposit
274+
oneway: 'one-way-market', // e.g. https://curve.fi/lend/#/arbitrum/markets/one-way-market-3/vault/deposit
275275
},
276276
},
277277
avalanche: {
278278
poolsBaseUrlOld: 'https://avax.curve.fi/',
279-
poolsBaseUrl: 'https://curve.fi/#/avalanche/pools/',
279+
poolsBaseUrl: 'https://curve.fi/dex/#/avalanche/pools/',
280280
shortId: 'ava',
281281
nativeCurrencySymbol: 'AVAX',
282282
chainId: 43114,
@@ -333,7 +333,7 @@ const configs = {
333333
},
334334
optimism: {
335335
poolsBaseUrlOld: 'https://optimism.curve.fi/',
336-
poolsBaseUrl: 'https://curve.fi/#/optimism/pools/',
336+
poolsBaseUrl: 'https://curve.fi/dex/#/optimism/pools/',
337337
shortId: 'op',
338338
nativeCurrencySymbol: 'ETH',
339339
chainId: 10,
@@ -382,17 +382,17 @@ const configs = {
382382
DISABLED_POOLS_ADDRESSES: [].map(lc),
383383
approxBlocksPerDay: 43000, // https://optimistic.etherscan.io/chart/blocks
384384
graphEndpoint: undefined,
385-
lendingVaultsBaseUrl: 'https://lend.curve.fi/#/optimism/markets/',
385+
lendingVaultsBaseUrl: 'https://curve.fi/lend/#/optimism/markets/',
386386
lendingVaultRegistries: {
387387
oneway: '0x5EA8f3D674C70b020586933A0a5b250734798BeF',
388388
},
389389
lendingVaultRegistriesUrlFragments: {
390-
oneway: 'one-way-market', // e.g. https://lend.curve.fi/#/ethereum/markets/one-way-market-3/vault/deposit
390+
oneway: 'one-way-market', // e.g. https://curve.fi/lend/#/ethereum/markets/one-way-market-3/vault/deposit
391391
},
392392
},
393393
xdai: {
394394
poolsBaseUrlOld: 'https://xdai.curve.fi/',
395-
poolsBaseUrl: 'https://curve.fi/#/gnosis/pools/',
395+
poolsBaseUrl: 'https://curve.fi/dex/#/gnosis/pools/',
396396
shortId: 'xdai',
397397
nativeCurrencySymbol: 'xDAI',
398398
chainId: 100,
@@ -441,7 +441,7 @@ const configs = {
441441
},
442442
aurora: {
443443
poolsBaseUrlOld: 'https://aurora.curve.fi/',
444-
poolsBaseUrl: 'https://curve.fi/#/aurora/pools/',
444+
poolsBaseUrl: 'https://curve.fi/dex/#/aurora/pools/',
445445
shortId: 'aur',
446446
nativeCurrencySymbol: 'AURORA',
447447
chainId: 1313161555,
@@ -483,7 +483,7 @@ const configs = {
483483
},
484484
moonbeam: {
485485
poolsBaseUrlOld: 'https://moonbeam.curve.fi/',
486-
poolsBaseUrl: 'https://curve.fi/#/moonbeam/pools/',
486+
poolsBaseUrl: 'https://curve.fi/dex/#/moonbeam/pools/',
487487
shortId: 'moon',
488488
nativeCurrencySymbol: 'GLMR',
489489
chainId: 1284,
@@ -517,7 +517,7 @@ const configs = {
517517
},
518518
kava: {
519519
poolsBaseUrlOld: 'https://kava.curve.fi/',
520-
poolsBaseUrl: 'https://curve.fi/#/kava/pools/',
520+
poolsBaseUrl: 'https://curve.fi/dex/#/kava/pools/',
521521
shortId: 'kava',
522522
nativeCurrencySymbol: 'KAVA',
523523
chainId: 2222,
@@ -562,7 +562,7 @@ const configs = {
562562
celo: {
563563
hasNoMainRegistry: true, // No main registry deployed nor address provider
564564
poolsBaseUrlOld: 'https://celo.curve.fi/',
565-
poolsBaseUrl: 'https://curve.fi/#/celo/pools/',
565+
poolsBaseUrl: 'https://curve.fi/dex/#/celo/pools/',
566566
shortId: 'celo',
567567
nativeCurrencySymbol: 'CELO',
568568
chainId: 42220,
@@ -679,7 +679,7 @@ const configs = {
679679
base: {
680680
hasNoMainRegistry: true, // No main registry deployed nor address provider
681681
poolsBaseUrlOld: null,
682-
poolsBaseUrl: 'https://curve.fi/#/base/pools/',
682+
poolsBaseUrl: 'https://curve.fi/dex/#/base/pools/',
683683
shortId: 'base',
684684
nativeCurrencySymbol: 'ETH',
685685
chainId: 8453,
@@ -726,7 +726,7 @@ const configs = {
726726
fraxtal: {
727727
hasNoMainRegistry: true, // No main registry deployed nor address provider
728728
poolsBaseUrlOld: null,
729-
poolsBaseUrl: 'https://curve.fi/#/fraxtal/pools/',
729+
poolsBaseUrl: 'https://curve.fi/dex/#/fraxtal/pools/',
730730
shortId: 'fraxtal',
731731
nativeCurrencySymbol: 'frxETH',
732732
chainId: 252,
@@ -754,18 +754,18 @@ const configs = {
754754
DISABLED_POOLS_ADDRESSES: [].map(lc),
755755
approxBlocksPerDay: 43000, // Very approx from list of blocks on https://fraxscan.com/blocks
756756
graphEndpoint: undefined,
757-
lendingVaultsBaseUrl: 'https://lend.curve.fi/#/fraxtal/markets/',
757+
lendingVaultsBaseUrl: 'https://curve.fi/lend/#/fraxtal/markets/',
758758
lendingVaultRegistries: {
759759
oneway: '0xf3c9bdAB17B7016fBE3B77D17b1602A7db93ac66',
760760
},
761761
lendingVaultRegistriesUrlFragments: {
762-
oneway: 'one-way-market', // e.g. https://lend.curve.fi/#/ethereum/markets/one-way-market-3/vault/deposit
762+
oneway: 'one-way-market', // e.g. https://curve.fi/lend/#/ethereum/markets/one-way-market-3/vault/deposit
763763
},
764764
},
765765
bsc: {
766766
hasNoMainRegistry: true, // No main registry deployed nor address provider
767767
poolsBaseUrlOld: null,
768-
poolsBaseUrl: 'https://curve.fi/#/bsc/pools/',
768+
poolsBaseUrl: 'https://curve.fi/dex/#/bsc/pools/',
769769
shortId: 'bsc',
770770
nativeCurrencySymbol: 'BNB',
771771
chainId: 56,
@@ -813,7 +813,7 @@ const configs = {
813813
'x-layer': {
814814
hasNoMainRegistry: true, // No main registry deployed nor address provider
815815
poolsBaseUrlOld: null,
816-
poolsBaseUrl: 'https://curve.fi/#/x-layer/pools/',
816+
poolsBaseUrl: 'https://curve.fi/dex/#/x-layer/pools/',
817817
shortId: 'x-layer',
818818
nativeCurrencySymbol: 'OKB',
819819
chainId: 196,
@@ -840,7 +840,7 @@ const configs = {
840840
mantle: {
841841
hasNoMainRegistry: true, // No main registry deployed nor address provider
842842
poolsBaseUrlOld: null,
843-
poolsBaseUrl: 'https://curve.fi/#/mantle/pools/',
843+
poolsBaseUrl: 'https://curve.fi/dex/#/mantle/pools/',
844844
shortId: 'mantle',
845845
nativeCurrencySymbol: 'MNT',
846846
chainId: 5000,
@@ -866,8 +866,9 @@ const configs = {
866866
graphEndpoint: undefined,
867867
},
868868
sonic: {
869+
hasNoMainRegistry: true, // No main registry deployed nor address provider
869870
poolsBaseUrlOld: null,
870-
poolsBaseUrl: null,
871+
poolsBaseUrl: 'https://curve.fi/dex/#/sonic/pools/',
871872
shortId: 'sonic',
872873
nativeCurrencySymbol: 'S',
873874
chainId: 146,
@@ -878,14 +879,23 @@ const configs = {
878879
backuprpcUrl: `https://rpc.soniclabs.com`,
879880
multicallAddress: '0xcA11bde05977b3631167028862bE2a173976CA11',
880881
multicall2Address: '0xcA11bde05977b3631167028862bE2a173976CA11',
882+
getFactoryTricryptoRegistryAddress: async () => '0x635742dCC8313DCf8c904206037d962c042EAfBd',
883+
getFactoryStableswapNgRegistryAddress: async () => '0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8',
884+
getFactoryTwocryptoRegistryAddress: async () => '0x1A83348F9cCFD3Fe1A8C0adBa580Ac4e267Fe495',
885+
gaugeRegistryAddress2: '0xf3A431008396df8A8b2DF492C913706BDB0874ef',
886+
gaugeRootRegistry2: '0x306A45a1478A000dC701A6e1f7a569afb8D9DCD6',
887+
factoryImplementationAddressMap: new Map([
888+
//
889+
]),
890+
BASE_POOL_LP_TO_GAUGE_LP_MAP: new Map([]),
881891
DISABLED_POOLS_ADDRESSES: [].map(lc),
882892
graphEndpoint: undefined,
883893
lendingVaultsBaseUrl: 'https://curve.fi/lend/#/sonic/markets/',
884894
lendingVaultRegistries: {
885895
oneway: '0x30D1859DaD5A52aE03B6e259d1b48c4b12933993',
886896
},
887897
lendingVaultRegistriesUrlFragments: {
888-
oneway: 'one-way-market', // e.g. https://lend.curve.fi/#/arbitrum/markets/one-way-market-3/vault/deposit
898+
oneway: 'one-way-market', // e.g. https://curve.fi/lend/#/arbitrum/markets/one-way-market-3/vault/deposit
889899
},
890900
},
891901
};

routes/v1/getAllGauges.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const SIDECHAINS_WITH_FACTORY_GAUGES = [
5555
'bsc',
5656
'x-layer',
5757
'mantle',
58+
'sonic',
5859
];
5960

6061
const lc = (str) => str.toLowerCase();

utils/data/prices.curve.fi/chains.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const PRICES_CURVE_FI_AVAILABLE_CHAIN_IDS = [
1010
'fantom',
1111
'xdai',
1212
'fraxtal',
13+
'sonic',
1314
];
1415

1516
const getPricesCurveFiChainsBlockchainId = memoize(async (blockchainId) => {

0 commit comments

Comments
 (0)