banx-vaults-sdk
Version:
Fbonds SDK for interacting with protocol banx vaults
33 lines (32 loc) • 912 B
TypeScript
import { BN, web3 } from "@coral-xyz/anchor";
import { BanxPoolStateDecodeEnum } from "../../types";
export interface BanxPoolInputParams {
poolSeed: BN;
banxPoolState: BanxPoolStateDecodeEnum;
admin: web3.PublicKey;
rewardCurator: web3.PublicKey;
period: BN;
lendingToken: web3.PublicKey;
safetyReserveInterestShareBp: BN;
reservesPercentBp: BN;
maxCap: BN;
adminRewardsShareBp: BN;
}
type CreateBanxPool = (params: {
connection: web3.Connection;
args: {
params: BanxPoolInputParams;
};
accounts: {
userPubkey: web3.PublicKey;
};
sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>;
}) => Promise<{
instructions: web3.TransactionInstruction[];
signers: web3.Signer[];
accounts: {
banxPool: web3.PublicKey;
};
}>;
export declare const createBanxPool: CreateBanxPool;
export {};