@t2000/sdk 3.1.0 → 3.2.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.
- package/README.md +5 -5
- package/dist/adapters/index.cjs +3 -3
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.js +3 -3
- package/dist/adapters/index.js.map +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +91 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +91 -83
- package/dist/index.js.map +1 -1
- package/dist/{types-DOnXJXL2.d.cts → types-Bh_0d-te.d.cts} +4 -2
- package/dist/{types-CfBlFLmU.d.ts → types-BmgPRlnq.d.ts} +4 -2
- package/package.json +2 -2
package/dist/adapters/index.js
CHANGED
|
@@ -486,7 +486,7 @@ var SUPPORTED_ASSETS = {
|
|
|
486
486
|
displayName: "XAUM"
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
var
|
|
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
|
|
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
|
|
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()) {
|