From 21c06dcc5a329087b956952686cc6748fbdd0a66 Mon Sep 17 00:00:00 2001 From: heswithme Date: Mon, 7 Oct 2024 15:00:54 +0200 Subject: [PATCH] feat: reverted add optional argument --- contracts/RewardsHandler.vy | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contracts/RewardsHandler.vy b/contracts/RewardsHandler.vy index b4a35fd..967cba2 100644 --- a/contracts/RewardsHandler.vy +++ b/contracts/RewardsHandler.vy @@ -278,7 +278,7 @@ def set_twa_window(_twa_window: uint256): @external -def set_distribution_time(new_distribution_time: uint256, enact_startegy: address = empty(address)): +def set_distribution_time(new_distribution_time: uint256): """ @notice Admin function to correct the distribution rate of the rewards. Making this value lower will reduce the time it takes to stream the rewards, making it @@ -298,13 +298,7 @@ def set_distribution_time(new_distribution_time: uint256, enact_startegy: addres extcall vault.setProfitMaxUnlockTime(new_distribution_time) # enact the changes - if enact_startegy == empty(address): - # we apply the changes with first strategy in default queue - extcall vault.process_report(staticcall vault.default_queue(0)) - else: - # or we use the specified strategy - extcall vault.process_report(enact_startegy) - + extcall vault.process_report(staticcall vault.default_queue(0)) @external def set_minimum_weight(new_minimum_weight: uint256):