@strkfarm/sdk 1.0.60 → 1.0.61
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.browser.global.js +21 -20
- package/dist/index.browser.mjs +11 -10
- package/dist/index.js +11 -10
- package/dist/index.mjs +11 -10
- package/package.json +2 -1
- package/src/strategies/universal-strategy.tsx +12 -10
|
@@ -49505,7 +49505,7 @@ ${indent}}` : "}";
|
|
|
49505
49505
|
var import_hashes = __toESM(require_hashes());
|
|
49506
49506
|
var import_merkletree = __toESM(require_merkletree());
|
|
49507
49507
|
|
|
49508
|
-
// node_modules/@noble/hashes/utils.js
|
|
49508
|
+
// node_modules/.pnpm/@noble+hashes@2.0.0/node_modules/@noble/hashes/utils.js
|
|
49509
49509
|
function isBytes9(a) {
|
|
49510
49510
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
49511
49511
|
}
|
|
@@ -49642,7 +49642,7 @@ ${indent}}` : "}";
|
|
|
49642
49642
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
49643
49643
|
});
|
|
49644
49644
|
|
|
49645
|
-
// node_modules/@noble/curves/utils.js
|
|
49645
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/utils.js
|
|
49646
49646
|
var _0n12 = /* @__PURE__ */ BigInt(0);
|
|
49647
49647
|
var _1n12 = /* @__PURE__ */ BigInt(1);
|
|
49648
49648
|
function abool(value, title = "") {
|
|
@@ -49788,7 +49788,7 @@ ${indent}}` : "}";
|
|
|
49788
49788
|
};
|
|
49789
49789
|
}
|
|
49790
49790
|
|
|
49791
|
-
// node_modules/@noble/curves/abstract/modular.js
|
|
49791
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/modular.js
|
|
49792
49792
|
var _0n13 = /* @__PURE__ */ BigInt(0);
|
|
49793
49793
|
var _1n13 = /* @__PURE__ */ BigInt(1);
|
|
49794
49794
|
var _2n10 = /* @__PURE__ */ BigInt(2);
|
|
@@ -50166,7 +50166,7 @@ ${indent}}` : "}";
|
|
|
50166
50166
|
return isLE4 ? numberToBytesLE3(reduced, fieldLen) : numberToBytesBE3(reduced, fieldLen);
|
|
50167
50167
|
}
|
|
50168
50168
|
|
|
50169
|
-
// node_modules/@noble/curves/abstract/poseidon.js
|
|
50169
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/poseidon.js
|
|
50170
50170
|
function assertValidPosOpts(opts) {
|
|
50171
50171
|
const { Fp: Fp2, roundsFull } = opts;
|
|
50172
50172
|
validateField3(Fp2);
|
|
@@ -50263,7 +50263,7 @@ ${indent}}` : "}";
|
|
|
50263
50263
|
return poseidonHash2;
|
|
50264
50264
|
}
|
|
50265
50265
|
|
|
50266
|
-
// node_modules/@noble/hashes/hmac.js
|
|
50266
|
+
// node_modules/.pnpm/@noble+hashes@2.0.0/node_modules/@noble/hashes/hmac.js
|
|
50267
50267
|
var _HMAC = class {
|
|
50268
50268
|
constructor(hash4, key) {
|
|
50269
50269
|
__publicField(this, "oHash");
|
|
@@ -50334,7 +50334,7 @@ ${indent}}` : "}";
|
|
|
50334
50334
|
var hmac3 = (hash4, key, message) => new _HMAC(hash4, key).update(message).digest();
|
|
50335
50335
|
hmac3.create = (hash4, key) => new _HMAC(hash4, key);
|
|
50336
50336
|
|
|
50337
|
-
// node_modules/@noble/curves/abstract/curve.js
|
|
50337
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/curve.js
|
|
50338
50338
|
var _0n14 = /* @__PURE__ */ BigInt(0);
|
|
50339
50339
|
var _1n14 = /* @__PURE__ */ BigInt(1);
|
|
50340
50340
|
function negateCt(condition, item) {
|
|
@@ -50567,7 +50567,7 @@ ${indent}}` : "}";
|
|
|
50567
50567
|
};
|
|
50568
50568
|
}
|
|
50569
50569
|
|
|
50570
|
-
// node_modules/@noble/curves/abstract/weierstrass.js
|
|
50570
|
+
// node_modules/.pnpm/@noble+curves@2.0.0/node_modules/@noble/curves/abstract/weierstrass.js
|
|
50571
50571
|
var divNearest2 = (num4, den) => (num4 + (num4 >= 0 ? den : -den) / _2n11) / den;
|
|
50572
50572
|
function _splitEndoScalar(k, basis, n) {
|
|
50573
50573
|
const [[a1, b1], [a2, b2]] = basis;
|
|
@@ -51440,7 +51440,7 @@ ${indent}}` : "}";
|
|
|
51440
51440
|
});
|
|
51441
51441
|
}
|
|
51442
51442
|
|
|
51443
|
-
// node_modules/@noble/hashes/_md.js
|
|
51443
|
+
// node_modules/.pnpm/@noble+hashes@2.0.0/node_modules/@noble/hashes/_md.js
|
|
51444
51444
|
function Chi3(a, b, c) {
|
|
51445
51445
|
return a & b ^ ~a & c;
|
|
51446
51446
|
}
|
|
@@ -51553,7 +51553,7 @@ ${indent}}` : "}";
|
|
|
51553
51553
|
1541459225
|
|
51554
51554
|
]);
|
|
51555
51555
|
|
|
51556
|
-
// node_modules/@noble/hashes/sha2.js
|
|
51556
|
+
// node_modules/.pnpm/@noble+hashes@2.0.0/node_modules/@noble/hashes/sha2.js
|
|
51557
51557
|
var SHA256_K3 = /* @__PURE__ */ Uint32Array.from([
|
|
51558
51558
|
1116352408,
|
|
51559
51559
|
1899447441,
|
|
@@ -51703,7 +51703,7 @@ ${indent}}` : "}";
|
|
|
51703
51703
|
/* @__PURE__ */ oidNist(1)
|
|
51704
51704
|
);
|
|
51705
51705
|
|
|
51706
|
-
// node_modules/@scure/starknet/index.js
|
|
51706
|
+
// node_modules/.pnpm/@scure+starknet@2.0.0/node_modules/@scure/starknet/index.js
|
|
51707
51707
|
var CURVE_ORDER2 = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583");
|
|
51708
51708
|
var MAX_VALUE2 = BigInt("0x800000000000000000000000000000000000000000000000000000000000000");
|
|
51709
51709
|
var nBitLength2 = 252;
|
|
@@ -73860,19 +73860,20 @@ ${indent}}` : "}";
|
|
|
73860
73860
|
targetHealthFactor: 1.3,
|
|
73861
73861
|
minHealthFactor: 1.25
|
|
73862
73862
|
};
|
|
73863
|
-
function MetaVaultDescription() {
|
|
73863
|
+
function MetaVaultDescription(allowedSources) {
|
|
73864
73864
|
const logos = {
|
|
73865
73865
|
vesu: Protocols.VESU.logo,
|
|
73866
73866
|
endur: Protocols.ENDUR.logo,
|
|
73867
73867
|
extended: Protocols.EXTENDED.logo,
|
|
73868
73868
|
ekubo: "https://dummyimage.com/64x64/ffffff/000000&text=K"
|
|
73869
73869
|
};
|
|
73870
|
-
const
|
|
73870
|
+
const _sources = [
|
|
73871
73871
|
{ key: "vesu", name: "Vesu", status: "Live", description: "Integrated liquidity venue used for automated routing to capture the best available yield." },
|
|
73872
73872
|
{ key: "endur", name: "Endur", status: "Coming soon", description: "Planned integration to tap into STRK staking\u2013backed yields via our LST pipeline." },
|
|
73873
73873
|
{ key: "extended", name: "Extended", status: "Coming soon", description: "Expanding coverage to additional money markets and vaults across the ecosystem." }
|
|
73874
73874
|
// { key: "ekubo", name: "Ekubo", status: "Coming soon", description: "Concentrated liquidity strategies targeted for optimized fee APR harvesting." },
|
|
73875
73875
|
];
|
|
73876
|
+
const sources = _sources.filter((s) => allowedSources.includes(s.key));
|
|
73876
73877
|
const containerStyle = {
|
|
73877
73878
|
maxWidth: "800px",
|
|
73878
73879
|
margin: "0 auto",
|
|
@@ -73927,8 +73928,8 @@ ${indent}}` : "}";
|
|
|
73927
73928
|
};
|
|
73928
73929
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: badgeStyle, children: status });
|
|
73929
73930
|
}
|
|
73930
|
-
function getDescription(tokenSymbol) {
|
|
73931
|
-
return MetaVaultDescription();
|
|
73931
|
+
function getDescription(tokenSymbol, allowedSources) {
|
|
73932
|
+
return MetaVaultDescription(allowedSources);
|
|
73932
73933
|
}
|
|
73933
73934
|
function getFAQs() {
|
|
73934
73935
|
return [
|
|
@@ -73945,7 +73946,7 @@ ${indent}}` : "}";
|
|
|
73945
73946
|
answer: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
|
|
73946
73947
|
"Currently, ",
|
|
73947
73948
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: "Vesu" }),
|
|
73948
|
-
" is live. Future integrations include",
|
|
73949
|
+
" is live. Future integrations may include",
|
|
73949
73950
|
" ",
|
|
73950
73951
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: "Endur" }),
|
|
73951
73952
|
", ",
|
|
@@ -73996,7 +73997,7 @@ ${indent}}` : "}";
|
|
|
73996
73997
|
var UniversalStrategies = [
|
|
73997
73998
|
{
|
|
73998
73999
|
name: "USDC Evergreen",
|
|
73999
|
-
description: getDescription("USDC"),
|
|
74000
|
+
description: getDescription("USDC", ["vesu", "extended"]),
|
|
74000
74001
|
address: ContractAddr.from("0x7e6498cf6a1bfc7e6fc89f1831865e2dacb9756def4ec4b031a9138788a3b5e"),
|
|
74001
74002
|
launchBlock: 0,
|
|
74002
74003
|
type: "ERC4626",
|
|
@@ -74015,7 +74016,7 @@ ${indent}}` : "}";
|
|
|
74015
74016
|
},
|
|
74016
74017
|
{
|
|
74017
74018
|
name: "WBTC Evergreen",
|
|
74018
|
-
description: getDescription("WBTC"),
|
|
74019
|
+
description: getDescription("WBTC", ["vesu", "endur", "extended"]),
|
|
74019
74020
|
address: ContractAddr.from("0x5a4c1651b913aa2ea7afd9024911603152a19058624c3e425405370d62bf80c"),
|
|
74020
74021
|
launchBlock: 0,
|
|
74021
74022
|
type: "ERC4626",
|
|
@@ -74034,7 +74035,7 @@ ${indent}}` : "}";
|
|
|
74034
74035
|
},
|
|
74035
74036
|
{
|
|
74036
74037
|
name: "ETH Evergreen",
|
|
74037
|
-
description: getDescription("ETH"),
|
|
74038
|
+
description: getDescription("ETH", ["vesu", "extended"]),
|
|
74038
74039
|
address: ContractAddr.from("0x446c22d4d3f5cb52b4950ba832ba1df99464c6673a37c092b1d9622650dbd8"),
|
|
74039
74040
|
launchBlock: 0,
|
|
74040
74041
|
type: "ERC4626",
|
|
@@ -74053,7 +74054,7 @@ ${indent}}` : "}";
|
|
|
74053
74054
|
},
|
|
74054
74055
|
{
|
|
74055
74056
|
name: "STRK Evergreen",
|
|
74056
|
-
description: getDescription("STRK"),
|
|
74057
|
+
description: getDescription("STRK", ["vesu", "endur", "extended"]),
|
|
74057
74058
|
address: ContractAddr.from("0x55d012f57e58c96e0a5c7ebbe55853989d01e6538b15a95e7178aca4af05c21"),
|
|
74058
74059
|
launchBlock: 0,
|
|
74059
74060
|
type: "ERC4626",
|
|
@@ -74072,7 +74073,7 @@ ${indent}}` : "}";
|
|
|
74072
74073
|
},
|
|
74073
74074
|
{
|
|
74074
74075
|
name: "USDT Evergreen",
|
|
74075
|
-
description: getDescription("USDT"),
|
|
74076
|
+
description: getDescription("USDT", ["vesu"]),
|
|
74076
74077
|
address: ContractAddr.from("0x1c4933d1880c6778585e597154eaca7b428579d72f3aae425ad2e4d26c6bb3"),
|
|
74077
74078
|
launchBlock: 0,
|
|
74078
74079
|
type: "ERC4626",
|
package/dist/index.browser.mjs
CHANGED
|
@@ -23935,19 +23935,20 @@ var usdtVaultSettings = {
|
|
|
23935
23935
|
targetHealthFactor: 1.3,
|
|
23936
23936
|
minHealthFactor: 1.25
|
|
23937
23937
|
};
|
|
23938
|
-
function MetaVaultDescription() {
|
|
23938
|
+
function MetaVaultDescription(allowedSources) {
|
|
23939
23939
|
const logos = {
|
|
23940
23940
|
vesu: Protocols.VESU.logo,
|
|
23941
23941
|
endur: Protocols.ENDUR.logo,
|
|
23942
23942
|
extended: Protocols.EXTENDED.logo,
|
|
23943
23943
|
ekubo: "https://dummyimage.com/64x64/ffffff/000000&text=K"
|
|
23944
23944
|
};
|
|
23945
|
-
const
|
|
23945
|
+
const _sources = [
|
|
23946
23946
|
{ key: "vesu", name: "Vesu", status: "Live", description: "Integrated liquidity venue used for automated routing to capture the best available yield." },
|
|
23947
23947
|
{ key: "endur", name: "Endur", status: "Coming soon", description: "Planned integration to tap into STRK staking\u2013backed yields via our LST pipeline." },
|
|
23948
23948
|
{ key: "extended", name: "Extended", status: "Coming soon", description: "Expanding coverage to additional money markets and vaults across the ecosystem." }
|
|
23949
23949
|
// { key: "ekubo", name: "Ekubo", status: "Coming soon", description: "Concentrated liquidity strategies targeted for optimized fee APR harvesting." },
|
|
23950
23950
|
];
|
|
23951
|
+
const sources = _sources.filter((s) => allowedSources.includes(s.key));
|
|
23951
23952
|
const containerStyle = {
|
|
23952
23953
|
maxWidth: "800px",
|
|
23953
23954
|
margin: "0 auto",
|
|
@@ -24002,8 +24003,8 @@ function StatusBadge({ status }) {
|
|
|
24002
24003
|
};
|
|
24003
24004
|
return /* @__PURE__ */ jsx4("span", { style: badgeStyle, children: status });
|
|
24004
24005
|
}
|
|
24005
|
-
function getDescription(tokenSymbol) {
|
|
24006
|
-
return MetaVaultDescription();
|
|
24006
|
+
function getDescription(tokenSymbol, allowedSources) {
|
|
24007
|
+
return MetaVaultDescription(allowedSources);
|
|
24007
24008
|
}
|
|
24008
24009
|
function getFAQs() {
|
|
24009
24010
|
return [
|
|
@@ -24020,7 +24021,7 @@ function getFAQs() {
|
|
|
24020
24021
|
answer: /* @__PURE__ */ jsxs3("span", { children: [
|
|
24021
24022
|
"Currently, ",
|
|
24022
24023
|
/* @__PURE__ */ jsx4("strong", { children: "Vesu" }),
|
|
24023
|
-
" is live. Future integrations include",
|
|
24024
|
+
" is live. Future integrations may include",
|
|
24024
24025
|
" ",
|
|
24025
24026
|
/* @__PURE__ */ jsx4("strong", { children: "Endur" }),
|
|
24026
24027
|
", ",
|
|
@@ -24071,7 +24072,7 @@ var investmentSteps = [
|
|
|
24071
24072
|
var UniversalStrategies = [
|
|
24072
24073
|
{
|
|
24073
24074
|
name: "USDC Evergreen",
|
|
24074
|
-
description: getDescription("USDC"),
|
|
24075
|
+
description: getDescription("USDC", ["vesu", "extended"]),
|
|
24075
24076
|
address: ContractAddr.from("0x7e6498cf6a1bfc7e6fc89f1831865e2dacb9756def4ec4b031a9138788a3b5e"),
|
|
24076
24077
|
launchBlock: 0,
|
|
24077
24078
|
type: "ERC4626",
|
|
@@ -24090,7 +24091,7 @@ var UniversalStrategies = [
|
|
|
24090
24091
|
},
|
|
24091
24092
|
{
|
|
24092
24093
|
name: "WBTC Evergreen",
|
|
24093
|
-
description: getDescription("WBTC"),
|
|
24094
|
+
description: getDescription("WBTC", ["vesu", "endur", "extended"]),
|
|
24094
24095
|
address: ContractAddr.from("0x5a4c1651b913aa2ea7afd9024911603152a19058624c3e425405370d62bf80c"),
|
|
24095
24096
|
launchBlock: 0,
|
|
24096
24097
|
type: "ERC4626",
|
|
@@ -24109,7 +24110,7 @@ var UniversalStrategies = [
|
|
|
24109
24110
|
},
|
|
24110
24111
|
{
|
|
24111
24112
|
name: "ETH Evergreen",
|
|
24112
|
-
description: getDescription("ETH"),
|
|
24113
|
+
description: getDescription("ETH", ["vesu", "extended"]),
|
|
24113
24114
|
address: ContractAddr.from("0x446c22d4d3f5cb52b4950ba832ba1df99464c6673a37c092b1d9622650dbd8"),
|
|
24114
24115
|
launchBlock: 0,
|
|
24115
24116
|
type: "ERC4626",
|
|
@@ -24128,7 +24129,7 @@ var UniversalStrategies = [
|
|
|
24128
24129
|
},
|
|
24129
24130
|
{
|
|
24130
24131
|
name: "STRK Evergreen",
|
|
24131
|
-
description: getDescription("STRK"),
|
|
24132
|
+
description: getDescription("STRK", ["vesu", "endur", "extended"]),
|
|
24132
24133
|
address: ContractAddr.from("0x55d012f57e58c96e0a5c7ebbe55853989d01e6538b15a95e7178aca4af05c21"),
|
|
24133
24134
|
launchBlock: 0,
|
|
24134
24135
|
type: "ERC4626",
|
|
@@ -24147,7 +24148,7 @@ var UniversalStrategies = [
|
|
|
24147
24148
|
},
|
|
24148
24149
|
{
|
|
24149
24150
|
name: "USDT Evergreen",
|
|
24150
|
-
description: getDescription("USDT"),
|
|
24151
|
+
description: getDescription("USDT", ["vesu"]),
|
|
24151
24152
|
address: ContractAddr.from("0x1c4933d1880c6778585e597154eaca7b428579d72f3aae425ad2e4d26c6bb3"),
|
|
24152
24153
|
launchBlock: 0,
|
|
24153
24154
|
type: "ERC4626",
|
package/dist/index.js
CHANGED
|
@@ -24067,19 +24067,20 @@ var usdtVaultSettings = {
|
|
|
24067
24067
|
targetHealthFactor: 1.3,
|
|
24068
24068
|
minHealthFactor: 1.25
|
|
24069
24069
|
};
|
|
24070
|
-
function MetaVaultDescription() {
|
|
24070
|
+
function MetaVaultDescription(allowedSources) {
|
|
24071
24071
|
const logos = {
|
|
24072
24072
|
vesu: Protocols.VESU.logo,
|
|
24073
24073
|
endur: Protocols.ENDUR.logo,
|
|
24074
24074
|
extended: Protocols.EXTENDED.logo,
|
|
24075
24075
|
ekubo: "https://dummyimage.com/64x64/ffffff/000000&text=K"
|
|
24076
24076
|
};
|
|
24077
|
-
const
|
|
24077
|
+
const _sources = [
|
|
24078
24078
|
{ key: "vesu", name: "Vesu", status: "Live", description: "Integrated liquidity venue used for automated routing to capture the best available yield." },
|
|
24079
24079
|
{ key: "endur", name: "Endur", status: "Coming soon", description: "Planned integration to tap into STRK staking\u2013backed yields via our LST pipeline." },
|
|
24080
24080
|
{ key: "extended", name: "Extended", status: "Coming soon", description: "Expanding coverage to additional money markets and vaults across the ecosystem." }
|
|
24081
24081
|
// { key: "ekubo", name: "Ekubo", status: "Coming soon", description: "Concentrated liquidity strategies targeted for optimized fee APR harvesting." },
|
|
24082
24082
|
];
|
|
24083
|
+
const sources = _sources.filter((s) => allowedSources.includes(s.key));
|
|
24083
24084
|
const containerStyle = {
|
|
24084
24085
|
maxWidth: "800px",
|
|
24085
24086
|
margin: "0 auto",
|
|
@@ -24134,8 +24135,8 @@ function StatusBadge({ status }) {
|
|
|
24134
24135
|
};
|
|
24135
24136
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: badgeStyle, children: status });
|
|
24136
24137
|
}
|
|
24137
|
-
function getDescription(tokenSymbol) {
|
|
24138
|
-
return MetaVaultDescription();
|
|
24138
|
+
function getDescription(tokenSymbol, allowedSources) {
|
|
24139
|
+
return MetaVaultDescription(allowedSources);
|
|
24139
24140
|
}
|
|
24140
24141
|
function getFAQs() {
|
|
24141
24142
|
return [
|
|
@@ -24152,7 +24153,7 @@ function getFAQs() {
|
|
|
24152
24153
|
answer: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
|
|
24153
24154
|
"Currently, ",
|
|
24154
24155
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: "Vesu" }),
|
|
24155
|
-
" is live. Future integrations include",
|
|
24156
|
+
" is live. Future integrations may include",
|
|
24156
24157
|
" ",
|
|
24157
24158
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: "Endur" }),
|
|
24158
24159
|
", ",
|
|
@@ -24203,7 +24204,7 @@ var investmentSteps = [
|
|
|
24203
24204
|
var UniversalStrategies = [
|
|
24204
24205
|
{
|
|
24205
24206
|
name: "USDC Evergreen",
|
|
24206
|
-
description: getDescription("USDC"),
|
|
24207
|
+
description: getDescription("USDC", ["vesu", "extended"]),
|
|
24207
24208
|
address: ContractAddr.from("0x7e6498cf6a1bfc7e6fc89f1831865e2dacb9756def4ec4b031a9138788a3b5e"),
|
|
24208
24209
|
launchBlock: 0,
|
|
24209
24210
|
type: "ERC4626",
|
|
@@ -24222,7 +24223,7 @@ var UniversalStrategies = [
|
|
|
24222
24223
|
},
|
|
24223
24224
|
{
|
|
24224
24225
|
name: "WBTC Evergreen",
|
|
24225
|
-
description: getDescription("WBTC"),
|
|
24226
|
+
description: getDescription("WBTC", ["vesu", "endur", "extended"]),
|
|
24226
24227
|
address: ContractAddr.from("0x5a4c1651b913aa2ea7afd9024911603152a19058624c3e425405370d62bf80c"),
|
|
24227
24228
|
launchBlock: 0,
|
|
24228
24229
|
type: "ERC4626",
|
|
@@ -24241,7 +24242,7 @@ var UniversalStrategies = [
|
|
|
24241
24242
|
},
|
|
24242
24243
|
{
|
|
24243
24244
|
name: "ETH Evergreen",
|
|
24244
|
-
description: getDescription("ETH"),
|
|
24245
|
+
description: getDescription("ETH", ["vesu", "extended"]),
|
|
24245
24246
|
address: ContractAddr.from("0x446c22d4d3f5cb52b4950ba832ba1df99464c6673a37c092b1d9622650dbd8"),
|
|
24246
24247
|
launchBlock: 0,
|
|
24247
24248
|
type: "ERC4626",
|
|
@@ -24260,7 +24261,7 @@ var UniversalStrategies = [
|
|
|
24260
24261
|
},
|
|
24261
24262
|
{
|
|
24262
24263
|
name: "STRK Evergreen",
|
|
24263
|
-
description: getDescription("STRK"),
|
|
24264
|
+
description: getDescription("STRK", ["vesu", "endur", "extended"]),
|
|
24264
24265
|
address: ContractAddr.from("0x55d012f57e58c96e0a5c7ebbe55853989d01e6538b15a95e7178aca4af05c21"),
|
|
24265
24266
|
launchBlock: 0,
|
|
24266
24267
|
type: "ERC4626",
|
|
@@ -24279,7 +24280,7 @@ var UniversalStrategies = [
|
|
|
24279
24280
|
},
|
|
24280
24281
|
{
|
|
24281
24282
|
name: "USDT Evergreen",
|
|
24282
|
-
description: getDescription("USDT"),
|
|
24283
|
+
description: getDescription("USDT", ["vesu"]),
|
|
24283
24284
|
address: ContractAddr.from("0x1c4933d1880c6778585e597154eaca7b428579d72f3aae425ad2e4d26c6bb3"),
|
|
24284
24285
|
launchBlock: 0,
|
|
24285
24286
|
type: "ERC4626",
|
package/dist/index.mjs
CHANGED
|
@@ -23984,19 +23984,20 @@ var usdtVaultSettings = {
|
|
|
23984
23984
|
targetHealthFactor: 1.3,
|
|
23985
23985
|
minHealthFactor: 1.25
|
|
23986
23986
|
};
|
|
23987
|
-
function MetaVaultDescription() {
|
|
23987
|
+
function MetaVaultDescription(allowedSources) {
|
|
23988
23988
|
const logos = {
|
|
23989
23989
|
vesu: Protocols.VESU.logo,
|
|
23990
23990
|
endur: Protocols.ENDUR.logo,
|
|
23991
23991
|
extended: Protocols.EXTENDED.logo,
|
|
23992
23992
|
ekubo: "https://dummyimage.com/64x64/ffffff/000000&text=K"
|
|
23993
23993
|
};
|
|
23994
|
-
const
|
|
23994
|
+
const _sources = [
|
|
23995
23995
|
{ key: "vesu", name: "Vesu", status: "Live", description: "Integrated liquidity venue used for automated routing to capture the best available yield." },
|
|
23996
23996
|
{ key: "endur", name: "Endur", status: "Coming soon", description: "Planned integration to tap into STRK staking\u2013backed yields via our LST pipeline." },
|
|
23997
23997
|
{ key: "extended", name: "Extended", status: "Coming soon", description: "Expanding coverage to additional money markets and vaults across the ecosystem." }
|
|
23998
23998
|
// { key: "ekubo", name: "Ekubo", status: "Coming soon", description: "Concentrated liquidity strategies targeted for optimized fee APR harvesting." },
|
|
23999
23999
|
];
|
|
24000
|
+
const sources = _sources.filter((s) => allowedSources.includes(s.key));
|
|
24000
24001
|
const containerStyle = {
|
|
24001
24002
|
maxWidth: "800px",
|
|
24002
24003
|
margin: "0 auto",
|
|
@@ -24051,8 +24052,8 @@ function StatusBadge({ status }) {
|
|
|
24051
24052
|
};
|
|
24052
24053
|
return /* @__PURE__ */ jsx4("span", { style: badgeStyle, children: status });
|
|
24053
24054
|
}
|
|
24054
|
-
function getDescription(tokenSymbol) {
|
|
24055
|
-
return MetaVaultDescription();
|
|
24055
|
+
function getDescription(tokenSymbol, allowedSources) {
|
|
24056
|
+
return MetaVaultDescription(allowedSources);
|
|
24056
24057
|
}
|
|
24057
24058
|
function getFAQs() {
|
|
24058
24059
|
return [
|
|
@@ -24069,7 +24070,7 @@ function getFAQs() {
|
|
|
24069
24070
|
answer: /* @__PURE__ */ jsxs3("span", { children: [
|
|
24070
24071
|
"Currently, ",
|
|
24071
24072
|
/* @__PURE__ */ jsx4("strong", { children: "Vesu" }),
|
|
24072
|
-
" is live. Future integrations include",
|
|
24073
|
+
" is live. Future integrations may include",
|
|
24073
24074
|
" ",
|
|
24074
24075
|
/* @__PURE__ */ jsx4("strong", { children: "Endur" }),
|
|
24075
24076
|
", ",
|
|
@@ -24120,7 +24121,7 @@ var investmentSteps = [
|
|
|
24120
24121
|
var UniversalStrategies = [
|
|
24121
24122
|
{
|
|
24122
24123
|
name: "USDC Evergreen",
|
|
24123
|
-
description: getDescription("USDC"),
|
|
24124
|
+
description: getDescription("USDC", ["vesu", "extended"]),
|
|
24124
24125
|
address: ContractAddr.from("0x7e6498cf6a1bfc7e6fc89f1831865e2dacb9756def4ec4b031a9138788a3b5e"),
|
|
24125
24126
|
launchBlock: 0,
|
|
24126
24127
|
type: "ERC4626",
|
|
@@ -24139,7 +24140,7 @@ var UniversalStrategies = [
|
|
|
24139
24140
|
},
|
|
24140
24141
|
{
|
|
24141
24142
|
name: "WBTC Evergreen",
|
|
24142
|
-
description: getDescription("WBTC"),
|
|
24143
|
+
description: getDescription("WBTC", ["vesu", "endur", "extended"]),
|
|
24143
24144
|
address: ContractAddr.from("0x5a4c1651b913aa2ea7afd9024911603152a19058624c3e425405370d62bf80c"),
|
|
24144
24145
|
launchBlock: 0,
|
|
24145
24146
|
type: "ERC4626",
|
|
@@ -24158,7 +24159,7 @@ var UniversalStrategies = [
|
|
|
24158
24159
|
},
|
|
24159
24160
|
{
|
|
24160
24161
|
name: "ETH Evergreen",
|
|
24161
|
-
description: getDescription("ETH"),
|
|
24162
|
+
description: getDescription("ETH", ["vesu", "extended"]),
|
|
24162
24163
|
address: ContractAddr.from("0x446c22d4d3f5cb52b4950ba832ba1df99464c6673a37c092b1d9622650dbd8"),
|
|
24163
24164
|
launchBlock: 0,
|
|
24164
24165
|
type: "ERC4626",
|
|
@@ -24177,7 +24178,7 @@ var UniversalStrategies = [
|
|
|
24177
24178
|
},
|
|
24178
24179
|
{
|
|
24179
24180
|
name: "STRK Evergreen",
|
|
24180
|
-
description: getDescription("STRK"),
|
|
24181
|
+
description: getDescription("STRK", ["vesu", "endur", "extended"]),
|
|
24181
24182
|
address: ContractAddr.from("0x55d012f57e58c96e0a5c7ebbe55853989d01e6538b15a95e7178aca4af05c21"),
|
|
24182
24183
|
launchBlock: 0,
|
|
24183
24184
|
type: "ERC4626",
|
|
@@ -24196,7 +24197,7 @@ var UniversalStrategies = [
|
|
|
24196
24197
|
},
|
|
24197
24198
|
{
|
|
24198
24199
|
name: "USDT Evergreen",
|
|
24199
|
-
description: getDescription("USDT"),
|
|
24200
|
+
description: getDescription("USDT", ["vesu"]),
|
|
24200
24201
|
address: ContractAddr.from("0x1c4933d1880c6778585e597154eaca7b428579d72f3aae425ad2e4d26c6bb3"),
|
|
24201
24202
|
launchBlock: 0,
|
|
24202
24203
|
type: "ERC4626",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strkfarm/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@avnu/avnu-sdk": "3.0.2",
|
|
61
61
|
"@ericnordelo/strk-merkle-tree": "^1.0.0",
|
|
62
|
+
"@noble/curves": "^2.0.0",
|
|
62
63
|
"@scure/starknet": "^2.0.0",
|
|
63
64
|
"bignumber.js": "4.0.4",
|
|
64
65
|
"browser-assert": "^1.2.1",
|
|
@@ -776,19 +776,21 @@ const usdtVaultSettings: UniversalStrategySettings = {
|
|
|
776
776
|
minHealthFactor: 1.25
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
|
|
779
|
+
type AllowedSources = 'vesu' | 'endur' | 'extended';
|
|
780
|
+
export default function MetaVaultDescription(allowedSources: AllowedSources[]) {
|
|
780
781
|
const logos: any = {
|
|
781
782
|
vesu: Protocols.VESU.logo,
|
|
782
783
|
endur: Protocols.ENDUR.logo,
|
|
783
784
|
extended: Protocols.EXTENDED.logo,
|
|
784
785
|
ekubo: "https://dummyimage.com/64x64/ffffff/000000&text=K",
|
|
785
786
|
};
|
|
786
|
-
const
|
|
787
|
+
const _sources = [
|
|
787
788
|
{ key: "vesu", name: "Vesu", status: "Live", description: "Integrated liquidity venue used for automated routing to capture the best available yield." },
|
|
788
789
|
{ key: "endur", name: "Endur", status: "Coming soon", description: "Planned integration to tap into STRK staking–backed yields via our LST pipeline." },
|
|
789
790
|
{ key: "extended", name: "Extended", status: "Coming soon", description: "Expanding coverage to additional money markets and vaults across the ecosystem." },
|
|
790
791
|
// { key: "ekubo", name: "Ekubo", status: "Coming soon", description: "Concentrated liquidity strategies targeted for optimized fee APR harvesting." },
|
|
791
792
|
];
|
|
793
|
+
const sources = _sources.filter(s => allowedSources.includes(s.key as any));
|
|
792
794
|
|
|
793
795
|
const containerStyle = {
|
|
794
796
|
maxWidth: "800px",
|
|
@@ -865,8 +867,8 @@ function StatusBadge({ status }: { status: string }) {
|
|
|
865
867
|
return <span style={badgeStyle}>{status}</span>;
|
|
866
868
|
}
|
|
867
869
|
|
|
868
|
-
function getDescription(tokenSymbol: string) {
|
|
869
|
-
return MetaVaultDescription();
|
|
870
|
+
function getDescription(tokenSymbol: string, allowedSources: AllowedSources[]) {
|
|
871
|
+
return MetaVaultDescription(allowedSources);
|
|
870
872
|
}
|
|
871
873
|
|
|
872
874
|
function getFAQs(): FAQ[] {
|
|
@@ -885,7 +887,7 @@ function getFAQs(): FAQ[] {
|
|
|
885
887
|
question: "Which yield sources are supported?",
|
|
886
888
|
answer: (
|
|
887
889
|
<span>
|
|
888
|
-
Currently, <strong>Vesu</strong> is live. Future integrations include{" "}
|
|
890
|
+
Currently, <strong>Vesu</strong> is live. Future integrations may include{" "}
|
|
889
891
|
<strong>Endur</strong>, <strong>Extended</strong>, and{" "}
|
|
890
892
|
<strong>Ekubo</strong> (all coming soon).
|
|
891
893
|
</span>
|
|
@@ -939,7 +941,7 @@ export const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[]
|
|
|
939
941
|
[
|
|
940
942
|
{
|
|
941
943
|
name: "USDC Evergreen",
|
|
942
|
-
description: getDescription('USDC'),
|
|
944
|
+
description: getDescription('USDC', ['vesu', 'extended']),
|
|
943
945
|
address: ContractAddr.from('0x7e6498cf6a1bfc7e6fc89f1831865e2dacb9756def4ec4b031a9138788a3b5e'),
|
|
944
946
|
launchBlock: 0,
|
|
945
947
|
type: 'ERC4626',
|
|
@@ -960,7 +962,7 @@ export const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[]
|
|
|
960
962
|
},
|
|
961
963
|
{
|
|
962
964
|
name: "WBTC Evergreen",
|
|
963
|
-
description: getDescription('WBTC'),
|
|
965
|
+
description: getDescription('WBTC', ['vesu', 'endur', 'extended']),
|
|
964
966
|
address: ContractAddr.from('0x5a4c1651b913aa2ea7afd9024911603152a19058624c3e425405370d62bf80c'),
|
|
965
967
|
launchBlock: 0,
|
|
966
968
|
type: 'ERC4626',
|
|
@@ -981,7 +983,7 @@ export const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[]
|
|
|
981
983
|
},
|
|
982
984
|
{
|
|
983
985
|
name: "ETH Evergreen",
|
|
984
|
-
description: getDescription('ETH'),
|
|
986
|
+
description: getDescription('ETH', ['vesu', 'extended']),
|
|
985
987
|
address: ContractAddr.from('0x446c22d4d3f5cb52b4950ba832ba1df99464c6673a37c092b1d9622650dbd8'),
|
|
986
988
|
launchBlock: 0,
|
|
987
989
|
type: 'ERC4626',
|
|
@@ -1002,7 +1004,7 @@ export const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[]
|
|
|
1002
1004
|
},
|
|
1003
1005
|
{
|
|
1004
1006
|
name: "STRK Evergreen",
|
|
1005
|
-
description: getDescription('STRK'),
|
|
1007
|
+
description: getDescription('STRK', ['vesu', 'endur', 'extended']),
|
|
1006
1008
|
address: ContractAddr.from('0x55d012f57e58c96e0a5c7ebbe55853989d01e6538b15a95e7178aca4af05c21'),
|
|
1007
1009
|
launchBlock: 0,
|
|
1008
1010
|
type: 'ERC4626',
|
|
@@ -1023,7 +1025,7 @@ export const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[]
|
|
|
1023
1025
|
},
|
|
1024
1026
|
{
|
|
1025
1027
|
name: "USDT Evergreen",
|
|
1026
|
-
description: getDescription('USDT'),
|
|
1028
|
+
description: getDescription('USDT', ['vesu']),
|
|
1027
1029
|
address: ContractAddr.from('0x1c4933d1880c6778585e597154eaca7b428579d72f3aae425ad2e4d26c6bb3'),
|
|
1028
1030
|
launchBlock: 0,
|
|
1029
1031
|
type: 'ERC4626',
|