@t2000/sdk 3.1.1 → 3.3.0

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.
@@ -1,6 +1,6 @@
1
1
  import { L as LendingAdapter, a as LendingRates, b as AdapterPositions, A as AdapterCapability, H as HealthInfo, c as AdapterTxResult, P as PendingReward } from '../descriptors-DqIb4AnV.cjs';
2
2
  export { d as ProtocolDescriptor, e as allDescriptors, n as naviDescriptor } from '../descriptors-DqIb4AnV.cjs';
3
- import { b as MaxWithdrawResult, M as MaxBorrowResult } from '../types-Bk7NncQ_.cjs';
3
+ import { b as MaxWithdrawResult, M as MaxBorrowResult } from '../types-HJGbXJ37.cjs';
4
4
  import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
5
5
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
6
6
  import '@cetusprotocol/aggregator-sdk';
@@ -1,6 +1,6 @@
1
1
  import { L as LendingAdapter, a as LendingRates, b as AdapterPositions, A as AdapterCapability, H as HealthInfo, c as AdapterTxResult, P as PendingReward } from '../descriptors-DqIb4AnV.js';
2
2
  export { d as ProtocolDescriptor, e as allDescriptors, n as naviDescriptor } from '../descriptors-DqIb4AnV.js';
3
- import { b as MaxWithdrawResult, M as MaxBorrowResult } from '../types-Bk7NncQ_.js';
3
+ import { b as MaxWithdrawResult, M as MaxBorrowResult } from '../types-HJGbXJ37.js';
4
4
  import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
5
5
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
6
6
  import '@cetusprotocol/aggregator-sdk';
@@ -486,7 +486,7 @@ var SUPPORTED_ASSETS = {
486
486
  displayName: "XAUM"
487
487
  }
488
488
  };
489
- var STABLE_ASSETS = ["USDC"];
489
+ var SAVEABLE_ASSETS = ["USDC", "USDsui"];
490
490
  var ALL_NAVI_ASSETS = Object.keys(SUPPORTED_ASSETS);
491
491
  process.env.T2000_OVERLAY_FEE_WALLET ?? "0x5366efbf2b4fe5767fe2e78eb197aa5f5d138d88ac3333fbf3f80a1927da473a";
492
492
  process.env.T2000_API_URL ?? "https://api.t2000.ai";
@@ -534,7 +534,7 @@ var ProtocolRegistry = class {
534
534
  }
535
535
  async bestSaveRateAcrossAssets() {
536
536
  const candidates = [];
537
- for (const asset of STABLE_ASSETS) {
537
+ for (const asset of SAVEABLE_ASSETS) {
538
538
  for (const adapter of this.lending.values()) {
539
539
  if (!adapter.supportedAssets.includes(asset)) continue;
540
540
  if (!adapter.capabilities.includes("save")) continue;
@@ -554,7 +554,7 @@ var ProtocolRegistry = class {
554
554
  async allRatesAcrossAssets() {
555
555
  const results = [];
556
556
  const seen = /* @__PURE__ */ new Set();
557
- for (const asset of STABLE_ASSETS) {
557
+ for (const asset of SAVEABLE_ASSETS) {
558
558
  if (seen.has(asset)) continue;
559
559
  seen.add(asset);
560
560
  for (const adapter of this.lending.values()) {