Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { AlphaVaultStrategy } from '../strategies/alphaVault.js';
import { ZapDepositStrategy } from '../strategies/zapDeposit.js';
import { LpStrategy } from '../strategies/lp.js';
import { SlushSingleAssetLoopingStrategy } from '../strategies/slushSingleAssetLooping.js';
import { SingleAssetLoopingStrategy } from 'src/strategies/singleAssetLooping.js';

// Re-export types for external use
export type { RouterDataV3 } from '@cetusprotocol/aggregator-sdk';
Expand Down Expand Up @@ -80,7 +81,13 @@ export class AlphaFiSDK {
const strategy = await this.protocol.getSinglePoolStrategy(poolId);
return strategy.getData();
}

async updatePool(poolId: string): Promise<Transaction> {
const strategy = (await this.protocol.getSinglePoolStrategy(
poolId,
)) as SingleAssetLoopingStrategy;
const tx = new Transaction();
return strategy.updatePool(tx);
}
/**
* Get balance for a single pool.
*
Expand Down
Loading
Loading