@scallop-io/sui-scallop-sdk 0.46.41 → 0.46.42

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.
@@ -40,7 +40,7 @@ export declare const getLendings: (query: ScallopQuery, poolCoinNames?: SupportP
40
40
  * @param marketCoinAmount - The market coin amount.
41
41
  * @return User lending infomation for specific pool.
42
42
  */
43
- export declare const getLending: (query: ScallopQuery, poolCoinName: SupportPoolCoins, ownerAddress?: string, indexer?: boolean, marketPool?: MarketPool, spool?: Spool, stakeAccounts?: StakeAccount[], coinAmount?: number, marketCoinAmount?: number, sCoinAmount?: number, coinPrice?: number) => Promise<Lending>;
43
+ export declare const getLending: (query: ScallopQuery, poolCoinName: SupportPoolCoins, ownerAddress?: string, indexer?: boolean, marketPool?: MarketPool, spool?: Spool, stakeAccounts?: StakeAccount[], coinAmount?: number, marketCoinAmount?: number, coinPrice?: number, sCoinAmount?: number) => Promise<Lending>;
44
44
  /**
45
45
  * Get all obligation accounts data.
46
46
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "0.46.41",
3
+ "version": "0.46.42",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -119,8 +119,8 @@ export const getLending = async (
119
119
  stakeAccounts?: StakeAccount[],
120
120
  coinAmount?: number,
121
121
  marketCoinAmount?: number,
122
- sCoinAmount?: number,
123
- coinPrice?: number
122
+ coinPrice?: number,
123
+ sCoinAmount?: number
124
124
  ) => {
125
125
  const marketCoinName = query.utils.parseMarketCoinName(poolCoinName);
126
126
  marketPool = marketPool || (await query.getMarketPool(poolCoinName, indexer));