Documentation
Preparing search index...
@naviprotocol/lending
UserPositions
Class UserPositions
Index
Constructors
constructor
Accessors
overview
positions
Methods
borrow
deposit
filter
Positions
By
Pool
get
Positions
Overview
repay
withdraw
Constructors
constructor
new
UserPositions
(
positions
:
LendingPosition
[]
)
:
UserPositions
Parameters
positions
:
LendingPosition
[]
Returns
UserPositions
Accessors
overview
get
overview
()
:
{
borrow
:
Record
<
string
,
string
>
;
hf
:
number
;
maxLiquidationValue
:
string
;
maxLoanToVaule
:
string
;
netVaule
:
string
;
netWorthApr
:
string
;
supply
:
Record
<
string
,
string
>
;
totalBorrowApy
:
string
;
totalBorrowValue
:
string
;
totalsupplyApy
:
string
;
totalSupplyValue
:
string
;
}
Returns
{
borrow
:
Record
<
string
,
string
>
;
hf
:
number
;
maxLiquidationValue
:
string
;
maxLoanToVaule
:
string
;
netVaule
:
string
;
netWorthApr
:
string
;
supply
:
Record
<
string
,
string
>
;
totalBorrowApy
:
string
;
totalBorrowValue
:
string
;
totalsupplyApy
:
string
;
totalSupplyValue
:
string
;
}
positions
get
positions
()
:
LendingPosition
[]
Returns
LendingPosition
[]
set
positions
(
positions
:
LendingPosition
[]
)
:
void
Parameters
positions
:
LendingPosition
[]
Returns
void
Methods
borrow
borrow
(
pool
:
Pool
|
EModePool
,
amount
:
number
)
:
UserPositions
Parameters
pool
:
Pool
|
EModePool
amount
:
number
Returns
UserPositions
deposit
deposit
(
pool
:
Pool
|
EModePool
,
amount
:
number
)
:
UserPositions
Parameters
pool
:
Pool
|
EModePool
amount
:
number
Returns
UserPositions
filter
Positions
By
Pool
filterPositionsByPool
(
pool
:
Pool
|
EModePool
)
:
UserPositions
Parameters
pool
:
Pool
|
EModePool
Returns
UserPositions
get
Positions
Overview
getPositionsOverview
(
positions
:
LendingPosition
[]
,
)
:
{
borrow
:
Record
<
string
,
string
>
;
hf
:
number
;
maxLiquidationValue
:
string
;
maxLoanToVaule
:
string
;
netVaule
:
string
;
netWorthApr
:
string
;
supply
:
Record
<
string
,
string
>
;
totalBorrowApy
:
string
;
totalBorrowValue
:
string
;
totalsupplyApy
:
string
;
totalSupplyValue
:
string
;
}
Parameters
positions
:
LendingPosition
[]
Returns
{
borrow
:
Record
<
string
,
string
>
;
hf
:
number
;
maxLiquidationValue
:
string
;
maxLoanToVaule
:
string
;
netVaule
:
string
;
netWorthApr
:
string
;
supply
:
Record
<
string
,
string
>
;
totalBorrowApy
:
string
;
totalBorrowValue
:
string
;
totalsupplyApy
:
string
;
totalSupplyValue
:
string
;
}
repay
repay
(
pool
:
Pool
|
EModePool
,
amount
:
number
)
:
UserPositions
Parameters
pool
:
Pool
|
EModePool
amount
:
number
Returns
UserPositions
withdraw
withdraw
(
pool
:
Pool
|
EModePool
,
amount
:
number
)
:
UserPositions
Parameters
pool
:
Pool
|
EModePool
amount
:
number
Returns
UserPositions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
overview
positions
Methods
borrow
deposit
filter
Positions
By
Pool
get
Positions
Overview
repay
withdraw
Documentation
Loading...