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

May funding update #370

Merged
merged 29 commits into from
Jul 27, 2024
Merged

May funding update #370

merged 29 commits into from
Jul 27, 2024

Conversation

defijesus
Copy link
Contributor

No description provided.

@defijesus defijesus changed the title May funding update wip: May funding update Jul 2, 2024
@defijesus defijesus changed the title wip: May funding update DRAFT: May funding update Jul 2, 2024
@defijesus defijesus changed the title DRAFT: May funding update May funding update Jul 12, 2024
Copy link

Foundry report

forge 0.2.0 (9444c62 2024-07-26T00:20:35.095786516Z)
Build log
Compiling 147 files with Solc 0.8.19
Solc 0.8.19 finished in 21.29s
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 |
| AaveV2Avalanche                                            |       45 |     24,531 |
| AaveV2AvalancheAssets                                      |       45 |     24,531 |
| AaveV2Ethereum                                             |       45 |     24,531 |
| AaveV2EthereumAMM                                          |       45 |     24,531 |
| AaveV2EthereumAMMAssets                                    |       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_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 error :finnadie:
No files changed, compilation skipped
2024-07-26T18:33:27.668864Z ERROR sharedbackend: Failed to send/recv `basic` err=failed to get account for 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f: server returned an error response: error code -32000: missing trie node aebdde9d67638d271824cfcb6123b97e0887fe077a186305e5b689ef6adad1d1 (path ) state 0xaebdde9d67638d271824cfcb6123b97e0887fe077a186305e5b689ef6adad1d1 is not available, not found address=0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
2024-07-26T18:33:27.668891Z ERROR sharedbackend: It looks like you're trying to fork from an older block with a non-archive node which is not supported. Please try to change your RPC url to an archive node if the issue persists.

Ran 1 test for src/20240603_Multi_MayFundingUpdate/AaveV3Arbitrum_MayFundingUpdate_20240603.t.sol:AaveV3Arbitrum_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 101.05ms (0.00ns CPU time)

Ran 1 test suite in 102.64ms (101.05ms CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests)

Failing tests:
Encountered 1 failing test in src/20240603_Multi_MayFundingUpdate/AaveV3Arbitrum_MayFundingUpdate_20240603.t.sol:AaveV3Arbitrum_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded
No files changed, compilation skipped
2024-07-26T18:33:36.059251Z ERROR sharedbackend: Failed to send/recv `storage` err=failed to get storage for 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 at 112176772088651910294630749464583946107106578018870260513462156430271595372811: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 index=112176772088651910294630749464583946107106578018870260513462156430271595372811
2024-07-26T18:33:36.060898Z ERROR sharedbackend: Failed to send/recv `storage` err=failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 index=32854318927136777544959983747599561017152577896627961855126644485008393568223
2024-07-26T18:33:36.060912Z ERROR sharedbackend: Failed to send/recv `storage` err=failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 index=32854318927136777544959983747599561017152577896627961855126644485008393568223
2024-07-26T18:33:36.060922Z ERROR sharedbackend: Failed to send/recv `storage` err=failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 index=32854318927136777544959983747599561017152577896627961855126644485008393568223
2024-07-26T18:33:36.076882Z ERROR sharedbackend: Failed to send/recv `storage` err=failed to get storage for 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 at 112225801447630911021174354684661177440979189781136739879716453091386613243584: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 index=112225801447630911021174354684661177440979189781136739879716453091386613243584
2024-07-26T18:33:47.223764Z ERROR sharedbackend: Failed to send/recv `basic` err=failed to get account for 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5: Max retries exceeded HTTP error 429 with body: error code: 1015 address=0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5

Ran 6 tests for src/20240603_Multi_MayFundingUpdate/AaveV3Ethereum_MayFundingUpdate_20240603.t.sol:AaveV3Ethereum_MayFundingUpdate_20240603_Test
[FAIL. Reason: backend: failed while inspecting] test_defaultProposalExecution() (gas: 0)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_depositLink() (gas: 59846)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_swapEvents() (gas: 71672)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_unwrapLsts() (gas: 43024)
[FAIL. Reason: backend: failed while inspecting] test_wethMigration() (gas: 0)
[FAIL. Reason: backend: failed while inspecting] test_withdrawAndSwapForGho() (gas: 0)
Suite result: FAILED. 0 passed; 6 failed; 0 skipped; finished in 18.68s (38.79s CPU time)

Ran 1 test suite in 18.68s (18.68s CPU time): 0 tests passed, 6 failed, 0 skipped (6 total tests)

Failing tests:
Encountered 6 failing tests in src/20240603_Multi_MayFundingUpdate/AaveV3Ethereum_MayFundingUpdate_20240603.t.sol:AaveV3Ethereum_MayFundingUpdate_20240603_Test
[FAIL. Reason: backend: failed while inspecting] test_defaultProposalExecution() (gas: 0)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_depositLink() (gas: 59846)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_swapEvents() (gas: 71672)
[FAIL. Reason: failed to get storage for 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 at 32854318927136777544959983747599561017152577896627961855126644485008393568223: Max retries exceeded HTTP error 429 with body: error code: 1015] test_unwrapLsts() (gas: 43024)
[FAIL. Reason: backend: failed while inspecting] test_wethMigration() (gas: 0)
[FAIL. Reason: backend: failed while inspecting] test_withdrawAndSwapForGho() (gas: 0)

Encountered a total of 6 failing tests, 0 tests succeeded
No files changed, compilation skipped
2024-07-26T18:33:50.604958Z ERROR sharedbackend: Failed to send/recv `basic` err=failed to get account for 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f: server returned an error response: error code -32000: missing trie node e1c53efc8c6ff6b31be567ed7e5272046e9dc12bcb147853c658bc126a7d99ed (path ) state 0xe1c53efc8c6ff6b31be567ed7e5272046e9dc12bcb147853c658bc126a7d99ed is not available, not found address=0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
2024-07-26T18:33:50.604986Z ERROR sharedbackend: It looks like you're trying to fork from an older block with a non-archive node which is not supported. Please try to change your RPC url to an archive node if the issue persists.

Ran 1 test for src/20240603_Multi_MayFundingUpdate/AaveV3Optimism_MayFundingUpdate_20240603.t.sol:AaveV3Optimism_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 2.54s (0.00ns CPU time)

Ran 1 test suite in 2.54s (2.54s CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests)

Failing tests:
Encountered 1 failing test in src/20240603_Multi_MayFundingUpdate/AaveV3Optimism_MayFundingUpdate_20240603.t.sol:AaveV3Optimism_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded
No files changed, compilation skipped
2024-07-26T18:33:51.515384Z ERROR sharedbackend: Failed to send/recv `basic` err=failed to get account for 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f: server returned an error response: error code -32000: missing trie node 1a0c7f6355f4722c70a62811f5b3f50b36ad66ea6d779627a3618fb8cda38259 (path ) state 0x1a0c7f6355f4722c70a62811f5b3f50b36ad66ea6d779627a3618fb8cda38259 is not available, not found address=0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
2024-07-26T18:33:51.515421Z ERROR sharedbackend: It looks like you're trying to fork from an older block with a non-archive node which is not supported. Please try to change your RPC url to an archive node if the issue persists.

Ran 1 test for src/20240603_Multi_MayFundingUpdate/AaveV3Polygon_MayFundingUpdate_20240603.t.sol:AaveV3Polygon_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 87.73ms (0.00ns CPU time)

Ran 1 test suite in 89.05ms (87.73ms CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests)

Failing tests:
Encountered 1 failing test in src/20240603_Multi_MayFundingUpdate/AaveV3Polygon_MayFundingUpdate_20240603.t.sol:AaveV3Polygon_MayFundingUpdate_20240603_Test
[FAIL. Reason: setup failed: backend: failed while inspecting] setUp() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded
No files changed, compilation skipped

Ran 1 test for src/20240707_AaveV3Ethereum_ToolingUpdateAllowance/AaveV3Ethereum_ToolingUpdateAllowance_20240707.t.sol:AaveV3Ethereum_ToolingUpdateAllowance_20240707_Test
[PASS] test_defaultProposalExecution() (gas: 123056)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 43.64ms (1.13ms CPU time)

Ran 1 test suite in 45.70ms (43.64ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)
No files changed, compilation skipped

Ran 8 tests for src/20240720_AaveV3EthereumLido_LidoEthereumInstanceActivation/AaveV3EthereumLido_LidoEthereumInstanceActivation_20240720.t.sol:AaveV3EthereumLido_LidoEthereumInstanceActivation_20240720_Test
[PASS] test_collectorHasWETHFunds() (gas: 5744360)
[PASS] test_collectorHaswstETHFunds() (gas: 5744406)
[PASS] test_defaultProposalExecution() (gas: 8395606)
Logs:
  0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
  0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
  E2E: Collateral wstETH, TestAsset wstETH
  SUPPLY: wstETH, Amount: 24438747489767749446
  SUPPLY: wstETH, Amount: 244387474897677494
  WITHDRAW: wstETH, Amount: 122193737448838747
  WITHDRAW: wstETH, Amount: 122193737448838747
  BORROW: wstETH, Amount 244387474897677494, Stable: false
  REPAY: wstETH, Amount: 244387474897677494
  E2E: Collateral wstETH, TestAsset WETH
  SUPPLY: wstETH, Amount: 24438747489767749446
  SUPPLY: WETH, Amount: 286716194895701623
  WITHDRAW: WETH, Amount: 143358097447850811
  WITHDRAW: WETH, Amount: 143358097447850812
  BORROW: WETH, Amount 286716194895701623, Stable: false
  REPAY: WETH, Amount: 286716194895701623

[PASS] test_deployment_service_fees() (gas: 5731291)
[PASS] test_emissions_admin() (gas: 5746247)
[PASS] test_ethereumAddressesProviderRegistry_registry_lidoAddressesProvider() (gas: 5731192)
[PASS] test_lidoAclManager_roles() (gas: 5733007)
[PASS] test_lidoEthereumAddressesProvider_setAddress_incentivesController_Ethereum() (gas: 5731352)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 2.80s (2.88s CPU time)

Ran 1 test suite in 2.81s (2.80s CPU time): 8 tests passed, 0 failed, 0 skipped (8 total tests)

pavelvm5
pavelvm5 previously approved these changes Jul 26, 2024
@defijesus defijesus dismissed pavelvm5’s stale review July 26, 2024 19:26

The merge-base changed after approval.

brotherlymite
brotherlymite previously approved these changes Jul 26, 2024
@defijesus defijesus dismissed brotherlymite’s stale review July 26, 2024 19:34

The merge-base changed after approval.

pavelvm5
pavelvm5 previously approved these changes Jul 27, 2024
@defijesus defijesus dismissed pavelvm5’s stale review July 27, 2024 06:28

The merge-base changed after approval.

@brotherlymite brotherlymite merged commit 7cc3a0f into bgd-labs:main Jul 27, 2024
3 of 4 checks passed
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.

4 participants