diff --git a/.gas-snapshot b/.gas-snapshot index a2348b3..5bc6daf 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,30 +1,44 @@ -AludelFactoryTest:test_GIVEN_a_delisted_program_THEN_it_CANNOT_be_updated() (gas: 25125) -AludelFactoryTest:test_GIVEN_a_delisted_program_THEN_it_CAN_be_added_again() (gas: 51222) -AludelFactoryTest:test_GIVEN_a_program_wasnt_added_THEN_metadata_for_it_CANNOT_be_set() (gas: 19624) -AludelFactoryTest:test_GIVEN_an_already_added_program_WHEN_adding_it_manually_THEN_it_reverts() (gas: 22532) -AludelFactoryTest:test_GIVEN_an_unlisted_template_WHEN_adding_a_program_with_it_THEN_it_reverts() (gas: 24803) -AludelFactoryTest:test_WHEN_adding_a_program_THEN_it_is_NOT_listed_as_a_template() (gas: 98412) -AludelFactoryTest:test_WHEN_adding_a_program_manually_AND_using_template_zero_THEN_it_reverts() (gas: 22624) -AludelFactoryTest:test_WHEN_adding_a_program_manually_THEN_it_CANNOT_be_used_as_a_template() (gas: 113721) -AludelFactoryTest:test_WHEN_adding_a_program_manually_THEN_the_instance_is_registered_AND_a_program_AND_metadata_can_be_set_AND_it_CANNOT_be_added_again() (gas: 135939) -AludelFactoryTest:test_WHEN_adding_a_template_THEN_it_is_NOT_listed_as_a_program() (gas: 62451) -AludelFactoryTest:test_WHEN_adding_a_template_as_disabled_THEN_its_listed_as_disabled_AND_no_programs_can_be_launched_with_it_AND_programs_can_be_added_with_it() (gas: 173218) -AludelFactoryTest:test_WHEN_adding_address_zero_as_template_THEN_it_reverts() (gas: 14592) -AludelFactoryTest:test_WHEN_adding_an_already_added_tempalte_THEN_it_reverts() (gas: 18956) -AludelFactoryTest:test_WHEN_calling_permissioned_methods_with_a_non_owner_account_THEN_it_reverts() (gas: 53785) -AludelFactoryTest:test_WHEN_delisting_a_listed_program_THEN_data_for_it_isnt_available() (gas: 24931) -AludelFactoryTest:test_WHEN_delisting_a_non_listed_program_THEN_it_reverts() (gas: 17862) -AludelFactoryTest:test_WHEN_deploying_a_factory_THEN_the_owner_is_set_to_the_deployer() (gas: 8145) -AludelFactoryTest:test_WHEN_disabling_a_template_THEN_its_listed_as_disabled() (gas: 73217) -AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_its_initialized_AND_bps_and_recipient_set_at_construction_time_are_used() (gas: 675451) -AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_ownership_is_transferred_AND_the_vault_factory_AND_bonusTokens_are_registered() (gas: 683095) -AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_the_instance_is_registered() (gas: 10764) -AludelFactoryTest:test_WHEN_launching_an_aludel_with_an_unlisted_template_THEN_it_reverts_with_TemplateNotRegistered() (gas: 30763) -AludelFactoryTest:test_WHEN_launching_with_a_disabled_template_THEN_it_reverts() (gas: 85040) -AludelFactoryTest:test_WHEN_setting_a_different_fee_bps_and_recipient_THEN_its_passed_to_new_aludels() (gas: 663952) -AludelFactoryTest:test_WHEN_updating_a_program_with_empty_fields_THEN_it_isnt_updated() (gas: 70245) -AludelFactoryTest:test_WHEN_updating_an_unlisted_template_THEN_it_reverts() (gas: 24809) -AludelFactoryIntegrationTest:test_many_users_multiple_stakes() (gas: 1695786) -AludelFactoryIntegrationTest:test_stake() (gas: 380420) -AludelFactoryIntegrationTest:test_unstake() (gas: 452678) -PowerSwitchTest:test_getStatus() (gas: 731214) +AludelFactoryTest:test_GIVEN_a_delisted_program_THEN_it_CANNOT_be_updated() (gas: 23341) +AludelFactoryTest:test_GIVEN_a_delisted_program_THEN_it_CAN_be_added_again() (gas: 51072) +AludelFactoryTest:test_GIVEN_a_program_wasnt_added_THEN_metadata_for_it_CANNOT_be_set() (gas: 17444) +AludelFactoryTest:test_GIVEN_an_already_added_program_WHEN_adding_it_manually_THEN_it_reverts() (gas: 20352) +AludelFactoryTest:test_GIVEN_an_unlisted_template_WHEN_adding_a_program_with_it_THEN_it_reverts() (gas: 22623) +AludelFactoryTest:test_WHEN_adding_a_program_THEN_it_is_NOT_listed_as_a_template() (gas: 98312) +AludelFactoryTest:test_WHEN_adding_a_program_manually_AND_using_template_zero_THEN_it_reverts() (gas: 20444) +AludelFactoryTest:test_WHEN_adding_a_program_manually_THEN_it_CANNOT_be_used_as_a_template() (gas: 111491) +AludelFactoryTest:test_WHEN_adding_a_program_manually_THEN_the_instance_is_registered_AND_a_program_AND_metadata_can_be_set_AND_it_CANNOT_be_added_again() (gas: 133459) +AludelFactoryTest:test_WHEN_adding_a_template_THEN_it_is_NOT_listed_as_a_program() (gas: 62351) +AludelFactoryTest:test_WHEN_adding_a_template_as_disabled_THEN_its_listed_as_disabled_AND_no_programs_can_be_launched_with_it_AND_programs_can_be_added_with_it() (gas: 170838) +AludelFactoryTest:test_WHEN_adding_address_zero_as_template_THEN_it_reverts() (gas: 12412) +AludelFactoryTest:test_WHEN_adding_an_already_added_tempalte_THEN_it_reverts() (gas: 16776) +AludelFactoryTest:test_WHEN_calling_permissioned_methods_with_a_non_owner_account_THEN_it_reverts() (gas: 50445) +AludelFactoryTest:test_WHEN_delisting_a_listed_program_THEN_data_for_it_isnt_available() (gas: 24851) +AludelFactoryTest:test_WHEN_delisting_a_non_listed_program_THEN_it_reverts() (gas: 15682) +AludelFactoryTest:test_WHEN_deploying_a_factory_THEN_the_owner_is_set_to_the_deployer() (gas: 8095) +AludelFactoryTest:test_WHEN_disabling_a_template_THEN_its_listed_as_disabled() (gas: 73017) +AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_its_initialized_AND_bps_and_recipient_set_at_construction_time_are_used() (gas: 675401) +AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_ownership_is_transferred_AND_the_vault_factory_AND_bonusTokens_are_registered() (gas: 683045) +AludelFactoryTest:test_WHEN_launching_an_aludel_THEN_the_instance_is_registered() (gas: 10714) +AludelFactoryTest:test_WHEN_launching_an_aludel_with_an_unlisted_template_THEN_it_reverts_with_TemplateNotRegistered() (gas: 28583) +AludelFactoryTest:test_WHEN_launching_with_a_disabled_template_THEN_it_reverts() (gas: 82760) +AludelFactoryTest:test_WHEN_setting_a_different_fee_bps_and_recipient_THEN_its_passed_to_new_aludels() (gas: 663702) +AludelFactoryTest:test_WHEN_updating_a_program_with_empty_fields_THEN_it_isnt_updated() (gas: 69945) +AludelFactoryTest:test_WHEN_updating_an_unlisted_template_THEN_it_reverts() (gas: 22449) +AludelFactoryIntegrationTest:test_many_users_multiple_stakes() (gas: 1712688) +AludelFactoryIntegrationTest:test_stake() (gas: 413356) +AludelFactoryIntegrationTest:test_unstake() (gas: 457312) +AludelV3Test:test_aludel_stake_invalid_permission() (gas: 459631) +AludelV3Test:test_aludel_stake_not_enough_balance() (gas: 594655) +AludelV3Test:test_funding_shares() (gas: 861909) +AludelV3Test:test_stakes_invalid_vault() (gas: 6238312) +AludelV3Test:test_stakes_max_stakes_reached() (gas: 3078097) +AludelV3Test:test_stakes_no_amount_staked() (gas: 256169) +AludelV3Test:test_stakes_total_stakes_units_calculations() (gas: 773105) +AludelV3LibTest:test_calculateNewShares_no_previous_shares(uint128,uint128,uint128) (runs: 256, μ: 4498, ~: 4498) +AludelV3LibTest:test_calculateNewShares_with_previous_shares(uint128,uint128,uint128) (runs: 256, μ: 5347, ~: 5347) +AludelV3LibTest:test_calculateSharesLocked(uint128,uint16) (runs: 256, μ: 280185, ~: 280185) +AludelV3LibTest:test_calculateStakeUnits(uint24) (runs: 256, μ: 183907, ~: 183907) +AludelV3LibTest:test_calculateTotalStakeUnits_empty_stakes(uint24) (runs: 256, μ: 373316, ~: 373316) +AludelV3LibTest:test_calculateTotalStakeUnits_single_stake(uint24) (runs: 256, μ: 405916, ~: 405916) +PowerSwitchTest:test_getStatus() (gas: 731064) +PowerSwitchTest:test_n_days(uint8) (runs: 256, μ: 730, ~: 730)