@strkfarm/sdk 1.0.19 → 1.0.21
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/cli.js +4 -0
- package/dist/cli.mjs +4 -0
- package/dist/index.browser.global.js +4 -0
- package/dist/index.browser.mjs +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
- package/src/strategies/vesu-rebalance.ts +5 -1
package/dist/cli.js
CHANGED
|
@@ -496,6 +496,7 @@ var _riskFactor = [
|
|
|
496
496
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
497
497
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
498
498
|
];
|
|
499
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
499
500
|
var VesuRebalanceStrategies = [{
|
|
500
501
|
name: "Vesu Fusion STRK",
|
|
501
502
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -503,6 +504,7 @@ var VesuRebalanceStrategies = [{
|
|
|
503
504
|
type: "ERC4626",
|
|
504
505
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
505
506
|
protocols: [_protocol],
|
|
507
|
+
auditUrl: AUDIT_URL,
|
|
506
508
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
507
509
|
risk: {
|
|
508
510
|
riskFactor: _riskFactor,
|
|
@@ -516,6 +518,7 @@ var VesuRebalanceStrategies = [{
|
|
|
516
518
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
517
519
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
518
520
|
type: "ERC4626",
|
|
521
|
+
auditUrl: AUDIT_URL,
|
|
519
522
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
520
523
|
protocols: [_protocol],
|
|
521
524
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -531,6 +534,7 @@ var VesuRebalanceStrategies = [{
|
|
|
531
534
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
532
535
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
533
536
|
type: "ERC4626",
|
|
537
|
+
auditUrl: AUDIT_URL,
|
|
534
538
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
535
539
|
protocols: [_protocol],
|
|
536
540
|
maxTVL: Web3Number.fromWei("0", 6),
|
package/dist/cli.mjs
CHANGED
|
@@ -473,6 +473,7 @@ var _riskFactor = [
|
|
|
473
473
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
474
474
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
475
475
|
];
|
|
476
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
476
477
|
var VesuRebalanceStrategies = [{
|
|
477
478
|
name: "Vesu Fusion STRK",
|
|
478
479
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -480,6 +481,7 @@ var VesuRebalanceStrategies = [{
|
|
|
480
481
|
type: "ERC4626",
|
|
481
482
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
482
483
|
protocols: [_protocol],
|
|
484
|
+
auditUrl: AUDIT_URL,
|
|
483
485
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
484
486
|
risk: {
|
|
485
487
|
riskFactor: _riskFactor,
|
|
@@ -493,6 +495,7 @@ var VesuRebalanceStrategies = [{
|
|
|
493
495
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
494
496
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
495
497
|
type: "ERC4626",
|
|
498
|
+
auditUrl: AUDIT_URL,
|
|
496
499
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
497
500
|
protocols: [_protocol],
|
|
498
501
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -508,6 +511,7 @@ var VesuRebalanceStrategies = [{
|
|
|
508
511
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
509
512
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
510
513
|
type: "ERC4626",
|
|
514
|
+
auditUrl: AUDIT_URL,
|
|
511
515
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
512
516
|
protocols: [_protocol],
|
|
513
517
|
maxTVL: Web3Number.fromWei("0", 6),
|
|
@@ -38880,6 +38880,7 @@ var strkfarm_risk_engine = (() => {
|
|
|
38880
38880
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
38881
38881
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
38882
38882
|
];
|
|
38883
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
38883
38884
|
var VesuRebalanceStrategies = [{
|
|
38884
38885
|
name: "Vesu Fusion STRK",
|
|
38885
38886
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -38887,6 +38888,7 @@ var strkfarm_risk_engine = (() => {
|
|
|
38887
38888
|
type: "ERC4626",
|
|
38888
38889
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
38889
38890
|
protocols: [_protocol],
|
|
38891
|
+
auditUrl: AUDIT_URL,
|
|
38890
38892
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
38891
38893
|
risk: {
|
|
38892
38894
|
riskFactor: _riskFactor,
|
|
@@ -38900,6 +38902,7 @@ var strkfarm_risk_engine = (() => {
|
|
|
38900
38902
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
38901
38903
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
38902
38904
|
type: "ERC4626",
|
|
38905
|
+
auditUrl: AUDIT_URL,
|
|
38903
38906
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
38904
38907
|
protocols: [_protocol],
|
|
38905
38908
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -38915,6 +38918,7 @@ var strkfarm_risk_engine = (() => {
|
|
|
38915
38918
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
38916
38919
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
38917
38920
|
type: "ERC4626",
|
|
38921
|
+
auditUrl: AUDIT_URL,
|
|
38918
38922
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
38919
38923
|
protocols: [_protocol],
|
|
38920
38924
|
maxTVL: Web3Number.fromWei("0", 6),
|
package/dist/index.browser.mjs
CHANGED
|
@@ -3892,6 +3892,7 @@ var _riskFactor = [
|
|
|
3892
3892
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
3893
3893
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
3894
3894
|
];
|
|
3895
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
3895
3896
|
var VesuRebalanceStrategies = [{
|
|
3896
3897
|
name: "Vesu Fusion STRK",
|
|
3897
3898
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -3899,6 +3900,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3899
3900
|
type: "ERC4626",
|
|
3900
3901
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
3901
3902
|
protocols: [_protocol],
|
|
3903
|
+
auditUrl: AUDIT_URL,
|
|
3902
3904
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
3903
3905
|
risk: {
|
|
3904
3906
|
riskFactor: _riskFactor,
|
|
@@ -3912,6 +3914,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3912
3914
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
3913
3915
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
3914
3916
|
type: "ERC4626",
|
|
3917
|
+
auditUrl: AUDIT_URL,
|
|
3915
3918
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
3916
3919
|
protocols: [_protocol],
|
|
3917
3920
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -3927,6 +3930,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3927
3930
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
3928
3931
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
3929
3932
|
type: "ERC4626",
|
|
3933
|
+
auditUrl: AUDIT_URL,
|
|
3930
3934
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
3931
3935
|
protocols: [_protocol],
|
|
3932
3936
|
maxTVL: Web3Number.fromWei("0", 6),
|
package/dist/index.d.ts
CHANGED
|
@@ -780,4 +780,4 @@ declare class PasswordJsonCryptoUtil {
|
|
|
780
780
|
decrypt(encryptedData: string, password: string): any;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
export { type AccountInfo, type AllAccountsStore, AutoCompounderSTRK, AvnuWrapper, type CLVaultStrategySettings, ContractAddr, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, FatalError, FlowChartColors, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LendingToken, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, VesuRebalance, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, logger };
|
|
783
|
+
export { type AccountInfo, type AllAccountsStore, AutoCompounderSTRK, AvnuWrapper, type CLVaultStrategySettings, ContractAddr, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, FatalError, FlowChartColors, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LendingToken, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, logger };
|
package/dist/index.js
CHANGED
|
@@ -3980,6 +3980,7 @@ var _riskFactor = [
|
|
|
3980
3980
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
3981
3981
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
3982
3982
|
];
|
|
3983
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
3983
3984
|
var VesuRebalanceStrategies = [{
|
|
3984
3985
|
name: "Vesu Fusion STRK",
|
|
3985
3986
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -3987,6 +3988,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3987
3988
|
type: "ERC4626",
|
|
3988
3989
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
3989
3990
|
protocols: [_protocol],
|
|
3991
|
+
auditUrl: AUDIT_URL,
|
|
3990
3992
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
3991
3993
|
risk: {
|
|
3992
3994
|
riskFactor: _riskFactor,
|
|
@@ -4000,6 +4002,7 @@ var VesuRebalanceStrategies = [{
|
|
|
4000
4002
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
4001
4003
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
4002
4004
|
type: "ERC4626",
|
|
4005
|
+
auditUrl: AUDIT_URL,
|
|
4003
4006
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
4004
4007
|
protocols: [_protocol],
|
|
4005
4008
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -4015,6 +4018,7 @@ var VesuRebalanceStrategies = [{
|
|
|
4015
4018
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
4016
4019
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
4017
4020
|
type: "ERC4626",
|
|
4021
|
+
auditUrl: AUDIT_URL,
|
|
4018
4022
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
4019
4023
|
protocols: [_protocol],
|
|
4020
4024
|
maxTVL: Web3Number.fromWei("0", 6),
|
package/dist/index.mjs
CHANGED
|
@@ -3912,6 +3912,7 @@ var _riskFactor = [
|
|
|
3912
3912
|
{ type: "Counterparty Risk" /* COUNTERPARTY_RISK */, value: 1, weight: 50 },
|
|
3913
3913
|
{ type: "Oracle Risk" /* ORACLE_RISK */, value: 0.5, weight: 25 }
|
|
3914
3914
|
];
|
|
3915
|
+
var AUDIT_URL = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
|
|
3915
3916
|
var VesuRebalanceStrategies = [{
|
|
3916
3917
|
name: "Vesu Fusion STRK",
|
|
3917
3918
|
description: _description.replace("{{TOKEN}}", "STRK"),
|
|
@@ -3919,6 +3920,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3919
3920
|
type: "ERC4626",
|
|
3920
3921
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "STRK")],
|
|
3921
3922
|
protocols: [_protocol],
|
|
3923
|
+
auditUrl: AUDIT_URL,
|
|
3922
3924
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
3923
3925
|
risk: {
|
|
3924
3926
|
riskFactor: _riskFactor,
|
|
@@ -3932,6 +3934,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3932
3934
|
description: _description.replace("{{TOKEN}}", "ETH"),
|
|
3933
3935
|
address: ContractAddr.from("0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2"),
|
|
3934
3936
|
type: "ERC4626",
|
|
3937
|
+
auditUrl: AUDIT_URL,
|
|
3935
3938
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "ETH")],
|
|
3936
3939
|
protocols: [_protocol],
|
|
3937
3940
|
maxTVL: Web3Number.fromWei("0", 18),
|
|
@@ -3947,6 +3950,7 @@ var VesuRebalanceStrategies = [{
|
|
|
3947
3950
|
description: _description.replace("{{TOKEN}}", "USDC"),
|
|
3948
3951
|
address: ContractAddr.from("0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14"),
|
|
3949
3952
|
type: "ERC4626",
|
|
3953
|
+
auditUrl: AUDIT_URL,
|
|
3950
3954
|
depositTokens: [Global.getDefaultTokens().find((t) => t.symbol === "USDC")],
|
|
3951
3955
|
protocols: [_protocol],
|
|
3952
3956
|
maxTVL: Web3Number.fromWei("0", 6),
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ interface Change {
|
|
|
23
23
|
isDeposit: boolean;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
interface VesuRebalanceSettings {
|
|
26
|
+
export interface VesuRebalanceSettings {
|
|
27
27
|
feeBps: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -473,6 +473,7 @@ const _riskFactor: RiskFactor[] = [
|
|
|
473
473
|
{type: RiskType.COUNTERPARTY_RISK, value: 1, weight: 50},
|
|
474
474
|
{type: RiskType.ORACLE_RISK, value: 0.5, weight: 25},
|
|
475
475
|
]
|
|
476
|
+
const AUDIT_URL = 'https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf';
|
|
476
477
|
/**
|
|
477
478
|
* Represents the Vesu Rebalance Strategies.
|
|
478
479
|
*/
|
|
@@ -483,6 +484,7 @@ export const VesuRebalanceStrategies: IStrategyMetadata<VesuRebalanceSettings>[]
|
|
|
483
484
|
type: 'ERC4626',
|
|
484
485
|
depositTokens: [Global.getDefaultTokens().find(t => t.symbol === 'STRK')!],
|
|
485
486
|
protocols: [_protocol],
|
|
487
|
+
auditUrl: AUDIT_URL,
|
|
486
488
|
maxTVL: Web3Number.fromWei('0', 18),
|
|
487
489
|
risk: {
|
|
488
490
|
riskFactor: _riskFactor,
|
|
@@ -496,6 +498,7 @@ export const VesuRebalanceStrategies: IStrategyMetadata<VesuRebalanceSettings>[]
|
|
|
496
498
|
description: _description.replace('{{TOKEN}}', 'ETH'),
|
|
497
499
|
address: ContractAddr.from('0x26ea414fdf74ace1df5bc5ac72cbac670d438ef19b31edf9d59f98718fc0ab2'),
|
|
498
500
|
type: 'ERC4626',
|
|
501
|
+
auditUrl: AUDIT_URL,
|
|
499
502
|
depositTokens: [Global.getDefaultTokens().find(t => t.symbol === 'ETH')!],
|
|
500
503
|
protocols: [_protocol],
|
|
501
504
|
maxTVL: Web3Number.fromWei('0', 18),
|
|
@@ -511,6 +514,7 @@ export const VesuRebalanceStrategies: IStrategyMetadata<VesuRebalanceSettings>[]
|
|
|
511
514
|
description: _description.replace('{{TOKEN}}', 'USDC'),
|
|
512
515
|
address: ContractAddr.from('0x3a69adeb993cddb266962d9c995e3d0641dab627df22b825fa31bda460c3c14'),
|
|
513
516
|
type: 'ERC4626',
|
|
517
|
+
auditUrl: AUDIT_URL,
|
|
514
518
|
depositTokens: [Global.getDefaultTokens().find(t => t.symbol === 'USDC')!],
|
|
515
519
|
protocols: [_protocol],
|
|
516
520
|
maxTVL: Web3Number.fromWei('0', 6),
|