Skip to content

Commit 077c99e

Browse files
sakulstraeboadom
andauthored
feat: v3.2 pdp (protocol data provider) upgrade (#64)
Co-authored-by: Ernesto Boado <[email protected]>
1 parent 18c4992 commit 077c99e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/contracts/instances/PoolInstance.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {IPoolAddressesProvider} from '../interfaces/IPoolAddressesProvider.sol';
66
import {Errors} from '../protocol/libraries/helpers/Errors.sol';
77

88
contract PoolInstance is Pool {
9-
uint256 public constant POOL_REVISION = 5;
9+
uint256 public constant POOL_REVISION = 6;
1010

1111
constructor(IPoolAddressesProvider provider) Pool(provider) {}
1212

src/contracts/protocol/pool/Pool.sol

+4
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ abstract contract Pool is VersionedInitializable, PoolStorage, IPool {
450450
res.accruedToTreasury = reserve.accruedToTreasury;
451451
res.unbacked = reserve.unbacked;
452452
res.isolationModeTotalDebt = reserve.isolationModeTotalDebt;
453+
// This is a temporary workaround for integrations that are broken by Aave 3.2
454+
// While the new pool data provider is backward compatible, some integrations hard-code an old implementation
455+
// 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
456+
res.stableDebtTokenAddress = ADDRESSES_PROVIDER.getAddress(bytes32('MOCK_STABLE_DEBT'));
453457
return res;
454458
}
455459

0 commit comments

Comments
 (0)