@alphafi/alphalend-sdk - v1.1.17
Preparing search index...
Market
Class Market
Index
Constructors
constructor
Properties
market
Methods
calculate
Borrow
Apr
calculate
Borrow
Reward
Apr
calculate
Supply
Apr
calculate
Supply
Reward
Apr
get
Market
Data
refresh
refresh
Compound
Interest
refresh
Reward
Distributors
refresh
X
Token
Ratio
total
Liquidity
utilization
Rate
Constructors
constructor
new
Market
(
market
:
MarketType
,
coinMetadataMap
:
Map
<
string
,
CoinMetadata
>
,
)
:
Market
Parameters
market
:
MarketType
coinMetadataMap
:
Map
<
string
,
CoinMetadata
>
Returns
Market
Properties
market
market
:
MarketType
Methods
calculate
Borrow
Apr
calculateBorrowApr
()
:
{
interestApr
:
Decimal
;
rewards
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
;
}
Returns
{
interestApr
:
Decimal
;
rewards
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
}
calculate
Borrow
Reward
Apr
calculateBorrowRewardApr
(
prices
:
Map
<
string
,
Decimal
>
,
)
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
Parameters
prices
:
Map
<
string
,
Decimal
>
Returns
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
calculate
Supply
Apr
calculateSupplyApr
()
:
Promise
<
{
interestApr
:
Decimal
;
rewards
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
;
stakingApr
:
Decimal
;
}
,
>
Returns
Promise
<
{
interestApr
:
Decimal
;
rewards
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
;
stakingApr
:
Decimal
;
}
,
>
calculate
Supply
Reward
Apr
calculateSupplyRewardApr
(
prices
:
Map
<
string
,
Decimal
>
,
)
:
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
Parameters
prices
:
Map
<
string
,
Decimal
>
Returns
{
coinType
:
string
;
rewardApr
:
Decimal
}
[]
get
Market
Data
getMarketData
(
prices
:
Map
<
string
,
Decimal
>
)
:
Promise
<
MarketData
>
Parameters
prices
:
Map
<
string
,
Decimal
>
Returns
Promise
<
MarketData
>
refresh
refresh
()
:
void
Returns
void
refresh
Compound
Interest
refreshCompoundInterest
()
:
void
Returns
void
refresh
Reward
Distributors
refreshRewardDistributors
(
rewardDistributor
:
RewardDistributorType
)
:
void
Parameters
rewardDistributor
:
RewardDistributorType
Returns
void
refresh
X
Token
Ratio
refreshXTokenRatio
()
:
void
Returns
void
total
Liquidity
totalLiquidity
()
:
bigint
Returns
bigint
utilization
Rate
utilizationRate
()
:
Decimal
Returns
Decimal
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
market
Methods
calculate
Borrow
Apr
calculate
Borrow
Reward
Apr
calculate
Supply
Apr
calculate
Supply
Reward
Apr
get
Market
Data
refresh
refresh
Compound
Interest
refresh
Reward
Distributors
refresh
X
Token
Ratio
total
Liquidity
utilization
Rate
@alphafi/alphalend-sdk - v1.1.17
Loading...