Skip to content

Commit 315064a

Browse files
committed
fix: 1h min_snapshots_dt
1 parent 6bebaab commit 315064a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/RewardsHandler.vy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __init__(
156156

157157
twa.__init__(
158158
WEEK, # twa_window = 1 week
159-
600, # min_snapshot_dt_seconds = 600 seconds
159+
3_600, # min_snapshot_dt_seconds = 1 hour (3600 sec)
160160
)
161161

162162
self._set_minimum_weight(minimum_weight)

tests/unitary/rewards_handler/test_rh_constructor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ def test_default_behavior(
3333
# eoa would be the deployer from which we revoke the role
3434
assert not rewards_handler.hasRole(rewards_handler.DEFAULT_ADMIN_ROLE(), boa.env.eoa)
3535
assert rewards_handler.eval("twa.twa_window") == 86_400 * 7
36-
assert rewards_handler.eval("twa.min_snapshot_dt_seconds") == 600 # 10 minutes
36+
assert rewards_handler.eval("twa.min_snapshot_dt_seconds") == 3600 # 1 hr

0 commit comments

Comments
 (0)