@defisaver/sdk 1.0.18 → 1.0.19
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/esm/src/addresses.js +2 -2
- package/esm/src/utils/convex-utils.d.ts +10 -0
- package/esm/src/utils/convexPoolInfo.json +18 -0
- package/esm/src/utils/curvePoolInfo.json +96 -0
- package/esm/src/utils/index.d.ts +2 -1
- package/esm/src/utils/index.js +2 -1
- package/package.json +1 -1
- package/src/addresses.ts +2 -2
- package/src/utils/convexPoolInfo.json +1056 -1038
- package/src/utils/curvePoolInfo.json +298 -202
- package/src/utils/index.ts +2 -0
- package/umd/index.js +7 -4
|
@@ -1,203 +1,299 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
2
|
+
{
|
|
3
|
+
"name": "susd",
|
|
4
|
+
"swapAddr": "0xA5407eAE9Ba41422680e2e00537571bcC53efBfD",
|
|
5
|
+
"depositContract": "0xFCBa3E75865d2d561BE8D220616520c171F12851",
|
|
6
|
+
"nCoins": 4,
|
|
7
|
+
"coins": [
|
|
8
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
9
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
10
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
11
|
+
"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"
|
|
12
|
+
],
|
|
13
|
+
"decimals": [
|
|
14
|
+
18,
|
|
15
|
+
6,
|
|
16
|
+
6,
|
|
17
|
+
18
|
|
18
|
+
],
|
|
19
|
+
"underlyingCoins": [
|
|
20
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
21
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
22
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
23
|
+
"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"
|
|
24
|
+
],
|
|
25
|
+
"underlyingDecimals": [
|
|
26
|
+
18,
|
|
27
|
+
6,
|
|
28
|
+
6,
|
|
29
|
+
18
|
|
30
|
+
],
|
|
31
|
+
"isMeta": false,
|
|
32
|
+
"lpToken": "0xC25a3A3b969415c80451098fa907EC722572917F",
|
|
33
|
+
"gauges": [
|
|
34
|
+
"0xA90996896660DEcC6E997655E065b23788857849"
|
|
35
|
+
],
|
|
36
|
+
"gaugeTypes": [
|
|
37
|
+
0
|
|
38
|
+
],
|
|
39
|
+
"zapType": 1
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "compound",
|
|
43
|
+
"swapAddr": "0xA2B47E3D5c44877cca798226B7B8118F9BFb7A56",
|
|
44
|
+
"depositContract": "0xeB21209ae4C2c9FF2a86ACA31E123764A3B6Bc06",
|
|
45
|
+
"nCoins": 2,
|
|
46
|
+
"coins": [
|
|
47
|
+
"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",
|
|
48
|
+
"0x39AA39c021dfbaE8faC545936693aC917d5E7563"
|
|
49
|
+
],
|
|
50
|
+
"decimals": [
|
|
51
|
+
8,
|
|
52
|
+
8
|
|
53
|
+
],
|
|
54
|
+
"underlyingCoins": [
|
|
55
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
56
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
|
57
|
+
],
|
|
58
|
+
"underlyingDecimals": [
|
|
59
|
+
18,
|
|
60
|
+
6
|
|
61
|
+
],
|
|
62
|
+
"isMeta": false,
|
|
63
|
+
"lpToken": "0x845838DF265Dcd2c412A1Dc9e959c7d08537f8a2",
|
|
64
|
+
"gauges": [
|
|
65
|
+
"0x7ca5b0a2910B33e9759DC7dDB0413949071D7575"
|
|
66
|
+
],
|
|
67
|
+
"gaugeTypes": [
|
|
68
|
+
0
|
|
69
|
+
],
|
|
70
|
+
"zapType": 1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"underlyingFlag": true,
|
|
74
|
+
"name": "aave",
|
|
75
|
+
"swapAddr": "0xDeBF20617708857ebe4F679508E7b7863a8A8EeE",
|
|
76
|
+
"nCoins": 3,
|
|
77
|
+
"coins": [
|
|
78
|
+
"0x028171bCA77440897B824Ca71D1c56caC55b68A3",
|
|
79
|
+
"0xBcca60bB61934080951369a648Fb03DF4F96263C",
|
|
80
|
+
"0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811"
|
|
81
|
+
],
|
|
82
|
+
"decimals": [
|
|
83
|
+
18,
|
|
84
|
+
6,
|
|
85
|
+
6
|
|
86
|
+
],
|
|
87
|
+
"underlyingCoins": [
|
|
88
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
89
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
90
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
91
|
+
],
|
|
92
|
+
"underlyingDecimals": [
|
|
93
|
+
18,
|
|
94
|
+
6,
|
|
95
|
+
6
|
|
96
|
+
],
|
|
97
|
+
"isMeta": false,
|
|
98
|
+
"lpToken": "0xFd2a8fA60Abd58Efe3EeE34dd494cD491dC14900",
|
|
99
|
+
"gauges": [
|
|
100
|
+
"0xd662908ADA2Ea1916B3318327A97eB18aD588b5d"
|
|
101
|
+
],
|
|
102
|
+
"gaugeTypes": [
|
|
103
|
+
0
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "steth",
|
|
108
|
+
"swapAddr": "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022",
|
|
109
|
+
"nCoins": 2,
|
|
110
|
+
"coins": [
|
|
111
|
+
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
112
|
+
"0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84"
|
|
113
|
+
],
|
|
114
|
+
"decimals": [
|
|
115
|
+
18,
|
|
116
|
+
18
|
|
117
|
+
],
|
|
118
|
+
"underlyingCoins": [
|
|
119
|
+
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
120
|
+
"0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84"
|
|
121
|
+
],
|
|
122
|
+
"underlyingDecimals": [
|
|
123
|
+
18,
|
|
124
|
+
18
|
|
125
|
+
],
|
|
126
|
+
"isMeta": false,
|
|
127
|
+
"lpToken": "0x06325440D014e39736583c165C2963BA99fAf14E",
|
|
128
|
+
"gauges": [
|
|
129
|
+
"0x182B723a58739a9c974cFDB385ceaDb237453c28"
|
|
130
|
+
],
|
|
131
|
+
"gaugeTypes": [
|
|
132
|
+
0
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "3pool",
|
|
137
|
+
"swapAddr": "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7",
|
|
138
|
+
"nCoins": 3,
|
|
139
|
+
"coins": [
|
|
140
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
141
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
142
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
143
|
+
],
|
|
144
|
+
"decimals": [
|
|
145
|
+
18,
|
|
146
|
+
6,
|
|
147
|
+
6
|
|
148
|
+
],
|
|
149
|
+
"underlyingCoins": [
|
|
150
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
151
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
152
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
153
|
+
],
|
|
154
|
+
"underlyingDecimals": [
|
|
155
|
+
18,
|
|
156
|
+
6,
|
|
157
|
+
6
|
|
158
|
+
],
|
|
159
|
+
"isMeta": false,
|
|
160
|
+
"lpToken": "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
|
|
161
|
+
"gauges": [
|
|
162
|
+
"0xbFcF63294aD7105dEa65aA58F8AE5BE2D9d0952A"
|
|
163
|
+
],
|
|
164
|
+
"gaugeTypes": [
|
|
165
|
+
0
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "musd",
|
|
170
|
+
"swapAddr": "0x8474DdbE98F5aA3179B3B3F5942D724aFcdec9f6",
|
|
171
|
+
"depositContract": "0x803A2B40c5a9BB2B86DD630B274Fa2A9202874C2",
|
|
172
|
+
"nCoins": 2,
|
|
173
|
+
"coins": [
|
|
174
|
+
"0xe2f2a5C287993345a840Db3B0845fbC70f5935a5",
|
|
175
|
+
"0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490"
|
|
176
|
+
],
|
|
177
|
+
"decimals": [
|
|
178
|
+
18,
|
|
179
|
+
18
|
|
180
|
+
],
|
|
181
|
+
"underlyingCoins": [
|
|
182
|
+
"0xe2f2a5C287993345a840Db3B0845fbC70f5935a5",
|
|
183
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
184
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
185
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
186
|
+
],
|
|
187
|
+
"underlyingDecimals": [
|
|
188
|
+
18,
|
|
189
|
+
18,
|
|
190
|
+
6,
|
|
191
|
+
6
|
|
192
|
+
],
|
|
193
|
+
"isMeta": true,
|
|
194
|
+
"lpToken": "0x1AEf73d49Dedc4b1778d0706583995958Dc862e6",
|
|
195
|
+
"gauges": [
|
|
196
|
+
"0x5f626c30EC1215f4EdCc9982265E8b1F411D1352"
|
|
197
|
+
],
|
|
198
|
+
"gaugeTypes": [
|
|
199
|
+
0
|
|
200
|
+
],
|
|
201
|
+
"zapType": 0
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "lusd",
|
|
205
|
+
"swapAddr": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
206
|
+
"depositContract": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
207
|
+
"devComment": "it would follow logic that the depositContract should be the 3pool zap but because of the smart contract logic it is overridden here",
|
|
208
|
+
"nCoins": 2,
|
|
209
|
+
"coins": [
|
|
210
|
+
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
|
|
211
|
+
"0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490"
|
|
212
|
+
],
|
|
213
|
+
"decimals": [
|
|
214
|
+
18,
|
|
215
|
+
18
|
|
216
|
+
],
|
|
217
|
+
"underlyingCoins": [
|
|
218
|
+
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
|
|
219
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
220
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
221
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
222
|
+
],
|
|
223
|
+
"underlyingDecimals": [
|
|
224
|
+
18,
|
|
225
|
+
18,
|
|
226
|
+
6,
|
|
227
|
+
6
|
|
228
|
+
],
|
|
229
|
+
"isMeta": true,
|
|
230
|
+
"lpToken": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
231
|
+
"gauges": [
|
|
232
|
+
"0x9B8519A9a00100720CCdC8a120fBeD319cA47a14"
|
|
233
|
+
],
|
|
234
|
+
"gaugeTypes": [
|
|
235
|
+
0
|
|
236
|
+
],
|
|
237
|
+
"zapType": 2
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "reth",
|
|
241
|
+
"isFactory": true,
|
|
242
|
+
"swapAddr": "0x0f3159811670c117c372428D4E69AC32325e4D0F",
|
|
243
|
+
"nCoins": 2,
|
|
244
|
+
"coins": [
|
|
245
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
246
|
+
"0xae78736Cd615f374D3085123A210448E74Fc6393"
|
|
247
|
+
],
|
|
248
|
+
"decimals": [
|
|
249
|
+
18,
|
|
250
|
+
18
|
|
251
|
+
],
|
|
252
|
+
"underlyingCoins": [
|
|
253
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
254
|
+
"0xae78736Cd615f374D3085123A210448E74Fc6393"
|
|
255
|
+
],
|
|
256
|
+
"underlyingDecimals": [
|
|
257
|
+
18,
|
|
258
|
+
18
|
|
259
|
+
],
|
|
260
|
+
"isMeta": false,
|
|
261
|
+
"lpToken": "0x6c38cE8984a890F5e46e6dF6117C26b3F1EcfC9C",
|
|
262
|
+
"gauges": [
|
|
263
|
+
"0x9d4D981d8a9066f5db8532A5816543dE8819d4A8"
|
|
264
|
+
],
|
|
265
|
+
"gaugeTypes": [
|
|
266
|
+
0
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "cbeth",
|
|
271
|
+
"isFactory": true,
|
|
272
|
+
"swapAddr": "0x5FAE7E604FC3e24fd43A72867ceBaC94c65b404A",
|
|
273
|
+
"nCoins": 2,
|
|
274
|
+
"coins": [
|
|
275
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
276
|
+
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
|
|
277
|
+
],
|
|
278
|
+
"decimals": [
|
|
279
|
+
18,
|
|
280
|
+
18
|
|
281
|
+
],
|
|
282
|
+
"underlyingCoins": [
|
|
283
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
284
|
+
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
|
|
285
|
+
],
|
|
286
|
+
"underlyingDecimals": [
|
|
287
|
+
18,
|
|
288
|
+
18
|
|
289
|
+
],
|
|
290
|
+
"isMeta": false,
|
|
291
|
+
"lpToken": "0x5b6C539b224014A09B3388e51CaAA8e354c959C8",
|
|
292
|
+
"gauges": [
|
|
293
|
+
"0xAd96E10123Fa34a01cf2314C42D75150849C9295"
|
|
294
|
+
],
|
|
295
|
+
"gaugeTypes": [
|
|
296
|
+
0
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
]
|
package/src/utils/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as uniswapLP from './uniswapLP';
|
|
|
3
3
|
import * as uniswapV3LP from './uniswapV3LP';
|
|
4
4
|
import * as convexUtils from './convex-utils';
|
|
5
5
|
import mstableAssetPairs from './mstableAssetPairs';
|
|
6
|
+
import * as curveUtils from './curve-utils';
|
|
6
7
|
|
|
7
8
|
export {
|
|
8
9
|
zeroExExchange,
|
|
@@ -10,4 +11,5 @@ export {
|
|
|
10
11
|
uniswapV3LP,
|
|
11
12
|
mstableAssetPairs,
|
|
12
13
|
convexUtils,
|
|
14
|
+
curveUtils,
|
|
13
15
|
};
|