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
SolendObligation
Class SolendObligation
Hierarchy
SolendObligation
Index
Constructors
constructor
Properties
borrows
deposits
obligation
Address
obligation
Stats
wallet
Address
Methods
calculate
Positions
Constructors
constructor
new
Solend
Obligation
(
walletAddress
:
PublicKey
, obligationAddress
:
PublicKey
, obligation
:
Obligation
, reserves
:
SolendReserve
[]
)
:
SolendObligation
Parameters
walletAddress:
PublicKey
obligationAddress:
PublicKey
obligation:
Obligation
reserves:
SolendReserve
[]
Returns
SolendObligation
Properties
borrows
borrows
:
Position
[]
deposits
deposits
:
Position
[]
obligation
Address
obligation
Address
:
PublicKey
obligation
Stats
obligation
Stats
:
ObligationStats
wallet
Address
wallet
Address
:
PublicKey
Methods
Private
calculate
Positions
calculate
Positions
(
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
obligation:
Obligation
reserves:
SolendReserve
[]
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
}
borrow
Limit
:
number
borrow
Utilization
:
number
liquidation
Threshold
:
number
net
Account
Value
:
number
positions
:
number
user
Total
Borrow
:
number
user
Total
Deposit
:
number
Exports
Solend
Obligation
constructor
borrows
deposits
obligation
Address
obligation
Stats
wallet
Address
calculate
Positions
Generated using
TypeDoc