@dainprotocol/drift-sdk
Version:
SDK for Drift Protocol
8 lines • 671 B
TypeScript
/// <reference types="bn.js" />
import { BN, SpotMarketAccount } from '../index';
export declare function nextRevenuePoolSettleApr(spotMarket: SpotMarketAccount, vaultBalance: BN, // vault token amount
amount?: BN): number;
export declare function stakeAmountToShares(amount: BN, totalIfShares: BN, insuranceFundVaultBalance: BN): BN;
export declare function unstakeSharesToAmount(nShares: BN, totalIfShares: BN, insuranceFundVaultBalance: BN): BN;
export declare function unstakeSharesToAmountWithOpenRequest(nShares: BN, withdrawRequestShares: BN, withdrawRequestAmount: BN, totalIfShares: BN, insuranceFundVaultBalance: BN): BN;
//# sourceMappingURL=insurance.d.ts.map