mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
feat: added v3 fields so interfaces are the same
This commit is contained in:
parent
af835f5fd1
commit
4245bf57d6
|
@ -165,7 +165,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
override
|
override
|
||||||
returns (UserReserveData[] memory)
|
returns (UserReserveData[] memory, uint8)
|
||||||
{
|
{
|
||||||
ILendingPool lendingPool = ILendingPool(provider.getLendingPool());
|
ILendingPool lendingPool = ILendingPool(provider.getLendingPool());
|
||||||
address[] memory reserves = lendingPool.getReservesList();
|
address[] memory reserves = lendingPool.getReservesList();
|
||||||
|
@ -201,7 +201,8 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (userReservesData);
|
// Return 0 to be compatible with v3 userEmodeCategoryId return
|
||||||
|
return (userReservesData, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function bytes32ToString(bytes32 _bytes32) public pure returns (string memory) {
|
function bytes32ToString(bytes32 _bytes32) public pure returns (string memory) {
|
||||||
|
|
|
@ -41,6 +41,22 @@ interface IUiPoolDataProvider {
|
||||||
uint256 variableRateSlope2;
|
uint256 variableRateSlope2;
|
||||||
uint256 stableRateSlope1;
|
uint256 stableRateSlope1;
|
||||||
uint256 stableRateSlope2;
|
uint256 stableRateSlope2;
|
||||||
|
// v3
|
||||||
|
uint128 accruedToTreasury;
|
||||||
|
uint128 unbacked;
|
||||||
|
uint128 isolationModeTotalDebt;
|
||||||
|
//
|
||||||
|
uint256 debtCeiling;
|
||||||
|
uint256 debtCeilingDecimals;
|
||||||
|
uint8 eModeCategoryId;
|
||||||
|
uint256 borrowCap;
|
||||||
|
uint256 supplyCap;
|
||||||
|
// eMode
|
||||||
|
uint16 eModeLtv;
|
||||||
|
uint16 eModeLiquidationThreshold;
|
||||||
|
uint16 eModeLiquidationBonus;
|
||||||
|
address eModePriceSource;
|
||||||
|
string eModeLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct UserReserveData {
|
struct UserReserveData {
|
||||||
|
@ -77,6 +93,6 @@ interface IUiPoolDataProvider {
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
returns (
|
returns (
|
||||||
UserReserveData[] memory
|
UserReserveData[] memory, uint8
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user