UNPKG

fbonds-core

Version:

Banx protocol sdk

31 lines (30 loc) 969 B
import { BN, web3 } from '@coral-xyz/anchor'; import { BondFeatures, BondingCurveType } from '../../../types'; type CreatePerpetualBondOfferBonding = (params: { programId: web3.PublicKey; connection: web3.Connection; args: { loanValue: BN; quantityOfLoans: number; bondingCurveType: BondingCurveType; bondFeature: BondFeatures; collateralsPerToken: BN; tokenLendingApr: BN; liquidationLtvBP?: BN; offerLtvBP?: BN; }; accounts: { hadoMarket: web3.PublicKey; userPubkey: web3.PublicKey; }; sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>; }) => Promise<{ accounts: { bondOffer: web3.PublicKey; lenderVault: web3.PublicKey; }; instructions: web3.TransactionInstruction[]; signers: web3.Signer[]; }>; export declare const createPerpetualBondOfferBonding: CreatePerpetualBondOfferBonding; export {};