Skip to content

Commit

Permalink
fix: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Jan 19, 2024
1 parent 87121b9 commit fd6aa81
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/aave-helpers
Submodule aave-helpers updated 43 files
+1 −0 .assets/005b16eaa54199269ae451836387895a28c5d76e.svg
+1 −0 .assets/08d9252b4f8f8c9e59638a9a35a34e736f126166.svg
+0 −1 .assets/3bff92d2cfac98105fbeed24302d9d3577cb1325.svg
+1 −0 .assets/463b4c710a9b305cac1e136801dfbb5d2264a078.svg
+1 −0 .assets/5f02ea67e5ba53eee2797379ac1cd619db8b194e.svg
+0 −1 .assets/66aa72f6fe3716b9b6a43abb25a455671672849e.svg
+0 −1 .assets/6f34858c4ab5446d26b260c353dc36aa73d94358.svg
+1 −0 .assets/8062d95ddc9e1bec6e4a6b53fca46e335385d902.svg
+0 −1 .assets/9ed0ac5bda0d6aea5b627325dd757aab5a706122.svg
+1 −0 .assets/a9946a5d9adc46c59f833ceafb1d7a117d8d5e26.svg
+1 −0 .assets/cf503516adca0ef2b3e859f702e54d27d132edf2.svg
+0 −1 .assets/d89ecf5f1ccbeb07b104da02d99f5a5862da4efa.svg
+1 −0 .assets/ee0b6581b78f686087dd5f50440a7a76f4dd607d.svg
+1 −0 .assets/f75716c7eaa3c871931fca294b19538f6ade058c.svg
+5 −0 .env.example
+10 −2 Makefile
+4 −4 diffs/preTestEngineOptV3_postTestEngineOptV3.md
+4 −4 diffs/preTestEngineRates_postTestEngineRates.md
+4 −0 foundry.toml
+1 −1 lib/aave-address-book
+1 −1 lib/forge-std
+176 −96 reports/default_after.json
+1,308 −1 reports/default_before.json
+79 −79 reports/postTestEngineOptV3.json
+76 −76 reports/postTestEngineRates.json
+76 −76 reports/preTestEngineOptV3.json
+76 −76 reports/preTestEngineRates.json
+1,508 −1 reports/preTestV2RatesUpdates.json
+82 −1 scripts/AaveV3ConfigEngine.s.sol
+14 −0 scripts/FreezingStewards.s.sol
+23 −0 scripts/RiskStewards.s.sol
+38 −0 scripts/V3RateStrategyFactory.s.sol
+3 −0 src/ChainIds.sol
+61 −5 src/GovV3Helpers.sol
+8 −0 src/ScriptUtils.sol
+15 −0 src/v3-config-engine/AaveV3PayloadPolygonZkEvm.sol
+15 −0 src/v3-config-engine/AaveV3PayloadScroll.sol
+0 −82 tests/GovTest.t.sol
+0 −71 tests/GovV2_5.t.sol
+14 −8 tests/GovV3Test.t.sol
+6 −5 tests/swaps/DepositV3SwapPayloadTest.t.sol
+1 −1 tests/v3-config-engine/AaveV3ConfigEngineTest.t.sol
+2 −2 tests/v3-config-engine/V3RateStrategyFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract AaveV3Ethereum_GhoIncidentReport_20231113_Test is ProtocolV3TestBase {
function test_defaultProposalExecution() public {
// increase GHO borrow cap so test borrows can succeed
vm.prank(AaveV3Ethereum.CAPS_PLUS_RISK_STEWARD);
AaveV3Ethereum.POOL_CONFIGURATOR.setBorrowCap(AaveV3Ethereum.GHO_TOKEN, 36_000_000);
AaveV3Ethereum.POOL_CONFIGURATOR.setBorrowCap(AaveV3EthereumAssets.GHO_UNDERLYING, 36_000_000);
defaultTest(
'AaveV3Ethereum_GhoIncidentReport_20231113',
AaveV3Ethereum.POOL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.8.0;

import {IProposalGenericExecutor} from 'aave-helpers/interfaces/IProposalGenericExecutor.sol';
import {AaveV3Ethereum, AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {IERC20} from 'solidity-utils/contracts/oz-common/interfaces/IERC20.sol';
import {SafeERC20} from 'solidity-utils/contracts/oz-common/SafeERC20.sol';

Expand Down Expand Up @@ -75,12 +76,12 @@ contract Gho_GHOStabilityModule_20240119 is IProposalGenericExecutor {

function execute() external {
// 1. Enroll GSMs as GHO Facilitators
IGhoToken(AaveV3Ethereum.GHO_TOKEN).addFacilitator(
IGhoToken(MiscEthereum.GHO_TOKEN).addFacilitator(
GSM_USDC,
GSM_USDC_FACILITATOR_LABEL,
GSM_USDC_BUCKET_CAPACITY
);
IGhoToken(AaveV3Ethereum.GHO_TOKEN).addFacilitator(
IGhoToken(MiscEthereum.GHO_TOKEN).addFacilitator(
GSM_USDT,
GSM_USDT_FACILITATOR_LABEL,
GSM_USDT_BUCKET_CAPACITY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.8.0;

import 'forge-std/Test.sol';
import {AaveV3EthereumAssets, AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {ProtocolV3TestBase} from 'aave-helpers/ProtocolV3TestBase.sol';
import {IPoolConfigurator} from 'aave-address-book/AaveV3.sol';
import {Gho_GHOStabilityModule_20240119} from './Gho_GHOStabilityModule_20240119.sol';
Expand Down Expand Up @@ -62,24 +63,24 @@ contract Gho_GHOStabilityModule_20240119_Test is ProtocolV3TestBase {
}

function test_checkConfig() public {
uint256 facilitatorListLengthBefore = IGhoToken(AaveV3Ethereum.GHO_TOKEN)
uint256 facilitatorListLengthBefore = IGhoToken(MiscEthereum.GHO_TOKEN)
.getFacilitatorsList()
.length;

executePayload(vm, address(proposal));

assertTrue(
IGhoToken(AaveV3Ethereum.GHO_TOKEN).getFacilitatorsList().length ==
IGhoToken(MiscEthereum.GHO_TOKEN).getFacilitatorsList().length ==
facilitatorListLengthBefore + 2
);
IGhoToken.Facilitator memory gsmUsdc = IGhoToken(AaveV3Ethereum.GHO_TOKEN).getFacilitator(
IGhoToken.Facilitator memory gsmUsdc = IGhoToken(MiscEthereum.GHO_TOKEN).getFacilitator(
proposal.GSM_USDC()
);
assertEq(gsmUsdc.label, proposal.GSM_USDC_FACILITATOR_LABEL());
assertEq(gsmUsdc.bucketCapacity, proposal.GSM_USDC_BUCKET_CAPACITY());
assertEq(gsmUsdc.bucketLevel, 0);

IGhoToken.Facilitator memory gsmUsdt = IGhoToken(AaveV3Ethereum.GHO_TOKEN).getFacilitator(
IGhoToken.Facilitator memory gsmUsdt = IGhoToken(MiscEthereum.GHO_TOKEN).getFacilitator(
proposal.GSM_USDT()
);
assertEq(gsmUsdt.label, proposal.GSM_USDT_FACILITATOR_LABEL());
Expand Down

0 comments on commit fd6aa81

Please sign in to comment.