> 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/master.md).

# DoveSwap on Polygon

DoveSwap Yield Farming & Provably Fair and Decentralized Casino. Powered by Chainlink and Polygon.

DoveSwap is a decentralized yield farming & casino built on Polygon Network and Chainlink.

Unlike traditional casinos that operate in black boxes, DoveSwap runs on smart contracts that are fair, transparent and immutable.

We have pioneered innovative features on DoveSwap's yield farm to maximize rewards and mitigate risks faced by yield farmers:

* **Lottery Yield Farm**
* **Token Buyback Burning**
* **Liquidity Provider Protection**
* **On-Chain Referral Program**

## Lottery Yield Farm

Yield farmers can earn DOVE tokens and stand a chance to win jackpot prizes at the same time.

Farmers participate by depositing tokens (e.g. MATIC, USDC):

* 96% of user's deposit will be used to farm DOVE tokens.
* 4% of user's deposit will go to deposit fee.

![](https://4175573650-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Me9Tefh6AmAu6mtJ1Vq%2F-Me9Tm_vW0XilKdOpDP9%2F-Me9_t6cxJOkMgcjPiF6%2Fimage.png?alt=media\&token=484b7e1d-0db6-4f08-9f06-2b24cfc6dbd5)

**Deposit Fee Distribution**

Deposit fees will be distributed in the following manner:

* 50% of deposit fees will be used to buyback DOVE tokens for burning.
* 25% of deposit fees will go to the DoveSwap contract reserves for casino games.
* 25% of deposit fees will go to the lottery pot.
* Unlike other yield farms, DoveSwap will not take any deposit fee for developer funds.

**Lottery Pot Distribution**

In each yield farm pool, lottery winners will be declared every 2 days or when there is sufficient prize in the jackpot.

The lottery pot is distributed in the following manner:

* 50% of the lottery pot will be awarded to one grand prize winner.
* 50% of the lottery pot will be used to reimburse deposit fees for randomly selected players.

Random numbers generated by Chainlink oracle will be used to pick winners in a fair and transparent manner. Winners are picked based on a weighted random distribution, which is weighted according to the deposit fees paid by players during the lottery round.

Farmers who did not win the lottery round can continue staking to earn DOVE tokens. However they will no longer be eligible for future lottery rounds, unless they make new deposits into the yield farm pools.

## Token Buyback Burning

* 4% deposit fee will be charged at upon staking in the yield pool.
* 50% of deposit fees will be allocated to buy back ROLL tokens for burning.
* 25% of deposit fees will be allocated to DoveSwap contract reserves for casino games.
* 25% of deposit fees will be allocated to the lottery pot.
* Unlike other yield farms, DoveSwap will not take any deposit fees for developer funds.

## Liquidity Provider Protection <a href="#liquidity-provider-protection" id="liquidity-provider-protection"></a>

DoveSwap will always guarantee the farming rewards for liquidity providers is at least equal to the sum of all other pools.

Liquidity providers can farm with a peace of mind without worrying about other farmers adversely affecting the token price.

## Referral Program

Invite your friends and both you and your friend get rewarded. You get a bonus 1% on your friends' earnings and your friends get a bonus 1% on their earnings.

Anyone who visits your referral link will be automatically enrolled using web cookies.

Create your referral link at:

<https://polygon.doveswap.finance/referral>

## Security

**🚚 Removal of Migrator**

* We have removed the commonly abused Migrator code.
* The Migrator is often used by malicious developers/hackers to steal users' funds.

[**🎲**](https://emojipedia.org/game-die/) **Token Contract Ownership**

* Ownership of $DOVE ERC20 token contract has been transferred to MasterChef contract.
* Only MasterChef contract is able to mint tokens.

**⏳ Timelocks**

* Ownership of MasterChef contract has been transferred to Timelock contract to delay any changes to MasterChef contract by at least 6 hours.
