Skip to content
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 17 commits into from
Sep 20, 2024
Merged

Add support for multi betting #329

merged 17 commits into from
Sep 20, 2024

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    d87fc3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee4402b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a678c43 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    20a102f View commit details
    Browse the repository at this point in the history
  5. feat: update the bets' logic

    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.
    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    35e2a0b View commit details
    Browse the repository at this point in the history
  6. 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
    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    f4c5f51 View commit details
    Browse the repository at this point in the history
  7. feat: update the fetching logic to support rebetting

    We now update the existing bets' market information.
    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    e270b6c View commit details
    Browse the repository at this point in the history
  8. 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.
    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    f04ed8c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4d8b574 View commit details
    Browse the repository at this point in the history
  10. 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.
    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    0d60302 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    851fe70 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    33e9757 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fe64bde View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2254972 View commit details
    Browse the repository at this point in the history
  15. chore: run generators

    Adamantios committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    dcfcda8 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    a0d876a View commit details
    Browse the repository at this point in the history
  2. chore: run generators

    Adamantios committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    18d29c0 View commit details
    Browse the repository at this point in the history