-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multi betting #329
Merged
Merged
Commits on Sep 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d87fc3b - Browse repository at this point
Copy the full SHA d87fc3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee4402b - Browse repository at this point
Copy the full SHA ee4402bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a678c43 - Browse repository at this point
Copy the full SHA a678c43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20a102f - Browse repository at this point
Copy the full SHA 20a102fView commit details -
The logic was updated to allow for multiple bets on the same market. The bet status is not necessary anymore. It is replaced by the timestamp in which we processed a bet (either bet on it or blacklisted it) and the number of bets we have placed on it. From now on, we can check when we last placed a bet on a market to decide whether we can bet on it or not, and we can also check whether the number of bets has been increased to determine whether the action taken was to bet or to blacklist it.
Configuration menu - View commit details
-
Copy full SHA for 35e2a0b - Browse repository at this point
Copy the full SHA 35e2a0bView commit details -
feat: add methods to support rebetting
- `update_market_info`: we will need to update the markets instead of keeping them as they are since we need to use the latest information about the market conditions, such as liquidity when rebetting. - `rebet_allowed`: we will need to check if a rebet is allowed based on some rules
Configuration menu - View commit details
-
Copy full SHA for f4c5f51 - Browse repository at this point
Copy the full SHA f4c5f51View commit details -
feat: update the fetching logic to support rebetting
We now update the existing bets' market information.
Configuration menu - View commit details
-
Copy full SHA for e270b6c - Browse repository at this point
Copy the full SHA e270b6cView commit details -
feat: introduce new configurations for rebetting
We will need to know which range is considered acceptable to vote before a market opens, and what is the chance to rebet vs choosing a new market to bet on.
Configuration menu - View commit details
-
Copy full SHA for f04ed8c - Browse repository at this point
Copy the full SHA f04ed8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d8b574 - Browse repository at this point
Copy the full SHA 4d8b574View commit details -
refactor: collect randomness before the selection round
That is because after adding support for rebetting, the selection round needs to generate a random number in order to decide whether to rebet or not, based on the `rebet_chance` configuration.
Configuration menu - View commit details
-
Copy full SHA for 0d60302 - Browse repository at this point
Copy the full SHA 0d60302View commit details -
Configuration menu - View commit details
-
Copy full SHA for 851fe70 - Browse repository at this point
Copy the full SHA 851fe70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33e9757 - Browse repository at this point
Copy the full SHA 33e9757View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe64bde - Browse repository at this point
Copy the full SHA fe64bdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2254972 - Browse repository at this point
Copy the full SHA 2254972View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcfcda8 - Browse repository at this point
Copy the full SHA dcfcda8View commit details
Commits on Sep 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0d876a - Browse repository at this point
Copy the full SHA a0d876aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18d29c0 - Browse repository at this point
Copy the full SHA 18d29c0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.