@defisaver/positions-sdk 2.1.108-zap-dev → 2.1.109
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.
|
@@ -264,6 +264,7 @@ const getAaveV4ApyAfterValuesEstimationInner = (selectedSpoke, assetsData, actio
|
|
|
264
264
|
rates[`${assetData === null || assetData === void 0 ? void 0 : assetData.symbol}-${assetData === null || assetData === void 0 ? void 0 : assetData.reserveId}`] = {
|
|
265
265
|
borrowRate: (0, moneymarket_1.aprToApy)(borrowApr.toString()),
|
|
266
266
|
supplyRate: (0, moneymarket_1.aprToApy)(supplyApr.toString()),
|
|
267
|
+
drawnRate: drawnRate.toString(),
|
|
267
268
|
};
|
|
268
269
|
});
|
|
269
270
|
return rates;
|
|
@@ -253,6 +253,7 @@ const getAaveV4ApyAfterValuesEstimationInner = (selectedSpoke, assetsData, actio
|
|
|
253
253
|
rates[`${assetData === null || assetData === void 0 ? void 0 : assetData.symbol}-${assetData === null || assetData === void 0 ? void 0 : assetData.reserveId}`] = {
|
|
254
254
|
borrowRate: aprToApy(borrowApr.toString()),
|
|
255
255
|
supplyRate: aprToApy(supplyApr.toString()),
|
|
256
|
+
drawnRate: drawnRate.toString(),
|
|
256
257
|
};
|
|
257
258
|
});
|
|
258
259
|
return rates;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/positions-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.109",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@defisaver/tokens": "1.7.
|
|
24
|
+
"@defisaver/tokens": "^1.7.37",
|
|
25
25
|
"@types/lodash": "^4.17.15",
|
|
26
26
|
"@types/memoizee": "^0.4.12",
|
|
27
27
|
"decimal.js": "^10.6.0",
|
|
@@ -296,7 +296,7 @@ const getAaveV4ApyAfterValuesEstimationInner = async (selectedSpoke: AaveV4Spoke
|
|
|
296
296
|
const viewContract = AaveV4ViewContractViem(client, network);
|
|
297
297
|
const data = await viewContract.read.getApyAfterValuesEstimation([selectedSpoke.address, params]);
|
|
298
298
|
|
|
299
|
-
const rates: { [key: string]: { supplyRate: string, borrowRate: string } } = {};
|
|
299
|
+
const rates: { [key: string]: { supplyRate: string, borrowRate: string, drawnRate: string } } = {};
|
|
300
300
|
data.forEach((item: any) => {
|
|
301
301
|
const {
|
|
302
302
|
hubDrawnRateEstimation, hubTotalDrawnEstimation, hubTotalLiquidityEstimation, hubSwept, reserveId,
|
|
@@ -316,6 +316,7 @@ const getAaveV4ApyAfterValuesEstimationInner = async (selectedSpoke: AaveV4Spoke
|
|
|
316
316
|
rates[`${assetData?.symbol}-${assetData?.reserveId}`] = {
|
|
317
317
|
borrowRate: aprToApy(borrowApr.toString()),
|
|
318
318
|
supplyRate: aprToApy(supplyApr.toString()),
|
|
319
|
+
drawnRate: drawnRate.toString(),
|
|
319
320
|
};
|
|
320
321
|
});
|
|
321
322
|
return rates;
|