@1delta/margin-fetcher 0.0.34 → 0.0.35

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.
@@ -223,8 +223,8 @@ function createAaveV2Entry(i, data, chainId, asset, prices, pricesHist, claimabl
223
223
  const price = prices[key] ?? 1;
224
224
  const priceHist = pricesHist?.[key] ?? price;
225
225
  const dataForAsset = {
226
- poolId: asset,
227
- underlying: asset,
226
+ poolId: asset.address,
227
+ underlying: asset.address,
228
228
  deposits: currentATokenBalance,
229
229
  depositsRaw: currentATokenBalanceRaw,
230
230
  debtStable: currentStableDebt,
@@ -63,8 +63,8 @@ function createAaveV3Entry(i, data, chainId, asset, prices, pricesHist) {
63
63
  const price = prices[key] ?? 1;
64
64
  const priceHist = pricesHist?.[key] ?? price;
65
65
  const dataForAsset = {
66
- poolId: asset,
67
- underlying: asset,
66
+ poolId: asset.address,
67
+ underlying: asset.address,
68
68
  deposits: currentATokenBalance,
69
69
  depositsRaw: currentATokenBalanceRaw,
70
70
  debtStable: currentStableDebt,
@@ -60,8 +60,8 @@ function createAaveV3Entry(i, data, chainId, asset, prices, pricesHist) {
60
60
  const price = prices[key] ?? 1;
61
61
  const priceHist = pricesHist?.[key] ?? price;
62
62
  const dataForAsset = {
63
- poolId: asset,
64
- underlying: asset,
63
+ poolId: asset.address,
64
+ underlying: asset.address,
65
65
  deposits: currentATokenBalance,
66
66
  depositsRaw: currentATokenBalanceRaw,
67
67
  debtStable: '0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/margin-fetcher",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -375,8 +375,8 @@ function createAaveV2Entry(
375
375
  const priceHist = pricesHist?.[key] ?? price
376
376
 
377
377
  const dataForAsset = {
378
- poolId: asset,
379
- underlying: asset,
378
+ poolId: asset.address,
379
+ underlying: asset.address,
380
380
  deposits: currentATokenBalance,
381
381
  depositsRaw: currentATokenBalanceRaw,
382
382
  debtStable: currentStableDebt,
@@ -114,8 +114,8 @@ function createAaveV3Entry(
114
114
  const priceHist = pricesHist?.[key] ?? price
115
115
 
116
116
  const dataForAsset = {
117
- poolId: asset,
118
- underlying: asset,
117
+ poolId: asset.address,
118
+ underlying: asset.address,
119
119
  deposits: currentATokenBalance,
120
120
  depositsRaw: currentATokenBalanceRaw,
121
121
  debtStable: currentStableDebt,
@@ -103,8 +103,8 @@ function createAaveV3Entry(
103
103
  const priceHist = pricesHist?.[key] ?? price
104
104
 
105
105
  const dataForAsset = {
106
- poolId: asset,
107
- underlying: asset,
106
+ poolId: asset.address,
107
+ underlying: asset.address,
108
108
  deposits: currentATokenBalance,
109
109
  depositsRaw: currentATokenBalanceRaw,
110
110
  debtStable: '0',