Skip to content

Commit

Permalink
feat: reverted add optional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
heswithme committed Oct 7, 2024
1 parent 04d110b commit 21c06dc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions contracts/RewardsHandler.vy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 21c06dc

Please sign in to comment.