Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SolendObligation

Index

Constructors

constructor

Properties

borrows

borrows: Position[]

deposits

deposits: Position[]

obligationAddress

obligationAddress: PublicKey

obligationStats

obligationStats: ObligationStats

walletAddress

walletAddress: PublicKey

Methods

Private calculatePositions

  • calculatePositions(obligation: Obligation, reserves: SolendReserve[]): { borrows: { amount: BN; mintAddress: string }[]; deposits: { amount: BN; mintAddress: string }[]; stats: { borrowLimit: number; borrowUtilization: number; liquidationThreshold: number; netAccountValue: number; positions: number; userTotalBorrow: number; userTotalDeposit: number } }
  • Parameters

    Returns { borrows: { amount: BN; mintAddress: string }[]; deposits: { amount: BN; mintAddress: string }[]; stats: { borrowLimit: number; borrowUtilization: number; liquidationThreshold: number; netAccountValue: number; positions: number; userTotalBorrow: number; userTotalDeposit: number } }

    • borrows: { amount: BN; mintAddress: string }[]
    • deposits: { amount: BN; mintAddress: string }[]
    • stats: { borrowLimit: number; borrowUtilization: number; liquidationThreshold: number; netAccountValue: number; positions: number; userTotalBorrow: number; userTotalDeposit: number }
      • borrowLimit: number
      • borrowUtilization: number
      • liquidationThreshold: number
      • netAccountValue: number
      • positions: number
      • userTotalBorrow: number
      • userTotalDeposit: number

Generated using TypeDoc