@gearbox-protocol/sdk 0.0.23 → 0.0.26

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.
@@ -18,7 +18,7 @@ export declare type PriceFeedData = {
18
18
  kovan?: string;
19
19
  } | {
20
20
  type: OracleType.YEARN_TOKEN_ORACLE;
21
- priceFeed: string;
21
+ token: SupportedTokens;
22
22
  priceFeedKovan?: string;
23
23
  lowerBound: BigNumber;
24
24
  upperBound: BigNumber;
@@ -284,45 +284,45 @@ exports.priceFeedsByNetwork = {
284
284
  yvDAI: {
285
285
  priceFeedETH: {
286
286
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
287
- priceFeed: "0x773616E4d11A78F511299002da57A0a94577F1f4",
288
- lowerBound: constants_1.WAD.mul(1015).div(1000),
289
- upperBound: constants_1.WAD.mul(1030).div(1000)
287
+ token: "DAI",
288
+ lowerBound: constants_1.WAD,
289
+ upperBound: constants_1.WAD.mul(10)
290
290
  },
291
291
  priceFeedUSD: {
292
292
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
293
- priceFeed: "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9",
294
- lowerBound: constants_1.WAD.mul(1015).div(1000),
295
- upperBound: constants_1.WAD.mul(1030).div(1000)
293
+ token: "DAI",
294
+ lowerBound: constants_1.WAD,
295
+ upperBound: constants_1.WAD.mul(10)
296
296
  }
297
297
  },
298
298
  yvUSDC: {
299
299
  priceFeedETH: {
300
300
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
301
- priceFeed: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
301
+ token: "USDC",
302
302
  lowerBound: ethers_1.BigNumber.from(1000000),
303
- upperBound: ethers_1.BigNumber.from(1030000)
303
+ upperBound: ethers_1.BigNumber.from(100000000)
304
304
  },
305
305
  priceFeedUSD: {
306
306
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
307
- priceFeed: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
307
+ token: "USDC",
308
308
  lowerBound: ethers_1.BigNumber.from(1000000),
309
- upperBound: ethers_1.BigNumber.from(1030000)
309
+ upperBound: ethers_1.BigNumber.from(100000000)
310
310
  }
311
311
  },
312
312
  yvWETH: {
313
313
  priceFeedUSD: {
314
314
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
315
- priceFeed: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
316
- lowerBound: constants_1.WAD.mul(1008).div(1000),
317
- upperBound: constants_1.WAD.mul(1059).div(1000)
315
+ token: "WETH",
316
+ lowerBound: constants_1.WAD,
317
+ upperBound: constants_1.WAD.mul(10)
318
318
  }
319
319
  },
320
320
  yvWBTC: {
321
321
  priceFeedUSD: {
322
322
  type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
323
- priceFeed: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
324
- lowerBound: ethers_1.BigNumber.from("101780000"),
325
- upperBound: ethers_1.BigNumber.from("106870000")
323
+ token: "WBTC",
324
+ lowerBound: ethers_1.BigNumber.from("100000000"),
325
+ upperBound: ethers_1.BigNumber.from("10000000000")
326
326
  }
327
327
  },
328
328
  // CURVE LP TOKENS
@@ -367,24 +367,24 @@ exports.priceFeedsByNetwork = {
367
367
  priceFeedUSD: {
368
368
  type: oracles_1.OracleType.YEARN_CURVE_LP_ORACLE,
369
369
  curveSymbol: "steCRV",
370
- lowerBound: ethers_1.BigNumber.from("1060263876405898945"),
371
- upperBound: ethers_1.BigNumber.from("1090263876405898945")
370
+ lowerBound: constants_1.WAD,
371
+ upperBound: constants_1.WAD.mul(100)
372
372
  }
373
373
  },
374
374
  yvCurve_FRAX: {
375
375
  priceFeedUSD: {
376
376
  type: oracles_1.OracleType.YEARN_CURVE_LP_ORACLE,
377
377
  curveSymbol: "FRAX3CRV",
378
- lowerBound: ethers_1.BigNumber.from("1102262133144500000"),
379
- upperBound: ethers_1.BigNumber.from("1108262133144500000")
378
+ lowerBound: constants_1.WAD,
379
+ upperBound: constants_1.WAD.mul(100)
380
380
  }
381
381
  },
382
382
  yvCurve_d3pool: {
383
383
  priceFeedUSD: {
384
384
  type: oracles_1.OracleType.YEARN_CURVE_LP_ORACLE,
385
385
  curveSymbol: "crvPlain3andSUSD",
386
- lowerBound: ethers_1.BigNumber.from("101780000"),
387
- upperBound: ethers_1.BigNumber.from("106870000")
386
+ lowerBound: ethers_1.BigNumber.from("100000000"),
387
+ upperBound: ethers_1.BigNumber.from("10000000000")
388
388
  }
389
389
  },
390
390
  // CVX tokens
package/lib/core/token.js CHANGED
@@ -242,8 +242,8 @@ exports.tokenDataByNetwork = {
242
242
  // YEARN TOKENS
243
243
  yvDAI: "0xe5267045739E4d6FcA15BB4a79190012F146893b",
244
244
  yvUSDC: "0x980E4d8A22105c2a2fA2252B7685F32fc7564512",
245
- yvWETH: "0xFf251c883b47A316E03d41D5A7478Ca505b117c9",
246
- yvWBTC: "0x7D5F0D5Ab03C4FcACEa011c10D0Ce92629826902",
245
+ yvWETH: "0xB8f3CC38753db078b86e31647bE0A752cfd30A4b",
246
+ yvWBTC: "0xF7Db34C42471958e732c4DD474bC904da7042518",
247
247
  // CURVE LP TOKENS
248
248
  "3Crv": "0x769C784D1e958672bDef04cf12Fd5399b3db0f27",
249
249
  steCRV: "0xF695d3aa358D5087A0C157DBb9449d4f0d8E534a",
@@ -258,7 +258,7 @@ exports.tokenDataByNetwork = {
258
258
  cvxcrvPlain3andSUSD: "",
259
259
  cvxgusd3CRV: "",
260
260
  // YEARN- CURVE TOKENS
261
- yvCurve_stETH: "0x1FB656CB043B7E198586E3dBE1c6c64249BC2b54",
261
+ yvCurve_stETH: "0xdDc2FA328321573Bc2647C0135D75012c522CDAC",
262
262
  yvCurve_FRAX: "",
263
263
  yvCurve_d3pool: ""
264
264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "0.0.23",
3
+ "version": "0.0.26",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -23,7 +23,7 @@ export type PriceFeedData =
23
23
  }
24
24
  | {
25
25
  type: OracleType.YEARN_TOKEN_ORACLE;
26
- priceFeed: string;
26
+ token: SupportedTokens;
27
27
  priceFeedKovan?: string;
28
28
  lowerBound: BigNumber;
29
29
  upperBound: BigNumber;
@@ -307,45 +307,45 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
307
307
  yvDAI: {
308
308
  priceFeedETH: {
309
309
  type: OracleType.YEARN_TOKEN_ORACLE,
310
- priceFeed: "0x773616E4d11A78F511299002da57A0a94577F1f4",
311
- lowerBound: WAD.mul(1015).div(1000),
312
- upperBound: WAD.mul(1030).div(1000)
310
+ token: "DAI",
311
+ lowerBound: WAD,
312
+ upperBound: WAD.mul(10)
313
313
  },
314
314
  priceFeedUSD: {
315
315
  type: OracleType.YEARN_TOKEN_ORACLE,
316
- priceFeed: "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9",
317
- lowerBound: WAD.mul(1015).div(1000),
318
- upperBound: WAD.mul(1030).div(1000)
316
+ token: "DAI",
317
+ lowerBound: WAD,
318
+ upperBound: WAD.mul(10)
319
319
  }
320
320
  },
321
321
  yvUSDC: {
322
322
  priceFeedETH: {
323
323
  type: OracleType.YEARN_TOKEN_ORACLE,
324
- priceFeed: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
324
+ token: "USDC",
325
325
  lowerBound: BigNumber.from(1000000),
326
- upperBound: BigNumber.from(1030000)
326
+ upperBound: BigNumber.from(100000000)
327
327
  },
328
328
  priceFeedUSD: {
329
329
  type: OracleType.YEARN_TOKEN_ORACLE,
330
- priceFeed: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
330
+ token: "USDC",
331
331
  lowerBound: BigNumber.from(1000000),
332
- upperBound: BigNumber.from(1030000)
332
+ upperBound: BigNumber.from(100000000)
333
333
  }
334
334
  },
335
335
  yvWETH: {
336
336
  priceFeedUSD: {
337
337
  type: OracleType.YEARN_TOKEN_ORACLE,
338
- priceFeed: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
339
- lowerBound: WAD.mul(1008).div(1000),
340
- upperBound: WAD.mul(1059).div(1000)
338
+ token: "WETH",
339
+ lowerBound: WAD,
340
+ upperBound: WAD.mul(10)
341
341
  }
342
342
  },
343
343
  yvWBTC: {
344
344
  priceFeedUSD: {
345
345
  type: OracleType.YEARN_TOKEN_ORACLE,
346
- priceFeed: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
347
- lowerBound: BigNumber.from("101780000"),
348
- upperBound: BigNumber.from("106870000")
346
+ token: "WBTC",
347
+ lowerBound: BigNumber.from("100000000"),
348
+ upperBound: BigNumber.from("10000000000")
349
349
  }
350
350
  },
351
351
 
@@ -398,24 +398,24 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
398
398
  priceFeedUSD: {
399
399
  type: OracleType.YEARN_CURVE_LP_ORACLE,
400
400
  curveSymbol: "steCRV",
401
- lowerBound: BigNumber.from("1060263876405898945"),
402
- upperBound: BigNumber.from("1090263876405898945")
401
+ lowerBound: WAD,
402
+ upperBound: WAD.mul(100)
403
403
  }
404
404
  },
405
405
  yvCurve_FRAX: {
406
406
  priceFeedUSD: {
407
407
  type: OracleType.YEARN_CURVE_LP_ORACLE,
408
408
  curveSymbol: "FRAX3CRV",
409
- lowerBound: BigNumber.from("1102262133144500000"),
410
- upperBound: BigNumber.from("1108262133144500000")
409
+ lowerBound: WAD,
410
+ upperBound: WAD.mul(100)
411
411
  }
412
412
  },
413
413
  yvCurve_d3pool: {
414
414
  priceFeedUSD: {
415
415
  type: OracleType.YEARN_CURVE_LP_ORACLE,
416
416
  curveSymbol: "crvPlain3andSUSD",
417
- lowerBound: BigNumber.from("101780000"),
418
- upperBound: BigNumber.from("106870000")
417
+ lowerBound: BigNumber.from("100000000"),
418
+ upperBound: BigNumber.from("10000000000")
419
419
  }
420
420
  },
421
421
 
package/src/core/token.ts CHANGED
@@ -300,8 +300,8 @@ export const tokenDataByNetwork: Record<
300
300
  // YEARN TOKENS
301
301
  yvDAI: "0xe5267045739E4d6FcA15BB4a79190012F146893b",
302
302
  yvUSDC: "0x980E4d8A22105c2a2fA2252B7685F32fc7564512",
303
- yvWETH: "0xFf251c883b47A316E03d41D5A7478Ca505b117c9",
304
- yvWBTC: "0x7D5F0D5Ab03C4FcACEa011c10D0Ce92629826902",
303
+ yvWETH: "0xB8f3CC38753db078b86e31647bE0A752cfd30A4b",
304
+ yvWBTC: "0xF7Db34C42471958e732c4DD474bC904da7042518",
305
305
 
306
306
  // CURVE LP TOKENS
307
307
  "3Crv": "0x769C784D1e958672bDef04cf12Fd5399b3db0f27",
@@ -319,7 +319,7 @@ export const tokenDataByNetwork: Record<
319
319
  cvxgusd3CRV: "",
320
320
 
321
321
  // YEARN- CURVE TOKENS
322
- yvCurve_stETH: "0x1FB656CB043B7E198586E3dBE1c6c64249BC2b54",
322
+ yvCurve_stETH: "0xdDc2FA328321573Bc2647C0135D75012c522CDAC",
323
323
  yvCurve_FRAX: "",
324
324
  yvCurve_d3pool: ""
325
325
  }