Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • anchorRawBNsAndPubkeysToNumsAndStrings(rawAccount: any): any
  • Parameters

    • rawAccount: any

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns DepositView

  • Parameters

    Returns FarmerView

  • Parameters

    Returns LoanView

  • Parameters

    Returns Promise<PublicKey>

  • getMostOptimalLoansClosestToNeededSolInBulk(__namedParameters: { neededSol: number; possibleLoans: { interest: number; loanValue: number; nftMint: string }[] }): { interest: number; loanValue: number; nftMint: string }[]
  • Parameters

    • __namedParameters: { neededSol: number; possibleLoans: { interest: number; loanValue: number; nftMint: string }[] }
      • neededSol: number
      • possibleLoans: { interest: number; loanValue: number; nftMint: string }[]

    Returns { interest: number; loanValue: number; nftMint: string }[]

  • initializePriceBasedLiquidityPool(params: { admin: PublicKey; baseBorrowRate: number; borrowCommission: number; connection: Connection; depositCommission: number; id: number; programId: PublicKey; reserveFactor: number; utilizationRateOptimal: number; variableSlope1: number; variableSlope2: number }): Promise<{ ix: TransactionInstruction; liquidityPool: Signer }>
  • Parameters

    • params: { admin: PublicKey; baseBorrowRate: number; borrowCommission: number; connection: Connection; depositCommission: number; id: number; programId: PublicKey; reserveFactor: number; utilizationRateOptimal: number; variableSlope1: number; variableSlope2: number }
      • admin: PublicKey
      • baseBorrowRate: number
      • borrowCommission: number
      • connection: Connection
      • depositCommission: number
      • id: number
      • programId: PublicKey
      • reserveFactor: number
      • utilizationRateOptimal: number
      • variableSlope1: number
      • variableSlope2: number

    Returns Promise<{ ix: TransactionInstruction; liquidityPool: Signer }>

  • objectBNsAndPubkeysToNums(obj: any): any
  • Parameters

    • obj: any

    Returns any

  • Parameters

    Returns Program<Idl>

  • updatePriceBasedLiquidityPool(params: { admin: PublicKey; baseBorrowRate: number; borrowCommission: number; connection: Connection; depositCommission: number; id: number; liquidityPool: PublicKey; programId: PublicKey; reserveFactor: number; utilizationRateOptimal: number; variableSlope1: number; variableSlope2: number }): Promise<{ ix: TransactionInstruction }>
  • Parameters

    • params: { admin: PublicKey; baseBorrowRate: number; borrowCommission: number; connection: Connection; depositCommission: number; id: number; liquidityPool: PublicKey; programId: PublicKey; reserveFactor: number; utilizationRateOptimal: number; variableSlope1: number; variableSlope2: number }
      • admin: PublicKey
      • baseBorrowRate: number
      • borrowCommission: number
      • connection: Connection
      • depositCommission: number
      • id: number
      • liquidityPool: PublicKey
      • programId: PublicKey
      • reserveFactor: number
      • utilizationRateOptimal: number
      • variableSlope1: number
      • variableSlope2: number

    Returns Promise<{ ix: TransactionInstruction }>

Generated using TypeDoc