@@ -108,7 +108,9 @@ contract UpgradePayloadMainnet is UpgradePayload {
108108 // of the previous facilitator (the GHO AToken).
109109 (uint256 capacityFromOldFacilitator , uint256 levelFromOldFacilitator ) =
110110 IGhoToken (AaveV3EthereumAssets.GHO_UNDERLYING).getFacilitatorBucket (AaveV3EthereumAssets.GHO_A_TOKEN);
111- IGhoToken (AaveV3EthereumAssets.GHO_UNDERLYING).addFacilitator (FACILITATOR, "CoreGhoDirectMinter " , uint128 (capacityFromOldFacilitator));
111+ IGhoToken (AaveV3EthereumAssets.GHO_UNDERLYING).addFacilitator (
112+ FACILITATOR, "CoreGhoDirectMinter " , uint128 (capacityFromOldFacilitator)
113+ );
112114
113115 // The `levelFromOldFacilitator` represents the GHO principal the old GHO AToken facilitator minted.
114116 // Any GHO held directly by the GHO_A_TOKEN contract needs to be swept to the treasury.
@@ -174,6 +176,11 @@ contract UpgradePayloadMainnet is UpgradePayload {
174176 IDelegationAwareAToken (AaveV3EthereumAssets.UNI_A_TOKEN).delegateUnderlyingTo (address (0 ));
175177 }
176178
179+ // TODO: Before doing the upgrade we will also clean up the existing deficit.
180+ // This code is not yet implemented as the exact execution depends on the state of the protocol at execution time.
181+ // If umbrella is live by then, the proposal will cover the deficit via umbrella.
182+ // If not, we will give the umbrella role to the executor and clear the deficit from here.
183+
177184 // 12. Execute the default v3.4 upgrade steps (updates Pool to `PoolInstanceWithCustomInitialize`, PoolDataProvider,
178185 // and standard AToken/VariableDebtToken implementations).
179186 // Inside `PoolInstanceWithCustomInitialize.initialize()`:
@@ -235,7 +242,7 @@ contract UpgradePayloadMainnet is UpgradePayload {
235242 vaults[0 ] = FACILITATOR;
236243 IGhoBucketSteward (GhoEthereum.GHO_BUCKET_STEWARD).setControlledFacilitator (vaults, true );
237244 vaults[0 ] = AaveV3EthereumAssets.GHO_A_TOKEN;
238- IGhoBucketSteward (GhoEthereum.GHO_BUCKET_STEWARD).setControlledFacilitator ( vaults, false );
245+ IGhoBucketSteward (GhoEthereum.GHO_BUCKET_STEWARD).setControlledFacilitator (vaults, false );
239246 }
240247
241248 function _needToUpdateReserve (address reserve ) internal view virtual override returns (bool ) {
@@ -245,4 +252,4 @@ contract UpgradePayloadMainnet is UpgradePayload {
245252 }
246253 return true ;
247254 }
248- }
255+ }
0 commit comments