bgd-labs / aave-proposals-v3

MIT License
24 stars 26 forks source link

feat: ezETH listing on lido #495

Closed brotherlymite closed 1 month ago

brotherlymite commented 1 month ago
github-actions[bot] commented 1 month ago

Foundry report

forge 0.2.0 (2044fae 2024-10-22T00:20:49.646808683Z)
Build log ```shell Compiling 241 files with Solc 0.8.20 Solc 0.8.20 finished in 84.16s Compiler run successful with warnings: Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning. --> lib/aave-helpers/src/swaps/AaveSwapper.sol:146:5: | 146 | address erc20Token | ^^^^^^^^^^^^^^^^^^ Warning (2018): Function state mutability can be restricted to pure --> lib/aave-helpers/src/swaps/AaveSwapper.sol:145:3: | 145 | function maxRescue( | ^ (Relevant source part starts here and spans across multiple lines). Warning (2018): Function state mutability can be restricted to pure --> lib/aave-helpers/src/ProtocolV2TestBase.sol:663:3: | 663 | function _logReserveConfig(ReserveConfig memory config) internal view { | ^ (Relevant source part starts here and spans across multiple lines). | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) | |---------------------------------------------------------------------|------------------|-------------------|--------------------|---------------------| | AaveGovernanceV2 | 44 | 94 | 24,532 | 49,058 | | AaveSwapper | 5,555 | 5,992 | 19,021 | 43,160 | | AaveV2Avalanche | 44 | 94 | 24,532 | 49,058 | | AaveV2AvalancheAssets | 44 | 94 | 24,532 | 49,058 | | AaveV2Avalanche_ReserveFactorUpdatesMidOctober_20241004 | 988 | 1,017 | 23,588 | 48,135 | | AaveV2Avalanche_UpdateLegacyGuardian_20241016 | 348 | 486 | 24,228 | 48,666 | | AaveV2Ethereum | 44 | 94 | 24,532 | 49,058 | | AaveV2EthereumAMM | 44 | 94 | 24,532 | 49,058 | | AaveV2EthereumAMMAssets | 44 | 94 | 24,532 | 49,058 | | AaveV2EthereumAMM_UpdateLegacyGuardian_20241016 | 348 | 486 | 24,228 | 48,666 | | AaveV2EthereumAssets | 44 | 94 | 24,532 | 49,058 | | AaveV2Ethereum_ReserveFactorUpdatesMidOctober_20241004 | 988 | 1,017 | 23,588 | 48,135 | | AaveV2Ethereum_UpdateLegacyGuardian_20241016 | 348 | 486 | 24,228 | 48,666 | | AaveV2Polygon | 44 | 94 | 24,532 | 49,058 | | AaveV2PolygonAssets | 44 | 94 | 24,532 | 49,058 | | AaveV2Polygon_ReserveFactorUpdatesMidOctober_20241004 | 2,384 | 2,454 | 22,192 | 46,698 | | AaveV2Polygon_UpdateLegacyGuardian_20241016 | 348 | 486 | 24,228 | 48,666 | | AaveV3Arbitrum | 44 | 94 | 24,532 | 49,058 | | AaveV3ArbitrumAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3ArbitrumEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3ArbitrumExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Arbitrum_ReserveFactorUpdatesMidOctober_20241004 | 3,227 | 3,297 | 21,349 | 45,855 | | AaveV3Arbitrum_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Avalanche | 44 | 94 | 24,532 | 49,058 | | AaveV3AvalancheAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3AvalancheEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3AvalancheExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Avalanche_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3BNB | 44 | 94 | 24,532 | 49,058 | | AaveV3BNBAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3BNBEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3BNBExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3BNB_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Base | 44 | 94 | 24,532 | 49,058 | | AaveV3BaseAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3BaseEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3BaseExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Base_IncreaseCbBTCSupplyCaps_20241004 | 3,146 | 3,216 | 21,430 | 45,936 | | AaveV3Base_ReserveFactorUpdatesMidOctober_20241004 | 3,223 | 3,293 | 21,353 | 45,859 | | AaveV3Base_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Ethereum | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumLido | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumLidoAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumLidoEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumLidoExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021 | 6,194 | 6,265 | 18,382 | 42,887 | | AaveV3EthereumLido_WstETHSlope1UoptimalUpdate_20241001 | 3,250 | 3,320 | 21,326 | 45,832 | | AaveV3Ethereum_AaveCertoraContinuousSecurityServices_20241014 | 1,567 | 1,596 | 23,009 | 47,556 | | AaveV3Ethereum_ChaosLabsAaveRiskManagementServiceRenewal_20241012 | 1,255 | 1,284 | 23,321 | 47,868 | | AaveV3Ethereum_IncreaseCbBTCSupplyCaps_20241004 | 3,150 | 3,220 | 21,426 | 45,932 | | AaveV3Ethereum_IncreaseUSDSBorrowRateToMatchSkySavingsRate_20241016 | 3,239 | 3,309 | 21,337 | 45,843 | | AaveV3Ethereum_RenewLlamaRiskAsRiskServiceProvider_20241013 | 1,068 | 1,097 | 23,508 | 48,055 | | AaveV3Ethereum_UpdateLegacyGuardian_20241016 | 1,062 | 1,433 | 23,514 | 47,719 | | AaveV3Gnosis | 44 | 94 | 24,532 | 49,058 | | AaveV3GnosisAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3GnosisEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3GnosisExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Gnosis_ReserveFactorUpdatesMidOctober_20241004 | 3,225 | 3,295 | 21,351 | 45,857 | | AaveV3Gnosis_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Metis | 44 | 94 | 24,532 | 49,058 | | AaveV3MetisAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3MetisEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3MetisExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Metis_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Optimism | 44 | 94 | 24,532 | 49,058 | | AaveV3OptimismAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3OptimismEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3OptimismExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Optimism_ReserveFactorUpdatesMidOctober_20241004 | 3,227 | 3,297 | 21,349 | 45,855 | | AaveV3Optimism_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Polygon | 44 | 94 | 24,532 | 49,058 | | AaveV3PolygonAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3PolygonEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3PolygonExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Polygon_ReserveFactorUpdatesMidOctober_20241004 | 3,226 | 3,296 | 21,350 | 45,856 | | AaveV3Polygon_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | AaveV3Scroll | 44 | 94 | 24,532 | 49,058 | | AaveV3ScrollAssets | 44 | 94 | 24,532 | 49,058 | | AaveV3ScrollEModes | 44 | 94 | 24,532 | 49,058 | | AaveV3ScrollExternalLibraries | 44 | 94 | 24,532 | 49,058 | | AaveV3Scroll_UpdateLegacyGuardian_20241016 | 1,062 | 1,413 | 23,514 | 47,739 | | Address | 44 | 94 | 24,532 | 49,058 | | ChainHelpers | 44 | 94 | 24,532 | 49,058 | | ChainIds | 44 | 94 | 24,532 | 49,058 | | CollectorUtils | 44 | 94 | 24,532 | 49,058 | | ConfiguratorInputTypes | 44 | 94 | 24,532 | 49,058 | | Create2Utils | 121 | 172 | 24,455 | 48,980 | | Create2UtilsZkSync | 104 | 155 | 24,472 | 48,997 | | DataTypes | 44 | 94 | 24,532 | 49,058 | | EngineFlags | 44 | 94 | 24,532 | 49,058 | | Errors | 4,652 | 4,705 | 19,924 | 44,447 | | GovV3Helpers | 2,517 | 2,570 | 22,059 | 46,582 | | GovV3StorageHelpers | 44 | 94 | 24,532 | 49,058 | | GovernanceGuardians | 292 | 345 | 24,284 | 48,807 | | GovernanceV3Arbitrum | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Avalanche | 44 | 94 | 24,532 | 49,058 | | GovernanceV3BNB | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Base | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Ethereum | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Gnosis | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Metis | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Optimism | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Polygon | 44 | 94 | 24,532 | 49,058 | | GovernanceV3PolygonZkEvm | 44 | 94 | 24,532 | 49,058 | | GovernanceV3Scroll | 44 | 94 | 24,532 | 49,058 | | GovernanceV3ZkSync | 44 | 94 | 24,532 | 49,058 | | IpfsUtils | 44 | 94 | 24,532 | 49,058 | | MiscArbitrum | 44 | 94 | 24,532 | 49,058 | | MiscAvalanche | 44 | 94 | 24,532 | 49,058 | | MiscBNB | 44 | 94 | 24,532 | 49,058 | | MiscBase | 44 | 94 | 24,532 | 49,058 | | MiscEthereum | 44 | 94 | 24,532 | 49,058 | | MiscGnosis | 44 | 94 | 24,532 | 49,058 | | MiscMetis | 44 | 94 | 24,532 | 49,058 | | MiscOptimism | 44 | 94 | 24,532 | 49,058 | | MiscPolygon | 44 | 94 | 24,532 | 49,058 | | MiscScroll | 44 | 94 | 24,532 | 49,058 | | Payloads | 44 | 94 | 24,532 | 49,058 | | PayloadsControllerUtils | 44 | 94 | 24,532 | 49,058 | | ProtocolGuardians | 292 | 345 | 24,284 | 48,807 | | ProxyHelpers | 44 | 94 | 24,532 | 49,058 | | RenewalV2BasePayload | 348 | 595 | 24,228 | 48,557 | | RenewalV3BasePayload | 1,062 | 1,509 | 23,514 | 47,643 | | ReserveConfiguration | 128 | 179 | 24,448 | 48,973 | | RewardsDataTypes | 44 | 94 | 24,532 | 49,058 | | SafeERC20 | 44 | 94 | 24,532 | 49,058 | | StorageHelpers | 44 | 94 | 24,532 | 49,058 | | TestNetChainIds | 44 | 94 | 24,532 | 49,058 | | WadRayMath | 44 | 94 | 24,532 | 49,058 | ```
Test success :rainbow: ```shell No files changed, compilation skipped 2024-10-22T11:21:19.956205Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.4", "diff-snapshots", "./reports/AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021_before.json", "./reports/AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021_after.json", "-o", "./diffs/AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021_before_AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/aave-cli@1.1.4 " Ran 6 tests for src/20241021_AaveV3EthereumLido_OnboardEzETHToLidoInstance/AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021.t.sol:AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021_Test [PASS] test_collectorHasezETHFunds() (gas: 3184259) [PASS] test_defaultProposalExecution() (gas: 12498238) Logs: 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0xdC035D45d973E3EC169d2276DDab16f1e407384F 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110 E2E: Collateral wstETH, TestAsset wstETH SUPPLY: wstETH, Amount: 31921972659385597800 SUPPLY: wstETH, Amount: 319219726593855978 WITHDRAW: wstETH, Amount: 159609863296927989 WITHDRAW: wstETH, Amount: 159609863296927988 BORROW: wstETH, Amount 319219726593855978 REPAY: wstETH, Amount: 319219726593855978 E2E: Collateral wstETH, TestAsset WETH SUPPLY: wstETH, Amount: 31921972659385597800 SUPPLY: WETH, Amount: 377474190737193078 WITHDRAW: WETH, Amount: 188737095368596539 WITHDRAW: WETH, Amount: 188737095368596540 BORROW: WETH, Amount 377474190737193078 REPAY: WETH, Amount: 377474190737193078 E2E: Collateral wstETH, TestAsset USDS SUPPLY: wstETH, Amount: 31921972659385597800 SUPPLY: USDS, Amount: 1000253744369871749065 WITHDRAW: USDS, Amount: 500126872184935874532 WITHDRAW: USDS, Amount: 500126872184935874532 BORROW: USDS, Amount 1000253744369871749065 REPAY: USDS, Amount: 1000253744369871749065 E2E: Collateral wstETH, TestAsset USDC SUPPLY: wstETH, Amount: 31921972659385597800 SUPPLY: USDC, Amount: 1000209814 WITHDRAW: USDC, Amount: 500104907 WITHDRAW: USDC, Amount: 500104907 BORROW: USDC, Amount 1000209814 REPAY: USDC, Amount: 1000209814 E2E: Collateral wstETH, TestAsset ezETH SUPPLY: wstETH, Amount: 31921972659385597800 SUPPLY: ezETH, Amount: 368329987665251632 WITHDRAW: ezETH, Amount: 184164993832625816 WITHDRAW: ezETH, Amount: 184164993832625816 [PASS] test_ezETHAdmin() (gas: 3184016) [PASS] test_ezETH_USDS_emode() (gas: 4026293) [PASS] test_ezETH_wstETH_emode() (gas: 4101840) [PASS] test_wstETH_removalFromBorroableOnEmodeOne() (gas: 3767740) Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 13.84s (13.82s CPU time) Ran 1 test suite in 13.84s (13.84s CPU time): 6 tests passed, 0 failed, 0 skipped (6 total tests) ```