# Gaming account balance

As already explained your gaming accounts have a balance that is mantained in the Smart Contract. This means that when a losing deposit gets closed the Smart Contract does not send the amount lost by the player to your wallet address. Instead it increments the balance of the correponding gaming account by the amount lost. Thus you accumulate your revenues in your gaming accounts.
Similarly, when a winning deposit gets closed the Smart Contract deducts the amount won by the player from the balance of the corresponding gaming account and sends this amount to the player address. You may now be wondering already what happens when a winning deposit get closed and the balance of your gaming account is lower than the amount won by the player. Read on to understand how this case is handled by DeBets Smart Contract.

For now it should already be clear to you that for losing deposits the funds lost by the player are added to your gaming account and for winning deposits the player winning is paid immediately by the Smart Contract up to the amount available in that moment in your gaming account.

The Smart Contract allows you and only you as the owner of the private key that corresponds to the wallet address associated to your gaming accounts to withdraw funds. Thus you can at any time withdraw your revenues using your wallet (see Balance Management) and you can decide how much funds to leave in your gaming accounts.
You are advised to always leave enough funds in your gaming accounts to cover the closing of winning deposits so that the Smart Contract can pay for player winnings immediately.

# Deposit due payment

When a winning deposit gets closed and the balance in the gaming account is not sufficient to pay for the amount won by the player then the Smart Contract marks the deposit as due-payment and sends the amount available in your gaming account to the player address to pay part of the winning. Thus in this case only part of the player winning is paid immediately by the Smart Contract and the deposit is kept in a pending state called due-payment, waiting for you to add funds to your gaming account (see Balance Management) so that the remainder of the player winning can be paid.
You should avoid that closing deposits end up in due-payment state as much as possible because this results in players having to wait for their winnings to be fully paid. Furthermore, for game providers listed in DeBets website this results in a drop of their score which affects negatively their reputation.

# Balance management

You have total control over the funds in your gaming accounts and you can use DeBets Backoffice to manage them.
The Backoffice allows you to connect a wallet and use it to add or withdraw funds from your gaming accounts. Both of these operations require a transaction on the blockchain which results in invoking the Smart Contract.

You can only withdraw funds if the wallet that you connect corresponds to the wallet address that identifies you in the Smart Contract.
Instead, to add funds to your gaming accounts you can connect any wallet.