@strkfarm/sdk 2.0.0-staging.47 → 2.0.0-staging.49

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,
@@ -117772,7 +117772,8 @@ spurious results.`);
117772
117772
  launchBlock: 0,
117773
117773
  type: "Other",
117774
117774
  depositTokens: [
117775
- usdc
117775
+ usdc,
117776
+ yoloConfig.secondaryToken
117776
117777
  ],
117777
117778
  protocols: [],
117778
117779
  risk: {
@@ -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,
@@ -30564,7 +30564,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
30564
30564
  launchBlock: 0,
30565
30565
  type: "Other",
30566
30566
  depositTokens: [
30567
- usdc
30567
+ usdc,
30568
+ yoloConfig.secondaryToken
30568
30569
  ],
30569
30570
  protocols: [],
30570
30571
  risk: {
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,
@@ -30704,7 +30704,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
30704
30704
  launchBlock: 0,
30705
30705
  type: "Other",
30706
30706
  depositTokens: [
30707
- usdc
30707
+ usdc,
30708
+ yoloConfig.secondaryToken
30708
30709
  ],
30709
30710
  protocols: [],
30710
30711
  risk: {
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,
@@ -30569,7 +30569,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
30569
30569
  launchBlock: 0,
30570
30570
  type: "Other",
30571
30571
  depositTokens: [
30572
- usdc
30572
+ usdc,
30573
+ yoloConfig.secondaryToken
30573
30574
  ],
30574
30575
  protocols: [],
30575
30576
  risk: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-staging.47",
3
+ "version": "2.0.0-staging.49",
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,
@@ -983,7 +983,8 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
983
983
  launchBlock: 0,
984
984
  type: "Other",
985
985
  depositTokens: [
986
- usdc
986
+ usdc,
987
+ yoloConfig.secondaryToken,
987
988
  ],
988
989
  protocols: [],
989
990
  risk: {