@scallop-io/sui-scallop-sdk 0.46.42 → 0.46.43
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/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/queries/portfolioQuery.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -3465,7 +3465,9 @@ var getLending = async (query, poolCoinName, ownerAddress, indexer = false, mark
|
|
|
3465
3465
|
const marketCoinPrice = (0, import_bignumber4.default)(coinPrice ?? 0).multipliedBy(
|
|
3466
3466
|
marketPool?.conversionRate ?? 1
|
|
3467
3467
|
);
|
|
3468
|
-
const unstakedMarketAmount = (0, import_bignumber4.default)(marketCoinAmount)
|
|
3468
|
+
const unstakedMarketAmount = (0, import_bignumber4.default)(marketCoinAmount).plus(
|
|
3469
|
+
(0, import_bignumber4.default)(sCoinAmount)
|
|
3470
|
+
);
|
|
3469
3471
|
const unstakedMarketCoin = unstakedMarketAmount.shiftedBy(-1 * coinDecimal);
|
|
3470
3472
|
const availableSupplyAmount = (0, import_bignumber4.default)(coinAmount);
|
|
3471
3473
|
const availableSupplyCoin = availableSupplyAmount.shiftedBy(-1 * coinDecimal);
|