Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v3.2 pdp (protocol data provider) upgrade #64

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions certora/stata/harness/pool/SymbolicLendingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ contract SymbolicLendingPool {
return reserve.configuration;
}

function getVirtualUnderlyingBalance(
address asset
) external view virtual returns (uint128) {
function getVirtualUnderlyingBalance(address asset) external view virtual returns (uint128) {
return reserve.virtualUnderlyingBalance;
}

}
2 changes: 1 addition & 1 deletion src/contracts/instances/PoolInstance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IPoolAddressesProvider} from '../interfaces/IPoolAddressesProvider.sol';
import {Errors} from '../protocol/libraries/helpers/Errors.sol';

contract PoolInstance is Pool {
uint256 public constant POOL_REVISION = 5;
uint256 public constant POOL_REVISION = 6;

constructor(IPoolAddressesProvider provider) Pool(provider) {}

Expand Down
4 changes: 4 additions & 0 deletions src/contracts/protocol/pool/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ abstract contract Pool is VersionedInitializable, PoolStorage, IPool {
res.accruedToTreasury = reserve.accruedToTreasury;
res.unbacked = reserve.unbacked;
res.isolationModeTotalDebt = reserve.isolationModeTotalDebt;
// This is a temporary workaround for integrations that are broken by Aave 3.2
// While the new pool data provider is backward compatible, some integrations hard-code an old implementation
// To allow them to not have any infrastructural blocker, a mock must be configured in the Aave Pool Addresses Provider, returning zero on all required view methods, instead of reverting
res.stableDebtTokenAddress = ADDRESSES_PROVIDER.getAddress(bytes32('MOCK_STABLE_DEBT'));
return res;
}

Expand Down
Loading