@strkfarm/sdk 2.0.0-staging.47 → 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.
- package/dist/index.browser.global.js +3 -3
- package/dist/index.browser.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/strategies/yoloVault.ts +4 -4
|
@@ -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 <
|
|
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.
|
|
117065
|
-
this.secondaryToken = metadata.
|
|
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,
|
package/dist/index.browser.mjs
CHANGED
|
@@ -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 <
|
|
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.
|
|
29857
|
-
this.secondaryToken = metadata.
|
|
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,
|
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 <
|
|
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.
|
|
29997
|
-
this.secondaryToken = metadata.
|
|
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,
|
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 <
|
|
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.
|
|
29862
|
-
this.secondaryToken = metadata.
|
|
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,
|
package/package.json
CHANGED
|
@@ -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 <
|
|
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.
|
|
142
|
-
this.secondaryToken = metadata.
|
|
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,7 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
|
|
|
983
983
|
launchBlock: 0,
|
|
984
984
|
type: "Other",
|
|
985
985
|
depositTokens: [
|
|
986
|
-
usdc
|
|
986
|
+
usdc,
|
|
987
987
|
],
|
|
988
988
|
protocols: [],
|
|
989
989
|
risk: {
|