UiIncentiveDataProvider

UiIncentiveDataProvider

Contract that returns an array of all reserve incentives or user claimable rewards within a particular market, used by theThemis Interface to display incentives data. TheThemis Utilities SDK includes an interface to make calls to this contract, and functions to format the response for frontend use-cases.

Data Structures

AggregatedReserveIncentiveData

IncentiveData

Reward Info

UserReserveIncentiveData

UserIncentiveData

UserRewardInfo


View Methods

getReservesIncentivesData

function getReservesIncentivesData(IPoolAddressesProvider provider)

Returns AggregatedReserveIncentiveData[] for the pool associated with given provide.

getUserReservesIncentivesData

function getUserReservesIncentivesData(IPoolAddressesProvider provider, address user)

Returns UserReserveIncentiveData[] for the given user for the pool associated with given.

getFullReservesIncentiveData

function getFullReservesIncentiveData(IPoolAddressesProvider provider, address user)

Returns both AggregatedReserveIncentiveData[] and UserReserveIncentiveData[] for the given user for the pool associated with the given provider.


Last updated