@dhedge/v2-sdk 1.10.3 → 1.10.4

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.
@@ -176,6 +176,16 @@ export declare class Pool {
176
176
  * @returns {Promise<any>} Transaction
177
177
  */
178
178
  lend(dapp: Dapp, asset: string, amount: BigNumber | string, referralCode?: number, options?: any, estimateGas?: boolean): Promise<any>;
179
+ /**
180
+ * Lend asset to a Compound V3 style lending pool
181
+ * @param {string} market Address of market e.g cUSDCv3 address
182
+ * @param {string} asset Asset
183
+ * @param {BigNumber | string} amount Amount of asset to lend
184
+ * @param {any} options Transaction options
185
+ * @param {boolean} estimateGas Simulate/estimate gas
186
+ * @returns {Promise<any>} Transaction
187
+ */
188
+ lendCompoundV3(market: string, asset: string, amount: BigNumber | string, options?: any, estimateGas?: boolean): Promise<any>;
179
189
  /**
180
190
  * Witdraw asset from a lending pool
181
191
  * @param {Dapp} dapp Platform like Aave
@@ -186,6 +196,16 @@ export declare class Pool {
186
196
  * @returns {Promise<any>} Transaction
187
197
  */
188
198
  withdrawDeposit(dapp: Dapp, asset: string, amount: BigNumber | string, options?: any, estimateGas?: boolean): Promise<any>;
199
+ /**
200
+ * Witdraw asset from a COmpound V3 style lending pool
201
+ * @param {string} market Address of market e.g cUSDCv3 address
202
+ * @param {string} asset Asset
203
+ * @param {BigNumber | string} amount Amount of asset to withdraw
204
+ * @param {any} options Transaction options
205
+ * @param {boolean} estimateGas Simulate/estimate gas
206
+ * @returns {Promise<any>} Transaction
207
+ */
208
+ withdrawCompoundV3(market: string, asset: string, amount: BigNumber | string, options?: any, estimateGas?: boolean): Promise<any>;
189
209
  /**
190
210
  * Borrow asset from a lending pool
191
211
  * @param {Dapp} dapp Platform like Aave
@@ -0,0 +1,3 @@
1
+ import { ethers } from "../..";
2
+ export declare function getCompoundV3LendTxData(asset: string, amount: ethers.BigNumber | string): string;
3
+ export declare function getCompoundV3WithdrawTxData(asset: string, amount: ethers.BigNumber | string): string;
@@ -34,6 +34,7 @@ export declare const CONTRACT_ADDRESS: {
34
34
  };
35
35
  VELODROME_CL_USDC_WETH_GAUGE: string;
36
36
  VELO: string;
37
+ COMPOUNDV3_WETH: string;
37
38
  };
38
39
  optimism: {
39
40
  USDC: string;
@@ -51,6 +52,7 @@ export declare const CONTRACT_ADDRESS: {
51
52
  ARRAKIS_USDC_WETH_LP: string;
52
53
  VELODROME_CL_USDC_WETH_GAUGE: string;
53
54
  VELO: string;
55
+ COMPOUNDV3_WETH: string;
54
56
  };
55
57
  arbitrum: {
56
58
  USDC: string;
@@ -69,6 +71,7 @@ export declare const CONTRACT_ADDRESS: {
69
71
  WMATIC: string;
70
72
  VELODROME_CL_USDC_WETH_GAUGE: string;
71
73
  VELO: string;
74
+ COMPOUNDV3_WETH: string;
72
75
  };
73
76
  base: {
74
77
  USDC: string;
@@ -84,6 +87,7 @@ export declare const CONTRACT_ADDRESS: {
84
87
  WMATIC: string;
85
88
  VELODROME_CL_USDC_WETH_GAUGE: string;
86
89
  VELO: string;
90
+ COMPOUNDV3_WETH: string;
87
91
  };
88
92
  };
89
93
  export declare const MAX_AMOUNT: ethers.BigNumber;