banx-token-lending-sdk
Version:
Banx Token Lending sdk
11 lines (10 loc) • 528 B
TypeScript
import { BN, web3 } from '@coral-xyz/anchor';
type CalcInterestParams = {
loanValue: BN;
startTimeUnix: number;
endTimeUnix: number;
aprBp: number;
};
export declare function calcInterest({ loanValue, startTimeUnix, endTimeUnix, aprBp }: CalcInterestParams): BN;
export declare const createAssociatedTokenAccountInstructionIdimpotent: (associatedTokenAddress: web3.PublicKey, payer: web3.PublicKey, walletAddress: web3.PublicKey, splTokenMintAddress: web3.PublicKey) => web3.TransactionInstruction[];
export {};