Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SolendReserve

Index

Constructors

constructor

Properties

Private buffer

buffer: null | AccountInfo<Buffer>

config

Private connection

connection: Connection

Private rewardsData

rewardsData: null | RewardsDataType

stats

stats: null | ReserveDataType

Methods

Private calculateBorrowAPR

  • calculateBorrowAPR(reserve: Reserve): number

Private calculateBorrowAPY

  • calculateBorrowAPY(reserve: Reserve): number

calculateRewardAPY

  • calculateRewardAPY(rewardRate: string, poolSize: string, rewardPrice: number, tokenPrice: number, decimals: number): BigNumber
  • Parameters

    • rewardRate: string
    • poolSize: string
    • rewardPrice: number
    • tokenPrice: number
    • decimals: number

    Returns BigNumber

Private calculateSupplyAPR

  • calculateSupplyAPR(reserve: Reserve): number

Private calculateSupplyAPY

  • calculateSupplyAPY(reserve: Reserve): number

Private calculateUtilizationRatio

  • calculateUtilizationRatio(reserve: Reserve): number

Private formatReserveData

load

setBuffer

  • setBuffer(buffer: null | AccountInfo<Buffer>): void

totalBorrowAPY

  • totalBorrowAPY(): { interestAPY: number; rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]; totalAPY: number }
  • Returns { interestAPY: number; rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]; totalAPY: number }

    • interestAPY: number
    • rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]
    • totalAPY: number

totalSupplyAPY

  • totalSupplyAPY(): { interestAPY: number; rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]; totalAPY: number }
  • Returns { interestAPY: number; rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]; totalAPY: number }

    • interestAPY: number
    • rewards: { apy: number; price: number; rewardMint: undefined | string; rewardSymbol: string }[]
    • totalAPY: number

Generated using TypeDoc