Documentation
Pools

Pools

Public Pools

Gamba liquidity pools are the counterparties to bets made with the gamba protocol, the pools are the source of liquidity when paying out wins, or receiving losses vs players.

Private Pools

Private pools are similar to normal pools but they give the authority of the pool more customization over the configuration of the pool. Other depositors should be extremely careful when interacting with private pools because they can change the risk profile on a whim!

Creating a Pool

Anyone can create a pool, the cost of creating a new pool is 1 SOL + rent fees. There can only be 1 public pool per token!

Provide Liquidity

Anyone can deposit liquidity into a public pool. This makes that liquidity instantly available to anyone who has integrated gamba.

Max Payout & Liquidity Checkpoints

To mitigate the risk of bankruptcy public pools have a max payout of 2% (subject to change) per bet of the pool liquidity checkpoint (private pools can have whatever). The pool's liquidity checkpoint gets updated every time the pool's liquidity deviates from the last checkpoint by at least 10%. Meaning if a pool has 100 SOL, it can support to pay out bets of 2SOL until the pool liquidity has increased to 110 SOL or 90 SOL, at which point it would be able to support 2.2 SOL payouts or 1.8 SOL payouts.

Pool Structure

Every pool within the Gamba platform consists of three distinct sub-accounts:

  1. Liquidity Pool: This is the main pool where users can deposit and withdraw tokens. It services all bets (except for initial bonus bets) and is the source of all generated fees.

  2. Bonus Pool: This pool acts as the main counterparty for bets made with bonus tokens against the main pool. If the Bonus Pool runs out of tokens, the required amount will be sourced from the Liquidity Pool.

  3. Jackpot Pool: This pool contains all the tokens allocated for jackpot payouts. When users pay a jackpot fee, these funds are directed to the Jackpot Pool.

Jackpot

Every pool has a corresponding jackpot pool. Plays have the option to include a jackpot fee for the chance to win a % of the jackpot pool. The jackpot payout does not come from the liquidity pool! If a jackpot is won a % of the win goes to the liquidity pool rewarding LPs.

Bonus Tokens

Bonus tokens can be minted for the pools underlying token 1:1. The bonus tokens can not be converted back to underlying, they can only be used to play against the pool. When you mint bonus tokens 90% goes to the bonus pool and 10% gets contributed to the jackpot pool.

Fees

The pools charge a fee on every play, this gets charged on the settlement of the bet. If a player bets 1 SOL against a pool with 1.4% fee and wins the pool loses 0.986 SOL and if the player would have lost the pool gains 1.014 SOL.

Withdraw Fee

To decrease incentive for potential exploits and to increase incentive for longer term staking there is a 0.1% (subject to change) fee on withdrawals. This fee goes to the pool. If you are the last LP in the pool you dont pay a fee and are able to withdraw the whole amount.