Skip to main content

IUiGhoDataProvider

Defines the basic interface of the UiGhoDataProvider.

This page shows the structs and view methods within the IUiGhoDataProvider interface. The source code is available on GitHub.

Structs

GhoReserveData

struct GhoReserveData {
uint256 ghoBaseVariableBorrowRate;
uint256 ghoDiscountedPerToken;
uint256 ghoDiscountRate;
uint256 ghoMinDebtTokenBalanceForDiscount;
uint256 ghoMinDiscountTokenBalanceForDiscount;
uint40 ghoReserveLastUpdateTimestamp;
uint128 ghoCurrentBorrowIndex;
uint256 aaveFacilitatorBucketLevel;
uint256 aaveFacilitatorBucketMaxCapacity;
}

GhoUserData

struct GhoUserData {
uint256 userGhoDiscountPercent;
uint256 userDiscountTokenBalance;
uint256 userPreviousGhoBorrowIndex;
uint256 userGhoScaledBorrowBalance;
}

View Methods

getGhoReserveData

function getGhoReserveData() external view returns (GhoReserveData memory)

Returns data of the GHO reserve and the Aave Facilitator.

Return Values:

TypeDescription
GhoReserveDataAn object with information related to the GHO reserve and the Aave Facilitator

getGhoUserData

function getGhoUserData(address user) external view returns (GhoUserData memory)

Returns data of the user's position on GHO.

Input Parameters:

NameTypeDescription
useraddressThe address of the user

Return Values:

TypeDescription
GhoUserDataAn object with information related to the user's position with regard to GHO