UiPoolDataProvider

UiPoolDataProvider

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.

Data Structures

AggregatedReserveData

View fields of AggregatedReserveData defined at Github .

UserReserveData

BaseCurrencyInfo

Info data struct for the base currency of the Themis protocol market.


View Methods

getReservesList

function getReservesList(IPoolAddressesProvider provider)

Returns the list of initialised reserves in the Pool associated with the given provider.

getReservesData

function getReservesData(IPoolAddressesProvider provider)

Returns BaseCurrencyInfo of the Pool and AggregatedReserveData[] for all the initialised reserves in the Pool associated with the given provider.

getUserReservesData

function getUserReservesData(IPoolAddressesProvider provider, address user)

Returns UserReserveData[] for all user reserves in the Pool associated with the given provider.


Last updated