@strkfarm/sdk 2.0.0-staging.46 → 2.0.0-staging.48

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.
@@ -117058,11 +117058,11 @@ spurious results.`);
117058
117058
  address: this.address.address,
117059
117059
  providerOrAccount: this.config.provider
117060
117060
  });
117061
- if (metadata.depositTokens.length < 2) {
117061
+ if (metadata.depositTokens.length < 1) {
117062
117062
  throw new Error("Deposit tokens are not fully defined in metadata");
117063
117063
  }
117064
- this.primaryToken = metadata.depositTokens[0];
117065
- this.secondaryToken = metadata.depositTokens[1];
117064
+ this.primaryToken = metadata.additionalInfo.mainToken;
117065
+ this.secondaryToken = metadata.additionalInfo.secondaryToken;
117066
117066
  const ai = metadata.additionalInfo;
117067
117067
  this.erc4626 = {
117068
117068
  isBaseERC4626: ai.isBaseERC4626 ?? false,
@@ -117708,6 +117708,13 @@ spurious results.`);
117708
117708
  expiryDate: "31-MAR-2027",
117709
117709
  id: `xstrk-yolo-31-mar-2027`,
117710
117710
  ...vaultCommonProperties,
117711
+ spendingLevels: [
117712
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
117713
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
117714
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
117715
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
117716
+ { maxPrice: 0.025, spendPercent: 500 }
117717
+ ],
117711
117718
  parent_id: xstrk_parent
117712
117719
  },
117713
117720
  {
@@ -117718,6 +117725,13 @@ spurious results.`);
117718
117725
  expiryDate: "30-JUN-2026",
117719
117726
  id: `xstrk-yolo-30-jun-2026`,
117720
117727
  ...vaultCommonProperties,
117728
+ spendingLevels: [
117729
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
117730
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
117731
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
117732
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
117733
+ { maxPrice: 0.025, spendPercent: 500 }
117734
+ ],
117721
117735
  parent_id: xstrk_parent
117722
117736
  }
117723
117737
  ];
@@ -29850,11 +29850,11 @@ var YoLoVault = class extends BaseStrategy {
29850
29850
  address: this.address.address,
29851
29851
  providerOrAccount: this.config.provider
29852
29852
  });
29853
- if (metadata.depositTokens.length < 2) {
29853
+ if (metadata.depositTokens.length < 1) {
29854
29854
  throw new Error("Deposit tokens are not fully defined in metadata");
29855
29855
  }
29856
- this.primaryToken = metadata.depositTokens[0];
29857
- this.secondaryToken = metadata.depositTokens[1];
29856
+ this.primaryToken = metadata.additionalInfo.mainToken;
29857
+ this.secondaryToken = metadata.additionalInfo.secondaryToken;
29858
29858
  const ai = metadata.additionalInfo;
29859
29859
  this.erc4626 = {
29860
29860
  isBaseERC4626: ai.isBaseERC4626 ?? false,
@@ -30500,6 +30500,13 @@ var yoloVaultsConfig = [
30500
30500
  expiryDate: "31-MAR-2027",
30501
30501
  id: `xstrk-yolo-31-mar-2027`,
30502
30502
  ...vaultCommonProperties,
30503
+ spendingLevels: [
30504
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30505
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30506
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30507
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30508
+ { maxPrice: 0.025, spendPercent: 500 }
30509
+ ],
30503
30510
  parent_id: xstrk_parent
30504
30511
  },
30505
30512
  {
@@ -30510,6 +30517,13 @@ var yoloVaultsConfig = [
30510
30517
  expiryDate: "30-JUN-2026",
30511
30518
  id: `xstrk-yolo-30-jun-2026`,
30512
30519
  ...vaultCommonProperties,
30520
+ spendingLevels: [
30521
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30522
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30523
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30524
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30525
+ { maxPrice: 0.025, spendPercent: 500 }
30526
+ ],
30513
30527
  parent_id: xstrk_parent
30514
30528
  }
30515
30529
  ];
package/dist/index.js CHANGED
@@ -29990,11 +29990,11 @@ var YoLoVault = class extends BaseStrategy {
29990
29990
  address: this.address.address,
29991
29991
  providerOrAccount: this.config.provider
29992
29992
  });
29993
- if (metadata.depositTokens.length < 2) {
29993
+ if (metadata.depositTokens.length < 1) {
29994
29994
  throw new Error("Deposit tokens are not fully defined in metadata");
29995
29995
  }
29996
- this.primaryToken = metadata.depositTokens[0];
29997
- this.secondaryToken = metadata.depositTokens[1];
29996
+ this.primaryToken = metadata.additionalInfo.mainToken;
29997
+ this.secondaryToken = metadata.additionalInfo.secondaryToken;
29998
29998
  const ai = metadata.additionalInfo;
29999
29999
  this.erc4626 = {
30000
30000
  isBaseERC4626: ai.isBaseERC4626 ?? false,
@@ -30640,6 +30640,13 @@ var yoloVaultsConfig = [
30640
30640
  expiryDate: "31-MAR-2027",
30641
30641
  id: `xstrk-yolo-31-mar-2027`,
30642
30642
  ...vaultCommonProperties,
30643
+ spendingLevels: [
30644
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30645
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30646
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30647
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30648
+ { maxPrice: 0.025, spendPercent: 500 }
30649
+ ],
30643
30650
  parent_id: xstrk_parent
30644
30651
  },
30645
30652
  {
@@ -30650,6 +30657,13 @@ var yoloVaultsConfig = [
30650
30657
  expiryDate: "30-JUN-2026",
30651
30658
  id: `xstrk-yolo-30-jun-2026`,
30652
30659
  ...vaultCommonProperties,
30660
+ spendingLevels: [
30661
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30662
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30663
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30664
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30665
+ { maxPrice: 0.025, spendPercent: 500 }
30666
+ ],
30653
30667
  parent_id: xstrk_parent
30654
30668
  }
30655
30669
  ];
package/dist/index.mjs CHANGED
@@ -29855,11 +29855,11 @@ var YoLoVault = class extends BaseStrategy {
29855
29855
  address: this.address.address,
29856
29856
  providerOrAccount: this.config.provider
29857
29857
  });
29858
- if (metadata.depositTokens.length < 2) {
29858
+ if (metadata.depositTokens.length < 1) {
29859
29859
  throw new Error("Deposit tokens are not fully defined in metadata");
29860
29860
  }
29861
- this.primaryToken = metadata.depositTokens[0];
29862
- this.secondaryToken = metadata.depositTokens[1];
29861
+ this.primaryToken = metadata.additionalInfo.mainToken;
29862
+ this.secondaryToken = metadata.additionalInfo.secondaryToken;
29863
29863
  const ai = metadata.additionalInfo;
29864
29864
  this.erc4626 = {
29865
29865
  isBaseERC4626: ai.isBaseERC4626 ?? false,
@@ -30505,6 +30505,13 @@ var yoloVaultsConfig = [
30505
30505
  expiryDate: "31-MAR-2027",
30506
30506
  id: `xstrk-yolo-31-mar-2027`,
30507
30507
  ...vaultCommonProperties,
30508
+ spendingLevels: [
30509
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30510
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30511
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30512
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30513
+ { maxPrice: 0.025, spendPercent: 500 }
30514
+ ],
30508
30515
  parent_id: xstrk_parent
30509
30516
  },
30510
30517
  {
@@ -30515,6 +30522,13 @@ var yoloVaultsConfig = [
30515
30522
  expiryDate: "30-JUN-2026",
30516
30523
  id: `xstrk-yolo-30-jun-2026`,
30517
30524
  ...vaultCommonProperties,
30525
+ spendingLevels: [
30526
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
30527
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
30528
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
30529
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
30530
+ { maxPrice: 0.025, spendPercent: 500 }
30531
+ ],
30518
30532
  parent_id: xstrk_parent
30519
30533
  }
30520
30534
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-staging.46",
3
+ "version": "2.0.0-staging.48",
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",
@@ -135,11 +135,11 @@ export class YoLoVault extends BaseStrategy<DualTokenInfo, SingleActionAmount, D
135
135
  providerOrAccount: this.config.provider,
136
136
  });
137
137
 
138
- if (metadata.depositTokens.length < 2) {
138
+ if (metadata.depositTokens.length < 1) {
139
139
  throw new Error("Deposit tokens are not fully defined in metadata");
140
140
  }
141
- this.primaryToken = metadata.depositTokens[0];
142
- this.secondaryToken = metadata.depositTokens[1];
141
+ this.primaryToken = metadata.additionalInfo.mainToken;
142
+ this.secondaryToken = metadata.additionalInfo.secondaryToken;
143
143
  const ai = metadata.additionalInfo;
144
144
  this.erc4626 = {
145
145
  isBaseERC4626: ai.isBaseERC4626 ?? false,
@@ -915,6 +915,13 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
915
915
  expiryDate: "31-MAR-2027",
916
916
  id: `xstrk-yolo-31-mar-2027`,
917
917
  ...vaultCommonProperties,
918
+ spendingLevels: [
919
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
920
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
921
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
922
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
923
+ { maxPrice: 0.025, spendPercent: 500 },
924
+ ],
918
925
  parent_id: xstrk_parent
919
926
  },
920
927
  {
@@ -925,6 +932,13 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
925
932
  expiryDate: "30-JUN-2026",
926
933
  id: `xstrk-yolo-30-jun-2026`,
927
934
  ...vaultCommonProperties,
935
+ spendingLevels: [
936
+ { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
937
+ { minPrice: 0.06, maxPrice: 0.07, spendPercent: 70 },
938
+ { minPrice: 0.04, maxPrice: 0.06, spendPercent: 100 },
939
+ { minPrice: 0.025, maxPrice: 0.04, spendPercent: 250 },
940
+ { maxPrice: 0.025, spendPercent: 500 },
941
+ ],
928
942
  parent_id: xstrk_parent
929
943
  }
930
944
  ]
@@ -969,7 +983,7 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
969
983
  launchBlock: 0,
970
984
  type: "Other",
971
985
  depositTokens: [
972
- usdc
986
+ usdc,
973
987
  ],
974
988
  protocols: [],
975
989
  risk: {