@defisaver/positions-sdk 1.0.26-dev-portfolio-11 → 1.0.26-dev-portfolio-13
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.
package/cjs/portfolio/index.js
CHANGED
|
@@ -221,7 +221,7 @@ function getPortfolioDataSlower(provider, network, addresses) {
|
|
|
221
221
|
const userPositions = yield (0, fluid_1._getUserPositions)(client, network, address);
|
|
222
222
|
for (const position of userPositions) {
|
|
223
223
|
if (new decimal_js_1.default(position.userData.suppliedUsd).gt(0)) {
|
|
224
|
-
positions[address.toLowerCase()].fluid[position.userData.
|
|
224
|
+
positions[address.toLowerCase()].fluid[position.userData.nftId] = position.userData;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
})),
|
package/esm/portfolio/index.js
CHANGED
|
@@ -214,7 +214,7 @@ export function getPortfolioDataSlower(provider, network, addresses) {
|
|
|
214
214
|
const userPositions = yield _getUserPositions(client, network, address);
|
|
215
215
|
for (const position of userPositions) {
|
|
216
216
|
if (new Dec(position.userData.suppliedUsd).gt(0)) {
|
|
217
|
-
positions[address.toLowerCase()].fluid[position.userData.
|
|
217
|
+
positions[address.toLowerCase()].fluid[position.userData.nftId] = position.userData;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
})),
|
package/package.json
CHANGED
package/src/portfolio/index.ts
CHANGED
|
@@ -223,7 +223,7 @@ export async function getPortfolioDataSlower(provider: EthereumProvider, network
|
|
|
223
223
|
const userPositions = await _getUserPositions(client, network, address);
|
|
224
224
|
for (const position of userPositions) {
|
|
225
225
|
if (new Dec(position.userData.suppliedUsd).gt(0)) {
|
|
226
|
-
positions[address.toLowerCase() as EthAddress].fluid[position.userData.
|
|
226
|
+
positions[address.toLowerCase() as EthAddress].fluid[position.userData.nftId] = position.userData;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}),
|