@gearbox-protocol/sdk 1.21.0 → 1.22.1

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.
@@ -333,7 +333,15 @@ exports.priceFeedsByNetwork = {
333
333
  },
334
334
  },
335
335
  priceFeedUSD: {
336
- type: oracles_1.OracleType.ZERO_ORACLE,
336
+ type: oracles_1.OracleType.COMPOSITE_ORACLE,
337
+ targetToBasePriceFeed: {
338
+ Mainnet: "0x4e844125952d32acdf339be976c98e22f6f318db",
339
+ Goerli: "0x6569bae7114121aE82303F42f42b64012DcCbD7d",
340
+ },
341
+ baseToUsdPriceFeed: {
342
+ Mainnet: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
343
+ Goerli: "0x491741d9F426130d1bC27Aee82f8b4Bd4E6E5f5D",
344
+ },
337
345
  },
338
346
  // ADD ETH-> DAI Oracle!
339
347
  },
@@ -455,6 +463,12 @@ exports.priceFeedsByNetwork = {
455
463
  assets: ["GUSD", "DAI", "USDC", "USDT"],
456
464
  },
457
465
  },
466
+ MIM_3LP3CRV: {
467
+ priceFeedUSD: {
468
+ type: oracles_1.OracleType.CURVE_LP_TOKEN_ORACLE,
469
+ assets: ["MIM", "DAI", "USDC", "USDT"],
470
+ },
471
+ },
458
472
  OHMFRAXBP: {
459
473
  priceFeedUSD: {
460
474
  type: oracles_1.OracleType.CURVE_CRYPTO_ORACLE,
@@ -727,12 +741,6 @@ exports.priceFeedsByNetwork = {
727
741
  address: { Mainnet: "", Goerli: "" },
728
742
  },
729
743
  },
730
- MIM_3LP3CRV: {
731
- priceFeedUSD: {
732
- type: oracles_1.OracleType.CURVE_CRYPTO_ORACLE,
733
- assets: ["MIM", "3Crv"],
734
- },
735
- },
736
744
  "50OHM_50DAI": {
737
745
  priceFeedUSD: {
738
746
  type: oracles_1.OracleType.BALANCER_WEIGHTED_LP_ORACLE,
@@ -4,8 +4,8 @@ import { TradeAction } from "../pathfinder/tradeTypes";
4
4
  import { PartialRecord } from "../utils/types";
5
5
  import type { SupportedToken, TokenBase } from "./token";
6
6
  import { TokenType } from "./tokenType";
7
- export type CurveMetaTokens = "FRAX3CRV" | "LUSD3CRV" | "gusd3CRV" | "MIM_3LP3CRV";
8
- export type CurveLPToken = "3Crv" | "steCRV" | "crvPlain3andSUSD" | "crvFRAX" | "OHMFRAXBP" | "crvCRVETH" | "crvCVXETH" | "crvUSDTWBTCWETH" | "LDOETH" | CurveMetaTokens;
7
+ export type CurveMetaTokens = "FRAX3CRV" | "LUSD3CRV" | "gusd3CRV" | "MIM_3LP3CRV" | "OHMFRAXBP";
8
+ export type CurveLPToken = "3Crv" | "steCRV" | "crvPlain3andSUSD" | "crvFRAX" | "crvCRVETH" | "crvCVXETH" | "crvUSDTWBTCWETH" | "LDOETH" | CurveMetaTokens;
9
9
  export type CurveLPTokenData = {
10
10
  symbol: CurveLPToken;
11
11
  type: TokenType.CURVE_LP_TOKEN;
@@ -104,6 +104,29 @@ exports.curveMetaTokens = {
104
104
  },
105
105
  ],
106
106
  },
107
+ OHMFRAXBP: {
108
+ name: "Curve.fi Factory Crypto Pool: OHM/FRAXBP",
109
+ symbol: "OHMFRAXBP",
110
+ type: tokenType_1.TokenType.CURVE_LP_TOKEN,
111
+ pool: "CURVE_OHMFRAXBP_POOL",
112
+ lpActions: [
113
+ {
114
+ type: tradeTypes_1.TradeType.CurveWithdrawLP,
115
+ contract: "CURVE_OHMFRAXBP_POOL",
116
+ tokenOut: ["OHM", "FRAX", "USDC"],
117
+ },
118
+ {
119
+ type: tradeTypes_1.TradeType.ConvexDepositLP,
120
+ contract: "CONVEX_BOOSTER",
121
+ tokenOut: "cvxOHMFRAXBP",
122
+ },
123
+ {
124
+ type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
125
+ contract: "CONVEX_BOOSTER",
126
+ tokenOut: "stkcvxOHMFRAXBP",
127
+ },
128
+ ],
129
+ },
107
130
  };
108
131
  exports.curveTokens = __assign({
109
132
  // CURVE LP TOKENS
@@ -196,28 +219,6 @@ exports.curveTokens = __assign({
196
219
  tokenOut: "stkcvxcrvPlain3andSUSD",
197
220
  },
198
221
  ],
199
- }, OHMFRAXBP: {
200
- name: "Curve.fi Factory Crypto Pool: OHM/FRAXBP",
201
- symbol: "OHMFRAXBP",
202
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
203
- pool: "CURVE_OHMFRAXBP_POOL",
204
- lpActions: [
205
- {
206
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
207
- contract: "CURVE_OHMFRAXBP_POOL",
208
- tokenOut: ["OHM", "FRAX", "USDC"],
209
- },
210
- {
211
- type: tradeTypes_1.TradeType.ConvexDepositLP,
212
- contract: "CONVEX_BOOSTER",
213
- tokenOut: "cvxOHMFRAXBP",
214
- },
215
- {
216
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
217
- contract: "CONVEX_BOOSTER",
218
- tokenOut: "stkcvxOHMFRAXBP",
219
- },
220
- ],
221
222
  }, crvCRVETH: {
222
223
  name: "Curve CRV-ETH",
223
224
  symbol: "crvCRVETH",
@@ -82,7 +82,7 @@ exports.tokenDataByNetwork = {
82
82
  cvxcrvCRVETH: "0x0Fb8dcdD95e4C48D3dD0eFA4086512f6F8FD4565",
83
83
  cvxcrvCVXETH: "0x0bC857f97c0554d1d0D602b56F2EEcE682016fBA",
84
84
  cvxcrvUSDTWBTCWETH: "0xB77BA8B4b9d981269466eE95796A9Af57d4E82DB",
85
- cvxLDOETH: "0xD533a949740bb3306d119CC777fa900bA034cd52",
85
+ cvxLDOETH: "0x4eBE557ae39F87D2a014719777FD4cF4d01Dc8Ee",
86
86
  // CONVEX PHANTOM TOKEN ADDRESSES
87
87
  stkcvx3Crv: "0xbAc7a431146aeAf3F57A16b9954f332Fd292F270",
88
88
  stkcvxFRAX3CRV: "0xaF314b088B53835d5cF4e4CB81beABa5934a61fe",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.21.0",
3
+ "version": "1.22.1",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",