# Welcome to Footpool

## Overview

**FootPool** is a groundbreaking decentralized betting application that revolutionizes the traditional sports betting experience by leveraging blockchain technology. Built on the *Ethereum Virtual Machine (EVM)* using Solidity, **FootPool** offers a secure, transparent, and fair platform where users can place bets on the outcomes of sports matches in the classic 1 X 2 format. The platform draws inspiration from the popular Spanish "quiniela," incorporating similar rules and betting structures to create a familiar and engaging user experience.


# How it works

**FootPool** utilizes the classic **1 X 2** betting system, a well-known format in sports betting, particularly in football. Each week, **FootPool** provides a list of all football matches scheduled for that week. Users can view the upcoming matches and their schedules on the **FootPool** platform, making it easy to plan their bets.

For each match, users must predict one of three possible outcomes:&#x20;

* **1:** the home team wins.
* **X:** the match ends in a draw.
* **2:** the away team wins.

Users **place their bets** by selecting the outcome they believe will occur for each match. To participate, users compile their predictions into a single bet slip, which includes their chosen outcomes for all the matches listed for that week. This process is similar to filling out a quiniela card, where multiple matches are included in a single bet slip.

Once the bet slip is completed, users **submit their bets** to the platform. The submitted bets are collected into a betting pool for each match, and the platform accepts bets up until the scheduled start time of the first match of the week. FootPool integrates with Chainlink oracles to fetch real-time match outcomes and results from reliable APIs. These oracles provide accurate and tamper-proof data for each match, ensuring the integrity of the betting process. After all matches for the week are completed, the results are automatically retrieved and recorded on the blockchain.

The platform then **compares users' predictions with the actual match outcomes** to determine the number of correct predictions on each bet slip. FootPool follows a tiered prize structure similar to the Spanish quiniela, where users with more correct predictions receive higher rewards. For example, users who correctly predict all matches win the top prize, while users with a slightly lower number of correct predictions receive secondary prizes. The prize pool, consisting of the total amount of bets placed for the week, is distributed among the winners based on the accuracy of their predictions.

Payouts are managed by smart contracts, ensuring a **secure and transparent distribution of winnings**. Winners receive their rewards directly in their digital wallets, with no need for intermediaries. This automated and transparent payout system enhances user trust and satisfaction.

FootPool's weekly betting cycles ensure continuous user engagement. By offering **new betting opportunities each week**, users are encouraged to return regularly, fostering a dynamic and active community. This consistent interaction not only enhances user retention but also contributes to the growth and vibrancy of the **FootPool** ecosystem.

FootPool combines the excitement of traditional sports betting with the security and transparency of blockchain technology. By adopting the classic 1 X 2 betting system and integrating Chainlink oracles for real-time match data, FootPool provides a fair, engaging, and innovative betting experience. This unique approach is poised to attract a large user base and significantly impact the blockchain and sports betting landscapes.


# Prize pools

## Summary

1. 15% of total prize pool is for protocol
2. 85% of total prize pool:&#x20;
   1. 10 matches -> rewards for:
      1. 10 hits: 40%
      2. 9 hits: 17,5%
      3. 8 hits: 17,5%
      4. 7 hits: 10%

## An example

Assuming a total prize pool of $10,000, the following table illustrates the distribution of prizes based on the number of correct predictions and the number of winners in each category.

| Number of hits           | Total Prize Amount | Number of Winners | Prize per Winner |
| ------------------------ | ------------------ | ----------------- | ---------------- |
| 10                       | $3,400             | 2                 | $1,700           |
| 9                        | $1,487.50          | 4                 | $371.88          |
| 8                        | $1,487.50          | 5                 | $297.50          |
| 7                        | $850               | 10                | $85              |
| **Total Distributed**    | **$7,225**         | **21**            | **-**            |
| **Treasure Funds (15%)** | **$1,500**         | **-**             | **-**            |
| **Undistributed Funds**  | **$275**           | **-**             | **-**            |
| **Total Prize Pool**     | **$10,000**        | **-**             | **-**            |

#### Summary example

* **Protocol Share**: $1,500 (15% of the total prize pool)
* **Total Prize Distribution**: $8,500 (85% of the total prize pool)
* **Total Distributed to Winners**: $7,225
* **Undistributed Funds**: $275 (can be carried over to the next prize pool or allocated as a bonus)

This table ensures a fair distribution of the prize pool among winners, rewarding users based on their prediction accuracy while maintaining the protocol's sustainability.


# Our Features

#### **Decentralized Betting Platform**:

* FootPool utilizes smart contracts to manage all betting activities, ensuring that the process is automated, transparent, and tamper-proof.
* Users can place bets directly on the platform without the need for intermediaries, reducing fees and increasing trust.

#### **1 X 2 Betting Format**:

* Users can bet on three possible outcomes for each sports match: Home team wins (1), Draw (X), or Away team wins (2).
* This simple and familiar format makes FootPool accessible to both novice and experienced bettors.

#### **Weekly Betting Pools**:

* Every week, users can place bets on the football matches of the corresponding league.
* Bets are collected into pools for each match, with users able to place bets until the match starts.
* The platform runs weekly betting cycles, ensuring continuous user engagement and frequent interactions with the network.

#### **Chainlink Oracles Integration**:

* FootPool's system is fully decentralized thanks to the integration with Chainlink oracles.
* These oracles allow FootPool to query APIs for all matches of the week as well as their results, ensuring accurate and reliable data for bet settlement.

#### **Prize Structure and Payouts**:

* FootPool introduces an innovative prize structure that rewards users not just for winning bets but also for the accuracy of their predictions.
* Payouts are managed by smart contracts, ensuring that winners receive their rewards promptly and transparently.

**Referral System**:

* Users can refer others to join FootPool.
* If a referred user wins a prize, the referrer receives 1% of the prize value.

**Telegram Integration**:

* Users can receive notifications about results and upcoming matches directly on Telegram.
* Betting functionality via Telegram, enhancing user convenience and engagement.

**Leaderboard**:

* Display wallets participating in the platform.
* Shows the number of weeks participated, number of wins, seasons participated, and correct predictions.


# Roadmap

**Q3 2024: Initial Launch and Core Features**

* **Launch FootPool MVP**: Deploy the initial version on a Testnet.
* **Supported Leagues**: La liga, Bundesliga, Premier League and Serie A.
* **Basic Betting Functionality**: Implement the classic 1 X 2 betting system.

**Q4 2024: Platform Stabilization and Security Enhancements**

* **Testing:** Conduct beta testing with a selected group of users
* **Smart Contract Audits**: Perform thorough audits to ensure security and efficiency.
* **UI/UX Improvements**: Hire a UI/UX designer to enhance the website’s design and user experience.
* **Prize Pool Distribution**: Establish and automate prize pool distribution for accurate predictions (7, 8, 9, 10 correct outcomes).

**Q1 2025: Deploy on Live Mainnets**

* **Deployment on Mainnet:** FootPool will be deployed on the Mainnets, transitioning from testnet to a fully operational decentralized betting platform.
* **Leaderboard**: Displays user participation, wins, seasons, and correct predictions for competitive ranking and engagement.
* **Referral System**: Users earn 1% of referred winners' prizes, incentivizing platform growth.

#### Q2 2025:  More features

* **Telegram Integration:** Implement a system for users to receive notifications about results and upcoming matches via Telegram. Develop functionality allowing users to place bets directly through Telegram, enhancing convenience and engagement.
* **NFT:** TBD...
* **Governance:** TBD...

#### Summary

FootPool is committed to providing a dynamic and engaging sports betting experience by leveraging the power of blockchain technology. Our roadmap outlines a comprehensive plan to enhance the platform, expand its offerings, and continuously improve user experience. We aim to create a thriving ecosystem that attracts and retains users, fostering a vibrant community of sports enthusiasts and bettors.


# Connecting Your Wallet

## Connecting to the footpool.xyz with MetaMask on desktop

1. Open the dapp in your browser.
2. Make sure you have an Ethereum-compatible wallet like MetaMask installed.
3. Click on the "Connect Wallet" option in the top right.
4. In your wallet, approve the connection request.
5. Confirm the connection, and check that your account is active in the Footpool interface.

If you follow these steps successfuly, you will be able to see something like

<img src="/files/ASFDLp07C2sTEDCSJCsG" alt="" data-size="original"><br>

{% embed url="<https://www.youtube.com/watch?v=TUhyQCgvLwA>" %}


# Placing Bets

1. **Connect Your Wallet**: Open Footpool and ensure your wallet is connected.

2. **Navigate to Available Matches**: In the Footpool homepage, you’ll see a list of available matches to bet on. Review the options and pick the match you’re interested in by clicking on it. This will open up the betting interface specific to that match, showing detailed information about the teams, the available betting options (1X2 format).

   <figure><img src="/files/8n7NHdPUSHZEnpKO0FtO" alt=""><figcaption><p>footpool homepage showing available matches</p></figcaption></figure>

3. **Choose Your Bet Option for every match:** Selecting your bet involves choosing one of three options based on the outcome you predict:

   * **"1" for a Home Team Win**: If you believe the home team will win, select this option.
   * **"X" for a Draw**: Choose this if you predict the match will end in a tie with no winning side.
   * **"2" for an Away Team Win**: Select this if you expect the visiting team to win.

   <figure><img src="/files/mld1TbjQrzEUZ37oMs3W" alt=""><figcaption><p>footpool bets fo a match week</p></figcaption></figure>

4. **Review and Confirm Bet**: Double-check your bets, once satisfied, confirm the bet. Bet cost is **5 USDT**. Since this involves a token transfer, you must first approve the use of USDT in your wallet, granting Footpool permission to interact with your tokens.

5. **Wait for Match Result**: After the transaction is confirmed on the blockchain, your bet is securely recorded. Once the match concludes and results are verified, Footpool distributes winnings directly to winning wallets.

This setup leverages blockchain transparency, so all bets and payouts are traceable, ensuring a fair betting environment without intermediaries.

{% embed url="<https://www.youtube.com/watch?v=p6l6uvryhrg>" %}


# Getting Rewards

At Footpool, the rewards from your bets will be automatically sent to your wallet once the football match concludes. You won’t need to manually claim them—the process is seamless and completely automated.

After the match, you can easily view the results of your bets in a detailed table, which will show:

* **Successful Bets**: Highlighted in green, showing the correct outcomes.
* **Unsuccessful Bets**: Marked in red, indicating the predictions that didn’t align with the actual results.

Additionally, a personalized message will confirm if you’ve won, along with the amount you’ve earned. This feature makes it easy to track your betting performance and ensures that you receive your rewards without any delays, providing a smooth and transparent betting experience.

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


# Mint USDT on Testnet

Here’s a detailed guide on how to obtain free USDT on the testnet via the Footpool Faucet. This will allow you to participate in bets on the Footpool platform without needing actual funds:

1. **Open Footpool and Go to the Faucet Section**: After connecting your wallet, navigate to the “Faucet” section on the Footpool platform. This section is designed to provide users with free test USDT. This “Faucet” section is placed on top left of the screen.

<figure><img src="/files/6EGZWRc9JI2zNl6hW4z9" alt=""><figcaption></figcaption></figure>

2. **Copy Your Wallet Address:** Get your wallet addres on clipboard and paste it on form.
3. **Mint USDT:** Press Mint button and you'll receive 100 USDT on your wallet. You will be able to see current USDT balance on top right of navigation, next to ETH balance.

{% embed url="<https://www.youtube.com/watch?v=8h9rmAIYerM>" %}


