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 1 commit
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
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 unlock the funds, the pool address provider is setting a stable debt token, so balanceOf() and totalSupply() will return zero instead of reverting
res.stableDebtTokenAddress = ADDRESSES_PROVIDER.getAddress(bytes32('MOCK_STABLE_DEBT'));
return res;
}

Expand Down
Loading