@curvefi/api 2.69.8 → 2.69.10
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/chainIds.d.ts +0 -1
- package/lib/constants/chainIds.js +0 -1
- package/lib/constants/coins/index.d.ts +1 -11
- package/lib/constants/coins/index.js +1 -11
- package/lib/constants/factory/crypto.d.ts +0 -50
- package/lib/constants/factory/crypto.js +0 -80
- package/lib/constants/factory/stable.d.ts +0 -13
- package/lib/constants/factory/stable.js +0 -139
- package/lib/constants/network_constants.js +2 -292
- package/lib/constants/pools/index.d.ts +1 -11
- package/lib/constants/pools/index.js +1 -11
- package/lib/constants/rewardNetworks.js +1 -1
- package/lib/constants/volumeNetworks.d.ts +0 -2
- package/lib/constants/volumeNetworks.js +1 -3
- package/lib/curve.js +1 -4
- package/lib/external-api.d.ts +0 -2
- package/lib/external-api.js +0 -41
- package/lib/pools/PoolTemplate.js +0 -2
- package/lib/pools/subClasses/statsPool.js +2 -2
- package/lib/pools/utils.js +2 -12
- package/lib/route-graph.worker.js +2 -4
- package/lib/utils.js +3 -57
- package/package.json +1 -1
- package/lib/constants/abis/avaxcrypto/swap.json +0 -1195
- package/lib/constants/abis/avaxcrypto/zap.json +0 -250
- package/lib/constants/abis/factory-v2/DepositZapMetaUsd2Fantom.json +0 -197
- package/lib/constants/abis/factory-v2/MetaUSDGeist.json +0 -932
- package/lib/constants/abis/fusdt/swap.json +0 -1221
- package/lib/constants/abis/fusdt/zap.json +0 -215
- package/lib/constants/abis/ren-fantom/swap.json +0 -868
- package/lib/constants/abis/tricrypto/swapNoZap.json +0 -1250
- package/lib/constants/coins/aurora.d.ts +0 -3
- package/lib/constants/coins/aurora.js +0 -9
- package/lib/constants/coins/avalanche.d.ts +0 -4
- package/lib/constants/coins/avalanche.js +0 -34
- package/lib/constants/coins/celo.d.ts +0 -3
- package/lib/constants/coins/celo.js +0 -9
- package/lib/constants/coins/fantom.d.ts +0 -5
- package/lib/constants/coins/fantom.js +0 -31
- package/lib/constants/coins/kava.d.ts +0 -3
- package/lib/constants/coins/kava.js +0 -9
- package/lib/constants/coins/mantle.d.ts +0 -2
- package/lib/constants/coins/mantle.js +0 -5
- package/lib/constants/coins/moonbeam.d.ts +0 -3
- package/lib/constants/coins/moonbeam.js +0 -9
- package/lib/constants/coins/sonic.d.ts +0 -2
- package/lib/constants/coins/sonic.js +0 -5
- package/lib/constants/coins/xlayer.d.ts +0 -2
- package/lib/constants/coins/xlayer.js +0 -5
- package/lib/constants/coins/zksync.d.ts +0 -2
- package/lib/constants/coins/zksync.js +0 -6
- package/lib/constants/pools/aurora.d.ts +0 -2
- package/lib/constants/pools/aurora.js +0 -31
- package/lib/constants/pools/avalanche.d.ts +0 -2
- package/lib/constants/pools/avalanche.js +0 -166
- package/lib/constants/pools/celo.d.ts +0 -2
- package/lib/constants/pools/celo.js +0 -2
- package/lib/constants/pools/fantom.d.ts +0 -2
- package/lib/constants/pools/fantom.js +0 -185
- package/lib/constants/pools/kava.d.ts +0 -2
- package/lib/constants/pools/kava.js +0 -2
- package/lib/constants/pools/mantle.d.ts +0 -2
- package/lib/constants/pools/mantle.js +0 -2
- package/lib/constants/pools/moonbeam.d.ts +0 -2
- package/lib/constants/pools/moonbeam.js +0 -31
- package/lib/constants/pools/sonic.d.ts +0 -2
- package/lib/constants/pools/sonic.js +0 -2
- package/lib/constants/pools/xlayer.d.ts +0 -2
- package/lib/constants/pools/xlayer.js +0 -2
- package/lib/constants/pools/zksync.d.ts +0 -2
- package/lib/constants/pools/zksync.js +0 -2
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum } from "./ethereum.js";
|
|
2
2
|
import { COINS_POLYGON, aTokensPolygon } from "./polygon.js";
|
|
3
|
-
import { COINS_FANTOM, cTokensFantom, aTokensFantom } from "./fantom.js";
|
|
4
|
-
import { COINS_AVALANCHE, aTokensAvalanche } from "./avalanche.js";
|
|
5
3
|
import { COINS_ARBITRUM } from "./arbitrum.js";
|
|
6
4
|
import { COINS_OPTIMISM } from "./optimism.js";
|
|
7
5
|
import { COINS_XDAI } from "./xdai.js";
|
|
8
|
-
import { COINS_MOONBEAM } from "./moonbeam.js";
|
|
9
|
-
import { COINS_AURORA } from "./aurora.js";
|
|
10
|
-
import { COINS_KAVA } from "./kava.js";
|
|
11
|
-
import { COINS_CELO } from "./celo.js";
|
|
12
|
-
import { COINS_ZKSYNC } from "./zksync.js";
|
|
13
6
|
import { COINS_BASE } from "./base.js";
|
|
14
7
|
import { COINS_BSC } from "./bsc.js";
|
|
15
8
|
import { COINS_FRAXTAL } from "./fraxtal.js";
|
|
16
|
-
import { COINS_XLAYER } from "./xlayer.js";
|
|
17
|
-
import { COINS_MANTLE } from "./mantle.js";
|
|
18
|
-
import { COINS_SONIC } from "./sonic.js";
|
|
19
9
|
import { COINS_HYPERLIQUID } from "./hyperliquid.js";
|
|
20
|
-
export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon,
|
|
10
|
+
export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon, COINS_ARBITRUM, COINS_OPTIMISM, COINS_XDAI, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_HYPERLIQUID, };
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum } from "./ethereum.js";
|
|
2
2
|
import { COINS_POLYGON, aTokensPolygon } from "./polygon.js";
|
|
3
|
-
import { COINS_FANTOM, cTokensFantom, aTokensFantom } from "./fantom.js";
|
|
4
|
-
import { COINS_AVALANCHE, aTokensAvalanche } from "./avalanche.js";
|
|
5
3
|
import { COINS_ARBITRUM } from "./arbitrum.js";
|
|
6
4
|
import { COINS_OPTIMISM } from "./optimism.js";
|
|
7
5
|
import { COINS_XDAI } from "./xdai.js";
|
|
8
|
-
import { COINS_MOONBEAM } from "./moonbeam.js";
|
|
9
|
-
import { COINS_AURORA } from "./aurora.js";
|
|
10
|
-
import { COINS_KAVA } from "./kava.js";
|
|
11
|
-
import { COINS_CELO } from "./celo.js";
|
|
12
|
-
import { COINS_ZKSYNC } from "./zksync.js";
|
|
13
6
|
import { COINS_BASE } from "./base.js";
|
|
14
7
|
import { COINS_BSC } from "./bsc.js";
|
|
15
8
|
import { COINS_FRAXTAL } from "./fraxtal.js";
|
|
16
|
-
import { COINS_XLAYER } from "./xlayer.js";
|
|
17
|
-
import { COINS_MANTLE } from "./mantle.js";
|
|
18
|
-
import { COINS_SONIC } from "./sonic.js";
|
|
19
9
|
import { COINS_HYPERLIQUID } from "./hyperliquid.js";
|
|
20
|
-
export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon,
|
|
10
|
+
export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon, COINS_ARBITRUM, COINS_OPTIMISM, COINS_XDAI, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_HYPERLIQUID, };
|
|
@@ -35,51 +35,16 @@ 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
|
-
};
|
|
43
|
-
196: {
|
|
44
|
-
amm_native_transfers_disabled: string;
|
|
45
|
-
amm_native_transfers_enabled: string;
|
|
46
|
-
implementationIdx: number;
|
|
47
|
-
};
|
|
48
|
-
250: {
|
|
49
|
-
amm_native_transfers_disabled: string;
|
|
50
|
-
amm_native_transfers_enabled: string;
|
|
51
|
-
implementationIdx: number;
|
|
52
|
-
};
|
|
53
38
|
252: {
|
|
54
39
|
amm_native_transfers_disabled: string;
|
|
55
40
|
amm_native_transfers_enabled: string;
|
|
56
41
|
implementationIdx: number;
|
|
57
42
|
};
|
|
58
|
-
324: {
|
|
59
|
-
amm_native_transfers_disabled: string;
|
|
60
|
-
amm_native_transfers_enabled: string;
|
|
61
|
-
implementationIdx: number;
|
|
62
|
-
};
|
|
63
43
|
999: {
|
|
64
44
|
amm_native_transfers_disabled: string;
|
|
65
45
|
amm_native_transfers_enabled: string;
|
|
66
46
|
implementationIdx: number;
|
|
67
47
|
};
|
|
68
|
-
1284: {
|
|
69
|
-
amm_native_transfers_disabled: string;
|
|
70
|
-
amm_native_transfers_enabled: string;
|
|
71
|
-
implementationIdx: number;
|
|
72
|
-
};
|
|
73
|
-
2222: {
|
|
74
|
-
amm_native_transfers_disabled: string;
|
|
75
|
-
amm_native_transfers_enabled: string;
|
|
76
|
-
implementationIdx: number;
|
|
77
|
-
};
|
|
78
|
-
5000: {
|
|
79
|
-
amm_native_transfers_disabled: string;
|
|
80
|
-
amm_native_transfers_enabled: string;
|
|
81
|
-
implementationIdx: number;
|
|
82
|
-
};
|
|
83
48
|
8453: {
|
|
84
49
|
amm_native_transfers_disabled: string;
|
|
85
50
|
amm_native_transfers_enabled: string;
|
|
@@ -90,21 +55,6 @@ export declare const tricryptoDeployImplementations: {
|
|
|
90
55
|
amm_native_transfers_enabled: string;
|
|
91
56
|
implementationIdx: number;
|
|
92
57
|
};
|
|
93
|
-
42220: {
|
|
94
|
-
amm_native_transfers_disabled: string;
|
|
95
|
-
amm_native_transfers_enabled: string;
|
|
96
|
-
implementationIdx: number;
|
|
97
|
-
};
|
|
98
|
-
43114: {
|
|
99
|
-
amm_native_transfers_disabled: string;
|
|
100
|
-
amm_native_transfers_enabled: string;
|
|
101
|
-
implementationIdx: number;
|
|
102
|
-
};
|
|
103
|
-
1313161554: {
|
|
104
|
-
amm_native_transfers_disabled: string;
|
|
105
|
-
amm_native_transfers_enabled: string;
|
|
106
|
-
implementationIdx: number;
|
|
107
|
-
};
|
|
108
58
|
};
|
|
109
59
|
export declare const CRYPTO_FACTORY_CONSTANTS: {
|
|
110
60
|
[index: number]: {
|
|
@@ -52,51 +52,16 @@ 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(), //0
|
|
57
|
-
amm_native_transfers_enabled: '0x0000000000000000000000000000000000000000'.toLowerCase(), //1
|
|
58
|
-
implementationIdx: 0,
|
|
59
|
-
},
|
|
60
|
-
196: {
|
|
61
|
-
amm_native_transfers_disabled: '0x64379C265Fc6595065D7d835AAaa731c0584dB80'.toLowerCase(), //1
|
|
62
|
-
amm_native_transfers_enabled: '0x0C9D8c7e486e822C29488Ff51BFf0167B4650953'.toLowerCase(), //0
|
|
63
|
-
implementationIdx: 1,
|
|
64
|
-
},
|
|
65
|
-
250: {
|
|
66
|
-
amm_native_transfers_disabled: '0xd125E7a0cEddF89c6473412d85835450897be6Dc'.toLowerCase(), //1
|
|
67
|
-
amm_native_transfers_enabled: '0x76303e4fDcA0AbF28aB3ee42Ce086E6503431F1D'.toLowerCase(), //0
|
|
68
|
-
implementationIdx: 1,
|
|
69
|
-
},
|
|
70
55
|
252: {
|
|
71
56
|
amm_native_transfers_disabled: '0x1A83348F9cCFD3Fe1A8C0adBa580Ac4e267Fe495'.toLowerCase(), //1
|
|
72
57
|
amm_native_transfers_enabled: '0xd3b17f862956464ae4403ccf829ce69199856e1e'.toLowerCase(), //0
|
|
73
58
|
implementationIdx: 1,
|
|
74
59
|
},
|
|
75
|
-
324: {
|
|
76
|
-
amm_native_transfers_disabled: '0x1BD7d40CF9bBb63537746C89992f421bC35C6716'.toLowerCase(),
|
|
77
|
-
amm_native_transfers_enabled: '0x18d01726FeDaBd91579A9368DFB2F8A24f905280'.toLowerCase(),
|
|
78
|
-
implementationIdx: 0,
|
|
79
|
-
},
|
|
80
60
|
999: {
|
|
81
61
|
amm_native_transfers_disabled: '0x635742dCC8313DCf8c904206037d962c042EAfBd'.toLowerCase(), // 1
|
|
82
62
|
amm_native_transfers_enabled: '0x0000000000000000000000000000000000000000'.toLowerCase(), // 0
|
|
83
63
|
implementationIdx: 1,
|
|
84
64
|
},
|
|
85
|
-
1284: {
|
|
86
|
-
amm_native_transfers_disabled: '0x0000000000000000000000000000000000000000'.toLowerCase(),
|
|
87
|
-
amm_native_transfers_enabled: '0x0000000000000000000000000000000000000000'.toLowerCase(),
|
|
88
|
-
implementationIdx: 0,
|
|
89
|
-
},
|
|
90
|
-
2222: {
|
|
91
|
-
amm_native_transfers_disabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //1
|
|
92
|
-
amm_native_transfers_enabled: '0xFAbC421e3368D158d802684A217a83c083c94CeB'.toLowerCase(), //0
|
|
93
|
-
implementationIdx: 1,
|
|
94
|
-
},
|
|
95
|
-
5000: {
|
|
96
|
-
amm_native_transfers_disabled: '0x7Ca46A636b02D4aBC66883D7FF164bDE506DC66a'.toLowerCase(), //1
|
|
97
|
-
amm_native_transfers_enabled: '0x046207cB759F527b6c10C2D61DBaca45513685CC'.toLowerCase(), //0
|
|
98
|
-
implementationIdx: 1,
|
|
99
|
-
},
|
|
100
65
|
8453: {
|
|
101
66
|
amm_native_transfers_disabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //1
|
|
102
67
|
amm_native_transfers_enabled: '0xa274c88e09fDF1798a7517096557e6c1bEa1f65A'.toLowerCase(), //0
|
|
@@ -107,21 +72,6 @@ export const tricryptoDeployImplementations = {
|
|
|
107
72
|
amm_native_transfers_enabled: '0xd7E72f3615aa65b92A4DBdC211E296a35512988B'.toLowerCase(), //0
|
|
108
73
|
implementationIdx: 1,
|
|
109
74
|
},
|
|
110
|
-
42220: {
|
|
111
|
-
amm_native_transfers_disabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //1
|
|
112
|
-
amm_native_transfers_enabled: '0xFAbC421e3368D158d802684A217a83c083c94CeB'.toLowerCase(), //0
|
|
113
|
-
implementationIdx: 1,
|
|
114
|
-
},
|
|
115
|
-
43114: {
|
|
116
|
-
amm_native_transfers_disabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //1
|
|
117
|
-
amm_native_transfers_enabled: '0xFAbC421e3368D158d802684A217a83c083c94CeB'.toLowerCase(), //0
|
|
118
|
-
implementationIdx: 1,
|
|
119
|
-
},
|
|
120
|
-
1313161554: {
|
|
121
|
-
amm_native_transfers_disabled: '0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a'.toLowerCase(), //1
|
|
122
|
-
amm_native_transfers_enabled: '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf'.toLowerCase(), //0
|
|
123
|
-
implementationIdx: 1,
|
|
124
|
-
},
|
|
125
75
|
};
|
|
126
76
|
export const CRYPTO_FACTORY_CONSTANTS = {
|
|
127
77
|
1: {
|
|
@@ -143,46 +93,16 @@ export const CRYPTO_FACTORY_CONSTANTS = {
|
|
|
143
93
|
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
144
94
|
tricryptoDeployImplementations: tricryptoDeployImplementations[137],
|
|
145
95
|
},
|
|
146
|
-
146: {
|
|
147
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[146],
|
|
148
|
-
},
|
|
149
|
-
196: {
|
|
150
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[196],
|
|
151
|
-
},
|
|
152
|
-
250: {
|
|
153
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[250],
|
|
154
|
-
},
|
|
155
96
|
252: {
|
|
156
97
|
tricryptoDeployImplementations: tricryptoDeployImplementations[252],
|
|
157
98
|
},
|
|
158
|
-
324: {
|
|
159
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[324],
|
|
160
|
-
},
|
|
161
99
|
999: {
|
|
162
100
|
tricryptoDeployImplementations: tricryptoDeployImplementations[999],
|
|
163
101
|
},
|
|
164
|
-
1284: {
|
|
165
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[1284],
|
|
166
|
-
},
|
|
167
|
-
2222: {
|
|
168
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[2222],
|
|
169
|
-
},
|
|
170
|
-
5000: {
|
|
171
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[5000],
|
|
172
|
-
},
|
|
173
102
|
8453: {
|
|
174
103
|
tricryptoDeployImplementations: tricryptoDeployImplementations[8453],
|
|
175
104
|
},
|
|
176
105
|
42161: {
|
|
177
106
|
tricryptoDeployImplementations: tricryptoDeployImplementations[42161],
|
|
178
107
|
},
|
|
179
|
-
42220: {
|
|
180
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[42220],
|
|
181
|
-
},
|
|
182
|
-
43114: {
|
|
183
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[43114],
|
|
184
|
-
},
|
|
185
|
-
1313161554: {
|
|
186
|
-
tricryptoDeployImplementations: tricryptoDeployImplementations[1313161554],
|
|
187
|
-
},
|
|
188
108
|
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { IDict } from "../../interfaces";
|
|
2
2
|
export declare const implementationABIDictEthereum: IDict<any>;
|
|
3
3
|
export declare const implementationABIDictPolygon: IDict<any>;
|
|
4
|
-
export declare const implementationABIDictFantom: IDict<any>;
|
|
5
|
-
export declare const implementationABIDictAvalanche: IDict<any>;
|
|
6
4
|
export declare const implementationABIDictArbitrum: IDict<any>;
|
|
7
5
|
export declare const implementationABIDictOptimism: IDict<any>;
|
|
8
6
|
export declare const implementationABIDictXDai: IDict<any>;
|
|
9
|
-
export declare const implementationABIDictMoonbeam: IDict<any>;
|
|
10
|
-
export declare const implementationABIDictKava: IDict<any>;
|
|
11
|
-
export declare const implementationABIDictCelo: IDict<any>;
|
|
12
7
|
export declare const implementationABIDictBase: IDict<any>;
|
|
13
8
|
export declare const implementationABIDictBsc: IDict<any>;
|
|
14
9
|
export declare const basePoolIdZapDictEthereum: IDict<{
|
|
@@ -19,14 +14,6 @@ export declare const basePoolIdZapDictPolygon: IDict<{
|
|
|
19
14
|
address: string;
|
|
20
15
|
ABI: any;
|
|
21
16
|
}>;
|
|
22
|
-
export declare const basePoolIdZapDictFantom: IDict<{
|
|
23
|
-
address: string;
|
|
24
|
-
ABI: any;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const basePoolIdZapDictAvalanche: IDict<{
|
|
27
|
-
address: string;
|
|
28
|
-
ABI: any;
|
|
29
|
-
}>;
|
|
30
17
|
export declare const basePoolIdZapDictArbitrum: IDict<{
|
|
31
18
|
address: string;
|
|
32
19
|
ABI: any;
|
|
@@ -9,7 +9,6 @@ import MetaBTCRenABI from "../abis/factory-v2/MetaBTCRen.json" with { type: 'jso
|
|
|
9
9
|
import MetaBTCRenBalancesABI from "../abis/factory-v2/MetaBTCBalancesRen.json" with { type: 'json' };
|
|
10
10
|
import MetaSbtc2ABI from "../abis/factory-v2/MetaSbtc2.json" with { type: 'json' };
|
|
11
11
|
import MetaSbtc2BalancesABI from "../abis/factory-v2/MetaSbtc2Balance.json" with { type: 'json' };
|
|
12
|
-
import MetaUSDGeistABI from "../abis/factory-v2/MetaUSDGeist.json" with { type: 'json' };
|
|
13
12
|
import Plain2BasicABI from "../abis/factory-v2/Plain2Basic.json" with { type: 'json' };
|
|
14
13
|
import Plain2BasicWithRatesABI from "../abis/factory-v2/Plain2BasicWithRates.json" with { type: 'json' };
|
|
15
14
|
import Plain2BalancesABI from "../abis/factory-v2/Plain2Balances.json" with { type: 'json' };
|
|
@@ -30,7 +29,6 @@ import fraxusdcMetaZapABI from "../abis/fraxusdc/meta_zap.json" with { type: 'js
|
|
|
30
29
|
import MetaUsdZapPolygonABI from "../abis/factory-v2/DepositZapMetaUsdPolygon.json" with { type: 'json' };
|
|
31
30
|
import MetaBtcZapPolygonABI from "../abis/factory-v2/DepositZapMetaBtcPolygon.json" with { type: 'json' };
|
|
32
31
|
import MetaZapFantomABI from "../abis/factory-v2/DepositZapFantom.json" with { type: 'json' };
|
|
33
|
-
import MetaGeistUsdZapFantomABI from "../abis/factory-v2/DepositZapMetaUsd2Fantom.json" with { type: 'json' };
|
|
34
32
|
import RenMetaZapABI from "../abis/ren/meta_zap.json" with { type: 'json' };
|
|
35
33
|
import Sbtc2MetaZapABI from "../abis/sbtc2/meta_zap.json" with { type: 'json' };
|
|
36
34
|
import { lowerCaseKeys } from "../utils.js";
|
|
@@ -87,44 +85,6 @@ export const implementationABIDictPolygon = lowerCaseKeys({
|
|
|
87
85
|
"0xf31bcdf0B9a5eCD7AB463eB905551fBc32e51856": Plain4ETHABI,
|
|
88
86
|
"0xAc273d5b4FC06625d8b1abA3BE8De15bDFb8E39f": Plain4OptimizedABI,
|
|
89
87
|
});
|
|
90
|
-
export const implementationABIDictFantom = lowerCaseKeys({
|
|
91
|
-
"0xfCE359115dFe1533a2458650123F86C454BC0213": MetaUSDABI,
|
|
92
|
-
"0x09C62ad0694e3f1ad8cF8876aaBe56138C586f5F": MetaUSDBalancesABI,
|
|
93
|
-
"0xC9438d8928486bD9621D326002F4672bF684187A": MetaBTCRenABI,
|
|
94
|
-
"0x2b70A5B878665FfDB4A06Ba40a264d6c70f68F4B": MetaBTCRenBalancesABI,
|
|
95
|
-
"0x210C806F6AE850279f7E298dE749EC4B427d00DD": MetaUSDGeistABI,
|
|
96
|
-
"0xf82162bB68aD5a168345bb7EFb2faA0EDCCA5177": MetaUSDBalancesABI,
|
|
97
|
-
"0x61E10659fe3aa93d036d099405224E4Ac24996d0": Plain2BasicABI,
|
|
98
|
-
"0xd9Acb0BAeeD77C99305017821167674Cc7e82f7a": Plain2BalancesABI,
|
|
99
|
-
"0xE6358f6a45B502477e83CC1CDa759f540E4459ee": Plain2ETHABI,
|
|
100
|
-
"0xAD4768F408dD170e62E074188D81A29AE31B8Fd8": Plain2OptimizedABI,
|
|
101
|
-
"0x3cABd83bCa606768939B843f91df8f4963dBC079": Plain3BasicABI,
|
|
102
|
-
"0xD1602F68CC7C4c7B59D686243EA35a9C73B0c6a2": Plain3BalancesABI,
|
|
103
|
-
"0x5d58Eb45e97B43e471AF05cD2b11CeB4106E1b1a": Plain3ETHABI,
|
|
104
|
-
"0x7Ee25A34C921E4009B726cC6be0643fd6a39DbfE": Plain3OptimizedABI,
|
|
105
|
-
"0xABE216918fFDa43B44e3FC09639Fd82fD3527D89": Plain4BasicABI,
|
|
106
|
-
"0x775A21E0dfE25aF30FF2FCAC37512EbD8fD36471": Plain4BalancesABI,
|
|
107
|
-
"0xb11Dc44A9f981fAF1669dca6DD40c3cc2554A2ce": Plain4ETHABI,
|
|
108
|
-
"0x9D7C28226AA7142cBF234ab9aa9C203D095c528B": Plain4OptimizedABI,
|
|
109
|
-
});
|
|
110
|
-
export const implementationABIDictAvalanche = lowerCaseKeys({
|
|
111
|
-
"0xA237034249290De2B07988Ac64b96f22c0E76fE0": MetaUSDABI,
|
|
112
|
-
"0xc50C05Ca1f8C2346664bd0d4a1eb6aC1Da38414f": MetaUSDBalancesABI, // 0x7f90122BF0700F9E7e1F688fe926940E8839F353
|
|
113
|
-
"0xa27f39E9C21b3376F43266E13Ad5A5d6E9BdB320": MetaBTCRenABI,
|
|
114
|
-
"0x505C34ED8dBE96d2D5C7D83158aA844887770970": MetaBTCRenBalancesABI, // 0x16a7DA911A4DD1d83F3fF066fE28F3C792C50d90
|
|
115
|
-
"0x697434ca761d4F86b553784B69F4f37F5eDf54dF": Plain2BasicABI,
|
|
116
|
-
"0xBdFF0C27dd073C119ebcb1299a68A6A92aE607F0": Plain2BalancesABI,
|
|
117
|
-
"0x64448B78561690B70E17CBE8029a3e5c1bB7136e": Plain2ETHABI,
|
|
118
|
-
"0x09672362833d8f703D5395ef3252D4Bfa51c15ca": Plain2OptimizedABI,
|
|
119
|
-
"0x1de7f0866e2c4adAC7b457c58Cc25c8688CDa1f2": Plain3BasicABI,
|
|
120
|
-
"0x094d12e5b541784701FD8d65F11fc0598FBC6332": Plain3BalancesABI,
|
|
121
|
-
"0xF1f85a74AD6c64315F85af52d3d46bF715236ADc": Plain3ETHABI,
|
|
122
|
-
"0xaa82ca713D94bBA7A89CEAB55314F9EfFEdDc78c": Plain3OptimizedABI,
|
|
123
|
-
"0x7544Fe3d184b6B55D6B36c3FCA1157eE0Ba30287": Plain4BasicABI,
|
|
124
|
-
"0x7D86446dDb609eD0F5f8684AcF30380a356b2B4c": Plain4BalancesABI,
|
|
125
|
-
"0x0eb0F1FaF5F509Ac53fA224477509EAD167cf410": Plain4ETHABI,
|
|
126
|
-
"0xCE94D3E5b0D80565D7B713A687b39a3Dc81780BA": Plain4OptimizedABI,
|
|
127
|
-
});
|
|
128
88
|
export const implementationABIDictArbitrum = lowerCaseKeys({
|
|
129
89
|
"0x09672362833d8f703D5395ef3252D4Bfa51c15ca": MetaUSDABI,
|
|
130
90
|
"0xBE175115BF33E12348ff77CcfEE4726866A0Fbd5": MetaUSDBalancesABI,
|
|
@@ -183,48 +143,6 @@ export const implementationABIDictXDai = lowerCaseKeys({
|
|
|
183
143
|
"0xc1C49622b63B961ce1D352ecb7D8261Ab5556695": Plain4ETHABI,
|
|
184
144
|
"0x0E2615ce69Cd3Dc3Ff6f66a975bEa0655F3bA7b9": Plain4OptimizedABI,
|
|
185
145
|
});
|
|
186
|
-
export const implementationABIDictMoonbeam = lowerCaseKeys({
|
|
187
|
-
"0x6842E0412AC1c00464dc48961330156a07268d14": Plain2BasicABI,
|
|
188
|
-
"0x9fAe78C4bBB649deB7b2295dDB8A03adA7eB660F": Plain2BalancesABI,
|
|
189
|
-
"0xfCE359115dFe1533a2458650123F86C454BC0213": Plain2ETHABI,
|
|
190
|
-
"0x09C62ad0694e3f1ad8cF8876aaBe56138C586f5F": Plain2OptimizedABI,
|
|
191
|
-
"0xD19Baeadc667Cf2015e395f2B08668Ef120f41F5": Plain3BasicABI,
|
|
192
|
-
"0x04e39EF8332e979Cf8e4f8891E64934FF65F231b": Plain3BalancesABI,
|
|
193
|
-
"0xC9438d8928486bD9621D326002F4672bF684187A": Plain3ETHABI,
|
|
194
|
-
"0x2b70A5B878665FfDB4A06Ba40a264d6c70f68F4B": Plain3OptimizedABI,
|
|
195
|
-
"0x2D036f0Ff6F440dB623e0D9D3B5Daa509e5500C3": Plain4BasicABI,
|
|
196
|
-
"0x7Bb707085905c9D80854652809A1ba8480C11789": Plain4BalancesABI,
|
|
197
|
-
"0xec9cEBE650E181079576C1b6d0d2e092B1EdfF13": Plain4ETHABI,
|
|
198
|
-
"0xe8269B33E47761f552E1a3070119560d5fa8bBD6": Plain4OptimizedABI,
|
|
199
|
-
});
|
|
200
|
-
export const implementationABIDictKava = lowerCaseKeys({
|
|
201
|
-
"0x2632679f5ca396a1bd2647092d9dbf7ec5d7b263": Plain2BasicABI,
|
|
202
|
-
"0x12f196251efcaca0fd73d5b58132b16760ba96a8": Plain2BalancesABI,
|
|
203
|
-
"0xafdab4f8f6e6992b16e3906295fba390aab59ca5": Plain2ETHABI,
|
|
204
|
-
"0x50d7a3e0d5350d52e9e08a1b58eefd1db8759d7d": Plain2OptimizedABI,
|
|
205
|
-
"0xc8913d486a42459e6b34db33f0c660fca61306b9": Plain3BasicABI,
|
|
206
|
-
"0xc5ec776a55ea062fa3173c6c76703e9c9fa91c47": Plain3BalancesABI,
|
|
207
|
-
"0xed2c5f2c4cab6e82630d5615ea15dd47d8b29983": Plain3ETHABI,
|
|
208
|
-
"0xe7d5293c01685a414ddde527eb5effbf92b52648": Plain3OptimizedABI,
|
|
209
|
-
"0x77016d2de65de15a3c36bebbddc90804f670d2d0": Plain4BasicABI,
|
|
210
|
-
"0xd59c875dccb6cdcb3a75b91b58a363b5e4b0ca9a": Plain4BalancesABI,
|
|
211
|
-
"0x6378dd741b24bd884f3590d7bc7555fdb2f5b003": Plain4ETHABI,
|
|
212
|
-
"0x509495dfeec3a53acb2f60669985d868131ad9a5": Plain4OptimizedABI,
|
|
213
|
-
});
|
|
214
|
-
export const implementationABIDictCelo = lowerCaseKeys({
|
|
215
|
-
"0xfEE7166C32Bdf6356Ef60636f43400AA55551A96": Plain2BasicABI,
|
|
216
|
-
"0x183Bb362aAa53f24BDF76a5E0FE11eEEce21F44d": Plain2BalancesABI,
|
|
217
|
-
"0x469CF0874E62cfbaD342AE7e11aBCfC0F08dC17d": Plain2ETHABI,
|
|
218
|
-
"0xE5ddCc991c29d3a5350E1Eb669439F0237dB7490": Plain2OptimizedABI,
|
|
219
|
-
"0xBcdCADB91446366d10b293152c967e64dE789B92": Plain3BasicABI,
|
|
220
|
-
"0x9Adb8f6B5c4A6Be6625E46e2fd352B859B4bf711": Plain3BalancesABI,
|
|
221
|
-
"0x15Eb833Fa0689458Dc7B11517932780DfdFaa046": Plain3ETHABI,
|
|
222
|
-
"0xa72F339708461537223Bc415008eD61338Fe0CA2": Plain3OptimizedABI,
|
|
223
|
-
"0x59395Ef4FB6F266F7B117CF0a7223eC45d78A2AF": Plain4BasicABI,
|
|
224
|
-
"0x3730D8B82BF3fF6Cc6dFDBe2Fd7B2A655e74eAae": Plain4BalancesABI,
|
|
225
|
-
"0x0F5390AB4C5456a769056C96E4D7C71770b52319": Plain4ETHABI,
|
|
226
|
-
"0xA73b02a97B45604cd9f0BBAA153eCfe01f409350": Plain4OptimizedABI,
|
|
227
|
-
});
|
|
228
146
|
export const implementationABIDictBase = lowerCaseKeys({
|
|
229
147
|
"0xD166EEdf272B860E991d331B71041799379185D5": Plain2BasicABI,
|
|
230
148
|
"0x5C627d6925e448Ae418BC8a45d56B31fe5009Bea": Plain2BalancesABI,
|
|
@@ -289,30 +207,6 @@ export const basePoolIdZapDictPolygon = {
|
|
|
289
207
|
ABI: MetaBtcZapPolygonABI,
|
|
290
208
|
},
|
|
291
209
|
};
|
|
292
|
-
export const basePoolIdZapDictFantom = {
|
|
293
|
-
'2pool': {
|
|
294
|
-
address: "0x78D51EB71a62c081550EfcC0a9F9Ea94B2Ef081c".toLowerCase(),
|
|
295
|
-
ABI: MetaZapFantomABI,
|
|
296
|
-
},
|
|
297
|
-
ren: {
|
|
298
|
-
address: "0x001E3BA199B4FF4B5B6e97aCD96daFC0E2e4156e".toLowerCase(),
|
|
299
|
-
ABI: MetaZapFantomABI,
|
|
300
|
-
},
|
|
301
|
-
geist: {
|
|
302
|
-
address: "0x247aEB220E87f24c40C9F86b65d6bd5d3c987B55".toLowerCase(),
|
|
303
|
-
ABI: MetaGeistUsdZapFantomABI,
|
|
304
|
-
},
|
|
305
|
-
};
|
|
306
|
-
export const basePoolIdZapDictAvalanche = {
|
|
307
|
-
aave: {
|
|
308
|
-
address: "0x001E3BA199B4FF4B5B6e97aCD96daFC0E2e4156e".toLowerCase(),
|
|
309
|
-
ABI: MetaUsdZapPolygonABI,
|
|
310
|
-
},
|
|
311
|
-
ren: {
|
|
312
|
-
address: "0xEeB3DDBcc4174e0b3fd1C13aD462b95D11Ef42C3".toLowerCase(),
|
|
313
|
-
ABI: MetaBtcZapPolygonABI,
|
|
314
|
-
},
|
|
315
|
-
};
|
|
316
210
|
export const basePoolIdZapDictArbitrum = {
|
|
317
211
|
"2pool": {
|
|
318
212
|
address: "0x7544Fe3d184b6B55D6B36c3FCA1157eE0Ba30287".toLowerCase(),
|
|
@@ -369,49 +263,16 @@ export const STABLE_FACTORY_CONSTANTS = {
|
|
|
369
263
|
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
370
264
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
371
265
|
},
|
|
372
|
-
146: {
|
|
373
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
374
|
-
},
|
|
375
|
-
196: {
|
|
376
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
377
|
-
},
|
|
378
|
-
250: {
|
|
379
|
-
implementationABIDict: implementationABIDictFantom,
|
|
380
|
-
basePoolIdZapDict: basePoolIdZapDictFantom,
|
|
381
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
382
|
-
},
|
|
383
266
|
252: {
|
|
384
267
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
385
268
|
},
|
|
386
|
-
324: {
|
|
387
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
388
|
-
},
|
|
389
269
|
999: {
|
|
390
270
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
391
271
|
},
|
|
392
|
-
1284: {
|
|
393
|
-
implementationABIDict: implementationABIDictMoonbeam,
|
|
394
|
-
},
|
|
395
|
-
2222: {
|
|
396
|
-
implementationABIDict: implementationABIDictKava,
|
|
397
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
398
|
-
},
|
|
399
|
-
5000: {
|
|
400
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
401
|
-
},
|
|
402
272
|
8453: {
|
|
403
273
|
implementationABIDict: implementationABIDictBase,
|
|
404
274
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
405
275
|
},
|
|
406
|
-
42220: {
|
|
407
|
-
implementationABIDict: implementationABIDictCelo,
|
|
408
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
409
|
-
},
|
|
410
|
-
43114: {
|
|
411
|
-
implementationABIDict: implementationABIDictAvalanche,
|
|
412
|
-
basePoolIdZapDict: basePoolIdZapDictAvalanche,
|
|
413
|
-
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
414
|
-
},
|
|
415
276
|
42161: {
|
|
416
277
|
implementationABIDict: implementationABIDictArbitrum,
|
|
417
278
|
basePoolIdZapDict: basePoolIdZapDictArbitrum,
|