Skip to content

Commit

Permalink
fix: enigma #1 (issue #3) - remove unnecessary allocation (aave-dao#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Sep 12, 2024
1 parent 4fcf2d6 commit dbdb739
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ interface IUiIncentiveDataProviderV3 {
address underlyingAsset;
IncentiveData aIncentiveData;
IncentiveData vIncentiveData;
IncentiveData sIncentiveData;
}

struct IncentiveData {
Expand All @@ -35,7 +34,6 @@ interface IUiIncentiveDataProviderV3 {
address underlyingAsset;
UserIncentiveData aTokenIncentivesUserData;
UserIncentiveData vTokenIncentivesUserData;
UserIncentiveData sTokenIncentivesUserData;
}

struct UserIncentiveData {
Expand Down
22 changes: 0 additions & 22 deletions src/contracts/helpers/interfaces/IUiPoolDataProviderV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.so
import {DataTypes} from '../../protocol/libraries/types/DataTypes.sol';

interface IUiPoolDataProviderV3 {
struct InterestRates {
uint256 variableRateSlope1;
uint256 variableRateSlope2;
uint256 stableRateSlope1;
uint256 stableRateSlope2;
uint256 baseStableBorrowRate;
uint256 baseVariableBorrowRate;
uint256 optimalUsageRatio;
}

struct AggregatedReserveData {
address underlyingAsset;
string name;
Expand All @@ -26,33 +16,24 @@ interface IUiPoolDataProviderV3 {
uint256 reserveFactor;
bool usageAsCollateralEnabled;
bool borrowingEnabled;
bool stableBorrowRateEnabled;
bool isActive;
bool isFrozen;
// base data
uint128 liquidityIndex;
uint128 variableBorrowIndex;
uint128 liquidityRate;
uint128 variableBorrowRate;
uint128 stableBorrowRate;
uint40 lastUpdateTimestamp;
address aTokenAddress;
address stableDebtTokenAddress;
address variableDebtTokenAddress;
address interestRateStrategyAddress;
//
uint256 availableLiquidity;
uint256 totalPrincipalStableDebt;
uint256 averageStableRate;
uint256 stableDebtLastUpdateTimestamp;
uint256 totalScaledVariableDebt;
uint256 priceInMarketReferenceCurrency;
address priceOracle;
uint256 variableRateSlope1;
uint256 variableRateSlope2;
uint256 stableRateSlope1;
uint256 stableRateSlope2;
uint256 baseStableBorrowRate;
uint256 baseVariableBorrowRate;
uint256 optimalUsageRatio;
// v3 only
Expand All @@ -77,10 +58,7 @@ interface IUiPoolDataProviderV3 {
address underlyingAsset;
uint256 scaledATokenBalance;
bool usageAsCollateralEnabledOnUser;
uint256 stableBorrowRate;
uint256 scaledVariableDebt;
uint256 principalStableDebt;
uint256 stableBorrowLastUpdateTimestamp;
}

struct BaseCurrencyInfo {
Expand Down

0 comments on commit dbdb739

Please sign in to comment.