@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "0.46.42",
3
+ "version": "0.46.43",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -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);