@strkfarm/sdk 1.1.32 → 1.1.34

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.
@@ -79603,7 +79603,7 @@ spurious results.`);
79603
79603
  async getHarvestRewardShares(fromBlock, toBlock) {
79604
79604
  const len = Number(await this.contract.call("get_total_rewards"));
79605
79605
  let shares = Web3Number.fromWei(0, 18);
79606
- for (let i = len - 1; i > 0; --i) {
79606
+ for (let i = len - 1; i >= 0; --i) {
79607
79607
  let record = await this.contract.call("get_rewards_info", [i]);
79608
79608
  logger2.verbose(`${_EkuboCLVault.name}: getHarvestRewardShares: ${i}`);
79609
79609
  console.log(record);
@@ -91995,22 +91995,20 @@ spurious results.`);
91995
91995
  highlightTextWithLinks("conversion rate oracle", [{ highlight: "conversion rate oracle", link: "https://docs.pragma.build/starknet/development#conversion-rate" }]),
91996
91996
  "which is resilient to liquidity issues and price volatility, hence reducing the risk of liquidation. However, overtime, if left un-monitored, debt can increase enough to trigger a liquidation. But no worries, our continuous monitoring systems look for situations with reduced health factor and balance collateral/debt to bring it back to safe levels. With Troves, you can have a peaceful sleep."
91997
91997
  ] }),
91998
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: [
91999
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
92000
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Withdrawals:" }),
92001
- " Requests can take up to ",
92002
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "1-2 hours" }),
92003
- " to process as the vault unwinds and settles routing."
92004
- ] }),
92005
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
92006
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Debt limits:" }),
92007
- " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
92008
- ] }),
92009
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
92010
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "APY assumptions:" }),
92011
- " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
92012
- ] })
92013
- ] })
91998
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
91999
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Withdrawals:" }),
92000
+ " Requests can take up to ",
92001
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "1-2 hours" }),
92002
+ " to process as the vault unwinds and settles routing."
92003
+ ] }) }),
92004
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
92005
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Debt limits:" }),
92006
+ " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
92007
+ ] }) }),
92008
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
92009
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "APY assumptions:" }),
92010
+ " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
92011
+ ] }) })
92014
92012
  ] });
92015
92013
  }
92016
92014
  function getDescription2(tokenSymbol, underlyingSymbol) {
@@ -15684,7 +15684,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
15684
15684
  async getHarvestRewardShares(fromBlock, toBlock) {
15685
15685
  const len = Number(await this.contract.call("get_total_rewards"));
15686
15686
  let shares = Web3Number.fromWei(0, 18);
15687
- for (let i = len - 1; i > 0; --i) {
15687
+ for (let i = len - 1; i >= 0; --i) {
15688
15688
  let record = await this.contract.call("get_rewards_info", [i]);
15689
15689
  logger.verbose(`${_EkuboCLVault.name}: getHarvestRewardShares: ${i}`);
15690
15690
  console.log(record);
@@ -28090,22 +28090,20 @@ function VaultDescription(lstSymbol, underlyingSymbol) {
28090
28090
  highlightTextWithLinks("conversion rate oracle", [{ highlight: "conversion rate oracle", link: "https://docs.pragma.build/starknet/development#conversion-rate" }]),
28091
28091
  "which is resilient to liquidity issues and price volatility, hence reducing the risk of liquidation. However, overtime, if left un-monitored, debt can increase enough to trigger a liquidation. But no worries, our continuous monitoring systems look for situations with reduced health factor and balance collateral/debt to bring it back to safe levels. With Troves, you can have a peaceful sleep."
28092
28092
  ] }),
28093
- /* @__PURE__ */ jsxs4("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: [
28094
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28095
- /* @__PURE__ */ jsx5("strong", { children: "Withdrawals:" }),
28096
- " Requests can take up to ",
28097
- /* @__PURE__ */ jsx5("strong", { children: "1-2 hours" }),
28098
- " to process as the vault unwinds and settles routing."
28099
- ] }),
28100
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28101
- /* @__PURE__ */ jsx5("strong", { children: "Debt limits:" }),
28102
- " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28103
- ] }),
28104
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28105
- /* @__PURE__ */ jsx5("strong", { children: "APY assumptions:" }),
28106
- " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28107
- ] })
28108
- ] })
28093
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28094
+ /* @__PURE__ */ jsx5("strong", { children: "Withdrawals:" }),
28095
+ " Requests can take up to ",
28096
+ /* @__PURE__ */ jsx5("strong", { children: "1-2 hours" }),
28097
+ " to process as the vault unwinds and settles routing."
28098
+ ] }) }),
28099
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28100
+ /* @__PURE__ */ jsx5("strong", { children: "Debt limits:" }),
28101
+ " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28102
+ ] }) }),
28103
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28104
+ /* @__PURE__ */ jsx5("strong", { children: "APY assumptions:" }),
28105
+ " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28106
+ ] }) })
28109
28107
  ] });
28110
28108
  }
28111
28109
  function getDescription2(tokenSymbol, underlyingSymbol) {
package/dist/index.js CHANGED
@@ -15682,7 +15682,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
15682
15682
  async getHarvestRewardShares(fromBlock, toBlock) {
15683
15683
  const len = Number(await this.contract.call("get_total_rewards"));
15684
15684
  let shares = Web3Number.fromWei(0, 18);
15685
- for (let i = len - 1; i > 0; --i) {
15685
+ for (let i = len - 1; i >= 0; --i) {
15686
15686
  let record = await this.contract.call("get_rewards_info", [i]);
15687
15687
  logger.verbose(`${_EkuboCLVault.name}: getHarvestRewardShares: ${i}`);
15688
15688
  console.log(record);
@@ -28088,22 +28088,20 @@ function VaultDescription(lstSymbol, underlyingSymbol) {
28088
28088
  highlightTextWithLinks("conversion rate oracle", [{ highlight: "conversion rate oracle", link: "https://docs.pragma.build/starknet/development#conversion-rate" }]),
28089
28089
  "which is resilient to liquidity issues and price volatility, hence reducing the risk of liquidation. However, overtime, if left un-monitored, debt can increase enough to trigger a liquidation. But no worries, our continuous monitoring systems look for situations with reduced health factor and balance collateral/debt to bring it back to safe levels. With Troves, you can have a peaceful sleep."
28090
28090
  ] }),
28091
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: [
28092
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28093
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Withdrawals:" }),
28094
- " Requests can take up to ",
28095
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "1-2 hours" }),
28096
- " to process as the vault unwinds and settles routing."
28097
- ] }),
28098
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28099
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Debt limits:" }),
28100
- " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28101
- ] }),
28102
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28103
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "APY assumptions:" }),
28104
- " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28105
- ] })
28106
- ] })
28091
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28092
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Withdrawals:" }),
28093
+ " Requests can take up to ",
28094
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "1-2 hours" }),
28095
+ " to process as the vault unwinds and settles routing."
28096
+ ] }) }),
28097
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28098
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "Debt limits:" }),
28099
+ " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28100
+ ] }) }),
28101
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28102
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("strong", { children: "APY assumptions:" }),
28103
+ " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28104
+ ] }) })
28107
28105
  ] });
28108
28106
  }
28109
28107
  function getDescription2(tokenSymbol, underlyingSymbol) {
package/dist/index.mjs CHANGED
@@ -15582,7 +15582,7 @@ var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
15582
15582
  async getHarvestRewardShares(fromBlock, toBlock) {
15583
15583
  const len = Number(await this.contract.call("get_total_rewards"));
15584
15584
  let shares = Web3Number.fromWei(0, 18);
15585
- for (let i = len - 1; i > 0; --i) {
15585
+ for (let i = len - 1; i >= 0; --i) {
15586
15586
  let record = await this.contract.call("get_rewards_info", [i]);
15587
15587
  logger.verbose(`${_EkuboCLVault.name}: getHarvestRewardShares: ${i}`);
15588
15588
  console.log(record);
@@ -27988,22 +27988,20 @@ function VaultDescription(lstSymbol, underlyingSymbol) {
27988
27988
  highlightTextWithLinks("conversion rate oracle", [{ highlight: "conversion rate oracle", link: "https://docs.pragma.build/starknet/development#conversion-rate" }]),
27989
27989
  "which is resilient to liquidity issues and price volatility, hence reducing the risk of liquidation. However, overtime, if left un-monitored, debt can increase enough to trigger a liquidation. But no worries, our continuous monitoring systems look for situations with reduced health factor and balance collateral/debt to bring it back to safe levels. With Troves, you can have a peaceful sleep."
27990
27990
  ] }),
27991
- /* @__PURE__ */ jsxs4("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: [
27992
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
27993
- /* @__PURE__ */ jsx5("strong", { children: "Withdrawals:" }),
27994
- " Requests can take up to ",
27995
- /* @__PURE__ */ jsx5("strong", { children: "1-2 hours" }),
27996
- " to process as the vault unwinds and settles routing."
27997
- ] }),
27998
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
27999
- /* @__PURE__ */ jsx5("strong", { children: "Debt limits:" }),
28000
- " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28001
- ] }),
28002
- /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28003
- /* @__PURE__ */ jsx5("strong", { children: "APY assumptions:" }),
28004
- " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28005
- ] })
28006
- ] })
27991
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
27992
+ /* @__PURE__ */ jsx5("strong", { children: "Withdrawals:" }),
27993
+ " Requests can take up to ",
27994
+ /* @__PURE__ */ jsx5("strong", { children: "1-2 hours" }),
27995
+ " to process as the vault unwinds and settles routing."
27996
+ ] }) }),
27997
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
27998
+ /* @__PURE__ */ jsx5("strong", { children: "Debt limits:" }),
27999
+ " Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors."
28000
+ ] }) }),
28001
+ /* @__PURE__ */ jsx5("div", { style: { backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }, children: /* @__PURE__ */ jsxs4("p", { style: { fontSize: "13px", color: "#ccc" }, children: [
28002
+ /* @__PURE__ */ jsx5("strong", { children: "APY assumptions:" }),
28003
+ " APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon."
28004
+ ] }) })
28007
28005
  ] });
28008
28006
  }
28009
28007
  function getDescription2(tokenSymbol, underlyingSymbol) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
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",
@@ -478,7 +478,7 @@ export class EkuboCLVault extends BaseStrategy<
478
478
  async getHarvestRewardShares(fromBlock: number, toBlock: number) {
479
479
  const len = Number(await this.contract.call("get_total_rewards"));
480
480
  let shares = Web3Number.fromWei(0, 18);
481
- for (let i = len - 1; i > 0; --i) {
481
+ for (let i = len - 1; i >= 0; --i) {
482
482
  let record: any = await this.contract.call("get_rewards_info", [i]);
483
483
  logger.verbose(`${EkuboCLVault.name}: getHarvestRewardShares: ${i}`);
484
484
  console.log(record);
@@ -570,9 +570,13 @@ export default function VaultDescription(
570
570
  <p style={{ fontSize: "13px", color: "#ccc" }}>
571
571
  <strong>Withdrawals:</strong> Requests can take up to <strong>1-2 hours</strong> to process as the vault unwinds and settles routing.
572
572
  </p>
573
+ </div>
574
+ <div style={{ backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }}>
573
575
  <p style={{ fontSize: "13px", color: "#ccc" }}>
574
576
  <strong>Debt limits:</strong> Pools on Vesu have debt caps that are gradually increased over time. Until caps are raised, deposited LSTs remain in the vault, generating a shared net return for all depositors.
575
577
  </p>
578
+ </div>
579
+ <div style={{ backgroundColor: "#222", padding: "10px", borderRadius: "8px", marginBottom: "20px", border: "1px solid #444" }}>
576
580
  <p style={{ fontSize: "13px", color: "#ccc" }}>
577
581
  <strong>APY assumptions:</strong> APY shown is the max possible value given current LST and borrowing rates. True APY will be subject to the actual leverage, based on above point. More insights on exact APY will be added soon.
578
582
  </p>