@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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/queries/portfolioQuery.d.ts +1 -1
- package/package.json +1 -1
- package/src/queries/portfolioQuery.ts +2 -2
|
@@ -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,
|
|
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
|
@@ -119,8 +119,8 @@ export const getLending = async (
|
|
|
119
119
|
stakeAccounts?: StakeAccount[],
|
|
120
120
|
coinAmount?: number,
|
|
121
121
|
marketCoinAmount?: number,
|
|
122
|
-
|
|
123
|
-
|
|
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));
|