# 3.2 WinFi Fund Contract and Application

WinFi's WinFi Fund Contract, also known as the Gambler's Mandatory Deposit Contract or the Return-to-Win Contract, is deployed on the Ethereum mainnet. The core purpose of the WinFi Fund Contract is to ensure that customers do not lose money in WinFi games and is a technical tool for WinFi to fulfill its mission and vision.

&#x20; The basic operation mechanism of the contract is as follows:

&#x20; Mandatory Deposit

&#x20; The WinFi Fund Contract forces players to deposit the amount they are expected to return into their pNFT, and immediate withdrawals are not allowed. This mandatory deposit is a public welfare protection for players and also leaves time for the contract to recover all the amounts that players have lost.

&#x20; Withdrawal Conditions

&#x20; As the returned amount in the pNFT is always less than the amount to be returned, WinFi has set the following conditions for customers to withdraw their deposits in BTC, ETH, and WFT cryptocurrencies proportionally:

<figure><img src="https://2175642298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEDzDXhZApjsAlSMpaKRC%2Fuploads%2FQOyd1mXOnNJPcjUykOSY%2FPicture3.png?alt=media&#x26;token=7cfdf6b8-1a27-4c42-b89c-2e745e4e29f9" alt=""><figcaption></figcaption></figure>

The initial purchase price is calculated based on the initial BTC purchase price, and as long as the price is higher than the initial purchase price of BTC included in the pNFT, both of the other two assets can be withdrawn.

&#x20; If the BTC price reaches the withdrawal standard but the player does not withdraw, and the BTC price falls back below the standard, the player can still withdraw at any time in the future.

Final Unlock

&#x20;  All mandatory deposits in a player's pNFT can be unlocked and withdrawn through the WinFi Fund Contract four years after being minted, regardless of whether the withdrawal conditions are met or not.

&#x20; Valuation Principle

&#x20;  When players withdraw or finally unlock their assets, the WinFi Fund Contract returns the stablecoin USDT valued in US dollars to players. The Fund Contract will return the value of the player's assets at the time of withdrawal in the form of USDT stablecoins.

&#x20; Contract Management

&#x20; WinFi will make the following information public in the WinFi Fund Contract for players to check and for other contracts to call:

* Total Locked Value (LTV) of the contract: The current total value of the three assets included in the pNFT locked in the WinFi Fund Contract.&#x20;
* Total Asset Quantity: The quantity of each asset (BTC, ETH, and WFT) in the contract.
* Total Amount to be Returned: The total amount of money that the WinFi Fund contract promises to return to players who lose all their money. If a player withdraws, this amount will be deducted.
* Total Value Already Withdrawn: The total value of digital assets that players have withdrawn from the WinFi Fund Contract, calculated based on the withdrawal price at the time of withdrawal.
