Search
Preparing search index...
The search index is not available
@solendprotocol/solend-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@solendprotocol/solend-sdk
SolendReserve
Class SolendReserve
Hierarchy
SolendReserve
Index
Constructors
constructor
Properties
buffer
config
connection
rewards
Data
stats
Methods
calculate
BorrowAPR
calculate
BorrowAPY
calculate
RewardAPY
calculate
SupplyAPR
calculate
SupplyAPY
calculate
Utilization
Ratio
format
Reserve
Data
load
set
Buffer
total
BorrowAPY
total
SupplyAPY
Constructors
constructor
new
Solend
Reserve
(
reserveConfig
:
ReserveConfigType
, connection
:
Connection
)
:
SolendReserve
Parameters
reserveConfig:
ReserveConfigType
connection:
Connection
Returns
SolendReserve
Properties
Private
buffer
buffer
:
null
|
AccountInfo
<
Buffer
>
config
config
:
ReserveConfigType
Private
connection
connection
:
Connection
Private
rewards
Data
rewards
Data
:
null
|
RewardsDataType
stats
stats
:
null
|
ReserveDataType
Methods
Private
calculate
BorrowAPR
calculate
BorrowAPR
(
reserve
:
Reserve
)
:
number
Parameters
reserve:
Reserve
Returns
number
Private
calculate
BorrowAPY
calculate
BorrowAPY
(
reserve
:
Reserve
)
:
number
Parameters
reserve:
Reserve
Returns
number
calculate
RewardAPY
calculate
RewardAPY
(
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
calculate
SupplyAPR
calculate
SupplyAPR
(
reserve
:
Reserve
)
:
number
Parameters
reserve:
Reserve
Returns
number
Private
calculate
SupplyAPY
calculate
SupplyAPY
(
reserve
:
Reserve
)
:
number
Parameters
reserve:
Reserve
Returns
number
Private
calculate
Utilization
Ratio
calculate
Utilization
Ratio
(
reserve
:
Reserve
)
:
number
Parameters
reserve:
Reserve
Returns
number
Private
format
Reserve
Data
format
Reserve
Data
(
parsedData
:
Reserve
)
:
ReserveDataType
Parameters
parsedData:
Reserve
Returns
ReserveDataType
load
load
(
rewardsData
?:
RewardsDataType
)
:
Promise
<
void
>
Parameters
Optional
rewardsData:
RewardsDataType
Returns
Promise
<
void
>
set
Buffer
set
Buffer
(
buffer
:
null
|
AccountInfo
<
Buffer
>
)
:
void
Parameters
buffer:
null
|
AccountInfo
<
Buffer
>
Returns
void
total
BorrowAPY
total
BorrowAPY
(
)
:
{
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
total
SupplyAPY
total
SupplyAPY
(
)
:
{
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
Exports
Solend
Reserve
constructor
buffer
config
connection
rewards
Data
stats
calculate
BorrowAPR
calculate
BorrowAPY
calculate
RewardAPY
calculate
SupplyAPR
calculate
SupplyAPY
calculate
Utilization
Ratio
format
Reserve
Data
load
set
Buffer
total
BorrowAPY
total
SupplyAPY
Generated using
TypeDoc