@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/package.json
CHANGED
|
@@ -219,7 +219,9 @@ export const getLending = async (
|
|
|
219
219
|
const marketCoinPrice = BigNumber(coinPrice ?? 0).multipliedBy(
|
|
220
220
|
marketPool?.conversionRate ?? 1
|
|
221
221
|
);
|
|
222
|
-
const unstakedMarketAmount = BigNumber(marketCoinAmount)
|
|
222
|
+
const unstakedMarketAmount = BigNumber(marketCoinAmount).plus(
|
|
223
|
+
BigNumber(sCoinAmount)
|
|
224
|
+
);
|
|
223
225
|
const unstakedMarketCoin = unstakedMarketAmount.shiftedBy(-1 * coinDecimal);
|
|
224
226
|
|
|
225
227
|
const availableSupplyAmount = BigNumber(coinAmount);
|