Skip to content

Commit

Permalink
feat: v3.2 pdp (protocol data provider) upgrade (aave-dao#64)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto Boado <[email protected]>
  • Loading branch information
sakulstra and eboadom authored Oct 22, 2024
1 parent 18c4992 commit 077c99e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 077c99e

Please sign in to comment.