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

fix: updated aave helpers with diff serialization cleanup #407

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

sendra
Copy link
Contributor

@sendra sendra commented Jul 30, 2024

No description provided.

Copy link

github-actions bot commented Jul 30, 2024

Foundry report

forge 0.2.0 (fdfaafd 2024-07-30T00:19:45.054521589Z)
Build log
Compiling 148 files with Solc 0.8.19
Solc 0.8.19 finished in 23.50s
Compiler run successful with warnings:
Warning (2072): Unused local variable.
  --> src/20240603_Multi_MayFundingUpdate/AaveV3Arbitrum_MayFundingUpdate_20240603.t.sol:48:5:
   |
48 |     uint256 collectorUsdcBalanceBefore = IERC20(AaveV3ArbitrumAssets.USDC_UNDERLYING).balanceOf(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> src/20240603_Multi_MayFundingUpdate/AaveV3Arbitrum_MayFundingUpdate_20240603.t.sol:51:5:
   |
51 |     uint256 collectorAusdcBalanceBefore = IERC20(AaveV3ArbitrumAssets.USDC_A_TOKEN).balanceOf(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> src/20240603_Multi_MayFundingUpdate/AaveV3Optimism_MayFundingUpdate_20240603.t.sol:41:5:
   |
41 |     uint256 collectorUsdcBalanceBefore = IERC20(AaveV3OptimismAssets.USDC_UNDERLYING).balanceOf(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> src/20240603_Multi_MayFundingUpdate/AaveV3Optimism_MayFundingUpdate_20240603.t.sol:44:5:
   |
44 |     uint256 collectorAusdcBalanceBefore = IERC20(AaveV3OptimismAssets.USDC_A_TOKEN).balanceOf(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2018): Function state mutability can be restricted to pure
   --> lib/aave-helpers/src/ProtocolV3TestBase.sol:354:3:
    |
354 |   function _logReserveConfig(ReserveConfig memory config) internal view {
    |   ^ (Relevant source part starts here and spans across multiple lines).

| Contract                                                   | Size (B) | Margin (B) |
|------------------------------------------------------------|----------|------------|
| AaveGovernanceV2                                           |       45 |     24,531 |
| AaveSwapper                                                |    5,572 |     19,004 |
| AaveV2Ethereum                                             |       45 |     24,531 |
| AaveV2EthereumAssets                                       |       45 |     24,531 |
| AaveV2Polygon                                              |       45 |     24,531 |
| AaveV2PolygonAssets                                        |       45 |     24,531 |
| AaveV3Arbitrum                                             |       45 |     24,531 |
| AaveV3ArbitrumAssets                                       |       45 |     24,531 |
| AaveV3ArbitrumEModes                                       |       45 |     24,531 |
| AaveV3Arbitrum_MayFundingUpdate_20240603                   |    1,271 |     23,305 |
| AaveV3Avalanche                                            |       45 |     24,531 |
| AaveV3AvalancheAssets                                      |       45 |     24,531 |
| AaveV3AvalancheEModes                                      |       45 |     24,531 |
| AaveV3Base                                                 |       45 |     24,531 |
| AaveV3BaseAssets                                           |       45 |     24,531 |
| AaveV3BaseEModes                                           |       45 |     24,531 |
| AaveV3Ethereum                                             |       45 |     24,531 |
| AaveV3EthereumAssets                                       |       45 |     24,531 |
| AaveV3EthereumEModes                                       |       45 |     24,531 |
| AaveV3EthereumLido                                         |       45 |     24,531 |
| AaveV3EthereumLidoAssets                                   |       45 |     24,531 |
| AaveV3EthereumLidoEModes                                   |       45 |     24,531 |
| AaveV3EthereumLido_LidoEthereumInstanceActivation_20240720 |    6,780 |     17,796 |
| AaveV3Ethereum_EventsGrant2024_20240718                    |      344 |     24,232 |
| AaveV3Ethereum_MayFundingUpdate_20240603                   |    9,444 |     15,132 |
| AaveV3Ethereum_ToolingUpdateAllowance_20240707             |      344 |     24,232 |
| AaveV3Gnosis                                               |       45 |     24,531 |
| AaveV3GnosisAssets                                         |       45 |     24,531 |
| AaveV3GnosisEModes                                         |       45 |     24,531 |
| AaveV3Optimism                                             |       45 |     24,531 |
| AaveV3OptimismAssets                                       |       45 |     24,531 |
| AaveV3OptimismEModes                                       |       45 |     24,531 |
| AaveV3Optimism_MayFundingUpdate_20240603                   |    1,207 |     23,369 |
| AaveV3Polygon                                              |       45 |     24,531 |
| AaveV3PolygonAssets                                        |       45 |     24,531 |
| AaveV3PolygonEModes                                        |       45 |     24,531 |
| AaveV3Polygon_MayFundingUpdate_20240603                    |    4,900 |     19,676 |
| Address                                                    |       45 |     24,531 |
| ChainHelpers                                               |       45 |     24,531 |
| ChainIds                                                   |       45 |     24,531 |
| ConfiguratorInputTypes                                     |       45 |     24,531 |
| Create2Utils                                               |      123 |     24,453 |
| DataTypes                                                  |       45 |     24,531 |
| EngineFlags                                                |       45 |     24,531 |
| Errors                                                     |    4,673 |     19,903 |
| GatewayMock                                                |      251 |     24,325 |
| GovV3Helpers                                               |    2,581 |     21,995 |
| GovV3StorageHelpers                                        |       45 |     24,531 |
| GovernanceV3Arbitrum                                       |       45 |     24,531 |
| GovernanceV3Avalanche                                      |       45 |     24,531 |
| GovernanceV3BNB                                            |       45 |     24,531 |
| GovernanceV3Base                                           |       45 |     24,531 |
| GovernanceV3Ethereum                                       |       45 |     24,531 |
| GovernanceV3Gnosis                                         |       45 |     24,531 |
| GovernanceV3Metis                                          |       45 |     24,531 |
| GovernanceV3Optimism                                       |       45 |     24,531 |
| GovernanceV3Polygon                                        |       45 |     24,531 |
| GovernanceV3PolygonZkEvm                                   |       45 |     24,531 |
| GovernanceV3Scroll                                         |       45 |     24,531 |
| IpfsUtils                                                  |       45 |     24,531 |
| MiscEthereum                                               |       45 |     24,531 |
| MiscPolygon                                                |       45 |     24,531 |
| PayloadsControllerUtils                                    |       45 |     24,531 |
| ProxyHelpers                                               |       45 |     24,531 |
| ReserveConfiguration                                       |      130 |     24,446 |
| RewardsDataTypes                                           |       45 |     24,531 |
| SafeERC20                                                  |       45 |     24,531 |
| StorageHelpers                                             |       45 |     24,531 |
| TestNetChainIds                                            |       45 |     24,531 |
| WadRayMath                                                 |       45 |     24,531 |
Test success 🌈

@sendra sendra merged commit 5c71113 into main Jul 30, 2024
4 checks passed
@sendra sendra deleted the fix/update-aave-helpers-diff-serialization-cleanup branch July 30, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants