@strkfarm/sdk 2.0.0-staging.13 → 2.0.0-staging.15
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 +28 -14
- package/dist/index.browser.mjs +28 -14
- package/dist/index.d.ts +6 -7
- package/dist/index.js +28 -14
- package/dist/index.mjs +28 -14
- package/package.json +1 -1
- package/src/interfaces/common.tsx +5 -8
- package/src/strategies/ekubo-cl-vault.tsx +2 -0
- package/src/strategies/sensei.ts +2 -0
- package/src/strategies/universal-lst-muliplier-strategy.tsx +11 -7
- package/src/strategies/universal-strategy.tsx +11 -7
- package/src/strategies/vesu-rebalance.tsx +3 -1
|
@@ -98580,7 +98580,7 @@ spurious results.`);
|
|
|
98580
98580
|
type: "ERC4626",
|
|
98581
98581
|
vaultType: {
|
|
98582
98582
|
type: "Meta Vault" /* META_VAULT */,
|
|
98583
|
-
description:
|
|
98583
|
+
description: `Automatically diversify ${tokenSymbol} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring ${tokenSymbol} Rewards are auto-compounded as well.`
|
|
98584
98584
|
},
|
|
98585
98585
|
depositTokens: [
|
|
98586
98586
|
Global.getDefaultTokens().find((t) => t.symbol === tokenSymbol)
|
|
@@ -98616,7 +98616,9 @@ spurious results.`);
|
|
|
98616
98616
|
}
|
|
98617
98617
|
};
|
|
98618
98618
|
var VESU_REDEMPTION_INFO = {
|
|
98619
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
98619
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
98620
|
+
redemptionsInfo: [],
|
|
98621
|
+
alerts: []
|
|
98620
98622
|
};
|
|
98621
98623
|
var faqs = [
|
|
98622
98624
|
{
|
|
@@ -105362,7 +105364,9 @@ spurious results.`);
|
|
|
105362
105364
|
}
|
|
105363
105365
|
},
|
|
105364
105366
|
redemptionInfo: {
|
|
105365
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
105367
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
105368
|
+
redemptionsInfo: [],
|
|
105369
|
+
alerts: []
|
|
105366
105370
|
}
|
|
105367
105371
|
};
|
|
105368
105372
|
var getLSTAlerts = () => [
|
|
@@ -115835,7 +115839,9 @@ spurious results.`);
|
|
|
115835
115839
|
}
|
|
115836
115840
|
},
|
|
115837
115841
|
redemptionInfo: {
|
|
115838
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
115842
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
115843
|
+
redemptionsInfo: [],
|
|
115844
|
+
alerts: []
|
|
115839
115845
|
},
|
|
115840
115846
|
points: [{
|
|
115841
115847
|
multiplier: 4,
|
|
@@ -119228,11 +119234,15 @@ spurious results.`);
|
|
|
119228
119234
|
};
|
|
119229
119235
|
var EVERGREEN_REDEMPTION_INFO = {
|
|
119230
119236
|
instantWithdrawalVault: "No" /* NO */,
|
|
119231
|
-
|
|
119232
|
-
|
|
119233
|
-
|
|
119234
|
-
|
|
119235
|
-
|
|
119237
|
+
redemptionsInfo: [{
|
|
119238
|
+
title: "Usual time",
|
|
119239
|
+
description: "1-2 hours"
|
|
119240
|
+
}],
|
|
119241
|
+
alerts: [{
|
|
119242
|
+
type: "info",
|
|
119243
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
119244
|
+
tab: "withdraw"
|
|
119245
|
+
}]
|
|
119236
119246
|
};
|
|
119237
119247
|
var createUniversalStrategy = (params) => ({
|
|
119238
119248
|
id: `evergreen_${params.tokenSymbol.toLowerCase()}`,
|
|
@@ -120311,11 +120321,15 @@ spurious results.`);
|
|
|
120311
120321
|
};
|
|
120312
120322
|
var HYPER_LST_REDEMPTION_INFO = {
|
|
120313
120323
|
instantWithdrawalVault: "No" /* NO */,
|
|
120314
|
-
|
|
120315
|
-
|
|
120316
|
-
|
|
120317
|
-
|
|
120318
|
-
|
|
120324
|
+
redemptionsInfo: [{
|
|
120325
|
+
title: "Usual time",
|
|
120326
|
+
description: "1-2 hours"
|
|
120327
|
+
}],
|
|
120328
|
+
alerts: [{
|
|
120329
|
+
type: "info",
|
|
120330
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
120331
|
+
tab: "withdraw"
|
|
120332
|
+
}]
|
|
120319
120333
|
};
|
|
120320
120334
|
function getStrategySettings(lstSymbol, underlyingSymbol, addresses, isPreview = false) {
|
|
120321
120335
|
return {
|
package/dist/index.browser.mjs
CHANGED
|
@@ -11160,7 +11160,7 @@ var createVesuRebalanceStrategy = (idSymbol, name, tokenSymbol, address) => ({
|
|
|
11160
11160
|
type: "ERC4626",
|
|
11161
11161
|
vaultType: {
|
|
11162
11162
|
type: "Meta Vault" /* META_VAULT */,
|
|
11163
|
-
description:
|
|
11163
|
+
description: `Automatically diversify ${tokenSymbol} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring ${tokenSymbol} Rewards are auto-compounded as well.`
|
|
11164
11164
|
},
|
|
11165
11165
|
depositTokens: [
|
|
11166
11166
|
Global.getDefaultTokens().find((t) => t.symbol === tokenSymbol)
|
|
@@ -11196,7 +11196,9 @@ var VESU_SECURITY = {
|
|
|
11196
11196
|
}
|
|
11197
11197
|
};
|
|
11198
11198
|
var VESU_REDEMPTION_INFO = {
|
|
11199
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
11199
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
11200
|
+
redemptionsInfo: [],
|
|
11201
|
+
alerts: []
|
|
11200
11202
|
};
|
|
11201
11203
|
var faqs = [
|
|
11202
11204
|
{
|
|
@@ -17953,7 +17955,9 @@ var xSTRKSTRK = {
|
|
|
17953
17955
|
}
|
|
17954
17956
|
},
|
|
17955
17957
|
redemptionInfo: {
|
|
17956
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
17958
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
17959
|
+
redemptionsInfo: [],
|
|
17960
|
+
alerts: []
|
|
17957
17961
|
}
|
|
17958
17962
|
};
|
|
17959
17963
|
var getLSTAlerts = () => [
|
|
@@ -28433,7 +28437,9 @@ var SenseiStrategies = [
|
|
|
28433
28437
|
}
|
|
28434
28438
|
},
|
|
28435
28439
|
redemptionInfo: {
|
|
28436
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
28440
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
28441
|
+
redemptionsInfo: [],
|
|
28442
|
+
alerts: []
|
|
28437
28443
|
},
|
|
28438
28444
|
points: [{
|
|
28439
28445
|
multiplier: 4,
|
|
@@ -31830,11 +31836,15 @@ var EVERGREEN_SECURITY = {
|
|
|
31830
31836
|
};
|
|
31831
31837
|
var EVERGREEN_REDEMPTION_INFO = {
|
|
31832
31838
|
instantWithdrawalVault: "No" /* NO */,
|
|
31833
|
-
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
|
|
31837
|
-
|
|
31839
|
+
redemptionsInfo: [{
|
|
31840
|
+
title: "Usual time",
|
|
31841
|
+
description: "1-2 hours"
|
|
31842
|
+
}],
|
|
31843
|
+
alerts: [{
|
|
31844
|
+
type: "info",
|
|
31845
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
31846
|
+
tab: "withdraw"
|
|
31847
|
+
}]
|
|
31838
31848
|
};
|
|
31839
31849
|
var createUniversalStrategy = (params) => ({
|
|
31840
31850
|
id: `evergreen_${params.tokenSymbol.toLowerCase()}`,
|
|
@@ -32916,11 +32926,15 @@ var HYPER_LST_SECURITY = {
|
|
|
32916
32926
|
};
|
|
32917
32927
|
var HYPER_LST_REDEMPTION_INFO = {
|
|
32918
32928
|
instantWithdrawalVault: "No" /* NO */,
|
|
32919
|
-
|
|
32920
|
-
|
|
32921
|
-
|
|
32922
|
-
|
|
32923
|
-
|
|
32929
|
+
redemptionsInfo: [{
|
|
32930
|
+
title: "Usual time",
|
|
32931
|
+
description: "1-2 hours"
|
|
32932
|
+
}],
|
|
32933
|
+
alerts: [{
|
|
32934
|
+
type: "info",
|
|
32935
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
32936
|
+
tab: "withdraw"
|
|
32937
|
+
}]
|
|
32924
32938
|
};
|
|
32925
32939
|
function getStrategySettings(lstSymbol, underlyingSymbol, addresses, isPreview = false) {
|
|
32926
32940
|
return {
|
package/dist/index.d.ts
CHANGED
|
@@ -165,14 +165,13 @@ interface SecurityMetadata {
|
|
|
165
165
|
sourceCode: SourceCodeInfo;
|
|
166
166
|
accessControl: AccessControlInfo;
|
|
167
167
|
}
|
|
168
|
-
interface RedemptionExpectedTime {
|
|
169
|
-
upto1M: string;
|
|
170
|
-
upto10M: string;
|
|
171
|
-
above10M: string;
|
|
172
|
-
}
|
|
173
168
|
interface RedemptionInfo {
|
|
174
169
|
instantWithdrawalVault: InstantWithdrawalVault;
|
|
175
|
-
|
|
170
|
+
redemptionsInfo: {
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
}[];
|
|
174
|
+
alerts: StrategyAlert[];
|
|
176
175
|
}
|
|
177
176
|
declare enum FlowChartColors {
|
|
178
177
|
Green = "purple",
|
|
@@ -2112,4 +2111,4 @@ declare class PasswordJsonCryptoUtil {
|
|
|
2112
2111
|
decrypt(encryptedData: string, password: string): any;
|
|
2113
2112
|
}
|
|
2114
2113
|
|
|
2115
|
-
export { APYType, AUMTypes, AVNU_EXCHANGE, AVNU_MIDDLEWARE, type AccessControlInfo, AccessControlType, type AccountInfo, type AdapterLeafType, type AllAccountsStore, type AmountInfo, type AmountsInfo, type ApproveCallParams, AuditStatus, AutoCompounderSTRK, type AvnuSwapCallParams, AvnuWrapper, BaseAdapter, type BaseAdapterConfig, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, type DecreaseLeverParams, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type EkuboQuote, EkuboQuoter, type EkuboRouteNode, type EkuboSplit, type FAQ, FactoryStrategyType, FatalError, type FilterOption, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, HyperLSTStrategies, type HyperLSTStrategySettings, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, type IncreaseLeverParams, Initializable, InstantWithdrawalVault, LSTAPRService, type LSTStats, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, MyNumber, type NetAPYDetails, type NetAPYSplit, Network, PRICE_ROUTER, PasswordJsonCryptoUtil, type PositionAPY, type PositionInfo, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerLST, PricerRedis, Protocols, type
|
|
2114
|
+
export { APYType, AUMTypes, AVNU_EXCHANGE, AVNU_MIDDLEWARE, type AccessControlInfo, AccessControlType, type AccountInfo, type AdapterLeafType, type AllAccountsStore, type AmountInfo, type AmountsInfo, type ApproveCallParams, AuditStatus, AutoCompounderSTRK, type AvnuSwapCallParams, AvnuWrapper, BaseAdapter, type BaseAdapterConfig, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, type DecreaseLeverParams, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type EkuboQuote, EkuboQuoter, type EkuboRouteNode, type EkuboSplit, type FAQ, FactoryStrategyType, FatalError, type FilterOption, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, HyperLSTStrategies, type HyperLSTStrategySettings, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, type IncreaseLeverParams, Initializable, InstantWithdrawalVault, LSTAPRService, type LSTStats, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, MyNumber, type NetAPYDetails, type NetAPYSplit, Network, PRICE_ROUTER, PasswordJsonCryptoUtil, type PositionAPY, type PositionInfo, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerLST, PricerRedis, Protocols, type RedemptionInfo, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, type RouteNode, SIMPLE_SANITIZER, SIMPLE_SANITIZER_V2, SIMPLE_SANITIZER_VESU_V1_DELEGATIONS, type SecurityMetadata, SenseiStrategies, SenseiVault, type SenseiVaultSettings, type SingleActionAmount, type SingleTokenInfo, type SourceCodeInfo, SourceCodeType, StandardMerkleTree, type StandardMerkleTreeData, Store, type StoreConfig, type StrategyAlert, type StrategyCapabilities, type StrategyFilterMetadata, StrategyLiveStatus, type StrategyMetadata, type StrategyRegistryEntry, type StrategySettings, StrategyTag, StrategyType, type SupportedPosition, type Swap, type SwapInfo, TelegramGroupNotif, TelegramNotif, type TokenAmount, type TokenInfo, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalLstMultiplierStrategy, type UniversalManageCall, UniversalStrategies, UniversalStrategy, type UniversalStrategySettings, VESU_SINGLETON, VESU_V2_MODIFY_POSITION_SANITIZER, type VaultPosition, VaultType, VesuAdapter, type VesuAdapterConfig, type VesuAmount, VesuAmountDenomination, VesuAmountType, type VesuDefiSpringRewardsCallParams, type VesuModifyDelegationCallParams, type VesuModifyPositionCallParams, type VesuMultiplyCallParams, VesuPools, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, buildStrategyRegistry, createEkuboCLStrategy, createHyperLSTStrategy, createSenseiStrategy, createStrategy, createUniversalStrategy, createVesuRebalanceStrategy, detectCapabilities, extensionMap, getAPIUsingHeadlessBrowser, getAllStrategyMetadata, getAllStrategyTags, getContractDetails, getDefaultStoreConfig, getFilterMetadata, getLiveStrategies, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, getStrategiesByType, getStrategyTagDesciption, getStrategyTypeFromMetadata, getTrovesEndpoint, getVesuSingletonAddress, highlightTextWithLinks, type i257, isDualTokenStrategy, logger, toAmountsInfo, toBigInt };
|
package/dist/index.js
CHANGED
|
@@ -11195,7 +11195,7 @@ var createVesuRebalanceStrategy = (idSymbol, name, tokenSymbol, address) => ({
|
|
|
11195
11195
|
type: "ERC4626",
|
|
11196
11196
|
vaultType: {
|
|
11197
11197
|
type: "Meta Vault" /* META_VAULT */,
|
|
11198
|
-
description:
|
|
11198
|
+
description: `Automatically diversify ${tokenSymbol} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring ${tokenSymbol} Rewards are auto-compounded as well.`
|
|
11199
11199
|
},
|
|
11200
11200
|
depositTokens: [
|
|
11201
11201
|
Global.getDefaultTokens().find((t) => t.symbol === tokenSymbol)
|
|
@@ -11231,7 +11231,9 @@ var VESU_SECURITY = {
|
|
|
11231
11231
|
}
|
|
11232
11232
|
};
|
|
11233
11233
|
var VESU_REDEMPTION_INFO = {
|
|
11234
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
11234
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
11235
|
+
redemptionsInfo: [],
|
|
11236
|
+
alerts: []
|
|
11235
11237
|
};
|
|
11236
11238
|
var faqs = [
|
|
11237
11239
|
{
|
|
@@ -17984,7 +17986,9 @@ var xSTRKSTRK = {
|
|
|
17984
17986
|
}
|
|
17985
17987
|
},
|
|
17986
17988
|
redemptionInfo: {
|
|
17987
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
17989
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
17990
|
+
redemptionsInfo: [],
|
|
17991
|
+
alerts: []
|
|
17988
17992
|
}
|
|
17989
17993
|
};
|
|
17990
17994
|
var getLSTAlerts = () => [
|
|
@@ -28565,7 +28569,9 @@ var SenseiStrategies = [
|
|
|
28565
28569
|
}
|
|
28566
28570
|
},
|
|
28567
28571
|
redemptionInfo: {
|
|
28568
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
28572
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
28573
|
+
redemptionsInfo: [],
|
|
28574
|
+
alerts: []
|
|
28569
28575
|
},
|
|
28570
28576
|
points: [{
|
|
28571
28577
|
multiplier: 4,
|
|
@@ -31962,11 +31968,15 @@ var EVERGREEN_SECURITY = {
|
|
|
31962
31968
|
};
|
|
31963
31969
|
var EVERGREEN_REDEMPTION_INFO = {
|
|
31964
31970
|
instantWithdrawalVault: "No" /* NO */,
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31971
|
+
redemptionsInfo: [{
|
|
31972
|
+
title: "Usual time",
|
|
31973
|
+
description: "1-2 hours"
|
|
31974
|
+
}],
|
|
31975
|
+
alerts: [{
|
|
31976
|
+
type: "info",
|
|
31977
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
31978
|
+
tab: "withdraw"
|
|
31979
|
+
}]
|
|
31970
31980
|
};
|
|
31971
31981
|
var createUniversalStrategy = (params) => ({
|
|
31972
31982
|
id: `evergreen_${params.tokenSymbol.toLowerCase()}`,
|
|
@@ -33048,11 +33058,15 @@ var HYPER_LST_SECURITY = {
|
|
|
33048
33058
|
};
|
|
33049
33059
|
var HYPER_LST_REDEMPTION_INFO = {
|
|
33050
33060
|
instantWithdrawalVault: "No" /* NO */,
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
|
|
33061
|
+
redemptionsInfo: [{
|
|
33062
|
+
title: "Usual time",
|
|
33063
|
+
description: "1-2 hours"
|
|
33064
|
+
}],
|
|
33065
|
+
alerts: [{
|
|
33066
|
+
type: "info",
|
|
33067
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
33068
|
+
tab: "withdraw"
|
|
33069
|
+
}]
|
|
33056
33070
|
};
|
|
33057
33071
|
function getStrategySettings(lstSymbol, underlyingSymbol, addresses, isPreview = false) {
|
|
33058
33072
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -11062,7 +11062,7 @@ var createVesuRebalanceStrategy = (idSymbol, name, tokenSymbol, address) => ({
|
|
|
11062
11062
|
type: "ERC4626",
|
|
11063
11063
|
vaultType: {
|
|
11064
11064
|
type: "Meta Vault" /* META_VAULT */,
|
|
11065
|
-
description:
|
|
11065
|
+
description: `Automatically diversify ${tokenSymbol} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring ${tokenSymbol} Rewards are auto-compounded as well.`
|
|
11066
11066
|
},
|
|
11067
11067
|
depositTokens: [
|
|
11068
11068
|
Global.getDefaultTokens().find((t) => t.symbol === tokenSymbol)
|
|
@@ -11098,7 +11098,9 @@ var VESU_SECURITY = {
|
|
|
11098
11098
|
}
|
|
11099
11099
|
};
|
|
11100
11100
|
var VESU_REDEMPTION_INFO = {
|
|
11101
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
11101
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
11102
|
+
redemptionsInfo: [],
|
|
11103
|
+
alerts: []
|
|
11102
11104
|
};
|
|
11103
11105
|
var faqs = [
|
|
11104
11106
|
{
|
|
@@ -17855,7 +17857,9 @@ var xSTRKSTRK = {
|
|
|
17855
17857
|
}
|
|
17856
17858
|
},
|
|
17857
17859
|
redemptionInfo: {
|
|
17858
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
17860
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
17861
|
+
redemptionsInfo: [],
|
|
17862
|
+
alerts: []
|
|
17859
17863
|
}
|
|
17860
17864
|
};
|
|
17861
17865
|
var getLSTAlerts = () => [
|
|
@@ -28436,7 +28440,9 @@ var SenseiStrategies = [
|
|
|
28436
28440
|
}
|
|
28437
28441
|
},
|
|
28438
28442
|
redemptionInfo: {
|
|
28439
|
-
instantWithdrawalVault: "Yes" /* YES
|
|
28443
|
+
instantWithdrawalVault: "Yes" /* YES */,
|
|
28444
|
+
redemptionsInfo: [],
|
|
28445
|
+
alerts: []
|
|
28440
28446
|
},
|
|
28441
28447
|
points: [{
|
|
28442
28448
|
multiplier: 4,
|
|
@@ -31833,11 +31839,15 @@ var EVERGREEN_SECURITY = {
|
|
|
31833
31839
|
};
|
|
31834
31840
|
var EVERGREEN_REDEMPTION_INFO = {
|
|
31835
31841
|
instantWithdrawalVault: "No" /* NO */,
|
|
31836
|
-
|
|
31837
|
-
|
|
31838
|
-
|
|
31839
|
-
|
|
31840
|
-
|
|
31842
|
+
redemptionsInfo: [{
|
|
31843
|
+
title: "Usual time",
|
|
31844
|
+
description: "1-2 hours"
|
|
31845
|
+
}],
|
|
31846
|
+
alerts: [{
|
|
31847
|
+
type: "info",
|
|
31848
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
31849
|
+
tab: "withdraw"
|
|
31850
|
+
}]
|
|
31841
31851
|
};
|
|
31842
31852
|
var createUniversalStrategy = (params) => ({
|
|
31843
31853
|
id: `evergreen_${params.tokenSymbol.toLowerCase()}`,
|
|
@@ -32919,11 +32929,15 @@ var HYPER_LST_SECURITY = {
|
|
|
32919
32929
|
};
|
|
32920
32930
|
var HYPER_LST_REDEMPTION_INFO = {
|
|
32921
32931
|
instantWithdrawalVault: "No" /* NO */,
|
|
32922
|
-
|
|
32923
|
-
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32932
|
+
redemptionsInfo: [{
|
|
32933
|
+
title: "Usual time",
|
|
32934
|
+
description: "1-2 hours"
|
|
32935
|
+
}],
|
|
32936
|
+
alerts: [{
|
|
32937
|
+
type: "info",
|
|
32938
|
+
text: "In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.",
|
|
32939
|
+
tab: "withdraw"
|
|
32940
|
+
}]
|
|
32927
32941
|
};
|
|
32928
32942
|
function getStrategySettings(lstSymbol, underlyingSymbol, addresses, isPreview = false) {
|
|
32929
32943
|
return {
|
package/package.json
CHANGED
|
@@ -108,16 +108,13 @@ export interface SecurityMetadata {
|
|
|
108
108
|
accessControl: AccessControlInfo;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// Redemption metadata interfaces
|
|
112
|
-
export interface RedemptionExpectedTime {
|
|
113
|
-
upto1M: string;
|
|
114
|
-
upto10M: string;
|
|
115
|
-
above10M: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
111
|
export interface RedemptionInfo {
|
|
119
112
|
instantWithdrawalVault: InstantWithdrawalVault;
|
|
120
|
-
|
|
113
|
+
redemptionsInfo: {
|
|
114
|
+
title: string; // e.g. Upto $1M
|
|
115
|
+
description: string; // e.g. "1-2 hours"
|
|
116
|
+
}[],
|
|
117
|
+
alerts: StrategyAlert[];
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
export enum FlowChartColors {
|
package/src/strategies/sensei.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FAQ, getNoRiskTags, highlightTextWithLinks, IConfig, IStrategyMetadata, Protocols, RiskFactor, RiskType, StrategyTag, TokenInfo, AuditStatus, SourceCodeType, AccessControlType, InstantWithdrawalVault, StrategyLiveStatus, StrategySettings, VaultType } from "@/interfaces";
|
|
1
|
+
import { FAQ, getNoRiskTags, highlightTextWithLinks, IConfig, IStrategyMetadata, Protocols, RiskFactor, RiskType, StrategyTag, TokenInfo, AuditStatus, SourceCodeType, AccessControlType, InstantWithdrawalVault, StrategyLiveStatus, StrategySettings, VaultType, RedemptionInfo } from "@/interfaces";
|
|
2
2
|
import { AUMTypes, getContractDetails, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalManageCall, UniversalStrategy, UniversalStrategySettings } from "./universal-strategy";
|
|
3
3
|
import { PricerBase } from "@/modules/pricerBase";
|
|
4
4
|
import { ContractAddr, Web3Number } from "@/dataTypes";
|
|
@@ -1246,13 +1246,17 @@ const HYPER_LST_SECURITY = {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
1248
1248
|
|
|
1249
|
-
const HYPER_LST_REDEMPTION_INFO = {
|
|
1249
|
+
const HYPER_LST_REDEMPTION_INFO: RedemptionInfo = {
|
|
1250
1250
|
instantWithdrawalVault: InstantWithdrawalVault.NO,
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1251
|
+
redemptionsInfo: [{
|
|
1252
|
+
title: "Usual time",
|
|
1253
|
+
description: "1-2 hours"
|
|
1254
|
+
}],
|
|
1255
|
+
alerts: [{
|
|
1256
|
+
type: 'info',
|
|
1257
|
+
text: 'In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.',
|
|
1258
|
+
tab: 'withdraw'
|
|
1259
|
+
}]
|
|
1256
1260
|
};
|
|
1257
1261
|
|
|
1258
1262
|
function getStrategySettings(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContractAddr, Web3Number } from "@/dataTypes";
|
|
2
2
|
import { BaseStrategy, SingleActionAmount, SingleTokenInfo } from "./base-strategy";
|
|
3
3
|
import { PricerBase } from "@/modules/pricerBase";
|
|
4
|
-
import { FAQ, getNoRiskTags, IConfig, IStrategyMetadata, Protocols, RiskFactor, RiskType, StrategyTag, VaultPosition, AuditStatus, SourceCodeType, AccessControlType, InstantWithdrawalVault, StrategyLiveStatus, StrategySettings, VaultType } from "@/interfaces";
|
|
4
|
+
import { FAQ, getNoRiskTags, IConfig, IStrategyMetadata, Protocols, RiskFactor, RiskType, StrategyTag, VaultPosition, AuditStatus, SourceCodeType, AccessControlType, InstantWithdrawalVault, StrategyLiveStatus, StrategySettings, VaultType, RedemptionInfo } from "@/interfaces";
|
|
5
5
|
import { BlockIdentifier, Call, CallData, Contract, num, uint256 } from "starknet";
|
|
6
6
|
import { VesuRebalanceSettings } from "./vesu-rebalance";
|
|
7
7
|
import { assert, LeafData, logger, StandardMerkleTree } from "@/utils";
|
|
@@ -1285,13 +1285,17 @@ const EVERGREEN_SECURITY = {
|
|
|
1285
1285
|
},
|
|
1286
1286
|
};
|
|
1287
1287
|
|
|
1288
|
-
const EVERGREEN_REDEMPTION_INFO = {
|
|
1288
|
+
const EVERGREEN_REDEMPTION_INFO: RedemptionInfo = {
|
|
1289
1289
|
instantWithdrawalVault: InstantWithdrawalVault.NO,
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1290
|
+
redemptionsInfo: [{
|
|
1291
|
+
title: "Usual time",
|
|
1292
|
+
description: "1-2 hours"
|
|
1293
|
+
}],
|
|
1294
|
+
alerts: [{
|
|
1295
|
+
type: 'info',
|
|
1296
|
+
text: 'In cases of low liquidity, high slippages, the redemptions can take longer time. Redemption times are estimates and may vary based on network conditions and liquidity requirements.',
|
|
1297
|
+
tab: 'withdraw'
|
|
1298
|
+
}]
|
|
1295
1299
|
};
|
|
1296
1300
|
|
|
1297
1301
|
// Helper to create a Universal strategy
|
|
@@ -1056,7 +1056,7 @@ const createVesuRebalanceStrategy = (
|
|
|
1056
1056
|
type: "ERC4626" as const,
|
|
1057
1057
|
vaultType: {
|
|
1058
1058
|
type: VaultType.META_VAULT,
|
|
1059
|
-
description:
|
|
1059
|
+
description: `Automatically diversify ${tokenSymbol} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring ${tokenSymbol} Rewards are auto-compounded as well.`
|
|
1060
1060
|
},
|
|
1061
1061
|
depositTokens: [
|
|
1062
1062
|
Global.getDefaultTokens().find((t) => t.symbol === tokenSymbol)!
|
|
@@ -1096,6 +1096,8 @@ const VESU_SECURITY = {
|
|
|
1096
1096
|
|
|
1097
1097
|
const VESU_REDEMPTION_INFO = {
|
|
1098
1098
|
instantWithdrawalVault: InstantWithdrawalVault.YES,
|
|
1099
|
+
redemptionsInfo: [],
|
|
1100
|
+
alerts: [],
|
|
1099
1101
|
};
|
|
1100
1102
|
|
|
1101
1103
|
const faqs: FAQ[] = [
|