@strkfarm/sdk 1.0.29 → 1.0.30
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 -6
- package/dist/cli.mjs +7 -9
- package/dist/index.browser.global.js +9173 -63
- package/dist/index.browser.mjs +9185 -75
- package/dist/index.d.ts +10 -2
- package/dist/index.js +9197 -87
- package/dist/index.mjs +9187 -77
- package/package.json +1 -1
- package/src/data/vesu_pools.json +9019 -0
- package/src/modules/avnu.ts +7 -3
- package/src/modules/harvests.ts +42 -5
- package/src/strategies/ekubo-cl-vault.ts +1 -1
- package/src/strategies/vesu-rebalance.ts +75 -12
package/dist/index.d.ts
CHANGED
|
@@ -281,7 +281,7 @@ interface SwapInfo {
|
|
|
281
281
|
}
|
|
282
282
|
declare class AvnuWrapper {
|
|
283
283
|
getQuotes(fromToken: string, toToken: string, amountWei: string, taker: string, retry?: number): Promise<Quote>;
|
|
284
|
-
getSwapInfo(quote: Quote, taker: string, integratorFeeBps: number, integratorFeeRecipient: string, minAmount
|
|
284
|
+
getSwapInfo(quote: Quote, taker: string, integratorFeeBps: number, integratorFeeRecipient: string, minAmount?: string): Promise<SwapInfo>;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
declare const logger: {
|
|
@@ -547,6 +547,10 @@ declare class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAm
|
|
|
547
547
|
isErrorPoolsAPI: boolean;
|
|
548
548
|
isError: boolean;
|
|
549
549
|
}>;
|
|
550
|
+
getVesuPools(retry?: number): Promise<{
|
|
551
|
+
pools: any[];
|
|
552
|
+
isErrorPoolsAPI: boolean;
|
|
553
|
+
}>;
|
|
550
554
|
/**
|
|
551
555
|
* Calculates the weighted average APY across all pools based on USD value.
|
|
552
556
|
* @returns {Promise<number>} The weighted average APY across all pools
|
|
@@ -591,6 +595,7 @@ declare class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAm
|
|
|
591
595
|
*/
|
|
592
596
|
getRebalanceCall(pools: Awaited<ReturnType<typeof this.getRebalancedPositions>>['changes'], isOverWeightAdjustment: boolean): Promise<starknet.Call | null>;
|
|
593
597
|
getInvestmentFlows(pools: PoolInfoFull[]): Promise<IInvestmentFlow[]>;
|
|
598
|
+
harvest(acc: Account): Promise<starknet.Call[]>;
|
|
594
599
|
}
|
|
595
600
|
/**
|
|
596
601
|
* Represents the Vesu Rebalance Strategies.
|
|
@@ -663,7 +668,10 @@ declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount>
|
|
|
663
668
|
getHarvestRewardShares(fromBlock: number, toBlock: number): Promise<Web3Number>;
|
|
664
669
|
balanceOf(user: ContractAddr, blockIdentifier?: BlockIdentifier): Promise<Web3Number>;
|
|
665
670
|
getUserTVL(user: ContractAddr, blockIdentifier?: BlockIdentifier): Promise<DualTokenInfo>;
|
|
666
|
-
|
|
671
|
+
_getTVL(blockIdentifier?: BlockIdentifier): Promise<{
|
|
672
|
+
amount0: Web3Number;
|
|
673
|
+
amount1: Web3Number;
|
|
674
|
+
}>;
|
|
667
675
|
totalSupply(blockIdentifier?: BlockIdentifier): Promise<Web3Number>;
|
|
668
676
|
assertValidDepositTokens(poolKey: EkuboPoolKey): void;
|
|
669
677
|
getTVL(blockIdentifier?: BlockIdentifier): Promise<DualTokenInfo>;
|