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

feat: bgd phase 4 #503

Merged
merged 2 commits into from
Oct 27, 2024
Merged

feat: bgd phase 4 #503

merged 2 commits into from
Oct 27, 2024

Conversation

brotherlymite
Copy link
Contributor

@brotherlymite brotherlymite commented Oct 25, 2024

  • Add writeup

Copy link

github-actions bot commented Oct 25, 2024

Foundry report

forge 0.2.0 (192a5a2 2024-10-26T00:22:40.192959901Z)
Build log
Compiling 247 files with Solc 0.8.20
Solc 0.8.20 finished in 90.10s
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_AaveBGDPhase4_20241025                               |            1,407 |             1,436 |             23,169 |              47,716 |
| AaveV3Ethereum_AaveCertoraContinuousSecurityServices_20241014       |            1,567 |             1,596 |             23,009 |              47,556 |
| AaveV3Ethereum_ChaosLabsAaveRiskManagementServiceRenewal_20241012   |            1,255 |             1,284 |             23,321 |              47,868 |
| AaveV3Ethereum_FixUSDSBorrowRateToMatchSkySavingsRate_20241022      |            3,238 |             3,308 |             21,338 |              45,844 |
| 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 🌈
No files changed, compilation skipped
2024-10-26T16:23:26.473642Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.4", "diff-snapshots", "./reports/AaveV3Ethereum_AaveBGDPhase4_20241025_before.json", "./reports/AaveV3Ethereum_AaveBGDPhase4_20241025_after.json", "-o", "./diffs/AaveV3Ethereum_AaveBGDPhase4_20241025_before_AaveV3Ethereum_AaveBGDPhase4_20241025_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]
"

Ran 3 tests for src/20241025_AaveV3Ethereum_AaveBGDPhase4/AaveV3Ethereum_AaveBGDPhase4_20241025.t.sol:AaveV3Ethereum_AaveBGDPhase4_20241025_Test
[PASS] test_defaultProposalExecution() (gas: 226706599)
Logs:
  0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
  0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
  0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
  0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
  0x6B175474E89094C44Da98b954EedeAC495271d0F
  0x514910771AF9Ca656af840dff83E8264EcF986CA
  0xBe9895146f7AF43049ca1c1AE358B0541Ea49704
  0xdAC17F958D2ee523a2206206994597C13D831ec7
  0xae78736Cd615f374D3085123A210448E74Fc6393
  0x5f98805A4E8be255a32880FDeC7F6728C6568bA0
  0xD533a949740bb3306d119CC777fa900bA034cd52
  0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
  0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F
  0xba100000625a3754423978a60c9317c58a424e3D
  0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
  0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32
  0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72
  0x111111111117dC0aa78b770fA6A738034120C302
  0x853d955aCEf822Db058eb8505911ED77F175b99e
  0xD33526068D116cE69F19A9ee46F0bd304F21A51f
  0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6
  0xdeFA4e8a7bcBA345F687a2f1456F5Edd9CE97202
  0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0
  0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E
  0x6c3ea9036406852006290770BEdFcAbA0e23A0e8
  0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
  0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38
  0x4c9EDD5852cd905f086C759E8383e09bff1E68B3
  0xA35b1B31Ce002FBF2058D22F30f95D405200A15b
  0x18084fbA666a33d37592fA2633fD49a74DD93a88
  0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
  0xdC035D45d973E3EC169d2276DDab16f1e407384F
  E2E: Collateral WETH, TestAsset WETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: WETH, Amount: 391794260997664906
  WITHDRAW: WETH, Amount: 195897130498832453
  WITHDRAW: WETH, Amount: 195897130498832454
  BORROW: WETH, Amount 391794260997664906
  REPAY: WETH, Amount: 391794260997664906
  E2E: Collateral WETH, TestAsset wstETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: wstETH, Amount: 331222530527882835
  WITHDRAW: wstETH, Amount: 165611265263941417
  WITHDRAW: wstETH, Amount: 165611265263941419
  BORROW: wstETH, Amount 331222530527882835
  REPAY: wstETH, Amount: 331222530527882835
  E2E: Collateral WETH, TestAsset WBTC
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: WBTC, Amount: 1465770
  WITHDRAW: WBTC, Amount: 732885
  WITHDRAW: WBTC, Amount: 732885
  BORROW: WBTC, Amount 1465770
  REPAY: WBTC, Amount: 1465770
  E2E: Collateral WETH, TestAsset USDC
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: USDC, Amount: 1000204231
  WITHDRAW: USDC, Amount: 500102115
  WITHDRAW: USDC, Amount: 500102116
  BORROW: USDC, Amount 1000204231
  REPAY: USDC, Amount: 1000204231
  E2E: Collateral WETH, TestAsset DAI
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: DAI, Amount: 1000229902843168502280
  WITHDRAW: DAI, Amount: 500114951421584251140
  WITHDRAW: DAI, Amount: 500114951421584251141
  BORROW: DAI, Amount 1000229902843168502280
  REPAY: DAI, Amount: 1000229902843168502280
  E2E: Collateral WETH, TestAsset LINK
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: LINK, Amount: 83777893745000030578
  WITHDRAW: LINK, Amount: 41888946872500015289
  WITHDRAW: LINK, Amount: 41888946872500015290
  BORROW: LINK, Amount 83777893745000030578
  REPAY: LINK, Amount: 83777893745000030578
  E2E: Collateral WETH, TestAsset AAVE
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: AAVE, Amount: 6703017937302812294
  WITHDRAW: AAVE, Amount: 3351508968651406147
  WITHDRAW: AAVE, Amount: 3351508968651406147
  E2E: Collateral WETH, TestAsset cbETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: cbETH, Amount: 361220904675778220
  WITHDRAW: cbETH, Amount: 180610452337889110
  WITHDRAW: cbETH, Amount: 180610452337889110
  BORROW: cbETH, Amount 361220904675778220
  REPAY: cbETH, Amount: 361220904675778220
  E2E: Collateral WETH, TestAsset USDT
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: USDT, Amount: 1000795632
  WITHDRAW: USDT, Amount: 500397816
  WITHDRAW: USDT, Amount: 500397817
  BORROW: USDT, Amount 1000795632
  REPAY: USDT, Amount: 1000795632
  E2E: Collateral WETH, TestAsset rETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: rETH, Amount: 350081912465723888
  WITHDRAW: rETH, Amount: 175040956232861944
  WITHDRAW: rETH, Amount: 175040956232861944
  BORROW: rETH, Amount 350081912465723888
  REPAY: rETH, Amount: 350081912465723888
  E2E: Collateral WETH, TestAsset LUSD
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: LUSD, Amount: 1002200019460719977888
  WITHDRAW: LUSD, Amount: 501100009730359988944
  WITHDRAW: LUSD, Amount: 501100009730359988943
  BORROW: LUSD, Amount 1002200019460719977888
  REPAY: LUSD, Amount: 1002200019460719977888
  E2E: Collateral WETH, TestAsset CRV
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: CRV, Amount: 3986249670935089664308
  WITHDRAW: CRV, Amount: 1993124835467544832154
  WITHDRAW: CRV, Amount: 1993124835467544832154
  BORROW: CRV, Amount 3986249670935089664308
  REPAY: CRV, Amount: 3986249670935089664308
  E2E: Collateral WETH, TestAsset MKR
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: MKR, Amount: 897408405674546675
  WITHDRAW: MKR, Amount: 448704202837273337
  WITHDRAW: MKR, Amount: 448704202837273337
  BORROW: MKR, Amount 897408405674546675
  REPAY: MKR, Amount: 897408405674546675
  E2E: Collateral WETH, TestAsset SNX
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: SNX, Amount: 660964656765680494179
  WITHDRAW: SNX, Amount: 330482328382840247089
  WITHDRAW: SNX, Amount: 330482328382840247089
  BORROW: SNX, Amount 660964656765680494179
  REPAY: SNX, Amount: 660964656765680494179
  E2E: Collateral WETH, TestAsset BAL
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: BAL, Amount: 509891902916581684682
  WITHDRAW: BAL, Amount: 254945951458290842341
  WITHDRAW: BAL, Amount: 254945951458290842342
  BORROW: BAL, Amount 509891902916581684682
  REPAY: BAL, Amount: 509891902916581684682
  E2E: Collateral WETH, TestAsset UNI
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: UNI, Amount: 123633783331868891169
  WITHDRAW: UNI, Amount: 61816891665934445584
  WITHDRAW: UNI, Amount: 61816891665934445584
  BORROW: UNI, Amount 123633783331868891169
  REPAY: UNI, Amount: 123633783331868891169
  E2E: Collateral WETH, TestAsset LDO
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: LDO, Amount: 898183571926068893464
  WITHDRAW: LDO, Amount: 449091785963034446732
  WITHDRAW: LDO, Amount: 449091785963034446731
  BORROW: LDO, Amount 898183571926068893464
  REPAY: LDO, Amount: 898183571926068893464
  E2E: Collateral WETH, TestAsset ENS
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: ENS, Amount: 57405725241062254644
  WITHDRAW: ENS, Amount: 28702862620531127322
  WITHDRAW: ENS, Amount: 28702862620531127322
  BORROW: ENS, Amount 57405725241062254644
  REPAY: ENS, Amount: 57405725241062254644
  E2E: Collateral WETH, TestAsset 1INCH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: 1INCH, Amount: 3672614612936902497737
  WITHDRAW: 1INCH, Amount: 1836307306468451248868
  WITHDRAW: 1INCH, Amount: 1836307306468451248868
  BORROW: 1INCH, Amount 3672614612936902497737
  REPAY: 1INCH, Amount: 3672614612936902497737
  E2E: Collateral WETH, TestAsset FRAX
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: FRAX, Amount: 1003192680770405430691
  WITHDRAW: FRAX, Amount: 501596340385202715345
  WITHDRAW: FRAX, Amount: 501596340385202715346
  BORROW: FRAX, Amount 1003192680770405430691
  REPAY: FRAX, Amount: 1003192680770405430691
  E2E: Collateral WETH, TestAsset GHO
  SUPPLY: WETH, Amount: 39179426099766490620
  BORROW: GHO, Amount 1000000000000000000000
  REPAY: GHO, Amount: 1000000000000000000000
  E2E: Collateral WETH, TestAsset RPL
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: RPL, Amount: 90468210779354803645
  WITHDRAW: RPL, Amount: 45234105389677401822
  WITHDRAW: RPL, Amount: 45234105389677401823
  BORROW: RPL, Amount 90468210779354803645
  REPAY: RPL, Amount: 90468210779354803645
  E2E: Collateral WETH, TestAsset sDAI
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: sDAI, Amount: 897013350097197227069
  WITHDRAW: sDAI, Amount: 448506675048598613534
  WITHDRAW: sDAI, Amount: 448506675048598613536
  E2E: TestAsset STG SKIPPED
  E2E: TestAsset KNC SKIPPED
  E2E: TestAsset FXS SKIPPED
  E2E: Collateral WETH, TestAsset crvUSD
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: crvUSD, Amount: 1001805674583983663835
  WITHDRAW: crvUSD, Amount: 500902837291991831917
  WITHDRAW: crvUSD, Amount: 500902837291991831918
  BORROW: crvUSD, Amount 1001805674583983663835
  REPAY: crvUSD, Amount: 1001805674583983663835
  E2E: Collateral WETH, TestAsset PYUSD
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: PYUSD, Amount: 1000526196
  WITHDRAW: PYUSD, Amount: 500263098
  WITHDRAW: PYUSD, Amount: 500263098
  BORROW: PYUSD, Amount 1000526196
  REPAY: PYUSD, Amount: 1000526196
  E2E: Collateral WETH, TestAsset weETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: weETH, Amount: 372722893373385514
  WITHDRAW: weETH, Amount: 186361446686692757
  WITHDRAW: weETH, Amount: 186361446686692757
  BORROW: weETH, Amount 372722893373385514
  REPAY: weETH, Amount: 372722893373385514
  E2E: Collateral WETH, TestAsset osETH
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: osETH, Amount: 380421449116224442
  WITHDRAW: osETH, Amount: 190210724558112221
  WITHDRAW: osETH, Amount: 190210724558112221
  BORROW: osETH, Amount 380421449116224442
  REPAY: osETH, Amount: 380421449116224442
  E2E: Collateral WETH, TestAsset USDe
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: USDe, Amount: 999400429700209953042
  WITHDRAW: USDe, Amount: 499700214850104976521
  WITHDRAW: USDe, Amount: 499700214850104976521
  BORROW: USDe, Amount 999400429700209953042
  REPAY: USDe, Amount: 999400429700209953042
  E2E: Collateral WETH, TestAsset ETHx
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: ETHx, Amount: 375445581597822748
  WITHDRAW: ETHx, Amount: 187722790798911374
  WITHDRAW: ETHx, Amount: 187722790798911373
  BORROW: ETHx, Amount 375445581597822748
  REPAY: ETHx, Amount: 375445581597822748
  E2E: Collateral WETH, TestAsset sUSDe
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: sUSDe, Amount: 899772982777580302601
  WITHDRAW: sUSDe, Amount: 449886491388790151300
  WITHDRAW: sUSDe, Amount: 449886491388790151301
  E2E: Collateral WETH, TestAsset tBTC
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: tBTC, Amount: 14626853998539055
  WITHDRAW: tBTC, Amount: 7313426999269527
  WITHDRAW: tBTC, Amount: 7313426999269528
  BORROW: tBTC, Amount 14626853998539055
  REPAY: tBTC, Amount: 14626853998539055
  E2E: Collateral WETH, TestAsset cbBTC
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: cbBTC, Amount: 1462685
  WITHDRAW: cbBTC, Amount: 731342
  WITHDRAW: cbBTC, Amount: 731343
  BORROW: cbBTC, Amount 1462685
  REPAY: cbBTC, Amount: 1462685
  E2E: Collateral WETH, TestAsset USDS
  SUPPLY: WETH, Amount: 39179426099766490620
  SUPPLY: USDS, Amount: 1000229902843168502280
  WITHDRAW: USDS, Amount: 500114951421584251140
  WITHDRAW: USDS, Amount: 500114951421584251140
  BORROW: USDS, Amount 1000229902843168502280
  REPAY: USDS, Amount: 1000229902843168502280

[PASS] test_streamAmounts() (gas: 628620)
[PASS] test_upfrontAmounts() (gas: 626402)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 11.95s (11.70s CPU time)

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

@eboadom eboadom marked this pull request as ready for review October 27, 2024 11:26
@eboadom eboadom merged commit e4ab6eb into main Oct 27, 2024
5 checks passed
@eboadom eboadom deleted the feat/bgd-phase-4 branch October 27, 2024 11:26
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.

3 participants