@curvefi/api 2.66.11 → 2.66.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/coins/sonic.d.ts +2 -0
- package/lib/constants/coins/sonic.js +5 -0
- package/lib/constants/factory/crypto.d.ts +5 -0
- package/lib/constants/factory/crypto.js +8 -0
- package/lib/constants/factory/stable.js +3 -0
- package/lib/constants/network_constants.js +28 -0
- package/lib/constants/pools/sonic.d.ts +2 -0
- package/lib/constants/pools/sonic.js +2 -0
- package/lib/utils.js +2 -0
- package/package.json +1 -1
|
@@ -35,6 +35,11 @@ export declare const tricryptoDeployImplementations: {
|
|
|
35
35
|
amm_native_transfers_enabled: string;
|
|
36
36
|
implementationIdx: number;
|
|
37
37
|
};
|
|
38
|
+
146: {
|
|
39
|
+
amm_native_transfers_disabled: string;
|
|
40
|
+
amm_native_transfers_enabled: string;
|
|
41
|
+
implementationIdx: number;
|
|
42
|
+
};
|
|
38
43
|
196: {
|
|
39
44
|
amm_native_transfers_disabled: string;
|
|
40
45
|
amm_native_transfers_enabled: string;
|
|
@@ -52,6 +52,11 @@ export const tricryptoDeployImplementations = {
|
|
|
52
52
|
amm_native_transfers_enabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //0
|
|
53
53
|
implementationIdx: 1,
|
|
54
54
|
},
|
|
55
|
+
146: {
|
|
56
|
+
amm_native_transfers_disabled: '0xf3A6aa40cf048a3960E9664847E9a7be025a390a'.toLowerCase(), //1
|
|
57
|
+
amm_native_transfers_enabled: '0x0000000000000000000000000000000000000000'.toLowerCase(), //0
|
|
58
|
+
implementationIdx: 1,
|
|
59
|
+
},
|
|
55
60
|
196: {
|
|
56
61
|
amm_native_transfers_disabled: '0x64379C265Fc6595065D7d835AAaa731c0584dB80'.toLowerCase(), //1
|
|
57
62
|
amm_native_transfers_enabled: '0x0C9D8c7e486e822C29488Ff51BFf0167B4650953'.toLowerCase(), //0
|
|
@@ -133,6 +138,9 @@ export const CRYPTO_FACTORY_CONSTANTS = {
|
|
|
133
138
|
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
134
139
|
tricryptoDeployImplementations: tricryptoDeployImplementations[137],
|
|
135
140
|
},
|
|
141
|
+
146: {
|
|
142
|
+
tricryptoDeployImplementations: tricryptoDeployImplementations[146],
|
|
143
|
+
},
|
|
136
144
|
196: {
|
|
137
145
|
tricryptoDeployImplementations: tricryptoDeployImplementations[196],
|
|
138
146
|
},
|
|
@@ -378,6 +378,9 @@ export const STABLE_FACTORY_CONSTANTS = {
|
|
|
378
378
|
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
379
379
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
380
380
|
},
|
|
381
|
+
146: {
|
|
382
|
+
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
383
|
+
},
|
|
381
384
|
196: {
|
|
382
385
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
383
386
|
},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { lowerCaseValues } from "./utils.js";
|
|
2
2
|
import { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, POOLS_DATA_XLAYER, POOLS_DATA_MANTLE, } from './pools/index.js';
|
|
3
3
|
import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_OPTIMISM, COINS_POLYGON, aTokensPolygon, COINS_FANTOM, cTokensFantom, aTokensFantom, COINS_AVALANCHE, aTokensAvalanche, COINS_ARBITRUM, COINS_XDAI, COINS_MOONBEAM, COINS_AURORA, COINS_KAVA, COINS_CELO, COINS_ZKSYNC, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_XLAYER, COINS_MANTLE, } from "./coins/index.js";
|
|
4
|
+
import { POOLS_DATA_SONIC } from "./pools/sonic";
|
|
5
|
+
import { COINS_SONIC } from "./coins/sonic";
|
|
4
6
|
const ALIASES_ETHEREUM = lowerCaseValues({
|
|
5
7
|
"crv": "0xD533a949740bb3306d119CC777fa900bA034cd52", // <--- CHANGE
|
|
6
8
|
"minter": '0xd061D61a4d941c39E5453435B6345Dc261C2fcE0', // <--- RECOVERED
|
|
@@ -305,6 +307,20 @@ const ALIASES_MANTLE = lowerCaseValues({
|
|
|
305
307
|
"tricrypto_factory": '0x0C9D8c7e486e822C29488Ff51BFf0167B4650953',
|
|
306
308
|
"factory_admin": '0x0000000000000000000000000000000000000000',
|
|
307
309
|
});
|
|
310
|
+
const ALIASES_SONIC = lowerCaseValues({
|
|
311
|
+
"crv": "0x5af79133999f7908953e94b7a5cf367740ebee35", //
|
|
312
|
+
"child_gauge_factory": "0xf3A431008396df8A8b2DF492C913706BDB0874ef", //
|
|
313
|
+
"voting_escrow": "0x0000000000000000000000000000000000000000",
|
|
314
|
+
"fee_distributor": "0x0000000000000000000000000000000000000000",
|
|
315
|
+
"gauge_controller": "0x0000000000000000000000000000000000000000",
|
|
316
|
+
"address_provider": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617", //
|
|
317
|
+
"router": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E", //
|
|
318
|
+
"deposit_and_stake": "0x505d666E4DD174DcDD7FA090ed95554486d2Be44", //
|
|
319
|
+
"stable_ng_factory": '0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8', //
|
|
320
|
+
"twocrypto_factory": '0x1A83348F9cCFD3Fe1A8C0adBa580Ac4e267Fe495', //
|
|
321
|
+
"tricrypto_factory": '0x635742dCC8313DCf8c904206037d962c042EAfBd', //
|
|
322
|
+
"factory_admin": '0x0000000000000000000000000000000000000000', //
|
|
323
|
+
});
|
|
308
324
|
export const NETWORK_CONSTANTS = {
|
|
309
325
|
1: {
|
|
310
326
|
NAME: 'ethereum',
|
|
@@ -372,6 +388,18 @@ export const NETWORK_CONSTANTS = {
|
|
|
372
388
|
},
|
|
373
389
|
aTokens: aTokensPolygon,
|
|
374
390
|
},
|
|
391
|
+
146: {
|
|
392
|
+
NAME: 'sonic',
|
|
393
|
+
ALIASES: ALIASES_SONIC,
|
|
394
|
+
POOLS_DATA: POOLS_DATA_SONIC,
|
|
395
|
+
COINS: COINS_SONIC,
|
|
396
|
+
NATIVE_COIN: {
|
|
397
|
+
symbol: 'S',
|
|
398
|
+
wrappedSymbol: 'wS',
|
|
399
|
+
address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
400
|
+
wrappedAddress: '0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38'.toLowerCase(),
|
|
401
|
+
},
|
|
402
|
+
},
|
|
375
403
|
196: {
|
|
376
404
|
NAME: 'x-layer',
|
|
377
405
|
ALIASES: ALIASES_XLAYER,
|
package/lib/utils.js
CHANGED
|
@@ -379,6 +379,7 @@ export const _getUsdRate = (assetId) => __awaiter(void 0, void 0, void 0, functi
|
|
|
379
379
|
56: "binance-smart-chain",
|
|
380
380
|
100: 'xdai',
|
|
381
381
|
137: 'polygon-pos',
|
|
382
|
+
146: 'sonic',
|
|
382
383
|
196: 'x-layer',
|
|
383
384
|
250: 'fantom',
|
|
384
385
|
252: 'fraxtal',
|
|
@@ -398,6 +399,7 @@ export const _getUsdRate = (assetId) => __awaiter(void 0, void 0, void 0, functi
|
|
|
398
399
|
56: 'binancecoin',
|
|
399
400
|
100: 'xdai',
|
|
400
401
|
137: 'matic-network',
|
|
402
|
+
146: 'sonic-3',
|
|
401
403
|
196: 'okb',
|
|
402
404
|
250: 'fantom',
|
|
403
405
|
252: 'frax-ether',
|