UNPKG

@drift-labs/common

Version:

Common functions for Drift

16 lines (15 loc) 584 B
import { BigNum, DriftClient, SpotMarketConfig } from '@drift-labs/sdk'; /** * Get the size of an insurance fund vault * @param spotMarketConfig * @param driftClient * @returns */ export declare const getIfVaultBalance: (spotMarketConfig: SpotMarketConfig, driftClient: DriftClient) => Promise<BigNum>; /** * Get the current staking APR for a market. * @param spotMarketConfig * @param driftClient * @returns APR Percentage .. e.g. 100 for 100% */ export declare const getIfStakingVaultApr: (spotMarketConfig: SpotMarketConfig, driftClient: DriftClient) => Promise<number>;