@gearbox-protocol/sdk 0.0.18 → 0.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/lib/core/priceFeeds.js +26 -14
- package/package.json +1 -1
- package/src/core/priceFeeds.ts +26 -14
package/lib/core/priceFeeds.js
CHANGED
|
@@ -195,61 +195,71 @@ exports.priceFeedsByNetwork = {
|
|
|
195
195
|
},
|
|
196
196
|
priceFeedUSD: {
|
|
197
197
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
198
|
-
address: "0xA027702dbb89fbd58938e4324ac03B58d812b0E1"
|
|
198
|
+
address: "0xA027702dbb89fbd58938e4324ac03B58d812b0E1",
|
|
199
|
+
kovan: "0x7f6a535B75E2c815f8865CF39Ad847971AcCC3bE"
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
/// UPDATE
|
|
202
203
|
STETH: {
|
|
203
204
|
priceFeedETH: {
|
|
204
205
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
205
|
-
address: "0xcfe54b5cd566ab89272946f602d76ea879cab4a8"
|
|
206
|
+
address: "0xcfe54b5cd566ab89272946f602d76ea879cab4a8",
|
|
207
|
+
kovan: "0x087154969f935218e10f621D81e523C8f46C6dF9"
|
|
206
208
|
},
|
|
207
209
|
priceFeedUSD: {
|
|
208
210
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
209
|
-
address: "0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8"
|
|
211
|
+
address: "0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8",
|
|
212
|
+
kovan: "0x94dd77F85E0B1e6942B044E604EBA4869369453c"
|
|
210
213
|
}
|
|
211
214
|
},
|
|
212
215
|
FTM: {
|
|
213
216
|
priceFeedETH: {
|
|
214
217
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
215
|
-
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b"
|
|
218
|
+
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b",
|
|
219
|
+
kovan: "0xdCd1eB60388F340d7bF6584aa4295D95b355686c"
|
|
216
220
|
}
|
|
217
221
|
},
|
|
218
222
|
CVX: {
|
|
219
223
|
priceFeedUSD: {
|
|
220
224
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
221
|
-
address: "0xd962fc30a72a84ce50161031391756bf2876af5d"
|
|
225
|
+
address: "0xd962fc30a72a84ce50161031391756bf2876af5d",
|
|
226
|
+
kovan: "0xa6CeAbA9326C3a7Ed6A03A1cb0809A397ed286ae"
|
|
222
227
|
}
|
|
223
228
|
},
|
|
224
229
|
FRAX: {
|
|
225
230
|
priceFeedUSD: {
|
|
226
231
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
227
|
-
address: "0xb9e1e3a9feff48998e45fa90847ed4d467e8bcfd"
|
|
232
|
+
address: "0xb9e1e3a9feff48998e45fa90847ed4d467e8bcfd",
|
|
233
|
+
kovan: "0xD696fF0750F753A605236Ab499E5432e0FdeCd72"
|
|
228
234
|
}
|
|
229
235
|
},
|
|
230
236
|
LUSD: {
|
|
231
237
|
priceFeedUSD: {
|
|
232
238
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
233
|
-
address: "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0"
|
|
239
|
+
address: "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0",
|
|
240
|
+
kovan: "0xc17F8AE0c6C060F76303Be13f5f059144b38e75e"
|
|
234
241
|
}
|
|
235
242
|
},
|
|
236
243
|
sUSD: {
|
|
237
244
|
priceFeedUSD: {
|
|
238
245
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
239
|
-
address: "0xad35bd71b9afe6e4bdc266b345c198eadef9ad94"
|
|
246
|
+
address: "0xad35bd71b9afe6e4bdc266b345c198eadef9ad94",
|
|
247
|
+
kovan: "0xe45b2D1e60d94209ef36e2E66a232daefc418de2"
|
|
240
248
|
}
|
|
241
249
|
},
|
|
242
250
|
FXS: {
|
|
243
251
|
priceFeedUSD: {
|
|
244
252
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
245
|
-
address: "0x6ebc52c8c1089be9eb3945c4350b68b8e4c2233f"
|
|
253
|
+
address: "0x6ebc52c8c1089be9eb3945c4350b68b8e4c2233f",
|
|
254
|
+
kovan: "0xC6f5343637279AF7e2a4e12066Fb5ae567275E5F"
|
|
246
255
|
}
|
|
247
256
|
},
|
|
248
257
|
LDO: {
|
|
249
258
|
priceFeedETH: {
|
|
250
259
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
251
|
-
address: "0x4e844125952d32acdf339be976c98e22f6f318db"
|
|
252
|
-
|
|
260
|
+
address: "0x4e844125952d32acdf339be976c98e22f6f318db",
|
|
261
|
+
kovan: "0x6204148EF888786A2988E7b09c8e0A67e32cb387"
|
|
262
|
+
}
|
|
253
263
|
// ADD ETH-> DAI Oracle!
|
|
254
264
|
},
|
|
255
265
|
LQTY: {
|
|
@@ -260,14 +270,16 @@ exports.priceFeedsByNetwork = {
|
|
|
260
270
|
SPELL: {
|
|
261
271
|
priceFeedUSD: {
|
|
262
272
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
263
|
-
address: "0x8c110b94c5f1d347facf5e1e938ab2db60e3c9a8"
|
|
273
|
+
address: "0x8c110b94c5f1d347facf5e1e938ab2db60e3c9a8",
|
|
274
|
+
kovan: "0x68da666AcD151A3edB62c1ad1b748cCcFca026d7"
|
|
264
275
|
}
|
|
265
276
|
},
|
|
266
277
|
LUNA: {
|
|
267
278
|
priceFeedETH: {
|
|
268
279
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
269
|
-
address: "0x91e9331556ed76c9393055719986409e11b56f73"
|
|
270
|
-
|
|
280
|
+
address: "0x91e9331556ed76c9393055719986409e11b56f73",
|
|
281
|
+
kovan: "0xEfAe1275132C3D2EE009148748e3e3e384095E5f"
|
|
282
|
+
}
|
|
271
283
|
},
|
|
272
284
|
yvDAI: {
|
|
273
285
|
priceFeedETH: {
|
package/package.json
CHANGED
package/src/core/priceFeeds.ts
CHANGED
|
@@ -211,7 +211,8 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
211
211
|
},
|
|
212
212
|
priceFeedUSD: {
|
|
213
213
|
type: OracleType.CHAINLINK_ORACLE,
|
|
214
|
-
address: "0xA027702dbb89fbd58938e4324ac03B58d812b0E1"
|
|
214
|
+
address: "0xA027702dbb89fbd58938e4324ac03B58d812b0E1",
|
|
215
|
+
kovan: "0x7f6a535B75E2c815f8865CF39Ad847971AcCC3bE"
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
|
|
@@ -219,58 +220,67 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
219
220
|
STETH: {
|
|
220
221
|
priceFeedETH: {
|
|
221
222
|
type: OracleType.CHAINLINK_ORACLE,
|
|
222
|
-
address: "0xcfe54b5cd566ab89272946f602d76ea879cab4a8"
|
|
223
|
+
address: "0xcfe54b5cd566ab89272946f602d76ea879cab4a8",
|
|
224
|
+
kovan: "0x087154969f935218e10f621D81e523C8f46C6dF9"
|
|
223
225
|
},
|
|
224
226
|
priceFeedUSD: {
|
|
225
227
|
type: OracleType.CHAINLINK_ORACLE,
|
|
226
|
-
address: "0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8"
|
|
228
|
+
address: "0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8",
|
|
229
|
+
kovan: "0x94dd77F85E0B1e6942B044E604EBA4869369453c"
|
|
227
230
|
}
|
|
228
231
|
},
|
|
229
232
|
|
|
230
233
|
FTM: {
|
|
231
234
|
priceFeedETH: {
|
|
232
235
|
type: OracleType.CHAINLINK_ORACLE,
|
|
233
|
-
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b"
|
|
236
|
+
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b",
|
|
237
|
+
kovan: "0xdCd1eB60388F340d7bF6584aa4295D95b355686c"
|
|
234
238
|
}
|
|
235
239
|
},
|
|
236
240
|
|
|
237
241
|
CVX: {
|
|
238
242
|
priceFeedUSD: {
|
|
239
243
|
type: OracleType.CHAINLINK_ORACLE,
|
|
240
|
-
address: "0xd962fc30a72a84ce50161031391756bf2876af5d"
|
|
244
|
+
address: "0xd962fc30a72a84ce50161031391756bf2876af5d",
|
|
245
|
+
kovan: "0xa6CeAbA9326C3a7Ed6A03A1cb0809A397ed286ae"
|
|
241
246
|
}
|
|
242
247
|
},
|
|
243
248
|
|
|
244
249
|
FRAX: {
|
|
245
250
|
priceFeedUSD: {
|
|
246
251
|
type: OracleType.CHAINLINK_ORACLE,
|
|
247
|
-
address: "0xb9e1e3a9feff48998e45fa90847ed4d467e8bcfd"
|
|
252
|
+
address: "0xb9e1e3a9feff48998e45fa90847ed4d467e8bcfd",
|
|
253
|
+
kovan: "0xD696fF0750F753A605236Ab499E5432e0FdeCd72"
|
|
248
254
|
}
|
|
249
255
|
},
|
|
250
256
|
LUSD: {
|
|
251
257
|
priceFeedUSD: {
|
|
252
258
|
type: OracleType.CHAINLINK_ORACLE,
|
|
253
|
-
address: "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0"
|
|
259
|
+
address: "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0",
|
|
260
|
+
kovan: "0xc17F8AE0c6C060F76303Be13f5f059144b38e75e"
|
|
254
261
|
}
|
|
255
262
|
},
|
|
256
263
|
sUSD: {
|
|
257
264
|
priceFeedUSD: {
|
|
258
265
|
type: OracleType.CHAINLINK_ORACLE,
|
|
259
|
-
address: "0xad35bd71b9afe6e4bdc266b345c198eadef9ad94"
|
|
266
|
+
address: "0xad35bd71b9afe6e4bdc266b345c198eadef9ad94",
|
|
267
|
+
kovan: "0xe45b2D1e60d94209ef36e2E66a232daefc418de2"
|
|
260
268
|
}
|
|
261
269
|
},
|
|
262
270
|
|
|
263
271
|
FXS: {
|
|
264
272
|
priceFeedUSD: {
|
|
265
273
|
type: OracleType.CHAINLINK_ORACLE,
|
|
266
|
-
address: "0x6ebc52c8c1089be9eb3945c4350b68b8e4c2233f"
|
|
274
|
+
address: "0x6ebc52c8c1089be9eb3945c4350b68b8e4c2233f",
|
|
275
|
+
kovan: "0xC6f5343637279AF7e2a4e12066Fb5ae567275E5F"
|
|
267
276
|
}
|
|
268
277
|
},
|
|
269
278
|
LDO: {
|
|
270
279
|
priceFeedETH: {
|
|
271
280
|
type: OracleType.CHAINLINK_ORACLE,
|
|
272
|
-
address: "0x4e844125952d32acdf339be976c98e22f6f318db"
|
|
273
|
-
|
|
281
|
+
address: "0x4e844125952d32acdf339be976c98e22f6f318db",
|
|
282
|
+
kovan: "0x6204148EF888786A2988E7b09c8e0A67e32cb387"
|
|
283
|
+
}
|
|
274
284
|
|
|
275
285
|
// ADD ETH-> DAI Oracle!
|
|
276
286
|
},
|
|
@@ -282,14 +292,16 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
282
292
|
SPELL: {
|
|
283
293
|
priceFeedUSD: {
|
|
284
294
|
type: OracleType.CHAINLINK_ORACLE,
|
|
285
|
-
address: "0x8c110b94c5f1d347facf5e1e938ab2db60e3c9a8"
|
|
295
|
+
address: "0x8c110b94c5f1d347facf5e1e938ab2db60e3c9a8",
|
|
296
|
+
kovan: "0x68da666AcD151A3edB62c1ad1b748cCcFca026d7"
|
|
286
297
|
}
|
|
287
298
|
},
|
|
288
299
|
LUNA: {
|
|
289
300
|
priceFeedETH: {
|
|
290
301
|
type: OracleType.CHAINLINK_ORACLE,
|
|
291
|
-
address: "0x91e9331556ed76c9393055719986409e11b56f73"
|
|
292
|
-
|
|
302
|
+
address: "0x91e9331556ed76c9393055719986409e11b56f73",
|
|
303
|
+
kovan: "0xEfAe1275132C3D2EE009148748e3e3e384095E5f"
|
|
304
|
+
}
|
|
293
305
|
},
|
|
294
306
|
|
|
295
307
|
yvDAI: {
|