@strkfarm/sdk 1.0.41 → 1.0.43
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 +1628 -5152
- package/dist/index.browser.mjs +1629 -5153
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1629 -5153
- package/dist/index.mjs +1629 -5153
- package/package.json +1 -1
- package/src/data/vesu_pools.json +5342 -8914
- package/src/modules/avnu.ts +18 -0
- package/src/modules/harvests.ts +10 -1
- package/src/strategies/ekubo-cl-vault.tsx +174 -117
- package/src/strategies/vesu-rebalance.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -289,6 +289,7 @@ interface SwapInfo {
|
|
|
289
289
|
declare class AvnuWrapper {
|
|
290
290
|
getQuotes(fromToken: string, toToken: string, amountWei: string, taker: string, retry?: number): Promise<Quote>;
|
|
291
291
|
getSwapInfo(quote: Quote, taker: string, integratorFeeBps: number, integratorFeeRecipient: string, minAmount?: string): Promise<SwapInfo>;
|
|
292
|
+
static buildZeroSwap(tokenToSell: ContractAddr, address: string): SwapInfo;
|
|
292
293
|
}
|
|
293
294
|
|
|
294
295
|
declare class FatalError extends Error {
|
|
@@ -598,6 +599,11 @@ interface CLVaultStrategySettings {
|
|
|
598
599
|
lstContract?: ContractAddr;
|
|
599
600
|
truePrice?: number;
|
|
600
601
|
feeBps: number;
|
|
602
|
+
rebalanceConditions: {
|
|
603
|
+
minWaitHours: number;
|
|
604
|
+
direction: "any" | "uponly";
|
|
605
|
+
customShouldRebalance: (currentPoolPrice: number) => Promise<boolean>;
|
|
606
|
+
};
|
|
601
607
|
}
|
|
602
608
|
declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount> {
|
|
603
609
|
/** Contract address of the strategy */
|