@ajna-finance/sdk
Version:
A typescript SDK that can be used to create Dapps in Ajna ecosystem.
22 lines (21 loc) • 825 B
TypeScript
import { Signer } from 'ethers';
import { Bucket } from './Bucket';
import { Pool } from './Pool';
import { SignerOrProvider } from '../types';
/**
* Models a price bucket in a pool with ERC-20 collateral.
*/
export declare class FungibleBucket extends Bucket {
/**
* @param provider JSON-RPC endpoint.
* @param pool Pool to which this bucket belongs.
* @param index Price bucket index.
*/
constructor(provider: SignerOrProvider, pool: Pool, index: number);
/**
* Withdraw all available liquidity from the given bucket using multicall transaction (first quote token, then - collateral if LP is left).
* @param signer address to redeem LP
* @returns promise to transaction
*/
withdrawLiquidity(signer: Signer): Promise<import("../types").WrappedTransaction>;
}