UNPKG

fbonds-core

Version:

Banx protocol sdk

17 lines (16 loc) 445 B
import { BondOfferV3 } from '../../types'; import { BN, web3 } from '@coral-xyz/anchor'; export type SimpleOffer = { id: string; publicKey: web3.PublicKey; maxTokenToGet: BN; collateralsPerToken: BN; apr: BN; lender: web3.PublicKey; offerLtvBp: BN; liquidationLtvBp: BN; }; /** * Assume that offer doesn't have a curve! */ export declare function convertToSimpleOfferV2(offer: BondOfferV3): SimpleOffer | null;