feat: added monad deployment (scripts, inputs etc)#7
Conversation
Forge Build Sizes🔕 Unchanged
|
🌈 Test ResultsNo files changed, compilation skipped
Ran 20 tests for tests/protocol/configuration/ACLManager.t.sol:ACLManagerTest
[PASS] testDefaultAdminRoleAfterDeploy() (gas: 20677)
[PASS] test_defaultAdmin_grantAdminRole_FlashBorrowAdmin() (gas: 65496)
[PASS] test_defaultAdmin_grants_AssetsListingRole() (gas: 37587)
[PASS] test_defaultAdmin_grants_BridgeRole() (gas: 37653)
[PASS] test_defaultAdmin_grants_EmergencyAdminRole() (gas: 37600)
[PASS] test_defaultAdmin_grants_PoolAdminRole() (gas: 37720)
[PASS] test_defaultAdmin_grants_RiskRole() (gas: 37717)
[PASS] test_defaultAdmin_remove_AssetsListingRole() (gas: 29432)
[PASS] test_defaultAdmin_remove_BridgeRole() (gas: 29521)
[PASS] test_defaultAdmin_remove_EmergencyAdminRole() (gas: 29416)
[PASS] test_defaultAdmin_remove_PoolAdminRole() (gas: 29538)
[PASS] test_defaultAdmin_remove_RiskRole() (gas: 29423)
[PASS] test_flashBorrowAdmin_grantRole_FlashBorrowRole() (gas: 91896)
[PASS] test_flashBorrowAdmin_removeRole_FlashBorrowRole() (gas: 76412)
[PASS] test_remove_riskAdmin() (gas: 29432)
[PASS] test_revert_anyUser_grantAdminRole_FlashBorrowAdmin() (gas: 72834)
[PASS] test_revert_deploy_ACLADMIN_zeroAddress() (gas: 1523412)
[PASS] test_reverts_defaultAdmin_notRoleAdmin_addRole_FlashBorrowRole() (gas: 98813)
[PASS] test_reverts_defaultAdmin_notRoleAdmin_revokeRole_FlashBorrowRole() (gas: 125190)
[PASS] test_reverts_notAdmin_grantRole_FlashBorrow() (gas: 113970)
Suite result: ok. 20 passed; 0 failed; 0 skipped; finished in 12.03ms (1.87ms CPU time)
Ran 3 tests for tests/protocol/libraries/logic/PoolLogic.initReserves.edge.t.sol:PoolLogicInitReservesTests
[PASS] test_initReserves_return_false_after_dropped_reserve() (gas: 610775)
[PASS] test_reverts_initReserves_max() (gas: 174166)
[PASS] test_reverts_initReserves_reserveAlreadyAdded() (gas: 197304)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 31.68ms (511.28µs CPU time)
Ran 5 tests for tests/rewards/StakedTokenTransferStrategy.t.sol:StakedTokenTransferStrategyTest
[PASS] test_dropApproval() (gas: 18975)
[PASS] test_emergencyTransfer() (gas: 211756)
[PASS] test_getters() (gas: 18719)
[PASS] test_performTransfer() (gas: 22017)
[PASS] test_renewApproval() (gas: 23091)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 32.38ms (1.67ms CPU time)
Ran 11 tests for tests/misc/PriceOracleSentinel.t.sol:PriceOracleSentinelTest
[PASS] test_isBorrowAllowed_network_down() (gas: 27215)
[PASS] test_isBorrowAllowed_network_up_not_grace_period() (gas: 47299)
[PASS] test_isBorrowAllowed_true_network_up_grace_period_pass() (gas: 47353)
[PASS] test_isLiquidationAllowed_network_down() (gas: 27126)
[PASS] test_isLiquidationAllowed_network_up_not_grace_period() (gas: 47276)
[PASS] test_isLiquidationAllowed_true_network_up_grace_period_pass() (gas: 47374)
[PASS] test_new_PriceOracleSentinel() (gas: 395850)
[PASS] test_reverts_setGracePeriod_not_poolAdmin() (gas: 25429)
[PASS] test_reverts_setSequencerOracle_not_poolAdmin() (gas: 22340)
[PASS] test_setGracePeriod() (gas: 32317)
[PASS] test_setSequencerOracle() (gas: 24455)
Suite result: ok. 11 passed; 0 failed; 0 skipped; finished in 26.41ms (835.54µs CPU time)
Ran 3 tests for tests/gas/StataToken.gas.t.sol:StataToken_gas_Tests
[PASS] test_claimRewards() (gas: 3045866)
[PASS] test_deposit() (gas: 780565)
[PASS] test_depositATokens() (gas: 960993)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 37.41ms (6.87ms CPU time)
Ran 18 tests for tests/gas/AToken.Transfer.gas.t.sol:ATokenTransfer_gas_Tests
[PASS] test_transferFrom_fullAmount() (gas: 718691)
[PASS] test_transferFrom_fullAmount_dirtyReceiver() (gas: 1225360)
[PASS] test_transferFrom_fullAmount_senderCollateralDisabled() (gas: 767512)
[PASS] test_transferFrom_fullAmount_senderCollateralDisabled_receiverNonZeroFunds() (gas: 1240404)
[PASS] test_transferFrom_fullAmount_senderCollateralDisabled_receiverNonZeroFunds2() (gas: 1191516)
[PASS] test_transferFrom_partialAmount() (gas: 767609)
[PASS] test_transferFrom_partialAmount_receiverNonZeroFunds() (gas: 1240471)
[PASS] test_transferFrom_partialAmount_senderCollateralEnabled() (gas: 723584)
[PASS] test_transferFrom_partialAmount_senderCollateralEnabled_receiverNonZeroFunds() (gas: 1196422)
[PASS] test_transfer_fullAmount() (gas: 667778)
[PASS] test_transfer_fullAmount_dirtyReceiver() (gas: 1174473)
[PASS] test_transfer_fullAmount_senderCollateralDisabled() (gas: 716624)
[PASS] test_transfer_fullAmount_senderCollateralDisabled_receiverNonZeroFunds() (gas: 1189555)
[PASS] test_transfer_fullAmount_senderCollateralDisabled_receiverNonZeroFunds2() (gas: 1140733)
[PASS] test_transfer_partialAmount() (gas: 716759)
[PASS] test_transfer_partialAmount_receiverNonZeroFunds() (gas: 1189627)
[PASS] test_transfer_partialAmount_senderCollateralEnabled() (gas: 672691)
[PASS] test_transfer_partialAmount_senderCollateralEnabled_receiverNonZeroFunds() (gas: 1145560)
Suite result: ok. 18 passed; 0 failed; 0 skipped; finished in 61.43ms (27.10ms CPU time)
Ran 15 tests for tests/gas/ProtocolDataProvider.gas.t.sol:ProtocolDataProvider_gas_Tests
[PASS] test_getATokenTotalSupply() (gas: 40415)
[PASS] test_getDebtCeiling() (gas: 21703)
[PASS] test_getFlashLoanEnabled() (gas: 21803)
[PASS] test_getInterestRateStrategyAddress() (gas: 19259)
[PASS] test_getIsVirtualAccActive() (gas: 10877)
[PASS] test_getLiquidationProtocolFee() (gas: 21762)
[PASS] test_getPaused() (gas: 21854)
[PASS] test_getReserveCaps() (gas: 21788)
[PASS] test_getReserveConfigurationData() (gas: 22767)
[PASS] test_getReserveTokensAddresses() (gas: 25610)
[PASS] test_getSiloedBorrowing() (gas: 21858)
[PASS] test_getTotalDebt() (gas: 40437)
[PASS] test_getUnbackedMintCap() (gas: 10786)
[PASS] test_getUserReserveData() (gas: 601816)
[PASS] test_getVirtualUnderlyingBalance() (gas: 21488)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 33.05ms (2.27ms CPU time)
Ran 2 tests for tests/extensions/stata-token/StataTokenV2Getters.sol:StataTokenV2GettersTest
[PASS] test_getters() (gas: 69906)
[PASS] test_initializeShouldRevert() (gas: 21681)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 27.33ms (220.41µs CPU time)
Ran 10 tests for tests/protocol/tokenization/ATokenDelegation.t.sol:ATokenDelegationTest
[PASS] test_delegate() (gas: 397852)
[PASS] test_getDelegates() (gas: 131741)
[PASS] test_getPowersCurrent() (gas: 638817)
[PASS] test_getPowersCurrent_with_index_growth() (gas: 738770)
[PASS] test_initial_state_without_delegation() (gas: 47273)
[PASS] test_mint_and_burn() (gas: 2645224)
[PASS] test_precision() (gas: 1107197)
[PASS] test_transfer() (gas: 2347089)
[PASS] test_transferFrom() (gas: 2446688)
[PASS] test_transferOnLiquidation() (gas: 2165598)
Suite result: ok. 10 passed; 0 failed; 0 skipped; finished in 88.59ms (57.40ms CPU time)
Ran 15 tests for tests/protocol/tokenization/ATokenEdgeCases.t.sol:ATokenEdgeCasesTests
[PASS] testApprove() (gas: 45129)
[PASS] testApproveMax() (gas: 45188)
[PASS] testApproveWithZeroAddressSpender() (gas: 42171)
[PASS] testCheckGetters() (gas: 257896)
[PASS] testDecreaseAllowance() (gas: 53104)
[PASS] testIncreaseAllowance() (gas: 53214)
[PASS] testIncreaseAllowanceFromZero() (gas: 48456)
[PASS] testMintToTreasury_amount_zero() (gas: 15671)
[PASS] testTransferFromZeroAmount() (gas: 124591)
[PASS] test_burn_zeroAddress() (gas: 257292)
[PASS] test_mintToZeroAddress() (gas: 79992)
[PASS] test_reverts_burnAmountScaledZero() (gas: 19069)
[PASS] test_reverts_mintAmountScaledZero() (gas: 19163)
[PASS] test_transferFrom_zeroAddress_origin() (gas: 124402)
[PASS] test_transfer_amount_MAX_UINT_120() (gas: 16554)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 28.74ms (3.77ms CPU time)
Ran 8 tests for tests/protocol/tokenization/ATokenEvents.t.sol:ATokenEventsTests
[PASS] test_atoken_burnEvents_fullBalance() (gas: 525349)
[PASS] test_atoken_burnEvents_multipleWithdrawals_withInterests() (gas: 611281)
[PASS] test_atoken_burnEvents_singleWithdraw_WithInterests() (gas: 536016)
[PASS] test_atoken_burnEvents_singleWithdraw_noInterests() (gas: 248033)
[PASS] test_atoken_burnEvents_withdrawAmountLessThanInterests() (gas: 538862)
[PASS] test_atoken_mintEvents_firstSupply() (gas: 246742)
[PASS] test_atoken_mintEvents_supplyAfterBorrow() (gas: 590327)
[PASS] test_mintToTreasury_events() (gas: 85487)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 40.16ms (12.83ms CPU time)
Ran 4 tests for tests/protocol/tokenization/ATokenModifiers.t.sol:ATokenModifiersTests
[PASS] test_revert_notAdmin_burn() (gas: 16863)
[PASS] test_revert_notAdmin_mint() (gas: 16911)
[PASS] test_revert_notAdmin_transferOnLiquidation() (gas: 16929)
[PASS] test_revert_notAdmin_transferUnderlyingTo() (gas: 16665)
Suite result: ok. 4 passed; 0 failed; 0 skipped; finished in 30.12ms (203.28µs CPU time)
Ran 9 tests for tests/protocol/tokenization/ATokenPermit.t.sol:ATokenPermitTests
[PASS] testCheckDomainSeparator() (gas: 26125)
[PASS] test_cancelPermit() (gas: 101671)
[PASS] test_chain_fork_calculateDomainSeparator() (gas: 32866)
[PASS] test_revert_submitPermit_0_expiration() (gas: 46281)
[PASS] test_revert_submitPermit_InvalidExpiration_previosCurrentBlock() (gas: 47178)
[PASS] test_revert_submitPermit_InvalidSignature() (gas: 54727)
[PASS] test_revert_submitPermit_invalid_nonce() (gas: 55301)
[PASS] test_revert_submitPermit_invalid_owner() (gas: 46130)
[PASS] test_submitPermit() (gas: 94780)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 32.33ms (3.98ms CPU time)
Ran 3 tests for tests/protocol/tokenization/ATokenRepay.t.sol:ATokenRepayTests
[PASS] test_repay_allDebt() (gas: 242202)
[PASS] test_repay_partialDebt() (gas: 241327)
[PASS] test_revert_repay_withoutFunds() (gas: 151154)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 50.10ms (7.55ms CPU time)
Ran 3 tests for tests/protocol/tokenization/ATokenRescueTokens.sol:ATokenRescueTokensTests
[PASS] test_rescueTokens() (gas: 77699)
[PASS] test_reverts_rescueTokens_CALLER_NOT_POOL_ADMIN() (gas: 70403)
[PASS] test_reverts_rescueTokens_UnderlyingCannotBeRescued() (gas: 71062)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 55.70ms (467.84µs CPU time)
Ran 10 tests for tests/extensions/stata-token/StataTokenV2Pausable.t.sol:StataTokenV2PausableTest
[PASS] test_canPause() (gas: 26789)
[PASS] test_canPause_shouldReturnFalse(address) (runs: 1000, μ: 27282, ~: 27282)
[PASS] test_claimingRewards_shouldRevert() (gas: 538735)
[PASS] test_deposit_shouldRevert() (gas: 464367)
[PASS] test_mint_shouldRevert() (gas: 468433)
[PASS] test_redeem_shouldRevert() (gas: 558460)
[PASS] test_setPaused_shouldRevertForInvalidCaller(address) (runs: 1000, μ: 30340, ~: 30340)
[PASS] test_setPaused_shouldSucceedForOwner() (gas: 53839)
[PASS] test_transfer_shouldRevert() (gas: 536651)
[PASS] test_withdraw_shouldRevert() (gas: 554312)
Suite result: ok. 10 passed; 0 failed; 0 skipped; finished in 452.89ms (427.87ms CPU time)
Ran 3 tests for tests/extensions/stata-token/StataTokenV2Permit.sol:StataTokenV2PermitTest
[PASS] test_permit() (gas: 89789)
[PASS] test_permit_expired() (gas: 37844)
[PASS] test_permit_invalidSigner() (gas: 66419)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 26.86ms (1.12ms CPU time)
Ran 12 tests for tests/protocol/tokenization/ATokenTransfers.t.sol:ATokenTransferTests
[PASS] test_atoken_alice_transfer_all_to_bob() (gas: 156904)
[PASS] test_atoken_alice_transfer_to_bob() (gas: 218569)
[PASS] test_atoken_alice_transfer_to_bob_zero() (gas: 148979)
[PASS] test_atoken_alice_transfer_to_carol_accrues_interests() (gas: 208484)
[PASS] test_atoken_alice_transfer_to_herself() (gas: 76658)
[PASS] test_atoken_alice_transfer_to_herself_zero() (gas: 76677)
[PASS] test_atoken_multiple_transfers() (gas: 194371)
[PASS] test_atoken_transfer_sets_enabled_as_collateral(uint56,uint256) (runs: 1000, μ: 370827, ~: 373904)
[PASS] test_atoken_transfer_some_collateral_from_bob_borrower_to_alice() (gas: 492958)
[PASS] test_atoken_transfer_to_bob_them_bob_borrows() (gas: 374968)
[PASS] test_reverts_atoken_transfer_all_collateral_from_bob_borrower_to_alice() (gas: 376329)
[PASS] test_scaled_balance_token_base_alice_transfer_to_bob_accrues_interests() (gas: 114134)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 1.02s (982.95ms CPU time)
Ran 6 tests for tests/gas/ATokenWithDelegation.Transfer.gas.t.sol:ATokenWithDelegation_gas_Tests
[PASS] test_transfer_fullAmountSenderWithAndReceiverWithoutDelegations() (gas: 270637)
[PASS] test_transfer_fullAmountSenderWithoutAndReceiverWithDelegations_notDelegatees() (gas: 262574)
[PASS] test_transfer_fullAmountWithDelegations_delegatees() (gas: 568830)
[PASS] test_transfer_fullAmountWithDelegations_notDelegatees() (gas: 374683)
[PASS] test_transfer_fullAmountWithoutDelegations_delegatees() (gas: 356759)
[PASS] test_transfer_fullAmountWithoutDelegations_notDelegatees() (gas: 158566)
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 43.15ms (2.89ms CPU time)
Ran 12 tests for tests/misc/AaveOracle.t.sol:AaveOracleTest
[PASS] testAddSingleSource() (gas: 1012313)
[PASS] testAssetZeroPriceAndZeroFallbackPrice() (gas: 1151410)
[PASS] testAssetZeroPriceNonZeroFallback() (gas: 1171353)
[PASS] testAssetZeroPriceWithoutFallback() (gas: 994026)
[PASS] testEmptySource() (gas: 897261)
[PASS] testGetBaseCurrencyPrice() (gas: 12312)
[PASS] testGetPriceViaFallbackOracle() (gas: 1075832)
[PASS] testUpdateFallbackOracle() (gas: 178435)
[PASS] testUpdateSingleSource() (gas: 126689)
[PASS] testUpdateSourceBaseCurrency() (gas: 138281)
[PASS] test_revert_setAssetSources_inconsistentParams() (gas: 898200)
[PASS] test_revert_setAssetSources_wrongCaller() (gas: 24207)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 28.77ms (2.03ms CPU time)
Ran 5 tests for tests/deployments/AaveV3BatchDeployment.t.sol:AaveV3BatchDeployment
[PASS] testAaveV3BatchDeploy() (gas: 54155952)
[PASS] testAaveV3BatchDeploymentCheck() (gas: 62326474)
[PASS] testAaveV3Batch_reuseIncentivesProxy() (gas: 53654523)
[PASS] testAaveV3L2BatchDeploymentCheck() (gas: 64117594)
[PASS] testAaveV3TreasuryPartnerBatchDeploymentCheck() (gas: 62835760)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 102.56ms (97.83ms CPU time)
Ran 12 tests for tests/deployments/AaveV3BatchTests.t.sol:AaveV3BatchTests
[PASS] test0AaveV3SetupDeployment() (gas: 5310820)
[PASS] test10StaticATokenDeployment() (gas: 6676156)
[PASS] test1AaveV3GettersDeployment() (gas: 7395953)
[PASS] test2AaveV3PoolDeployment() (gas: 7702550)
[PASS] test3AaveV3L2PoolDeployment() (gas: 7963102)
[PASS] test4PeripheralsRelease() (gas: 7071756)
[PASS] test5MiscDeployment() (gas: 844259)
[PASS] test6ParaswapRelease() (gas: 5160256)
[PASS] test7SetupMarket() (gas: 2645975)
[PASS] test8TokensMarket() (gas: 3760671)
[PASS] test9ConfigEngineDeployment() (gas: 7043528)
[PASS] testAaveV3FullBatchOrchestration() (gas: 54153220)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 20.71ms (11.31ms CPU time)
Ran 4 tests for tests/extensions/stata-token/StataTokenV2Rescuable.sol:StataTokenV2RescuableTest
[PASS] test_rescuable_shouldNotCauseInsolvency(uint256,uint256) (runs: 1000, μ: 752820, ~: 752825)
[PASS] test_rescuable_shouldRevertForInvalidCaller() (gas: 189988)
[PASS] test_rescuable_shouldTransferAssetsToCollector() (gas: 216923)
[PASS] test_rescuable_shouldWorkForAToken() (gas: 433744)
Suite result: ok. 4 passed; 0 failed; 0 skipped; finished in 3.00s (2.98s CPU time)
Ran 13 tests for tests/misc/rates/RateStrategy.calculateRates.t.sol:RateStrategyCalculateRatesTests
[PASS] test_calculate_rates_100_percent_usage() (gas: 47885)
Logs:
Bound result 8000
Bound result 400
[PASS] test_calculate_rates_80_bps_usage() (gas: 48004)
Logs:
Bound result 8000
Bound result 400
[PASS] test_calculate_rates_80_percent_usage() (gas: 90655)
Logs:
Bound result 8000
Bound result 400
[PASS] test_calculate_rates_80_percent_usage_and_50_percent_supply_usage_due_minted_tokens() (gas: 46210)
Logs:
Bound result 8000
Bound result 400
[PASS] test_calculate_rates_80_percent_usage_and_80_bps_supply_usage_due_minted_tokens() (gas: 46232)
Logs:
Bound result 8000
Bound result 400
[PASS] test_calculate_rates_above_op_usage((uint16,uint32,uint32,uint32),uint256,uint256,uint256) (runs: 1000, μ: 123606, ~: 123927)
Logs:
Bound result 219
Bound result 24
Bound result 8927029604266320262108482923
Bound result 6229441932897899611716716583
Bound result 7308864080643911939975937559
[PASS] test_calculate_rates_below_op_usage((uint16,uint32,uint32,uint32),uint256,uint256,uint256) (runs: 1000, μ: 117128, ~: 120332)
Logs:
Bound result 9821
Bound result 0
Bound result 506777546
Bound result 476713209
Bound result 6682922587646861121605767963
[PASS] test_calculate_rates_below_op_usage_when_no_debt((uint16,uint32,uint32,uint32),uint256,uint256) (runs: 1000, μ: 75006, ~: 75364)
Logs:
Bound result 6728
Bound result 3501
[PASS] test_calculate_rates_empty_reserve((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 43496, ~: 43416)
Logs:
Bound result 9820
Bound result 8
[PASS] test_calculate_rates_when_not_using_virtual_valance((uint16,uint32,uint32,uint32),uint256,uint256) (runs: 1000, μ: 67707, ~: 68630)
Logs:
Bound result 2984
Bound result 316
[PASS] test_calculate_rates_when_total_debt_0((uint16,uint32,uint32,uint32),uint256,uint256) (runs: 1000, μ: 67716, ~: 68639)
Logs:
Bound result 2984
Bound result 316
[PASS] test_fuzz_calculate_rates_80_percent_usage_added_and_virtual_equal(uint256) (runs: 1000, μ: 32791, ~: 32453)
Logs:
Bound result 53275714958100781
[PASS] test_zero_rates_strategy_calculate_rates() (gas: 18549)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 4.83s (4.80s CPU time)
Ran 7 tests for tests/misc/rates/RateStrategy.setters.t.sol:RateStrategySettersTests
[PASS] test_new_SetReserveInterestRateParams((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 52121, ~: 52029)
Logs:
Bound result 1036
Bound result 3269
[PASS] test_new_SetReserveInterestRateParams_when_not_configurator((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 25935, ~: 25843)
Logs:
Bound result 1036
Bound result 3269
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_maxRate((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 29107, ~: 29186)
Logs:
Bound result 110
Bound result 2
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_max_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 22028, ~: 22028)
[PASS] test_reverts_SetReserveInterestRateParams_when_lt_min_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 22076, ~: 22076)
[PASS] test_reverts_SetReserveInterestRateParams_when_reserve_0((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 26791, ~: 26699)
Logs:
Bound result 1036
Bound result 3269
[PASS] test_reverts_SetReserveInterestRateParams_when_slope1_gt_slope2((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 23308, ~: 23308)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 2.68s (2.65s CPU time)
Ran 7 tests for tests/misc/rates/RateStrategy.setters.t.sol:RateStrategySettersTestsOverride
[PASS] test_new_SetReserveInterestRateParams((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 51492, ~: 51412)
Logs:
Bound result 8611
Bound result 11
[PASS] test_new_SetReserveInterestRateParams_when_not_configurator((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 25290, ~: 25210)
Logs:
Bound result 8611
Bound result 11
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_maxRate((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 28487, ~: 28561)
Logs:
Bound result 102
Bound result 14
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_max_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 21403, ~: 21403)
[PASS] test_reverts_SetReserveInterestRateParams_when_lt_min_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 21451, ~: 21451)
[PASS] test_reverts_SetReserveInterestRateParams_when_reserve_0((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 26154, ~: 26074)
Logs:
Bound result 8611
Bound result 11
[PASS] test_reverts_SetReserveInterestRateParams_when_slope1_gt_slope2((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 22683, ~: 22683)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 2.39s (2.36s CPU time)
Ran 11 tests for tests/protocol/pool/Pool.Liquidations.CloseFactor.t.sol:PoolLiquidationCloseFactorTests
[PASS] test_fuzz_hf_gt_095_supply_gt_threshold_closeFactorShouldBe50(uint256,uint256) (runs: 1000, μ: 828612, ~: 828684)
Logs:
Bound result 9997777787496395040455
Bound result 960000000000039696
[PASS] test_fuzz_hf_gt_095_supply_lt_threshold_closeFactorShouldBe100(uint256,uint256) (runs: 1000, μ: 793902, ~: 793957)
Logs:
Bound result 1101120829728373788
Bound result 960000000000039696
[PASS] test_fuzz_hf_lte_095_supply_gt_threshold_closeFactorShouldBe100(uint256,uint256) (runs: 1000, μ: 791253, ~: 788855)
Logs:
Bound result 998888898607506151566
Bound result 940000000000039665
[PASS] test_hf_gt_095_borrow_gt_threshold_collateral_lt_threshold_closeFactorShouldBe100() (gas: 1038965)
[PASS] test_hf_gt_095_supply_gt_threshold_closeFactorShouldBe50() (gas: 827293)
Logs:
Bound result 100000000000000000000
Bound result 970000000000000000
[PASS] test_hf_gt_095_supply_lt_threshold_closeFactorShouldBe100() (gas: 792478)
Logs:
Bound result 500000000000000000
Bound result 970000000000000000
[PASS] test_hf_helper(uint256) (runs: 1000, μ: 526310, ~: 526339)
Logs:
Bound result 357767524951273109
[PASS] test_hf_lte_095_supply_gt_threshold_closeFactorShouldBe100() (gas: 792609)
Logs:
Bound result 100000000000000000000
Bound result 940000000000000000
[PASS] test_liquidationdataprovider_edge_range() (gas: 947489)
[PASS] test_liquidationdataprovider_edge_range_reverse() (gas: 999730)
[PASS] test_shouldRevertIfCloseFactorIs100ButCollateralIsBelowThreshold() (gas: 795792)
Suite result: ok. 11 passed; 0 failed; 0 skipped; finished in 11.36s (11.32s CPU time)
Ran 17 tests for tests/protocol/tokenization/VariableDebtToken.t.sol:VariableDebtTokenEventsTests
[PASS] test_balanceOf() (gas: 228550)
[PASS] test_cancel_delegationWithSig() (gas: 102832)
[PASS] test_delegationWithSig() (gas: 95792)
[PASS] test_initialize_VariableDebtToken((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 3412165, ~: 3411638)
Logs:
Bound result 24
[PASS] test_mint_variableDebt_caller_alice((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 3485344, ~: 3484817)
Logs:
Bound result 24
[PASS] test_mint_variableDebt_caller_bob_onBehalf_alice((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 3499965, ~: 3499438)
Logs:
Bound result 24
[PASS] test_new_VariableDebtToken_implementation() (gas: 1557747)
[PASS] test_partial_burn_variableDebt((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 3500024, ~: 3499497)
Logs:
Bound result 24
[PASS] test_reverts_OperationNotSupported() (gas: 1574318)
[PASS] test_reverts_bad_expiration_delegationWithSig() (gas: 34153)
[PASS] test_reverts_bad_nonce_delegationWithSig() (gas: 111764)
[PASS] test_reverts_initialize_pool_do_not_match((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 2748110, ~: 2748039)
Logs:
Bound result 24
[PASS] test_reverts_zero_address_delegationWithSig() (gas: 33544)
[PASS] test_scaledBalanceOf() (gas: 285314)
[PASS] test_totalScaledSupply() (gas: 322863)
[PASS] test_totalSupply() (gas: 322836)
[PASS] test_total_burn_variableDebt((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 3500026, ~: 3499499)
Logs:
Bound result 24
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 10.06s (10.02s CPU time)
Ran 12 tests for tests/protocol/libraries/math/WadRayMath.t.sol:WadRayMathTests
[PASS] test_constants() (gas: 13279)
[PASS] test_rayDiv() (gas: 12748)
[PASS] test_rayMul() (gas: 11372)
[PASS] test_rayToWad() (gas: 11057)
[PASS] test_rayToWad_fuzz(uint256) (runs: 1000, μ: 13329, ~: 13277)
[PASS] test_wadDiv() (gas: 12869)
[PASS] test_wadDiv_fuzzing(uint256,uint256) (runs: 1000, μ: 10509, ~: 10721)
[PASS] test_wadMul() (gas: 11142)
[PASS] test_wadMul_edge() (gas: 11184)
[PASS] test_wadMul_fuzzing(uint256,uint256) (runs: 1000, μ: 10726, ~: 11339)
[PASS] test_wadToRay() (gas: 10867)
[PASS] test_wadToRay_fuzz(uint256) (runs: 1000, μ: 12159, ~: 12348)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 346.99ms (346.03ms CPU time)
Ran 15 tests for tests/helpers/WrappedTokenGateway.t.sol:WrappedTokenGatewayTests
[PASS] test_borrowDelegateApprove_repay() (gas: 449266)
[PASS] test_borrowVariableDebtWeth_repayWithEth() (gas: 772356)
[PASS] test_borrowVariableDebtWeth_repayWithEth_mismatchedValues() (gas: 764020)
[PASS] test_depositNativeEthInPool() (gas: 248970)
[PASS] test_fallback_revert() (gas: 10080)
[PASS] test_getWETHAddress() (gas: 10589)
[PASS] test_ownerCanRescueEth() (gas: 25215)
[PASS] test_ownerCanRescueTokens() (gas: 96942)
[PASS] test_sendEthFallback_revert() (gas: 16724)
[PASS] test_sendEth_revert() (gas: 16601)
[PASS] test_withdrawEth_full() (gas: 374247)
[PASS] test_withdrawEth_partial() (gas: 391559)
[PASS] test_withdrawEth_permit() (gas: 426415)
[PASS] test_withdrawEth_permit_frontrunRegression() (gas: 427320)
[PASS] test_withdrawEth_permit_full() (gas: 405219)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 41.38ms (16.82ms CPU time)
Ran 15 tests for tests/misc/rates/RateStrategy.t.sol:RateStrategyBaseTests
[PASS] test_getInterestRateDataBps((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 39994, ~: 39905)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_getInterestRateDataRay((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 40941, ~: 40852)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_getMaxVariableBorrowRate((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 38413, ~: 38324)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_initialization() (gas: 26143)
[PASS] test_new_DefaultReserveInterestRateStrategy_wrong_provider() (gas: 41972)
[PASS] test_new_SetReserveInterestRateParams((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 52059, ~: 51970)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_new_SetReserveInterestRateParams_override_method((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 49267, ~: 49178)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_new_SetReserveInterestRateParams_when_not_configurator((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 25928, ~: 25839)
Logs:
Bound result 9282
Bound result 2010
[PASS] test_overflow_liquidity_rates() (gas: 55141)
[PASS] test_overflow_variable_rates() (gas: 664941)
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_maxRate((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 33629, ~: 33629)
[PASS] test_reverts_SetReserveInterestRateParams_when_gt_max_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 30448, ~: 30448)
[PASS] test_reverts_SetReserveInterestRateParams_when_lt_min_op((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 30524, ~: 30524)
[PASS] test_reverts_SetReserveInterestRateParams_when_reserve_0((uint16,uint32,uint32,uint32)) (runs: 1000, μ: 27023, ~: 27023)
[PASS] test_reverts_SetReserveInterestRateParams_when_slope1_gt_slope2(uint16,uint32,uint32,uint32) (runs: 1000, μ: 32463, ~: 32463)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 4.06s (4.03s CPU time)
Ran 1 test for tests/gas/WrappedTokenGatewayV3.gas.t.sol:WrappedTokenGatewayV3_gas_Tests
[PASS] test_flow() (gas: 910879)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 42.30ms (2.09ms CPU time)
Ran 22 tests for tests/protocol/configuration/PoolAddressesProvider.t.sol:PoolAddressesProviderTests
[PASS] test_PoolDataProvider_changeContract() (gas: 1526240)
[PASS] test_getter_getMarketId() (gas: 1488924)
[PASS] test_new_PoolAddressesProvider() (gas: 1498177)
[PASS] test_reverts_setAddressAsProxy_notAuth() (gas: 1502343)
[PASS] test_reverts_setAddress_noAuth() (gas: 1507539)
[PASS] test_reverts_setters_notOwner() (gas: 1505033)
[PASS] test_setACLManager_changeContract() (gas: 3067366)
[PASS] test_setACLManager_setACLAdmin() (gas: 2301622)
[PASS] test_setAddress() (gas: 1516437)
[PASS] test_setAddressAsProxy_new_proxy() (gas: 2096171)
[PASS] test_setAddressAsProxy_upgrade_proxy() (gas: 2228513)
[PASS] test_setAddress_updateAddress() (gas: 1525575)
[PASS] test_setPoolConfiguratorImpl() (gas: 6133438)
[PASS] test_setPoolConfiguratorImpl_upgrade() (gas: 10403089)
[PASS] test_setPoolDataProvider() (gas: 1516824)
[PASS] test_setPoolImpl() (gas: 6929986)
[PASS] test_setPoolImpl_upgrade() (gas: 11198864)
[PASS] test_setPriceOracle() (gas: 1516981)
[PASS] test_setPriceOracleSentinel() (gas: 1516852)
[PASS] test_setPriceOracleSentinel_changeContract() (gas: 1526317)
[PASS] test_setPriceOracle_changeContract() (gas: 1526578)
[PASS] test_setter_setMarketId() (gas: 1500043)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 40.66ms (11.76ms CPU time)
Ran 4 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.liquidationFee.t.sol:PoolConfiguratorLiquidationFeeTests
[PASS] test_revert_setLiquidationFee_gt_100() (gas: 54925)
[PASS] test_revert_setLiquidationFee_unauthorized() (gas: 54858)
[PASS] test_setLiquidationFee() (gas: 74237)
[PASS] test_setLiquidationFee_100() (gas: 74193)
Suite result: ok. 4 passed; 0 failed; 0 skipped; finished in 29.00ms (753.97µs CPU time)
Ran 3 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.pendingLTV.t.sol:PoolConfiguratorPendingLtvTests
[PASS] test_freezeReserve_ltvSetTo0() (gas: 103495)
[PASS] test_setLtv_ltvSetPendingLtvSet(uint256,uint256) (runs: 1000, μ: 137056, ~: 137068)
[PASS] test_unfreezeReserve_pendingSetToLtv() (gas: 103358)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 1.03s (1.00s CPU time)
Ran 22 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.ACLModifiers.t.sol:PoolConfiguratorACLModifiersTest
[PASS] test_reverts_disableLiquidationGracePeriod_on_unauth(address,address) (runs: 1000, μ: 38099, ~: 38099)
[PASS] test_reverts_notAdmin_dropReserve(address) (runs: 1000, μ: 35649, ~: 35649)
[PASS] test_reverts_notAdmin_initReserves((uint8,string,string,string,string,address,address,address,bool),address) (runs: 1000, μ: 1126180, ~: 1126243)
Logs:
Bound result 8
[PASS] test_reverts_notAdmin_setReserveActive(address) (runs: 1000, μ: 35776, ~: 35776)
[PASS] test_reverts_notAdmin_updateAToken(address) (runs: 1000, μ: 34653, ~: 34653)
[PASS] test_reverts_notAdmin_updateFlashLoanPremiumTotal(address) (runs: 1000, μ: 33564, ~: 33564)
[PASS] test_reverts_notAdmin_updateVariableDebtToken(address) (runs: 1000, μ: 34607, ~: 34607)
[PASS] test_reverts_notRiskAdmin_configureReserveAsCollateral(address) (runs: 1000, μ: 38186, ~: 38186)
[PASS] test_reverts_notRiskAdmin_setAssetCollateralInEMode(address) (runs: 1000, μ: 38299, ~: 38299)
[PASS] test_reverts_notRiskAdmin_setBorrowCap(address) (runs: 1000, μ: 38088, ~: 38088)
[PASS] test_reverts_notRiskAdmin_setEModeCategory(address) (runs: 1000, μ: 38615, ~: 38615)
[PASS] test_reverts_notRiskAdmin_setReserveBorrowing(address) (runs: 1000, μ: 38150, ~: 38150)
[PASS] test_reverts_notRiskAdmin_setReserveFactor(address) (runs: 1000, μ: 38089, ~: 38089)
[PASS] test_reverts_notRiskAdmin_setReserveInterestRateData(address,address) (runs: 1000, μ: 38852, ~: 38852)
[PASS] test_reverts_notRiskAdmin_setSupplyCap(address) (runs: 1000, μ: 38200, ~: 38200)
[PASS] test_reverts_notRiskOrPoolOrEmergencyAdmin_setReserveFreeze(address) (runs: 1000, μ: 42606, ~: 42606)
[PASS] test_reverts_setDebtCeiling(address) (runs: 1000, μ: 38134, ~: 38134)
[PASS] test_reverts_setPoolPause_noGracePeriod_unauth(address,bool) (runs: 1000, μ: 38062, ~: 38062)
[PASS] test_reverts_setPoolPause_unauth(address,bool,uint40) (runs: 1000, μ: 55221, ~: 55221)
[PASS] test_reverts_setReservePause_noGracePeriod_off_unauth(address,address,bool) (runs: 1000, μ: 38333, ~: 38333)
[PASS] test_reverts_setReservePause_off_unauth(address,address,bool,uint40) (runs: 1000, μ: 38500, ~: 38500)
[PASS] test_reverts_setReservePause_on_unauth(address,address,bool,uint40) (runs: 1000, μ: 38477, ~: 38477)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 5.46s (5.44s CPU time)
Ran 10 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.borrowCaps.t.sol:PoolConfiguratorBorrowCapTests
[PASS] test_borrow_eq_cap() (gas: 294384)
[PASS] test_borrow_interests_reach_cap() (gas: 295873)
[PASS] test_borrow_lt_cap() (gas: 283148)
[PASS] test_default_borrowCap_zero() (gas: 22159)
[PASS] test_reverts_borrow_after_borrow_interests_reach_cap() (gas: 318985)
[PASS] test_reverts_borrow_gt_cap() (gas: 133795)
[PASS] test_reverts_setBorrowCap_gt_max_cap() (gas: 48160)
[PASS] test_reverts_unauthorized_setBorrowCap() (gas: 35037)
[PASS] test_setBorrowCap() (gas: 74460)
[PASS] test_setBorrowCap_them_setBorrowCap_zero() (gas: 301522)
Suite result: ok. 10 passed; 0 failed; 0 skipped; finished in 46.22ms (3.90ms CPU time)
Ran 13 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.eMode.sol:PoolConfiguratorEModeConfigTests
[PASS] test_addAnotherAssetBorrowableInEMode() (gas: 274265)
[PASS] test_addAnotherAssetCollateralInEMode() (gas: 254472)
[PASS] test_configureEmodeCategory() (gas: 118237)
[PASS] test_removeBorrowableFromEmode() (gas: 191124)
[PASS] test_removeCollateralFromEmode() (gas: 236163)
[PASS] test_reverts_setEmodeCategory_lb_lte_percentageFactor() (gas: 58244)
[PASS] test_reverts_setEmodeCategory_liquidation_threshold_doesnt_match_bonus() (gas: 35016)
[PASS] test_reverts_setEmodeCategory_ltv_gt_liqThreshold() (gas: 33736)
[PASS] test_reverts_setEmodeCategory_zero_liqThreshold() (gas: 33675)
[PASS] test_reverts_setEmodeCategory_zero_ltv() (gas: 33648)
[PASS] test_setAssetBorrowableInEMode() (gas: 211036)
[PASS] test_setAssetCollateralInEMode() (gas: 191179)
[PASS] test_updateEModeCategory() (gas: 200908)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 37.09ms (5.32ms CPU time)
Ran 7 tests for tests/protocol/configuration/AddressesProviderRegistry.t.sol:PoolAddressesProviderRegistryTest
[PASS] testAddAddressesProvider() (gas: 120369)
[PASS] testRemoveAddressesProvider() (gas: 96895)
[PASS] testRemoveMultipleAddressesProvider() (gas: 242308)
[PASS] test_addressesProviderAddedToRegistry() (gas: 16383)
[PASS] test_removesLastProvider() (gas: 32576)
[PASS] test_revert_registry_0() (gas: 15287)
[PASS] test_revert_removeNonExistingAddressesProvider() (gas: 27258)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 29.20ms (1.54ms CPU time)
Ran 1 test for tests/template/BaseTest.t.sol:BaseTest
[PASS] test_default() (gas: 225906)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 26.74ms (270.11µs CPU time)
Ran 5 tests for tests/treasury/Collector.t.sol:CollectorTest
[PASS] testApprove() (gas: 49702)
[PASS] testApproveWhenNotFundsAdmin() (gas: 18183)
[PASS] testTransfer() (gas: 54858)
[PASS] testTransferWhenNotFundsAdmin() (gas: 18207)
[PASS] test_receiveEth() (gas: 20265)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 2.85ms (225.26µs CPU time)
Ran 40 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.reserveRiskConfig.t.sol:PoolConfiguratorReserveRiskConfigs
[PASS] test_EmergencyAdminSetReserveFreeze_true() (gas: 133542)
[PASS] test_PoolAdminSetReserveFreeze_true() (gas: 97816)
[PASS] test_RiskAdminSetReserveFreeze_true() (gas: 127259)
[PASS] test_disableLiquidationGracePeriod() (gas: 80042)
[PASS] test_dropReserve() (gas: 140533)
[PASS] test_enableBorrowing((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 2654035, ~: 2653686)
Logs:
Bound result 6
[PASS] test_enableFlashBorrow((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 2645577, ~: 2645228)
Logs:
Bound result 6
[PASS] test_reverts_dropReserve_notListed() (gas: 52556)
[PASS] test_reverts_dropReserve_supplyNotZero() (gas: 292160)
[PASS] test_reverts_dropReserve_variableDebtNotZero() (gas: 439756)
[PASS] test_reverts_dropReserve_zeroAddress() (gas: 46534)
[PASS] test_reverts_setCollateralConfig_invalidParams((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 2880846, ~: 2880497)
Logs:
Bound result 6
[PASS] test_reverts_setDebtCeiling_suppliers() (gas: 278288)
[PASS] test_reverts_setLiquidationProtocolFee_amount_gt_percentageFactor() (gas: 35087)
[PASS] test_reverts_setReserveActive_false_if_suppliers() (gas: 273143)
[PASS] test_reverts_setReserveFactor_gt_percentageFactor() (gas: 35106)
[PASS] test_reverts_setSiloedBorrowing_borrowers() (gas: 388592)
[PASS] test_reverts_updateFlashloanPremium() (gas: 29725)
[PASS] test_setBorrowableInIsolation_false() (gas: 64595)
[PASS] test_setBorrowableInIsolation_true() (gas: 67368)
[PASS] test_setCollateralConfig((uint8,string,string,string,string,address,address,address,bool)) (runs: 1000, μ: 2633487, ~: 2633138)
Logs:
Bound result 6
[PASS] test_setDebtCeiling() (gas: 108683)
[PASS] test_setDebtCeiling_suppliers_ltZero() (gas: 279648)
[PASS] test_setDebtCeiling_to_zero() (gas: 131967)
[PASS] test_setFrozenReserveFreeze_true_revert() (gas: 104068)
[PASS] test_setLiquidationGracePeriodAboveCap(uint40) (runs: 1000, μ: 34614, ~: 34614)
[PASS] test_setLiquidationGracePeriodPool(uint40) (runs: 1000, μ: 134295, ~: 136658)
[PASS] test_setLiquidationGracePeriodReserve(uint40) (runs: 1000, μ: 132963, ~: 132910)
Logs:
Bound result 9779
[PASS] test_setLiquidationProtocolFee_amount_gt_percentageFactor() (gas: 71304)
[PASS] test_setPoolPause() (gas: 131801)
[PASS] test_setPoolPause_unpause() (gas: 184629)
[PASS] test_setReserveActive_false() (gas: 106127)
[PASS] test_setReserveActive_true() (gas: 65914)
[PASS] test_setReserveFactor() (gas: 938264)
[PASS] test_setReserveFreeze_false() (gas: 95811)
[PASS] test_setReservePause_false() (gas: 65198)
[PASS] test_setReservePause_true() (gas: 67953)
[PASS] test_setSiloedBorrowing() (gas: 95361)
[PASS] test_setUnfrozenReserveFreeze_false_revert() (gas: 48248)
[PASS] test_updateFlashloanPremium() (gas: 56236)
Suite result: ok. 40 passed; 0 failed; 0 skipped; finished in 6.19s (6.16s CPU time)
Ran 11 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.supplyCaps.t.sol:PoolConfiguratorSupplyCapTests
[PASS] test_default_supplyCap_zero() (gas: 22137)
[PASS] test_multiple_setSupplyCap() (gas: 353325)
[PASS] test_reverts_interests_gt_cap_and_supply() (gas: 436941)
[PASS] test_reverts_setSupplyCap_gt_max_cap() (gas: 48205)
[PASS] test_reverts_supply_gt_cap() (gas: 120158)
[PASS] test_reverts_unauthorized_setSupplyCap() (gas: 35063)
[PASS] test_setSupplyCap() (gas: 74584)
[PASS] test_setSupplyCap_them_setBorrowCap_zero() (gas: 305313)
[PASS] test_supply_eq_cap() (gas: 288805)
[PASS] test_supply_interests_reach_cap() (gas: 419477)
[PASS] test_supply_lt_cap() (gas: 288806)
Suite result: ok. 11 passed; 0 failed; 0 skipped; finished in 32.15ms (4.50ms CPU time)
Ran 4 tests for tests/protocol/pool/pool-configurator/PoolConfigurator.upgradeabilty.t.sol:PoolConfiguratorUpgradeabilityTests
[PASS] test_getConfiguratorLogic() (gas: 13579)
[PASS] test_setReserveInterestRateData() (gas: 142643)
[PASS] test_updateAToken() (gas: 2298348)
[PASS] test_updateVariableDebtToken() (gas: 1657345)
Suite result: ok. 4 passed; 0 failed; 0 skipped; finished in 29.95ms (3.78ms CPU time)
Ran 6 tests for tests/treasury/Collector.t.sol:FundsAdminRoleBytesTest
[PASS] testApprove() (gas: 49658)
[PASS] testApproveWhenNotFundsAdmin() (gas: 18161)
[PASS] testTransfer() (gas: 54903)
[PASS] testTransferWhenNotFundsAdmin() (gas: 18185)
[PASS] test_receiveEth() (gas: 20288)
[PASS] test_successful() (gas: 13383)
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 3.49ms (286.78µs CPU time)
Ran 7 tests for tests/treasury/Collector.t.sol:IsFundsAdminTest
[PASS] testApprove() (gas: 49658)
[PASS] testApproveWhenNotFundsAdmin() (gas: 18183)
[PASS] testTransfer() (gas: 54858)
[PASS] testTransferWhenNotFundsAdmin() (gas: 18207)
[PASS] test_isFundsAdmin() (gas: 24249)
[PASS] test_isNotFundsAdmin() (gas: 17579)
[PASS] test_receiveEth() (gas: 20288)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 3.60ms (430.71µs CPU time)
Ran 26 tests for tests/treasury/Collector.t.sol:StreamsTest
[PASS] testApprove() (gas: 49636)
[PASS] testApproveWhenNotFundsAdmin() (gas: 18335)
[PASS] testCancelStreamByFundsAdmin() (gas: 206160)
[PASS] testCancelStreamByRecipient() (gas: 231265)
[PASS] testCancelStreamWhenNotAdminOrRecipient() (gas: 242221)
[PASS] testCancelStreamWhenStreamNotExists() (gas: 22839)
[PASS] testCreateStream() (gas: 244288)
[PASS] testCreateStreamWhenDepositIsZero() (gas: 27252)
[PASS] testCreateStreamWhenNotFundsAdmin() (gas: 24600)
[PASS] testCreateStreamWhenRecipientIsCollector() (gas: 25041)
[PASS] testCreateStreamWhenRecipientIsTheCaller() (gas: 25296)
[PASS] testCreateStreamWhenRecipientIsZero() (gas: 25064)
[PASS] testCreateStreamWhenStartTimeInThePast() (gas: 25761)
[PASS] testCreateStreamWhenStopTimeBeforeStart() (gas: 23210)
[PASS] testGetNextStreamId() (gas: 17592)
[PASS] testGetNotExistingStream() (gas: 18416)
[PASS] testGetStream() (gas: 234347)
[PASS] testTransfer() (gas: 54947)
[PASS] testTransferWhenNotFundsAdmin() (gas: 18337)
[PASS] testWithdrawFromStream() (gas: 307164)
[PASS] testWithdrawFromStreamFinishesSuccessfully() (gas: 230192)
[PASS] testWithdrawFromStreamWhenAmountExceedsBalance() (gas: 243607)
[PASS] testWithdrawFromStreamWhenAmountIsZero() (gas: 238105)
[PASS] testWithdrawFromStreamWhenNotAdminOrRecipient() (gas: 240264)
[PASS] testWithdrawFromStreamWhenStreamNotExists() (gas: 23004)
[PASS] test_receiveEth() (gas: 20310)
Suite result: ok. 26 passed; 0 failed; 0 skipped; finished in 7.24ms (4.45ms CPU time)
Ran 7 tests for tests/governance/CrossChainGovernanceE2E.t.sol:CrossChainGovernanceE2E
[PASS] test_executorHoldsPoolAdminAndCanConfigureProtocol() (gas: 121746)
[PASS] test_fullE2E_deliverQueueExecute() (gas: 310177)
[PASS] test_multipleActionsExecuteInOrder() (gas: 511714)
[PASS] test_revert_directCallToPayloadsController() (gas: 16527)
[PASS] test_revert_executeAfterGracePeriod() (gas: 226112)
[PASS] test_revert_unauthorizedOriginChain() (gas: 220027)
[PASS] test_revert_unauthorizedOriginSender() (gas: 217899)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 2.99ms (1.10ms CPU time)
Ran 17 tests for tests/invariants/CryticToFoundry.t.sol:CryticToFoundry
[PASS] test_replay_V33_supply() (gas: 2037193)
[PASS] test_replay_V33_transferFrom() (gas: 2483361)
[PASS] test_replay_v33_2repayWithAtokens() (gas: 2032493)
[PASS] test_replay_v33_2setUserEMode() (gas: 2533216)
[PASS] test_replay_v33_2transfer() (gas: 2044900)
[PASS] test_replay_v33_3liquidationCall() (gas: 2560583)
[PASS] test_replay_v33_assert_BORROWING_HSPOST_G() (gas: 2524430)
[PASS] test_replay_v33_borrow() (gas: 6259662)
[PASS] test_replay_v33_repayWithATokens() (gas: 2558152)
[PASS] test_replay_v33_setReserveActive() (gas: 2088536)
[PASS] test_replay_v33_supply() (gas: 2669153)
[PASS] test_v32_2_borrow() (gas: 2221307)
[PASS] test_v32_borrow() (gas: 2062297)
[PASS] test_v32_mintToTreasury() (gas: 2478397)
[PASS] test_v32_repay() (gas: 1931019)
[PASS] test_v32_setPoolPause() (gas: 4457653)
[PASS] test_v32_withdrawEchidna() (gas: 2049421)
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 134.26ms (119.10ms CPU time)
Ran 13 tests for tests/deployments/DeploymentsGasLimits.t.sol:DeploymentsGasLimits
[PASS] test0AaveV3SetupDeployment() (gas: 5310733)
[PASS] test10ConfigEngineDeployment() (gas: 7043465)
[PASS] test11StaticATokenDeployment() (gas: 6676133)
[PASS] test12PeripheralsTreasuryPartner() (gas: 7560610)
[PASS] test1AaveV3GettersBatch1Deployment() (gas: 4570271)
[PASS] test2AaveV3GettersBatch2Deployment() (gas: 3599146)
[PASS] test3AaveV3PoolDeployment() (gas: 7702516)
[PASS] test4AaveV3L2PoolDeployment() (gas: 7963025)
[PASS] test5PeripheralsRelease() (gas: 7071734)
[PASS] test6MiscDeployment() (gas: 1247701)
[PASS] test7ParaswapDeployment() (gas: 5160279)
[PASS] test8SetupMarket() (gas: 2670408)
[PASS] test9TokensMarket() (gas: 3760673)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 16.90ms (6.56ms CPU time)
Ran 24 tests for tests/protocol/pool/Pool.Liquidations.t.sol:PoolLiquidationTests
[PASS] test_deficit_increased_after_liquidate_bad_debt() (gas: 754900)
[PASS] test_full_liquidate_atokens_multiple_variable_borrows() (gas: 913507)
[PASS] test_full_liquidate_multiple_supplies_and_variable_borrows() (gas: 1086373)
[PASS] test_full_liquidate_multiple_variable_borrows() (gas: 954890)
[PASS] test_liquidate_borrow_bad_debt() (gas: 764139)
[PASS] test_liquidate_borrow_burn_multiple_assets_bad_debt() (gas: 1098499)
[PASS] test_liquidate_emode_position_without_emode_oracle() (gas: 993997)
[PASS] test_liquidate_isolated_position() (gas: 851515)
[PASS] test_liquidate_variable_borrow_no_fee() (gas: 798536)
[PASS] test_liquidate_variable_borrow_repro() (gas: 978828)
[PASS] test_liquidate_variable_borrow_same_collateral_and_borrow() (gas: 643285)
[PASS] test_liquidation_when_grace_period_disabled(uint40) (runs: 1000, μ: 846455, ~: 846397)
Logs:
Bound result 9779
[PASS] test_liquidation_with_liquidation_grace_period_collateral_active(uint40) (runs: 1000, μ: 1004393, ~: 1007125)
Logs:
Bound result 9772
[PASS] test_liquidation_with_liquidation_grace_period_debt_active(uint40) (runs: 1000, μ: 1002260, ~: 1004909)
Logs:
Bound result 9772
[PASS] test_liquidation_with_liquidation_grace_period_debt_collateral_active(uint40) (runs: 1000, μ: 1018138, ~: 1020970)
Logs:
Bound result 9772
[PASS] test_partial_liquidate_atokens_variable_borrow() (gas: 836936)
[PASS] test_partial_liquidate_variable_borrow() (gas: 797167)
[PASS] test_reverts_liquidation_collateral_not_active() (gas: 607199)
[PASS] test_reverts_liquidation_hf_gt_liquidation_threshold() (gas: 440817)
[PASS] test_reverts_liquidation_invalid_borrow() (gas: 575878)
[PASS] test_reverts_liquidation_oracle_sentinel_on() (gas: 328174)
[PASS] test_reverts_liquidation_reserveInactive() (gas: 160956)
[PASS] test_reverts_liquidation_reservePaused() (gas: 131853)
[PASS] test_self_liquidate_position_shouldRevert() (gas: 660415)
Suite result: ok. 24 passed; 0 failed; 0 skipped; finished in 14.05s (14.02s CPU time)
Ran 22 tests for tests/gas/Pool.Operations.gas.t.sol:PoolOperations_gas_Tests
[PASS] test_borrow() (gas: 990806)
[PASS] test_borrow_onBehalfOf() (gas: 1079552)
[PASS] test_flashLoanSimple() (gas: 683418)
[PASS] test_flashLoan_with_one_asset() (gas: 812758)
[PASS] test_flashLoan_with_one_asset_with_borrowing() (gas: 1309688)
[PASS] test_flashLoan_with_two_assets() (gas: 1186065)
[PASS] test_flashLoan_with_two_assets_with_borrowing() (gas: 2165851)
[PASS] test_liquidationCall_deficit() (gas: 1488655)
[PASS] test_liquidationCall_deficitInAdditionalReserve() (gas: 1848005)
[PASS] test_liquidationCall_full() (gas: 1488722)
[PASS] test_liquidationCall_partial() (gas: 1474751)
[PASS] test_liquidationCall_receive_ATokens_full() (gas: 1465071)
[PASS] test_liquidationCall_receive_ATokens_partial() (gas: 1450864)
[PASS] test_mintToTreasury_one_asset() (gas: 1030621)
[PASS] test_mintToTreasury_one_asset_zero_amount() (gas: 46521)
[PASS] test_mintToTreasury_two_assets() (gas: 2075178)
[PASS] test_mintToTreasury_two_assets_zero_amount() (gas: 54085)
[PASS] test_repay() (gas: 1411613)
[PASS] test_repay_with_ATokens() (gas: 1247885)
[PASS] test_supply() (gas: 2052413)
[PASS] test_withdraw() (gas: 855653)
[PASS] test_withdraw_with_active_borrows() (gas: 998194)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 87.95ms (47.04ms CPU time)
Ran 3 tests for tests/gas/Pool.OperationsComposition.gas.t.sol:PoolOperationsComposition_gas_Tests
[PASS] test_batchLiquidation() (gas: 2379350)
[PASS] test_repayAndWithdraw() (gas: 1407610)
[PASS] test_supplyAndBorrow() (gas: 723471)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 43.54ms (8.23ms CPU time)
Ran 20 tests for tests/extensions/v3-config-engine/AaveV3ConfigEngineTest.t.sol:AaveV3ConfigEngineTest
[PASS] testAssetEModeUpdates() (gas: 2739139)
[PASS] testBorrowUpdatesNoChange() (gas: 2452590)
[PASS] testBorrowsUpdates() (gas: 2521318)
[PASS] testCapsUpdate() (gas: 2462068)
[PASS] testCollateralUpdateCorrectBonus() (gas: 2476444)
[PASS] testCollateralUpdateWrongBonus() (gas: 796163)
[PASS] testCollateralsUpdates() (gas: 2475976)
[PASS] testCollateralsUpdatesNoChange() (gas: 2450745)
[PASS] testCollateralsUpdatesNoChangeShouldNotEmit() (gas: 801779)
[PASS] testEModeCategoryCreation() (gas: 1239619)
[PASS] testEModeCategoryUpdates() (gas: 2605964)
[PASS] testEModeCategoryUpdatesNoChange() (gas: 2607724)
[PASS] testEModeCategoryUpdatesNoChangeShouldNotEmit() (gas: 875932)
[PASS] testEModeCategoryUpdatesWrongBonus() (gas: 866325)
[PASS] testListingWithEModeCategoryCreation() (gas: 5870626)
[PASS] testListings() (gas: 5580857)
[PASS] testListingsCustom() (gas: 9280566)
[PASS] testListingsCustomWithEModeCategoryCreation() (gas: 9571101)
[PASS] testPriceFeedsUpdates() (gas: 2528345)
[PASS] testRateStrategiesUpdates() (gas: 2515761)
Suite result: ok. 20 passed; 0 failed; 0 skipped; finished in 25.77s (34.96s CPU time)
Ran 2 tests for tests/deployments/AaveV3PermissionsTest.t.sol:AaveV3PermissionsTest
[PASS] testCheckPermissions() (gas: 52530794)
[PASS] testCheckPermissionsTreasuryPartner() (gas: 53022360)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 45.95ms (33.82ms CPU time)
Ran 6 tests for tests/misc/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.t.sol:InitializableImmutableAdminUpgradeabilityProxyTests
[PASS] test_proxy_fallback() (gas: 600016)
[PASS] test_proxy_upgradeTo() (gas: 622088)
[PASS] test_proxy_upgradeToAndCall() (gas: 627937)
[PASS] test_proxy_upgradeToAndCall_initialize() (gas: 597095)
[PASS] test_reverts_upgradeToAndCall_notAdmin() (gas: 602961)
[PASS] test_reverts_upgradeTo_notAdmin() (gas: 600781)
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 2.97ms (1.61ms CPU time)
Ran 54 tests for tests/protocol/pool/L2Pool.t.sol:L2PoolTests
[PASS] test_approvePositionManager_false() (gas: 42552)
[PASS] test_approvePositionManager_true() (gas: 48988)
[PASS] test_dropReserve() (gas: 92990)
[PASS] test_getBorrowLogic() (gas: 13740)
[PASS] test_getEModeLogic() (gas: 13718)
[PASS] test_getFlashLoanLogic() (gas: 13675)
[PASS] test_getLiquidationLogic() (gas: 13761)
[PASS] test_getPoolLogic() (gas: 13782)
[PASS] test_getSupplyLogic() (gas: 13693)
[PASS] test_getVirtualUnderlyingBalance() (gas: 226860)
[PASS] test_getters_getUserAccountData() (gas: 575184)
[PASS] test_l2_borrow() (gas: 409585)
[PASS] test_l2_liquidationCall() (gas: 1017731)
[PASS] test_l2_partial_withdraw() (gas: 298280)
[PASS] test_l2_repay() (gas: 431309)
[PASS] test_l2_repay_atokens() (gas: 440357)
[PASS] test_l2_repay_permit(uint128,uint128,uint128,uint128,uint128) (runs: 1000, μ: 603956, ~: 607673)
Logs:
Bound result 214683063650383166
Bound result 111414359169516325
Bound result 44098182
Bound result 655034
[PASS] test_l2_set_user_collateral() (gas: 246078)
[PASS] test_l2_supply() (gas: 245330)
[PASS] test_l2_supply_permit(uint128,uint120) (runs: 1000, μ: 415288, ~: 415286)
[PASS] test_l2_withdraw() (gas: 235972)
[PASS] test_mintToTreasury() (gas: 654588)
[PASS] test_mintToTreasury_skip_invalid_addresses() (gas: 659167)
[PASS] test_noop_approvePositionManager_true_when_already_is_activated() (gas: 54177)
[PASS] test_noop_setUserUseReserveAsCollateralOnBehalfOf_true_when_already_is_activated() (gas: 424818)
[PASS] test_noop_setUserUseReserveAsCollateral_true_when_already_is_activated() (gas: 256008)
[PASS] test_pool_defaultValues() (gas: 4802658)
[PASS] test_renouncePositionManager() (gas: 38418)
[PASS] test_rescueTokens(uint256) (runs: 1000, μ: 81728, ~: 81992)
Logs:
Bound result 38152179
[PASS] test_resetIsolationModeTotalDebt() (gas: 689832)
[PASS] test_revert_setUserEModeOnBehalfOf_not_position_manager(address) (runs: 1000, μ: 212735, ~: 212735)
[PASS] test_reverts_impl_initialize() (gas: 4216206)
[PASS] test_reverts_initReserve_not_poolConfigurator(address) (runs: 1000, μ: 24906, ~: 24906)
[PASS] test_reverts_modifiers_not_poolConfigurator(address) (runs: 1000, μ: 98895, ~: 98895)
[PASS] test_reverts_new_Pool_invalidAddressesProvider() (gas: 4316459)
[PASS] test_reverts_setUserEmode_0_bad_hf() (gas: 943775)
[PASS] test_reverts_setUserUseReserveAsCollateralOnBehalfOf_caller_not_position_manager(address) (runs: 1000, μ: 404230, ~: 404230)
[PASS] test_reverts_setUserUseReserveAsCollateral_false_hf_lower_lqt() (gas: 565959)
[PASS] test_reverts_setUserUseReserveAsCollateral_true_ltv_zero() (gas: 270181)
[PASS] test_reverts_setUserUseReserveAsCollateral_true_reserve_inactive() (gas: 181906)
[PASS] test_reverts_setUserUseReserveAsCollateral_true_reserve_paused() (gas: 263833)
[PASS] test_reverts_setUserUseReserveAsCollateral_true_user_balance_zero() (gas: 50072)
[PASS] test_reverts_setUserUseReserveAsCollateral_true_user_isolation_mode() (gas: 750305)
[PASS] test_setLiquidationGracePeriod(uint40) (runs: 1000, μ: 36662, ~: 36758)
[PASS] test_setLiquidationGracePeriod_assetNotListed(uint40) (runs: 1000, μ: 26612, ~: 26612)
[PASS] test_setUserEModeOnBehalfOf() (gas: 244549)
[PASS] test_setUserEmode() (gas: 218212)
[PASS] test_setUserEmode_twice() (gas: 356490)
[PASS] test_setUserEmode_twice_inconsistent_category() (gas: 949857)
[PASS] test_setUserUseReserveAsCollateralOnBehalfOf_false() (gas: 392627)
[PASS] test_setUserUseReserveAsCollateralOnBehalfOf_true() (gas: 418974)
[PASS] test_setUserUseReserveAsCollateral_false() (gas: 218178)
[PASS] test_setUserUseReserveAsCollateral_true() (gas: 250195)
[PASS] test_updateBridgeProtocolFee() (gas: 231)
Suite result: ok. 54 passed; 0 failed; 0 skipped; finished in 7.67s (7.64s CPU time)
Ran 6 tests for tests/protocol/libraries/math/MathUtils.t.sol:MathUtilsTests
[PASS] test_calculateCompoundInterest_1() (gas: 4825)
[PASS] test_calculateCompoundInterest_2() (gas: 5175)
[PASS] test_calculateCompoundInterest_edge() (gas: 4950)
[PASS] test_calculateCompoundInterest_shouldNotOverflow() (gas: 4038)
[PASS] test_calculateLinearInterest() (gas: 4652)
[PASS] test_constants() (gas: 3070)
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 1.98ms (143.39µs CPU time)
Ran 17 tests for tests/extensions/paraswap-adapters/ParaswapAdapters.t.sol:ParaswapAdaptersTest
[PASS] test_rescueTokens() (gas: 196269)
[PASS] test_reverts_offset_out_of_range_swap_liquidity_permit_flashloan() (gas: 724819)
[PASS] test_reverts_swapAndDeposit_offset() (gas: 791619)
[PASS] test_reverts_swapAndRepay_offset_out_of_range() (gas: 882366)
[PASS] test_reverts_withdrawAndSwap_offset_out_of_range() (gas: 771611)
[PASS] test_swapAndDeposit() (gas: 870985)
[PASS] test_swapAndDeposit_permit() (gas: 918476)
[PASS] test_swapAndRepay() (gas: 952520)
[PASS] test_swapAndRepay_flashloan() (gas: 1016280)
[PASS] test_swapAndRepay_flashloan_permit() (gas: 1059382)
[PASS] test_swapAndRepay_no_collateral_leftovers() (gas: 1000962)
[PASS] test_swapAndRepay_permit() (gas: 999859)
[PASS] test_swap_liquidity_flashloan() (gas: 951388)
[PASS] test_swap_liquidity_permit_flashloan() (gas: 994384)
[PASS] test_withdrawAndSwap() (gas: 789113)
[PASS] test_withdrawAndSwap_permit() (gas: 832682)
[PASS] test_withdrawSwapAdapter_reverts_flashloan() (gas: 517594)
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 66.62ms (35.74ms CPU time)
Ran 5 tests for tests/protocol/libraries/math/PercentageMath.t.sol:PercentageMathTests
[PASS] test_constants() (gas: 10165)
[PASS] test_percentDiv() (gas: 11144)
[PASS] test_percentDiv_fuzz(uint256,uint256) (runs: 1000, μ: 10570, ~: 10676)
[PASS] test_percentMul() (gas: 11151)
[PASS] test_percentMul_fuzz(uint256,uint256) (runs: 1000, μ: 10589, ~: 11207)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 124.09ms (123.22ms CPU time)
Ran 18 tests for tests/protocol/pool/Pool.Borrow.t.sol:PoolBorrowTests
[PASS] test_borrow_variable_in_isolation() (gas: 548193)
[PASS] test_reverts_borrow_DebtCeilingExceeded() (gas: 451857)
[PASS] test_reverts_borrow_InconsistentEModeCategory() (gas: 415794)
[PASS] test_reverts_borrow_cap() (gas: 289329)
[PASS] test_reverts_borrow_collateral_balance_zero() (gas: 77707)
[PASS] test_reverts_borrow_collateral_can_not_cover() (gas: 302302)
[PASS] test_reverts_borrow_debt_ceiling() (gas: 700008)
[PASS] test_reverts_borrow_hf_lt_1() (gas: 540084)
[PASS] test_reverts_borrow_invalidAmount() (gas: 61828)
[PASS] test_reverts_borrow_not_borrowable_isolation() (gas: 434430)
[PASS] test_reverts_borrow_reserveFrozen() (gas: 128778)
[PASS] test_reverts_borrow_reserveInactive() (gas: 131611)
[PASS] test_reverts_borrow_reservePaused() (gas: 99707)
[PASS] test_reverts_borrow_sentinel_oracle_down() (gas: 302235)
[PASS] test_reverts_borrow_sioled_borrowing_violation() (gas: 677347)
[PASS] test_reverts_deprecated_stable_borrow() (gas: 386193)
[PASS] test_reverts_variable_borrow_transferred_funds() (gas: 360523)
[PASS] test_variable_borrow() (gas: 331110)
Suite result: ok. 18 passed; 0 failed; 0 skipped; finished in 40.37ms (12.01ms CPU time)
Ran 15 tests for tests/protocol/pool/Pool.Repay.t.sol:PoolRepayTests
[PASS] test_full_repay_borrow_variable_in_isolation() (gas: 545498)
[PASS] test_partial_repay_borrow_variable_in_isolation() (gas: 615151)
[PASS] test_repayWithATokens_full_collateral_variable_borrow() (gas: 574093)
[PASS] test_repayWithATokens_full_variable_borrow() (gas: 376336)
[PASS] test_repayWithATokens_fuzz_collateral_variable_borrow(uint256,uint32) (runs: 1000, μ: 561794, ~: 562240)
[PASS] test_repayWithPermit(uint128,uint128,uint128,uint128,uint128) (runs: 1000, μ: 547221, ~: 550774)
Logs:
Bound result 214683063650383166
Bound result 111414359169516325
Bound result 44098182
Bound result 655034
[PASS] test_repayWithPermit_not_failing_if_permit_was_used(uint128,uint128,uint128,uint128,uint128) (runs: 1000, μ: 552800, ~: 556583)
Logs:
Bound result 214683063650383166
Bound result 111414359169516325
Bound result 44098182
Bound result 655034
[PASS] test_repayWithPermit_should_revert_if_permit_is_less_then_repay_amount(uint128,uint128,uint128,uint128,uint128) (runs: 1000, μ: 504651, ~: 504875)
Logs:
Bound result 214683063650383166
Bound result 111414359169516325
Bound result 44098182
Bound result 655034
[PASS] test_repay_full_variable_borrow() (gas: 361630)
[PASS] test_revert_repay_full_stable_borrow() (gas: 314208)
[PASS] test_reverts_borrow_invalidAmount() (gas: 51713)
[PASS] test_reverts_borrow_reserveInactive() (gas: 123594)
[PASS] test_reverts_borrow_reservePaused() (gas: 91818)
[PASS] test_reverts_no_explicit_repay_on_behalf() (gas: 308613)
[PASS] test_reverts_repay_no_debt() (gas: 51974)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 9.84s (9.81s CPU time)
Ran 4 tests for tests/gas/Pool.Setters.gas.t.sol:PoolSetters_gas_Tests
[PASS] test_setUserEMode() (gas: 1860426)
[PASS] test_setUserEModeOnBehalfOf() (gas: 1429985)
[PASS] test_setUserUseReserveAsCollateral() (gas: 647276)
[PASS] test_setUserUseReserveAsCollateralonBehalfOf() (gas: 709588)
Suite result: ok. 4 passed; 0 failed; 0 skipped; finished in 46.31ms (7.20ms CPU time)
Ran 17 tests for tests/extensions/stata-token/ERC20AaveLMUpgradable.t.sol:ERC20AaveLMUpgradableTest
[PASS] test_7201() (gas: 3355)
[PASS] test_claimRewards(uint256,uint32,uint88,uint32) (runs: 1000, μ: 837219, ~: 797985)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_claimRewardsOnBehalfOf_self(uint256,uint32,uint88,uint32) (runs: 1000, μ: 837434, ~: 798200)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_claimRewardsOnBehalfOf_shouldRevertForInvalidClaimer(uint256,uint32,uint88,uint32) (runs: 1000, μ: 772703, ~: 774264)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_claimRewardsOnBehalfOf_validClaimer(uint256,uint32,uint88,uint32) (runs: 1000, μ: 869818, ~: 830583)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_claimRewardsToSelf(uint256,uint32,uint88,uint32) (runs: 1000, μ: 837133, ~: 797899)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_claimableRewards(uint256,uint32,uint88,uint32) (runs: 1000, μ: 773556, ~: 775178)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_collectAndUpdateRewards(uint256,uint32,uint88,uint32) (runs: 1000, μ: 817224, ~: 794281)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_correctAccountingForDelayedRegistration() (gas: 823792)
[PASS] test_getReferenceAsset() (gas: 12902)
[PASS] test_isRegisteredRewardToken() (gas: 633916)
[PASS] test_noRewardsInitialized() (gas: 39220)
[PASS] test_noopWhenNotInitialized() (gas: 52782)
[PASS] test_rewardTokens() (gas: 632057)
[PASS] test_transfer(uint256,uint32,uint88,uint32,address,uint256) (runs: 1000, μ: 847877, ~: 864680)
Logs:
Bound result 15005390672794677964142036999
Bound result 4
Bound result 26
Bound result 842169003311366776379688
[PASS] test_transfer_toSelf(uint256,uint32,uint88,uint32) (runs: 1000, μ: 806163, ~: 798822)
Logs:
Bound result 1000000000000000000
Bound result 22761
Bound result 1747
Bound result 307304752035
[PASS] test_zeroIncentivesController() (gas: 37689)
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 15.69s (15.66s CPU time)
Ran 13 tests for tests/protocol/pool/Pool.Supply.t.sol:PoolSupplyTests
[PASS] test_deprecated_deposit() (gas: 233738)
[PASS] test_first_supply() (gas: 233804)
[PASS] test_first_supply_on_behalf() (gas: 235829)
[PASS] test_reverts_SupplyToAToken() (gas: 50067)
[PASS] test_reverts_supply_cap() (gas: 104499)
[PASS] test_reverts_supply_invalidAmount() (gas: 47731)
[PASS] test_reverts_supply_reserveFrozen() (gas: 116747)
[PASS] test_reverts_supply_reserveInactive() (gas: 119532)
[PASS] test_reverts_supply_reservePaused() (gas: 87799)
[PASS] test_supplyWithPermit(uint128,uint120,uint128) (runs: 1000, μ: 407291, ~: 407298)
[PASS] test_supplyWithPermit_not_failing_if_permit_was_used(uint128,uint120,uint128) (runs: 1000, μ: 407848, ~: 407855)
[PASS] test_supplyWithPermit_should_revert_if_permit_is_less_then_supply_amount(uint128,uint128) (runs: 1000, μ: 277684, ~: 277688)
[PASS] test_supply_after_collateral_enabled() (gas: 279391)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 4.95s (4.92s CPU time)
Ran 11 tests for tests/protocol/pool/Pool.Withdraw.t.sol:PoolWithdrawTests
[PASS] test_Reverts_withdraw_transferred_funds() (gas: 526689)
[PASS] test_full_withdraw() (gas: 226899)
[PASS] test_full_withdraw_to() (gas: 232409)
[PASS] test_partial_withdraw() (gas: 223419)
[PASS] test_reverts_WithdrawToAToken() (gas: 237901)
[PASS] test_reverts_withdraw_hf_lt_lqt() (gas: 650057)
[PASS] test_reverts_withdraw_invalidAmount() (gas: 237825)
[PASS] test_reverts_withdraw_invalidBalance() (gas: 239894)
[PASS] test_reverts_withdraw_reserveInactive() (gas: 194731)
[PASS] test_reverts_withdraw_reservePaused() (gas: 276751)
[PASS] test_withdraw_not_enabled_as_collateral() (gas: 231409)
Suite result: ok. 11 passed; 0 failed; 0 skipped; finished in 38.88ms (8.90ms CPU time)
Ran 44 tests for tests/protocol/pool/Pool.t.sol:PoolTests
[PASS] test_approvePositionManager_false() (gas: 42587)
[PASS] test_approvePositionManager_true() (gas: 49054)
[PASS] test_dropReserve() (gas: 92812)
[PASS] test_getBorrowLogic() (gas: 13696)
[PASS] test_getEModeLogic() (gas: 13718)
[PASS] test_getFlashLoanLogic() (gas: 13674)
[PASS] test_getLiquidationLogic() (gas: 13738)
[PASS] test_getPoolLogic() (gas: 13715)
[PASS] test_getSupplyLogic() (gas: 13648)
[PASS] test_getVirtualUnderlyingBalance() (gas: 226910)
[PASS] test_getters_getUserAccountData() (gas: 575227)
[PASS] test_mintToTreasury() (gas: 653968)
[PASS] test_mintToTreasury_skip_invalid_addresses() (gas: 658548)
[PASS] test_noop_approvePositionManager_true_when_already_is_activated() (gas: 54309)
[PASS] test_noop_setUserUseReserveAsCollateralOnBehalfOf_true_when_already_is_activated() (gas: 424796)
[PASS] test_noop_setUserUseReserveAsCollateral_true_when_already_is_activated() (gas: 255985)
[PASS] test_pool_defaultValues() (gas: 4802714)
[PASS] test_renouncePositionManager() (gas: 38471)
[PASS] test_rescueTokens(uint256) (runs: 1000, μ: 81744, ~: 82014)
Logs:
Bound result 38152179
[PASS] test_resetIsolationModeTotalDebt() (gas: 689338)
[PASS] test_revert_setUserEModeOnBehalfOf_not_position_manager(address) (runs: 1000, μ: 212711, ~: 212711)
[PASS] test_reverts_impl_initialize() (gas: 4216228)
[PASS] test_reverts_initReserve_not_poolConfigurator(address) (runs: 1000, μ: 24950, ~: 24950)
[PASS] test_reverts_modifiers_not_poolConfigurator(address) (runs: 1000, μ: 98784, ~: 98784)
[PASS] test_reverts_new_Pool_invalidAddressesProvider() (gas: 4316393)
[PASS] test_reverts_setUserEmode_0_bad_hf() (gas: 943796)
[PASS] test_reverts_setUserUseReserveAsCollateralOnBehalfOf_caller_not_position_manager(ad...*[Comment body truncated]* |
🔮 Coverage report
|
♻️ Forge Gas Snapshots🔕 Unchanged
|
20f1063 to
1810c0e
Compare
| * → BORROW_ENGINE.functionDelegateCall(executeBorrowSide) | ||
| * → poolConfigurator.setReserveFactor(USDC, 1500) [msg.sender = this contract] | ||
| * | ||
| * Therefore this contract must have POOL_ADMIN or RISK_ADMIN before execute() is called. |
There was a problem hiding this comment.
shouldn't give these roles to the payload, it should be given to the executor which delegate calls into payloads
There was a problem hiding this comment.
for testing its better to deploy a temp exectutor to play around with
| curl -sf -X POST "${RPC_MONAD}" -H "Content-Type: application/json" \ | ||
| -d "{\"jsonrpc\":\"2.0\",\"method\":\"tenderly_setCode\",\"params\":[\"$$ADDR\",\"$$CODE\"],\"id\":1}" \ | ||
| | python3 -c "import json,sys; r=json.load(sys.stdin); print(' ok:', r.get('result','ERROR'))"; \ |
There was a problem hiding this comment.
dont need to do this, can use cast rpc
(this whole script can be in bash using cast commands mainly; would be easier to follow)
| addrs = [a.strip() for a in assets.strip('[]').split(',')]; \ | ||
| for asset in addrs: \ | ||
| data = subprocess.run(['cast','call','${POOL_PROXY}','getReserveData(address)((uint256,uint128,uint128,uint128,uint128,uint128,uint40,uint16,address,address,address,address,uint128,uint128,uint128))',asset,'--rpc-url','${RPC_MONAD}'],capture_output=True,text=True).stdout; \ | ||
| proxies = [x.strip() for x in data.strip('()').split(',') if x.strip().startswith('0x') and len(x.strip())==42 and x.strip() != '0x0000000000000000000000000000000000000000']; \ |
There was a problem hiding this comment.
if we need to do this then it won't work on prod, no?
also i think monad is cheap enough that we can test on mainnet itself
also also, are we sure this is a tenderly bug? not following it completely, if so, should be on all vnets? which is likely not the case, and anyway should be reported to tenderly to fix
| IACLManager(ACL_MANAGER).addPoolAdmin(address(listing)); | ||
| listing.execute(); |
There was a problem hiding this comment.
never give perms to payloads pls, only to executor once and execute through it (executor needs to be deployed using https://github.com/aave-dao/aave-governance-v3
| import 'forge-std/Test.sol'; | ||
|
|
||
| // NOTE: The test is self-contained and does not import from src/ to avoid | ||
| // transitive OpenZeppelin submodule dependencies. When your git submodules |
There was a problem hiding this comment.
i think this issue was fixed in the latest upstream PR
Monad deployment changes