> For the complete documentation index, see [llms.txt](https://gotham-chainworks-llc.gitbook.io/oddsonchainprotocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gotham-chainworks-llc.gitbook.io/oddsonchainprotocol/odds-on-chain.md).

# Odds On Chain

<figure><img src="/files/x8BHYPhdRYeNxnQXrSop" alt=""><figcaption></figcaption></figure>

Welcome to Odds On Chain Minidoc. Using this protocol players can bet on any competition, be it sports or otherwise, where there are at least 2 different outcomes. The protocol will be deployed for various competitive events to let the community have some fun & earn some profit based on their predictive skills.

<figure><img src="/files/akjsXabjxlaONhgnwBaR" alt=""><figcaption></figcaption></figure>

## This time let us predict the FIFA Football World Cup 2022 Qatar Winner!

Each betting ticket will cost a ticket price. As users buy tickets to predict their winner the protocol collects all amounts into a pool or a pot after the protocol fees are deducted. At the end of the world cup the pot is divided between all those who had predicted the right winning team.

**Smart Contract Link -** [**https://bscscan.com/address/0x797111129d5b5c3372bcda5092e3e9480c352821**](https://bscscan.com/address/0x797111129d5b5c3372bcda5092e3e9480c352821)

**Chain - BSC**

**Token needed for purchasing tickets - $BUSD**

**Maximum number of tickets purchaseable - 10**

## How does this work?

The betting event is split into 3 phases, The Betting Phase, The Waiting Phase, The Result Phase.

### The Betting Phase&#x20;

This is the first phase where the players can select their winning team & bet any number of tickets (up to a maximum value). Each wallet can only bet once. This phase runs till the start of quarter finals of the world cup.

### The Waiting Phase&#x20;

This is the second phase where the betting will be disabled as we have entered the quarter finals of the world cup. Players cannot bet during this phase & it will run till the finals are played.

### The Results Phase&#x20;

This is the final phase where the winning team is found & updated in the betting protocol. Players who have predicted the right team can collect their winnings now.

## Points to remember

There is only one successful outcome to the bet. You need to choose the final winner of the entire world cup.&#x20;

Each wallet can ONLY BET ONCE!&#x20;

You can select a minimum of 1 up to a predefined MAX number of tickets for your bet.&#x20;

Betting will be paused when we reach the quarter finals stage of the world cup as the odds would be significantly skewed by then.&#x20;

Once the final results are in for the world cup, the winning team will be set & you would be able to collect your winnings if you selected the right team.&#x20;

You would lose your entire bet amount if your selected team did not win.&#x20;

Protocol takes a percentage fee from each ticket entry, which is the revenue for the protocol. Once you place a bet there is no way to revoke or withdraw your bet.

## Disclaimer

You agree that the use of the Betting Protocol is at your own risk. Investing in smart contracts, cryptocurrencies and NFTs are inherently risky activities, and as such, it is vital that you conduct your own due diligence before interacting with a contract or buying or selling any cryptocurrency or NFT, and come to your own conclusions. In no event should developers be liable for any direct or indirect losses caused by the Betting Protocol. Users are encouraged to read the verified code of the Betting Protocol.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gotham-chainworks-llc.gitbook.io/oddsonchainprotocol/odds-on-chain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
