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:
Type | Description |
---|---|
GhoReserveData | An 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:
Name | Type | Description |
---|---|---|
user | address | The address of the user |
Return Values:
Type | Description |
---|---|
GhoUserData | An object with information related to the user's position with regard to GHO |