Skip to content

Commit

Permalink
fix cooldown update in pot method (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo authored Jul 29, 2024
1 parent fdc3079 commit d46d9a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ def update_configs(self):
self.referral_fee_matching_pool_basis_points = config.get("referral_fee_matching_pool_basis_points")
self.referral_fee_public_round_basis_points = config.get("referral_fee_public_round_basis_points")
self.chef_fee_basis_points = config.get("chef_fee_basis_points")
self.cooldown_end = datetime.fromtimestamp(config.get("cooldown_end_ms") / 1000)
if config.get("cooldown_end_ms"):
self.cooldown_end = datetime.fromtimestamp(config.get("cooldown_end_ms") / 1000)
self.all_paid_out = config.get("all_paid_out")
self.protocol_config_provider = config.get("protocol_config_provider")
self.save()
Expand Down

0 comments on commit d46d9a8

Please sign in to comment.