lll-sdk 0.0.0-experimental-20250902202808 → 0.0.0-experimental-20250903143747
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.d.mts +260 -26
- package/dist/index.d.ts +260 -26
- 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/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,12 +10,8 @@ import { Transaction } from '@mysten/sui/transactions';
|
|
|
10
10
|
import BigNumber$1 from 'bignumber.js';
|
|
11
11
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
12
12
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
13
|
-
import * as _suilend_sdk__generated_suilend_liquidity_mining_structs from '@suilend/sdk/_generated/suilend/liquidity-mining/structs';
|
|
14
|
-
import * as _suilend_sdk__generated_suilend_decimal_structs from '@suilend/sdk/_generated/suilend/decimal/structs';
|
|
15
|
-
import * as _suilend_sdk__generated__framework_vector from '@suilend/sdk/_generated/_framework/vector';
|
|
16
13
|
import * as _suilend_sdk__generated_suilend_obligation_structs from '@suilend/sdk/_generated/suilend/obligation/structs';
|
|
17
|
-
import * as
|
|
18
|
-
import * as _suilend_sdk__generated__dependencies_source_0x2_object_structs from '@suilend/sdk/_generated/_dependencies/source/0x2/object/structs';
|
|
14
|
+
import * as _suilend_sdk__generated_suilend_liquidity_mining_structs from '@suilend/sdk/_generated/suilend/liquidity-mining/structs';
|
|
19
15
|
import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';
|
|
20
16
|
import { SuiPriceServiceConnection } from '@pythnetwork/pyth-sui-js';
|
|
21
17
|
|
|
@@ -259,29 +255,266 @@ declare class LeverageModules {
|
|
|
259
255
|
* 获取杠杆仓位列表
|
|
260
256
|
*/
|
|
261
257
|
getLeveragePositionList: () => Promise<{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
258
|
+
id: string;
|
|
259
|
+
depositedAmountUsd: BigNumber;
|
|
260
|
+
borrowedAmountUsd: BigNumber;
|
|
261
|
+
netValueUsd: BigNumber;
|
|
262
|
+
weightedBorrowsUsd: BigNumber;
|
|
263
|
+
maxPriceWeightedBorrowsUsd: BigNumber;
|
|
264
|
+
borrowLimitUsd: BigNumber;
|
|
265
|
+
minPriceBorrowLimitUsd: BigNumber;
|
|
266
|
+
unhealthyBorrowValueUsd: BigNumber;
|
|
267
|
+
depositPositionCount: number;
|
|
268
|
+
borrowPositionCount: number;
|
|
269
|
+
positionCount: number;
|
|
270
|
+
deposits: {
|
|
271
|
+
coinType: string;
|
|
272
|
+
reserveArrayIndex: bigint;
|
|
273
|
+
userRewardManagerIndex: number;
|
|
274
|
+
userRewardManager: _suilend_sdk__generated_suilend_liquidity_mining_structs.UserRewardManager;
|
|
275
|
+
depositedAmount: BigNumber;
|
|
276
|
+
depositedAmountUsd: BigNumber;
|
|
277
|
+
depositedCtokenAmount: BigNumber;
|
|
278
|
+
reserve: {
|
|
279
|
+
config: {
|
|
280
|
+
$typeName: string;
|
|
281
|
+
openLtvPct: number;
|
|
282
|
+
closeLtvPct: number;
|
|
283
|
+
maxCloseLtvPct: number;
|
|
284
|
+
borrowWeightBps: BigNumber;
|
|
285
|
+
depositLimit: BigNumber;
|
|
286
|
+
borrowLimit: BigNumber;
|
|
287
|
+
liquidationBonusBps: number;
|
|
288
|
+
maxLiquidationBonusBps: number;
|
|
289
|
+
depositLimitUsd: BigNumber;
|
|
290
|
+
borrowLimitUsd: BigNumber;
|
|
291
|
+
borrowFeeBps: number;
|
|
292
|
+
spreadFeeBps: number;
|
|
293
|
+
protocolLiquidationFeeBps: number;
|
|
294
|
+
isolated: boolean;
|
|
295
|
+
openAttributedBorrowLimitUsd: number;
|
|
296
|
+
closeAttributedBorrowLimitUsd: number;
|
|
297
|
+
interestRate: {
|
|
298
|
+
id: string;
|
|
299
|
+
utilPercent: BigNumber;
|
|
300
|
+
aprPercent: BigNumber;
|
|
301
|
+
}[];
|
|
302
|
+
};
|
|
303
|
+
$typeName: string;
|
|
304
|
+
id: string;
|
|
305
|
+
arrayIndex: bigint;
|
|
306
|
+
coinType: string;
|
|
307
|
+
mintDecimals: number;
|
|
308
|
+
priceIdentifier: string;
|
|
309
|
+
price: BigNumber;
|
|
310
|
+
smoothedPrice: BigNumber;
|
|
311
|
+
minPrice: BigNumber;
|
|
312
|
+
maxPrice: BigNumber;
|
|
313
|
+
priceLastUpdateTimestampS: bigint;
|
|
314
|
+
availableAmount: BigNumber;
|
|
315
|
+
ctokenSupply: BigNumber;
|
|
316
|
+
borrowedAmount: BigNumber;
|
|
317
|
+
cumulativeBorrowRate: BigNumber;
|
|
318
|
+
interestLastUpdateTimestampS: bigint;
|
|
319
|
+
unclaimedSpreadFees: BigNumber;
|
|
320
|
+
attributedBorrowValue: BigNumber;
|
|
321
|
+
depositsPoolRewardManager: {
|
|
322
|
+
$typeName: string;
|
|
323
|
+
id: string;
|
|
324
|
+
totalShares: bigint;
|
|
325
|
+
poolRewards: {
|
|
326
|
+
$typeName: string;
|
|
327
|
+
id: string;
|
|
328
|
+
poolRewardManagerId: string;
|
|
329
|
+
coinType: string;
|
|
330
|
+
startTimeMs: number;
|
|
331
|
+
endTimeMs: number;
|
|
332
|
+
totalRewards: BigNumber;
|
|
333
|
+
allocatedRewards: BigNumber;
|
|
334
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
335
|
+
numUserRewardManagers: bigint;
|
|
336
|
+
rewardIndex: number;
|
|
337
|
+
symbol: string;
|
|
338
|
+
mintDecimals: number;
|
|
339
|
+
}[];
|
|
340
|
+
lastUpdateTimeMs: bigint;
|
|
341
|
+
};
|
|
342
|
+
borrowsPoolRewardManager: {
|
|
343
|
+
$typeName: string;
|
|
344
|
+
id: string;
|
|
345
|
+
totalShares: bigint;
|
|
346
|
+
poolRewards: {
|
|
347
|
+
$typeName: string;
|
|
348
|
+
id: string;
|
|
349
|
+
poolRewardManagerId: string;
|
|
350
|
+
coinType: string;
|
|
351
|
+
startTimeMs: number;
|
|
352
|
+
endTimeMs: number;
|
|
353
|
+
totalRewards: BigNumber;
|
|
354
|
+
allocatedRewards: BigNumber;
|
|
355
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
356
|
+
numUserRewardManagers: bigint;
|
|
357
|
+
rewardIndex: number;
|
|
358
|
+
symbol: string;
|
|
359
|
+
mintDecimals: number;
|
|
360
|
+
}[];
|
|
361
|
+
lastUpdateTimeMs: bigint;
|
|
362
|
+
};
|
|
363
|
+
availableAmountUsd: BigNumber;
|
|
364
|
+
borrowedAmountUsd: BigNumber;
|
|
365
|
+
depositedAmount: BigNumber;
|
|
366
|
+
depositedAmountUsd: BigNumber;
|
|
367
|
+
cTokenExchangeRate: BigNumber;
|
|
368
|
+
borrowAprPercent: BigNumber;
|
|
369
|
+
depositAprPercent: BigNumber;
|
|
370
|
+
utilizationPercent: BigNumber;
|
|
371
|
+
token: {
|
|
372
|
+
decimals: number;
|
|
373
|
+
description: string;
|
|
374
|
+
iconUrl?: string | null;
|
|
375
|
+
id?: string | null;
|
|
376
|
+
name: string;
|
|
377
|
+
symbol: string;
|
|
378
|
+
coinType: string;
|
|
379
|
+
};
|
|
380
|
+
symbol: string;
|
|
381
|
+
name: string;
|
|
382
|
+
iconUrl: string | null | undefined;
|
|
383
|
+
description: string;
|
|
384
|
+
totalDeposits: BigNumber;
|
|
385
|
+
};
|
|
386
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
387
|
+
}[];
|
|
388
|
+
borrows: {
|
|
389
|
+
coinType: string;
|
|
390
|
+
reserveArrayIndex: bigint;
|
|
391
|
+
userRewardManagerIndex: number;
|
|
392
|
+
userRewardManager: _suilend_sdk__generated_suilend_liquidity_mining_structs.UserRewardManager;
|
|
393
|
+
borrowedAmount: BigNumber;
|
|
394
|
+
borrowedAmountUsd: BigNumber;
|
|
395
|
+
reserve: {
|
|
396
|
+
config: {
|
|
397
|
+
$typeName: string;
|
|
398
|
+
openLtvPct: number;
|
|
399
|
+
closeLtvPct: number;
|
|
400
|
+
maxCloseLtvPct: number;
|
|
401
|
+
borrowWeightBps: BigNumber;
|
|
402
|
+
depositLimit: BigNumber;
|
|
403
|
+
borrowLimit: BigNumber;
|
|
404
|
+
liquidationBonusBps: number;
|
|
405
|
+
maxLiquidationBonusBps: number;
|
|
406
|
+
depositLimitUsd: BigNumber;
|
|
407
|
+
borrowLimitUsd: BigNumber;
|
|
408
|
+
borrowFeeBps: number;
|
|
409
|
+
spreadFeeBps: number;
|
|
410
|
+
protocolLiquidationFeeBps: number;
|
|
411
|
+
isolated: boolean;
|
|
412
|
+
openAttributedBorrowLimitUsd: number;
|
|
413
|
+
closeAttributedBorrowLimitUsd: number;
|
|
414
|
+
interestRate: {
|
|
415
|
+
id: string;
|
|
416
|
+
utilPercent: BigNumber;
|
|
417
|
+
aprPercent: BigNumber;
|
|
418
|
+
}[];
|
|
419
|
+
};
|
|
420
|
+
$typeName: string;
|
|
421
|
+
id: string;
|
|
422
|
+
arrayIndex: bigint;
|
|
423
|
+
coinType: string;
|
|
424
|
+
mintDecimals: number;
|
|
425
|
+
priceIdentifier: string;
|
|
426
|
+
price: BigNumber;
|
|
427
|
+
smoothedPrice: BigNumber;
|
|
428
|
+
minPrice: BigNumber;
|
|
429
|
+
maxPrice: BigNumber;
|
|
430
|
+
priceLastUpdateTimestampS: bigint;
|
|
431
|
+
availableAmount: BigNumber;
|
|
432
|
+
ctokenSupply: BigNumber;
|
|
433
|
+
borrowedAmount: BigNumber;
|
|
434
|
+
cumulativeBorrowRate: BigNumber;
|
|
435
|
+
interestLastUpdateTimestampS: bigint;
|
|
436
|
+
unclaimedSpreadFees: BigNumber;
|
|
437
|
+
attributedBorrowValue: BigNumber;
|
|
438
|
+
depositsPoolRewardManager: {
|
|
439
|
+
$typeName: string;
|
|
440
|
+
id: string;
|
|
441
|
+
totalShares: bigint;
|
|
442
|
+
poolRewards: {
|
|
443
|
+
$typeName: string;
|
|
444
|
+
id: string;
|
|
445
|
+
poolRewardManagerId: string;
|
|
446
|
+
coinType: string;
|
|
447
|
+
startTimeMs: number;
|
|
448
|
+
endTimeMs: number;
|
|
449
|
+
totalRewards: BigNumber;
|
|
450
|
+
allocatedRewards: BigNumber;
|
|
451
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
452
|
+
numUserRewardManagers: bigint;
|
|
453
|
+
rewardIndex: number;
|
|
454
|
+
symbol: string;
|
|
455
|
+
mintDecimals: number;
|
|
456
|
+
}[];
|
|
457
|
+
lastUpdateTimeMs: bigint;
|
|
458
|
+
};
|
|
459
|
+
borrowsPoolRewardManager: {
|
|
460
|
+
$typeName: string;
|
|
461
|
+
id: string;
|
|
462
|
+
totalShares: bigint;
|
|
463
|
+
poolRewards: {
|
|
464
|
+
$typeName: string;
|
|
465
|
+
id: string;
|
|
466
|
+
poolRewardManagerId: string;
|
|
467
|
+
coinType: string;
|
|
468
|
+
startTimeMs: number;
|
|
469
|
+
endTimeMs: number;
|
|
470
|
+
totalRewards: BigNumber;
|
|
471
|
+
allocatedRewards: BigNumber;
|
|
472
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
473
|
+
numUserRewardManagers: bigint;
|
|
474
|
+
rewardIndex: number;
|
|
475
|
+
symbol: string;
|
|
476
|
+
mintDecimals: number;
|
|
477
|
+
}[];
|
|
478
|
+
lastUpdateTimeMs: bigint;
|
|
479
|
+
};
|
|
480
|
+
availableAmountUsd: BigNumber;
|
|
481
|
+
borrowedAmountUsd: BigNumber;
|
|
482
|
+
depositedAmount: BigNumber;
|
|
483
|
+
depositedAmountUsd: BigNumber;
|
|
484
|
+
cTokenExchangeRate: BigNumber;
|
|
485
|
+
borrowAprPercent: BigNumber;
|
|
486
|
+
depositAprPercent: BigNumber;
|
|
487
|
+
utilizationPercent: BigNumber;
|
|
488
|
+
token: {
|
|
489
|
+
decimals: number;
|
|
490
|
+
description: string;
|
|
491
|
+
iconUrl?: string | null;
|
|
492
|
+
id?: string | null;
|
|
493
|
+
name: string;
|
|
494
|
+
symbol: string;
|
|
495
|
+
coinType: string;
|
|
496
|
+
};
|
|
497
|
+
symbol: string;
|
|
498
|
+
name: string;
|
|
499
|
+
iconUrl: string | null | undefined;
|
|
500
|
+
description: string;
|
|
501
|
+
totalDeposits: BigNumber;
|
|
502
|
+
};
|
|
503
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
504
|
+
}[];
|
|
505
|
+
weightedConservativeBorrowUtilizationPercent: BigNumber;
|
|
506
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
507
|
+
totalSupplyUsd: BigNumber;
|
|
508
|
+
totalBorrowUsd: BigNumber;
|
|
509
|
+
totalWeightedBorrowUsd: BigNumber;
|
|
510
|
+
maxPriceTotalWeightedBorrowUsd: BigNumber;
|
|
511
|
+
borrowLimit: BigNumber;
|
|
512
|
+
minPriceBorrowLimit: BigNumber;
|
|
282
513
|
createdAt: any;
|
|
514
|
+
positionId: any;
|
|
283
515
|
initDepositAmount: any;
|
|
284
516
|
isLong: any;
|
|
517
|
+
lendingMarketId: any;
|
|
285
518
|
obligationOwnerCap: any;
|
|
286
519
|
}[]>;
|
|
287
520
|
/**
|
|
@@ -289,11 +522,12 @@ declare class LeverageModules {
|
|
|
289
522
|
*/
|
|
290
523
|
getLeveragePosition: (positionId: string) => Promise<{
|
|
291
524
|
createdAt: any;
|
|
292
|
-
|
|
525
|
+
positionId: any;
|
|
293
526
|
initDepositAmount: any;
|
|
294
527
|
isLong: any;
|
|
295
528
|
lendingMarketId: any;
|
|
296
529
|
obligationOwnerCap: any;
|
|
530
|
+
id: string;
|
|
297
531
|
depositedAmountUsd: BigNumber;
|
|
298
532
|
borrowedAmountUsd: BigNumber;
|
|
299
533
|
netValueUsd: BigNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,8 @@ import { Transaction } from '@mysten/sui/transactions';
|
|
|
10
10
|
import BigNumber$1 from 'bignumber.js';
|
|
11
11
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
12
12
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
13
|
-
import * as _suilend_sdk__generated_suilend_liquidity_mining_structs from '@suilend/sdk/_generated/suilend/liquidity-mining/structs';
|
|
14
|
-
import * as _suilend_sdk__generated_suilend_decimal_structs from '@suilend/sdk/_generated/suilend/decimal/structs';
|
|
15
|
-
import * as _suilend_sdk__generated__framework_vector from '@suilend/sdk/_generated/_framework/vector';
|
|
16
13
|
import * as _suilend_sdk__generated_suilend_obligation_structs from '@suilend/sdk/_generated/suilend/obligation/structs';
|
|
17
|
-
import * as
|
|
18
|
-
import * as _suilend_sdk__generated__dependencies_source_0x2_object_structs from '@suilend/sdk/_generated/_dependencies/source/0x2/object/structs';
|
|
14
|
+
import * as _suilend_sdk__generated_suilend_liquidity_mining_structs from '@suilend/sdk/_generated/suilend/liquidity-mining/structs';
|
|
19
15
|
import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';
|
|
20
16
|
import { SuiPriceServiceConnection } from '@pythnetwork/pyth-sui-js';
|
|
21
17
|
|
|
@@ -259,29 +255,266 @@ declare class LeverageModules {
|
|
|
259
255
|
* 获取杠杆仓位列表
|
|
260
256
|
*/
|
|
261
257
|
getLeveragePositionList: () => Promise<{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
258
|
+
id: string;
|
|
259
|
+
depositedAmountUsd: BigNumber;
|
|
260
|
+
borrowedAmountUsd: BigNumber;
|
|
261
|
+
netValueUsd: BigNumber;
|
|
262
|
+
weightedBorrowsUsd: BigNumber;
|
|
263
|
+
maxPriceWeightedBorrowsUsd: BigNumber;
|
|
264
|
+
borrowLimitUsd: BigNumber;
|
|
265
|
+
minPriceBorrowLimitUsd: BigNumber;
|
|
266
|
+
unhealthyBorrowValueUsd: BigNumber;
|
|
267
|
+
depositPositionCount: number;
|
|
268
|
+
borrowPositionCount: number;
|
|
269
|
+
positionCount: number;
|
|
270
|
+
deposits: {
|
|
271
|
+
coinType: string;
|
|
272
|
+
reserveArrayIndex: bigint;
|
|
273
|
+
userRewardManagerIndex: number;
|
|
274
|
+
userRewardManager: _suilend_sdk__generated_suilend_liquidity_mining_structs.UserRewardManager;
|
|
275
|
+
depositedAmount: BigNumber;
|
|
276
|
+
depositedAmountUsd: BigNumber;
|
|
277
|
+
depositedCtokenAmount: BigNumber;
|
|
278
|
+
reserve: {
|
|
279
|
+
config: {
|
|
280
|
+
$typeName: string;
|
|
281
|
+
openLtvPct: number;
|
|
282
|
+
closeLtvPct: number;
|
|
283
|
+
maxCloseLtvPct: number;
|
|
284
|
+
borrowWeightBps: BigNumber;
|
|
285
|
+
depositLimit: BigNumber;
|
|
286
|
+
borrowLimit: BigNumber;
|
|
287
|
+
liquidationBonusBps: number;
|
|
288
|
+
maxLiquidationBonusBps: number;
|
|
289
|
+
depositLimitUsd: BigNumber;
|
|
290
|
+
borrowLimitUsd: BigNumber;
|
|
291
|
+
borrowFeeBps: number;
|
|
292
|
+
spreadFeeBps: number;
|
|
293
|
+
protocolLiquidationFeeBps: number;
|
|
294
|
+
isolated: boolean;
|
|
295
|
+
openAttributedBorrowLimitUsd: number;
|
|
296
|
+
closeAttributedBorrowLimitUsd: number;
|
|
297
|
+
interestRate: {
|
|
298
|
+
id: string;
|
|
299
|
+
utilPercent: BigNumber;
|
|
300
|
+
aprPercent: BigNumber;
|
|
301
|
+
}[];
|
|
302
|
+
};
|
|
303
|
+
$typeName: string;
|
|
304
|
+
id: string;
|
|
305
|
+
arrayIndex: bigint;
|
|
306
|
+
coinType: string;
|
|
307
|
+
mintDecimals: number;
|
|
308
|
+
priceIdentifier: string;
|
|
309
|
+
price: BigNumber;
|
|
310
|
+
smoothedPrice: BigNumber;
|
|
311
|
+
minPrice: BigNumber;
|
|
312
|
+
maxPrice: BigNumber;
|
|
313
|
+
priceLastUpdateTimestampS: bigint;
|
|
314
|
+
availableAmount: BigNumber;
|
|
315
|
+
ctokenSupply: BigNumber;
|
|
316
|
+
borrowedAmount: BigNumber;
|
|
317
|
+
cumulativeBorrowRate: BigNumber;
|
|
318
|
+
interestLastUpdateTimestampS: bigint;
|
|
319
|
+
unclaimedSpreadFees: BigNumber;
|
|
320
|
+
attributedBorrowValue: BigNumber;
|
|
321
|
+
depositsPoolRewardManager: {
|
|
322
|
+
$typeName: string;
|
|
323
|
+
id: string;
|
|
324
|
+
totalShares: bigint;
|
|
325
|
+
poolRewards: {
|
|
326
|
+
$typeName: string;
|
|
327
|
+
id: string;
|
|
328
|
+
poolRewardManagerId: string;
|
|
329
|
+
coinType: string;
|
|
330
|
+
startTimeMs: number;
|
|
331
|
+
endTimeMs: number;
|
|
332
|
+
totalRewards: BigNumber;
|
|
333
|
+
allocatedRewards: BigNumber;
|
|
334
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
335
|
+
numUserRewardManagers: bigint;
|
|
336
|
+
rewardIndex: number;
|
|
337
|
+
symbol: string;
|
|
338
|
+
mintDecimals: number;
|
|
339
|
+
}[];
|
|
340
|
+
lastUpdateTimeMs: bigint;
|
|
341
|
+
};
|
|
342
|
+
borrowsPoolRewardManager: {
|
|
343
|
+
$typeName: string;
|
|
344
|
+
id: string;
|
|
345
|
+
totalShares: bigint;
|
|
346
|
+
poolRewards: {
|
|
347
|
+
$typeName: string;
|
|
348
|
+
id: string;
|
|
349
|
+
poolRewardManagerId: string;
|
|
350
|
+
coinType: string;
|
|
351
|
+
startTimeMs: number;
|
|
352
|
+
endTimeMs: number;
|
|
353
|
+
totalRewards: BigNumber;
|
|
354
|
+
allocatedRewards: BigNumber;
|
|
355
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
356
|
+
numUserRewardManagers: bigint;
|
|
357
|
+
rewardIndex: number;
|
|
358
|
+
symbol: string;
|
|
359
|
+
mintDecimals: number;
|
|
360
|
+
}[];
|
|
361
|
+
lastUpdateTimeMs: bigint;
|
|
362
|
+
};
|
|
363
|
+
availableAmountUsd: BigNumber;
|
|
364
|
+
borrowedAmountUsd: BigNumber;
|
|
365
|
+
depositedAmount: BigNumber;
|
|
366
|
+
depositedAmountUsd: BigNumber;
|
|
367
|
+
cTokenExchangeRate: BigNumber;
|
|
368
|
+
borrowAprPercent: BigNumber;
|
|
369
|
+
depositAprPercent: BigNumber;
|
|
370
|
+
utilizationPercent: BigNumber;
|
|
371
|
+
token: {
|
|
372
|
+
decimals: number;
|
|
373
|
+
description: string;
|
|
374
|
+
iconUrl?: string | null;
|
|
375
|
+
id?: string | null;
|
|
376
|
+
name: string;
|
|
377
|
+
symbol: string;
|
|
378
|
+
coinType: string;
|
|
379
|
+
};
|
|
380
|
+
symbol: string;
|
|
381
|
+
name: string;
|
|
382
|
+
iconUrl: string | null | undefined;
|
|
383
|
+
description: string;
|
|
384
|
+
totalDeposits: BigNumber;
|
|
385
|
+
};
|
|
386
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
387
|
+
}[];
|
|
388
|
+
borrows: {
|
|
389
|
+
coinType: string;
|
|
390
|
+
reserveArrayIndex: bigint;
|
|
391
|
+
userRewardManagerIndex: number;
|
|
392
|
+
userRewardManager: _suilend_sdk__generated_suilend_liquidity_mining_structs.UserRewardManager;
|
|
393
|
+
borrowedAmount: BigNumber;
|
|
394
|
+
borrowedAmountUsd: BigNumber;
|
|
395
|
+
reserve: {
|
|
396
|
+
config: {
|
|
397
|
+
$typeName: string;
|
|
398
|
+
openLtvPct: number;
|
|
399
|
+
closeLtvPct: number;
|
|
400
|
+
maxCloseLtvPct: number;
|
|
401
|
+
borrowWeightBps: BigNumber;
|
|
402
|
+
depositLimit: BigNumber;
|
|
403
|
+
borrowLimit: BigNumber;
|
|
404
|
+
liquidationBonusBps: number;
|
|
405
|
+
maxLiquidationBonusBps: number;
|
|
406
|
+
depositLimitUsd: BigNumber;
|
|
407
|
+
borrowLimitUsd: BigNumber;
|
|
408
|
+
borrowFeeBps: number;
|
|
409
|
+
spreadFeeBps: number;
|
|
410
|
+
protocolLiquidationFeeBps: number;
|
|
411
|
+
isolated: boolean;
|
|
412
|
+
openAttributedBorrowLimitUsd: number;
|
|
413
|
+
closeAttributedBorrowLimitUsd: number;
|
|
414
|
+
interestRate: {
|
|
415
|
+
id: string;
|
|
416
|
+
utilPercent: BigNumber;
|
|
417
|
+
aprPercent: BigNumber;
|
|
418
|
+
}[];
|
|
419
|
+
};
|
|
420
|
+
$typeName: string;
|
|
421
|
+
id: string;
|
|
422
|
+
arrayIndex: bigint;
|
|
423
|
+
coinType: string;
|
|
424
|
+
mintDecimals: number;
|
|
425
|
+
priceIdentifier: string;
|
|
426
|
+
price: BigNumber;
|
|
427
|
+
smoothedPrice: BigNumber;
|
|
428
|
+
minPrice: BigNumber;
|
|
429
|
+
maxPrice: BigNumber;
|
|
430
|
+
priceLastUpdateTimestampS: bigint;
|
|
431
|
+
availableAmount: BigNumber;
|
|
432
|
+
ctokenSupply: BigNumber;
|
|
433
|
+
borrowedAmount: BigNumber;
|
|
434
|
+
cumulativeBorrowRate: BigNumber;
|
|
435
|
+
interestLastUpdateTimestampS: bigint;
|
|
436
|
+
unclaimedSpreadFees: BigNumber;
|
|
437
|
+
attributedBorrowValue: BigNumber;
|
|
438
|
+
depositsPoolRewardManager: {
|
|
439
|
+
$typeName: string;
|
|
440
|
+
id: string;
|
|
441
|
+
totalShares: bigint;
|
|
442
|
+
poolRewards: {
|
|
443
|
+
$typeName: string;
|
|
444
|
+
id: string;
|
|
445
|
+
poolRewardManagerId: string;
|
|
446
|
+
coinType: string;
|
|
447
|
+
startTimeMs: number;
|
|
448
|
+
endTimeMs: number;
|
|
449
|
+
totalRewards: BigNumber;
|
|
450
|
+
allocatedRewards: BigNumber;
|
|
451
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
452
|
+
numUserRewardManagers: bigint;
|
|
453
|
+
rewardIndex: number;
|
|
454
|
+
symbol: string;
|
|
455
|
+
mintDecimals: number;
|
|
456
|
+
}[];
|
|
457
|
+
lastUpdateTimeMs: bigint;
|
|
458
|
+
};
|
|
459
|
+
borrowsPoolRewardManager: {
|
|
460
|
+
$typeName: string;
|
|
461
|
+
id: string;
|
|
462
|
+
totalShares: bigint;
|
|
463
|
+
poolRewards: {
|
|
464
|
+
$typeName: string;
|
|
465
|
+
id: string;
|
|
466
|
+
poolRewardManagerId: string;
|
|
467
|
+
coinType: string;
|
|
468
|
+
startTimeMs: number;
|
|
469
|
+
endTimeMs: number;
|
|
470
|
+
totalRewards: BigNumber;
|
|
471
|
+
allocatedRewards: BigNumber;
|
|
472
|
+
cumulativeRewardsPerShare: BigNumber;
|
|
473
|
+
numUserRewardManagers: bigint;
|
|
474
|
+
rewardIndex: number;
|
|
475
|
+
symbol: string;
|
|
476
|
+
mintDecimals: number;
|
|
477
|
+
}[];
|
|
478
|
+
lastUpdateTimeMs: bigint;
|
|
479
|
+
};
|
|
480
|
+
availableAmountUsd: BigNumber;
|
|
481
|
+
borrowedAmountUsd: BigNumber;
|
|
482
|
+
depositedAmount: BigNumber;
|
|
483
|
+
depositedAmountUsd: BigNumber;
|
|
484
|
+
cTokenExchangeRate: BigNumber;
|
|
485
|
+
borrowAprPercent: BigNumber;
|
|
486
|
+
depositAprPercent: BigNumber;
|
|
487
|
+
utilizationPercent: BigNumber;
|
|
488
|
+
token: {
|
|
489
|
+
decimals: number;
|
|
490
|
+
description: string;
|
|
491
|
+
iconUrl?: string | null;
|
|
492
|
+
id?: string | null;
|
|
493
|
+
name: string;
|
|
494
|
+
symbol: string;
|
|
495
|
+
coinType: string;
|
|
496
|
+
};
|
|
497
|
+
symbol: string;
|
|
498
|
+
name: string;
|
|
499
|
+
iconUrl: string | null | undefined;
|
|
500
|
+
description: string;
|
|
501
|
+
totalDeposits: BigNumber;
|
|
502
|
+
};
|
|
503
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
504
|
+
}[];
|
|
505
|
+
weightedConservativeBorrowUtilizationPercent: BigNumber;
|
|
506
|
+
original: _suilend_sdk__generated_suilend_obligation_structs.Obligation<string>;
|
|
507
|
+
totalSupplyUsd: BigNumber;
|
|
508
|
+
totalBorrowUsd: BigNumber;
|
|
509
|
+
totalWeightedBorrowUsd: BigNumber;
|
|
510
|
+
maxPriceTotalWeightedBorrowUsd: BigNumber;
|
|
511
|
+
borrowLimit: BigNumber;
|
|
512
|
+
minPriceBorrowLimit: BigNumber;
|
|
282
513
|
createdAt: any;
|
|
514
|
+
positionId: any;
|
|
283
515
|
initDepositAmount: any;
|
|
284
516
|
isLong: any;
|
|
517
|
+
lendingMarketId: any;
|
|
285
518
|
obligationOwnerCap: any;
|
|
286
519
|
}[]>;
|
|
287
520
|
/**
|
|
@@ -289,11 +522,12 @@ declare class LeverageModules {
|
|
|
289
522
|
*/
|
|
290
523
|
getLeveragePosition: (positionId: string) => Promise<{
|
|
291
524
|
createdAt: any;
|
|
292
|
-
|
|
525
|
+
positionId: any;
|
|
293
526
|
initDepositAmount: any;
|
|
294
527
|
isLong: any;
|
|
295
528
|
lendingMarketId: any;
|
|
296
529
|
obligationOwnerCap: any;
|
|
530
|
+
id: string;
|
|
297
531
|
depositedAmountUsd: BigNumber;
|
|
298
532
|
borrowedAmountUsd: BigNumber;
|
|
299
533
|
netValueUsd: BigNumber;
|