Skip to content

Commit

Permalink
fix: set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Jan 12, 2024
1 parent ffe6809 commit 49706f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/VaultV3.vy
Original file line number Diff line number Diff line change
Expand Up @@ -1300,10 +1300,10 @@ def _process_report(strategy: address) -> (uint256, uint256):
self.full_profit_unlock_date = block.timestamp + new_profit_locking_period

else:
# NOTE: only setting this to the current timestamp will turn in the desired effect,
# NOTE: only setting this to the 0 will turn in the desired effect,
# no need to update profit_unlocking_rate
self.full_profit_unlock_date = block.timestamp

self.full_profit_unlock_date = 0
# Record the report of profit timestamp.
self.strategies[strategy].last_report = block.timestamp

Expand Down

0 comments on commit 49706f2

Please sign in to comment.