UiPoolDataProvider
Last updated
Last updated
Contract that returns an array of all reserve or user data for a particular market, used by the Themis Interface to display Markets and Dashboard data. The Themis Utilities SDK includes an interface to make calls to this contract, and functions to format the response for frontend use-cases.
View fields of AggregatedReserveData defined at Github .
Name | Type | Description |
---|---|---|
Info data struct for the base currency of the Themis protocol market.
function getReservesList(IPoolAddressesProvider provider)
Returns the list of initialised reserves in the Pool associated with the given provider.
function getReservesData(IPoolAddressesProvider provider)
Returns BaseCurrencyInfo
of the Pool and AggregatedReserveData[]
for all the initialised reserves in the Pool associated with the given provider.
function getUserReservesData(IPoolAddressesProvider provider, address user)
Returns UserReserveData[]
for all user reserves in the Pool associated with the given provider.
Name | Type | Description |
---|---|---|
underlyingAsset
address
Address of the underlying asset supplied/borrowed
scaledATokenBalance
uint256
scaled balance of tToken scaledBalance = balance/liquidityIndex
usageAsCollateralEnabledOnUser
bool
true if supplied asset is enabled to be used as collateral
stableBorrowRate
uint256
Stable rate at which underlying asset is borrowed by the user. 0 ⇒ no debt
scaledVariableDebt
uint256
scaled balance of vToken scaledBalance = balance/liquidityIndex
principalStableDebt
uint256
Principal amount borrowed at stable rate
stableBorrowLastUpdateTimestamp
uint256
unix timestamp of last update on user’s stable borrow position.
marketReferenceCurrencyUnit
uint256
Reference aka base currency of the market
marketReferenceCurrencyPriceInUsd
int256
Price of reference aka base currency in USD
networkBaseTokenPriceInUsd
int256
Price of native token of the network/chain in USD
networkBaseTokenPriceDecimals
uint8
Decimals of native token of the network/chain