@gearbox-protocol/sdk 2.1.29 → 2.1.31

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.
@@ -12,7 +12,7 @@ export type YearnVaultContract = "YEARN_DAI_VAULT" | "YEARN_USDC_VAULT" | "YEARN
12
12
  export type ConvexPoolContract = "CONVEX_3CRV_POOL" | "CONVEX_FRAX_USDC_POOL" | "CONVEX_GUSD_POOL" | "CONVEX_SUSD_POOL" | "CONVEX_STECRV_POOL" | "CONVEX_FRAX3CRV_POOL" | "CONVEX_LUSD3CRV_POOL" | "CONVEX_OHMFRAXBP_POOL" | "CONVEX_MIM3CRV_POOL" | "CONVEX_CRVETH_POOL" | "CONVEX_CVXETH_POOL" | "CONVEX_3CRYPTO_POOL" | "CONVEX_LDOETH_POOL";
13
13
  export type AaveV2PoolContract = "AAVE_V2_DAI_POOL" | "AAVE_V2_USDC_POOL" | "AAVE_V2_USDT_POOL" | "AAVE_V2_WETH_POOL";
14
14
  export type AaveV2TokenWrapperContract = "AAVE_V2_DAI_TOKEN_WRAPPER" | "AAVE_V2_USDC_TOKEN_WRAPPER" | "AAVE_V2_USDT_TOKEN_WRAPPER" | "AAVE_V2_WETH_TOKEN_WRAPPER";
15
- export type CompoundV2PoolContract = "COMPOUND_V2_DAI_POOL" | "COMPOUND_V2_USDC_POOL" | "COMPOUND_V2_USDT_POOL" | "COMPOUND_V2_WETH_POOL" | "COMPOUND_V2_LINK_POOL";
15
+ export type CompoundV2PoolContract = "COMPOUND_V2_DAI_POOL" | "COMPOUND_V2_USDC_POOL" | "COMPOUND_V2_USDT_POOL" | "COMPOUND_V2_ETH_POOL" | "COMPOUND_V2_LINK_POOL";
16
16
  export type SupportedContract = UniswapV2Contract | "UNISWAP_V3_ROUTER" | CurvePoolContract | "CURVE_GEAR_POOL" | YearnVaultContract | "CONVEX_BOOSTER" | ConvexPoolContract | "CONVEX_CLAIM_ZAP" | "LIDO_STETH_GATEWAY" | "LIDO_WSTETH" | "UNIVERSAL_ADAPTER" | "BALANCER_VAULT" | AaveV2PoolContract | AaveV2TokenWrapperContract | CompoundV2PoolContract;
17
17
  export declare const contractsByNetwork: Record<NetworkType, Record<SupportedContract, string>>;
18
18
  export declare const UNISWAP_V3_QUOTER = "NOT DEPLOYED";
@@ -74,7 +74,7 @@ exports.contractsByNetwork = {
74
74
  COMPOUND_V2_USDC_POOL: token_1.tokenDataByNetwork.Mainnet.cUSDC,
75
75
  COMPOUND_V2_USDT_POOL: token_1.tokenDataByNetwork.Mainnet.cUSDT,
76
76
  COMPOUND_V2_LINK_POOL: token_1.tokenDataByNetwork.Mainnet.cLINK,
77
- COMPOUND_V2_WETH_POOL: token_1.tokenDataByNetwork.Mainnet.cWETH,
77
+ COMPOUND_V2_ETH_POOL: token_1.tokenDataByNetwork.Mainnet.cETH,
78
78
  },
79
79
  //
80
80
  //
@@ -152,7 +152,7 @@ exports.contractsByNetwork = {
152
152
  COMPOUND_V2_USDC_POOL: token_1.tokenDataByNetwork.Arbitrum.cUSDC,
153
153
  COMPOUND_V2_USDT_POOL: token_1.tokenDataByNetwork.Arbitrum.cUSDT,
154
154
  COMPOUND_V2_LINK_POOL: token_1.tokenDataByNetwork.Mainnet.cLINK,
155
- COMPOUND_V2_WETH_POOL: token_1.tokenDataByNetwork.Arbitrum.cWETH,
155
+ COMPOUND_V2_ETH_POOL: token_1.tokenDataByNetwork.Arbitrum.cETH,
156
156
  },
157
157
  };
158
158
  exports.UNISWAP_V3_QUOTER = constants_1.NOT_DEPLOYED;
@@ -637,8 +637,8 @@ exports.contractParams = {
637
637
  type: adapters_1.AdapterInterface.COMPOUND_V2_CERC20,
638
638
  underlying: "LINK",
639
639
  },
640
- COMPOUND_V2_WETH_POOL: {
641
- name: "Compound V2 DAI",
640
+ COMPOUND_V2_ETH_POOL: {
641
+ name: "Compound V2 ETH",
642
642
  protocol: protocols_1.Protocols.CompoundV2,
643
643
  type: adapters_1.AdapterInterface.COMPOUND_V2_CETHER,
644
644
  underlying: "WETH",
@@ -2,7 +2,7 @@ import { TradeType } from "../pathfinder/tradeTypes";
2
2
  import { NormalToken } from "./normal";
3
3
  import type { TokenBase } from "./token";
4
4
  import { TokenType } from "./tokenType";
5
- export type BalancerLPToken = "50OHM_50DAI" | "50OHM_50WETH" | "OHM_wstETH";
5
+ export type BalancerLPToken = "50OHM_50DAI" | "50OHM_50WETH" | "OHM_wstETH" | "USDC-DAI-USDT";
6
6
  export type BalancerLpTokenData = {
7
7
  symbol: BalancerLPToken;
8
8
  type: TokenType.BALANCER_LP_TOKEN;
@@ -46,6 +46,20 @@ exports.balancerLpTokens = {
46
46
  },
47
47
  ],
48
48
  },
49
+ "USDC-DAI-USDT": {
50
+ name: "Balancer USDC-DAI-USDT",
51
+ symbol: "USDC-DAI-USDT",
52
+ type: tokenType_1.TokenType.BALANCER_LP_TOKEN,
53
+ underlying: ["USDC", "DAI", "USDT"],
54
+ poolId: "0x79c58f70905f734641735bc61e45c19dd9ad60bc0000000000000000000004e7",
55
+ lpActions: [
56
+ {
57
+ type: tradeTypes_1.TradeType.BalancerExit,
58
+ contract: "BALANCER_VAULT",
59
+ tokenOut: ["USDC", "DAI", "USDT"],
60
+ },
61
+ ],
62
+ },
49
63
  };
50
64
  const isBalancerLPToken = (t) => typeof t === "string" && !!exports.balancerLpTokens[t];
51
65
  exports.isBalancerLPToken = isBalancerLPToken;
@@ -2,7 +2,7 @@ import { TradeAction } from "../pathfinder/tradeTypes";
2
2
  import { NormalToken } from "./normal";
3
3
  import type { TokenBase } from "./token";
4
4
  import { TokenType } from "./tokenType";
5
- export type CompoundV2LPToken = "cDAI" | "cUSDC" | "cWETH" | "cUSDT" | "cLINK";
5
+ export type CompoundV2LPToken = "cDAI" | "cUSDC" | "cETH" | "cUSDT" | "cLINK";
6
6
  export type CompoundV2PoolTokenData = {
7
7
  symbol: CompoundV2LPToken;
8
8
  type: TokenType.COMPOUND_V2_C_TOKEN;
@@ -43,15 +43,15 @@ exports.compoundV2Tokens = {
43
43
  },
44
44
  ],
45
45
  },
46
- cWETH: {
47
- name: "CompoundV2 cWETH",
48
- symbol: "cWETH",
46
+ cETH: {
47
+ name: "CompoundV2 cETH",
48
+ symbol: "cETH",
49
49
  type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
50
50
  underlying: "WETH",
51
51
  lpActions: [
52
52
  {
53
53
  type: tradeTypes_1.TradeType.CompoundV2Withdraw,
54
- contract: "COMPOUND_V2_WETH_POOL",
54
+ contract: "COMPOUND_V2_ETH_POOL",
55
55
  tokenOut: "WETH",
56
56
  },
57
57
  ],
@@ -97,6 +97,7 @@ exports.decimals = {
97
97
  "50OHM_50DAI": 18,
98
98
  "50OHM_50WETH": 18,
99
99
  OHM_wstETH: 18,
100
+ "USDC-DAI-USDT": 18,
100
101
  aDAI: 18,
101
102
  aUSDC: 6,
102
103
  aUSDT: 6,
@@ -109,6 +110,6 @@ exports.decimals = {
109
110
  cUSDC: 6,
110
111
  cUSDT: 6,
111
112
  cLINK: 18,
112
- cWETH: 18,
113
+ cETH: 18,
113
114
  SHIB: 18,
114
115
  };
@@ -125,6 +125,7 @@ exports.tokenDataByNetwork = {
125
125
  "50OHM_50DAI": "0x76FCf0e8C7Ff37A47a799FA2cd4c13cDe0D981C9",
126
126
  "50OHM_50WETH": "0xD1eC5e215E8148D76F4460e4097FD3d5ae0A3558",
127
127
  OHM_wstETH: "0xd4f79CA0Ac83192693bce4699d0c10C66Aa6Cf0F",
128
+ "USDC-DAI-USDT": "0x79c58f70905f734641735bc61e45c19dd9ad60bc",
128
129
  // GEARBOX
129
130
  dDAI: "0x6CFaF95457d7688022FC53e7AbE052ef8DFBbdBA",
130
131
  dUSDC: "0xc411dB5f5Eb3f7d552F9B8454B2D74097ccdE6E3",
@@ -142,11 +143,11 @@ exports.tokenDataByNetwork = {
142
143
  waUSDC: constants_1.NOT_DEPLOYED,
143
144
  waUSDT: constants_1.NOT_DEPLOYED,
144
145
  waWETH: constants_1.NOT_DEPLOYED,
145
- cDAI: constants_1.NOT_DEPLOYED,
146
- cUSDC: constants_1.NOT_DEPLOYED,
147
- cUSDT: constants_1.NOT_DEPLOYED,
148
- cWETH: constants_1.NOT_DEPLOYED,
149
- cLINK: constants_1.NOT_DEPLOYED,
146
+ cDAI: "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",
147
+ cUSDC: "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
148
+ cUSDT: "0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9",
149
+ cETH: "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
150
+ cLINK: "0xFAce851a4921ce59e912d19329929CE6da6EB0c7",
150
151
  },
151
152
  ///
152
153
  ///
@@ -250,6 +251,7 @@ exports.tokenDataByNetwork = {
250
251
  "50OHM_50DAI": constants_1.NOT_DEPLOYED,
251
252
  "50OHM_50WETH": "0x89dc7e71e362faF88D92288fE2311D25c6a1B5E0",
252
253
  OHM_wstETH: constants_1.NOT_DEPLOYED,
254
+ "USDC-DAI-USDT": constants_1.NOT_DEPLOYED,
253
255
  // GEARBOX
254
256
  dDAI: constants_1.NOT_DEPLOYED,
255
257
  dUSDC: constants_1.NOT_DEPLOYED,
@@ -270,7 +272,7 @@ exports.tokenDataByNetwork = {
270
272
  cDAI: constants_1.NOT_DEPLOYED,
271
273
  cUSDC: constants_1.NOT_DEPLOYED,
272
274
  cUSDT: constants_1.NOT_DEPLOYED,
273
- cWETH: constants_1.NOT_DEPLOYED,
275
+ cETH: constants_1.NOT_DEPLOYED,
274
276
  cLINK: constants_1.NOT_DEPLOYED,
275
277
  },
276
278
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "2.1.29",
3
+ "version": "2.1.31",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",