> For the complete documentation index, see [llms.txt](https://doveswap-finance.gitbook.io/polyfarm-doveswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doveswap-finance.gitbook.io/polyfarm-doveswap/help/faq.md).

# FAQ

Frequently Asked Questions

## How is DoveSwap compared to other gaming platforms?

* **Provably fair**: Unlike traditional casinos that run on black boxes. DoveSwap games run on smart contracts that are transparent and immutable. Provably random numbers are generated by [Chainlink VRF](https://docs.chain.link/docs/chainlink-vrf/) to settle bet outcomes.
* **No custody risk**: Players hold funds in their own wallets. The game contract is programmed to only accept bets that it can afford to payout.
* **High speed**: DoveSwap is built on Polygon network with fast settlement times and low transaction fees.
* **Low cost**: DoveSwap only charges 1% house edge or 0.1% house edge if players play with ROLL tokens.

## What are the differences between Coin Flip, Dice Roll and DoveRoll?

All games are powered by the same smart contract that uses a provably random number generated by [Chainlink VRF](https://docs.chain.link/docs/chainlink-vrf/) to generate game outcomes.

Coin Flip and Dice Roll let players bet on specific outcomes, whereas DoveRoll lets players bet on a range of outcomes. Coin Flip and Dice Roll are useful for players who are confident in predicting specific game outcomes (e.g. lucky players or skilled players who believe they can predict Chainlink VRF's random numbers). Otherwise, a DoveRoll game with winning chance of 50% is the same as a Coin Flip game or a Dice Roll with 3 dices selected.

## How do I receive my winnings?

Bets will be settled 10 blocks (\~20 seconds) after your bet transaction is included on the blockchain.&#x20;

Prizes will be sent automatically to your wallet address if you have won the bet.

To check your winnings:

1. Go to your wallet address on Polygonscan.com.
2. Click on "Internal Txns" and you will see your winnings sent to your wallet address.

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9bd4bu9hTDkMBwpN1%2F-Me9ckrSejNb28un8ewA%2Fimage.png?alt=media\&token=7f42c3f2-1921-4d7d-b4bb-86acb19bd2c4)

## How do I know whether I have won the game?

Bets will be settled 10 blocks (\~20 seconds) after your bet transaction is included on the blockchain.

Prizes will be sent automatically to your wallet address if you have won the bet.

Players can check whether they have won in the Game History panel, which shows the results of recent bets, by looking for their wallet address.

Alternatively, players can go to Polygonscan page of the game contract (MATIC game contract, DoveSwap  game contract), key in their bet ID in "bets" and select "Query".

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9bd4bu9hTDkMBwpN1%2F-Me9cxLrBOA_yjNFM8QH%2Fimage.png?alt=media\&token=65a276c1-50c1-49c6-8592-6f2800caf07c)

Please refer to below for instructions on how to retrieve your bet ID.

## How do I check my Bet ID?

Players can get their Bet ID from the Game History panel.

Alternatively, players can check using Polygonscan block explorer:

1\. Go to your bet transaction on a Polygonscan

2\. Go to Logs

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9bd4bu9hTDkMBwpN1%2F-Me9d6o8y5V7TVNMYF58%2Fimage.png?alt=media\&token=b4d83188-88c2-440f-a743-8e0132f40b59)

3\. Look for the log named "BetPlaced". Your bet ID can be found in Topic #1:

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9bd4bu9hTDkMBwpN1%2F-Me9d3TrKyUsITT7Z3V2%2Fimage.png?alt=media\&token=368559be-8202-4969-b0a4-f8d64c2b6f50)

## My bet is not settled by Chainlink. What can I do?

In the extremely rare event that [Chainlink VRF](https://docs.chain.link/docs/chainlink-vrf/) did not fulfill your bet, please contact DoveSwap support in our Telegram group. Such events may occur when gas fees are abnormally high because Chainlink VRF has a gas limit of 200,000 only. This has historically only happened once in the operational lifespan of DoveSwap with over 30,000 bets settled.

Alternatively, you can request for a refund yourself at the Polygonscan page of the game contract (MATIC game contract, DoveSwap game contract):

1. Go to refundBet
2. Key in "0" for payableAmount
3. Key in your bet ID for betId
4. Refunds will only be processed after 43200 blocks (\~24 hours) waiting time

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9bd4bu9hTDkMBwpN1%2F-Me9dSGk90ZDX-Coh7IO%2Fimage.png?alt=media\&token=498d6b2c-1fa2-4501-a8cd-30444d7e1209)

## What happens if the house loses or runs out of token balance?

DoveSwap's contract parameters and logic are carefully designed to avoid the risk of a bank run:

* **House edge**: DoveSwap earns a 1% fee on every bet.
* **Maximum bet amount**: Players can only place bets not exceeding the maximum bet amount that is set to a small fraction of the total contract balance.
* **Balance locked in bets**: Contract will never accept bets it cannot payout. It achieves this by tracking the total possible win amount of all outstanding bets pending settlement and ensuring it never exceed the contract balance.

## Where can I review DoveSwap's smart contracts?

Our Github repositories can be found at: <https://github.com/DoveSwap>

Our game contracts are deployed at:

MATIC Game Contract:&#x20;

DOVE Game Contract:&#x20;
