Skip to content

Commit

Permalink
Increase stake amount (#166)
Browse files Browse the repository at this point in the history
* Increase stake amount

* Adjust stake

* Just a little bit more

* Adjust

* Fix test
  • Loading branch information
trizin authored Sep 12, 2023
1 parent c987c6e commit f37f120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdr_backend/predictoor/approach1/predictoor_agent1.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def get_prediction(
predval = bool(random.getrandbits(1))

# Stake amount is in ETH
stake = random.randint(1, 10) / 1000
stake = random.randint(1, 30) / 10

return (predval, stake)
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_secondsPerEpoch(self) -> int:
def submit_prediction(
self, predval: bool, stake: float, timestamp: int, wait: bool = True
): # pylint: disable=unused-argument
assert stake < 1
assert stake <= 3
if timestamp in self._prediction_slots:
print(f" (Replace prev pred at time slot {timestamp})")
self._prediction_slots.append(timestamp)
Expand Down

0 comments on commit f37f120

Please sign in to comment.