Skip to content

Commit

Permalink
Update packages/valory/skills/decision_maker_abci/behaviours/sampling.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adamantios Zaras <[email protected]>
  • Loading branch information
cyberosa and Adamantios authored Nov 22, 2024
1 parent 1ad3178 commit ca67f79
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def processable_bet(self, bet: Bet, now: int) -> bool:
# create a filter based on whether we can rebet or not
lifetime = bet.openingTimestamp - now
t_rebetting = (lifetime // UNIX_WEEK) + UNIX_DAY
self.context.logger.info(f"bet.processed_timestamp: {bet.processed_timestamp}")
can_rebet = now >= bet.processed_timestamp + t_rebetting
self.context.logger.info(f"can_rebet: {can_rebet}")
return within_ranges and can_rebet

def _sampled_bet_idx(self, bets: List[Bet]) -> int:
Expand Down

0 comments on commit ca67f79

Please sign in to comment.