fbonds-core
Version:
Banx protocol sdk
24 lines (23 loc) • 666 B
TypeScript
import { BN, web3 } from '@coral-xyz/anchor';
type SellToRepay = (params: {
programId: web3.PublicKey;
connection: web3.Connection;
accounts: {
userPubkey: web3.PublicKey;
bondTradeTransaction: web3.PublicKey;
fbond: web3.PublicKey;
collateralTokenMint: web3.PublicKey;
};
args: {
amountToSell: BN;
};
sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>;
}) => Promise<{
accounts: {
fraktBond: web3.PublicKey;
};
instructions: web3.TransactionInstruction[];
signers: web3.Signer[];
}>;
export declare const sellToRepay: SellToRepay;
export {};