> For the complete documentation index, see [llms.txt](https://docs.overtime.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overtime.io/overtime-casino/games/quick-games/hoop-streak.md).

# Hoop Streak

Pick your shot, sink it, bank the streak. Every make compounds your multiplier, every shot is a fresh Chainlink VRF draw, and you decide when to walk away. Fully onchain.

**How it works**

Overtime Hoop Streak is a streak game: one stake, as many shots as you dare.

1. You pick a spot on the floor (**Layup**, **Mid-Range**, **Three** or **Half-Court**) and take the first shot. Placing the bet and taking the first shot happen in one transaction
2. The contract writes the shot's odds to storage and requests a random word from Chainlink VRF. The shot is decided by one number derived from it: `slot = randomWord % 30`
3. Every spot owns a fixed number of those 30 slots. If the slot lands inside your spot's make range (`slot < makeSlots`), it's a **make** and your running multiplier grows by the spot's factor. Otherwise it's a **miss**: the run ends and the stake is lost
4. After every make you choose again: take another shot (from any spot that still fits under the cap) or **cash out** to take `stake × current multiplier`
5. The run continues until you cash out, miss, or no spot fits under the multiplier cap

There is no aim and no timing to get right. Your spot is written to the contract in the same transaction that requests the randomness, before the random word exists, so the shot can't react to the draw and the draw can't react to the shot. The animation you see (swish, glass and in, rimmed out, air ball) is picked by the app from the same slot, but the contract asks one question only: is the slot inside the make range?

***

**Shot selection**

Each spot is a difficulty. The further out, the fewer slots count as a make.

| Spot       | Make slots (of 30) | Chance to make | Multiplier per make (2% edge) |
| ---------- | ------------------ | -------------- | ----------------------------- |
| Layup      | 24                 | 80% (4 in 5)   | 1.225×                        |
| Mid-Range  | 20                 | 66.7% (2 in 3) | 1.47×                         |
| Three      | 15                 | 50% (1 in 2)   | 1.96×                         |
| Half-Court | 6                  | 20% (1 in 5)   | 4.90×                         |

You can move spots between shots. Bank a few layups and finish from half-court, or open from deep and play it safe once the multiplier is worth protecting. The game is fixed for the whole run; only the spot changes from shot to shot.

***

**The multiplier**

Every make multiplies your running total by the spot's factor:

```
factor = 30 × (1 − houseEdge) / makeSlots
```

That's the entire pricing model. It makes `chance to make × factor = 1 − houseEdge` for every spot, so each shot carries exactly the same house edge whichever one you pick. At the default 2% edge that's **1.225×**, **1.47×**, **1.96×** and **4.90×**. Players never supply odds: a shot is a spot, and the contract looks the odds up in its registry and derives the factor itself.

Makes compound:

| Makes in a row  | Layup            | Mid-Range        | Three           | Half-Court      |
| --------------- | ---------------- | ---------------- | --------------- | --------------- |
| 1               | 1.225×           | 1.47×            | 1.96×           | 4.90×           |
| 2               | 1.50×            | 2.16×            | 3.84×           | 24.01×          |
| 3               | 1.84×            | 3.18×            | 7.53×           | past the cap    |
| 4               | 2.25×            | 4.67×            | 14.76×          |                 |
| 5               | 2.76×            | 6.86×            | 28.93×          |                 |
| 6               | 3.38×            | 10.09×           | 56.69×          |                 |
| Most before cap | 22 makes, 86.89× | 11 makes, 69.26× | 6 makes, 56.69× | 2 makes, 24.01× |

Mixing spots gets closer to the cap: three layups, one mid-range, three threes and one half-court reach **99.70×**, the highest multiplier the 100× cap allows.

Because the edge applies to every shot, it compounds across a run. A run you cash out after `n` makes returns `0.98ⁿ` of the stake on average at the 2% edge (about 90.4% after 5 makes, whatever the spot). That's why the spot you shoot from matters more than it looks. Two half-court makes (a 4% chance) reach 24.01× and return 96.0% on average. Fifteen layups in a row (a 3.5% chance) reach about 21× and return 73.9% on average. Similar odds, similar multiplier, but one run paid the edge twice and the other paid it fifteen times.

**The cap.** The default multiplier cap is **100×**. A shot whose factor would push the multiplier past the cap is rejected, not trimmed: payouts are never silently truncated. Near the cap only the spots that still fit are playable (`playableTiers`), and above 81.63× not even a layup fits, so the only move left is to cash out. The house edge and the cap are both snapshotted when you place the bet, so a later parameter change can never alter a run that's already live.

***

**Cashing out**

This is the whole game. After any make your multiplier is locked in as long as you stop. The moment you shoot again, you're risking the entire accumulated amount on the next slot.

* **Cash out** → you receive `stake × current multiplier`, the run resolves, done
* **Shoot again** → a make grows the multiplier; a miss loses everything

There is no partial cash out and no insurance. Reaching the cap does not cash out for you either: winnings are paid only in the cash out transaction, never inside the VRF callback.

Before each shot, the contract checks that the treasury can cover what that shot would owe if you make it. If it can't, the shot is rejected before any randomness is requested, and your run stays exactly where it was, cashable at its current multiplier.

Runs don't expire. If a run sits idle after a make for longer than the core's `cancelTimeout` (currently 600 seconds), the resolver can settle it for you with `adminCashout`, which pays exactly what a cash out would: `stake × current multiplier`. It cannot pay less.

***

**Limits**

| Parameter           | Value                                                                                                                                     |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Minimum bet         | 3 USD (configurable per game via core)                                                                                                    |
| Maximum bet         | Bounded by max profit: `stake × (cap − 1) ≤ maxProfitUsd`. At the current 2,000 USD max profit and the 100× cap, 20.20 USD                |
| House edge          | 2% per shot, configurable from 2% to 5%, snapshotted per bet                                                                              |
| Multiplier per make | 1.225× / 1.47× / 1.96× / 4.90× at 2% edge                                                                                                 |
| Multiplier cap      | 100× default, snapshotted per bet                                                                                                         |
| Max factor per shot | 10×                                                                                                                                       |
| Max shots per run   | 200                                                                                                                                       |
| Push                | None: every shot is a make or a miss                                                                                                      |
| Idle run            | Resolver may settle it after `cancelTimeout` (currently 600 seconds) at the full `stake × current multiplier`                             |
| Cancellation        | Admin/resolver only, intended for a stalled VRF request; refunds original stake, forfeits accumulated multiplier                          |
| Circuit breaker     | Shared with every game on `StreakGame`. An auto-pause stops new runs and new shots; it never blocks settlement, so you can still cash out |

If the game is paused while you're mid-run, Cash Out is available again as soon as it's unpaused. The resolver's `adminCashout` is not pause-gated and still pays the full multiplier.

Supported collaterals: **USDC**, **WETH**, **$OVER**. Free bets supported via the `isFreeBet` flag on `placeBet`. On a lost real-money run, the referrer's share is paid automatically in the transaction that settles the miss.

***

**User guide**

**1. Open Hoop Streak**

Select **Hoop Streak** from the casino lobby. Set your stake and collateral.

**2. Pick your shot**

Choose **Layup**, **Mid-Range**, **Three** or **Half-Court**. The panel shows the chance to make, the multiplier per make and the payout on a first make.

**3. Take the shot**

Hit **Take the Shot**. This places the bet and takes the first shot in a single transaction.

**4. Make or miss**

When the VRF callback arrives, the ball drops or it doesn't. Make: your multiplier ticks up and it's your turn again. Miss: the run is over.

**5. Shoot again or cash out**

Stay on your spot or move, and shoot again to push the multiplier higher. Or hit **Cash Out** to bank `stake × multiplier`.

**6. Resolution**

Cashing out, or a miss, resolves the bet. Your full run is stored onchain and shown in your history: the spot of every shot, its factor, the slot it landed on, the result, and your multiplier after each one.

***

**Onchain reference**

Hoop Streak runs on `StreakGame`, the streak engine Penalty Shootout, Standoff and Shooting Range also run on, on the shared `CasinoCoreV2` treasury. Games on the engine are registered modes, each with a fixed set of difficulty tiers validated when they're published. Read `getModes()` for the live list.

| Action                       | Call                                                                         |
| ---------------------------- | ---------------------------------------------------------------------------- |
| Start a run (bet + 1st shot) | `placeBet(collateral, amount, referrer, modeId, tierIdx, choice, isFreeBet)` |
| Next shot                    | `playRound(betId, tierIdx, choice)`                                          |
| Cash out                     | `cashout(betId)`                                                             |
| Spots still playable         | `playableTiers(betId)`                                                       |
| Shot-by-shot history         | `getBetRounds(betId)`                                                        |
| Factor for a spot            | `factorForTierE18(modeId, tierIdx)`                                          |

Hoop Streak is `modeId = 2`. `tierIdx`: `0` Layup, `1` Mid-Range, `2` Three, `3` Half-Court. Every tier is `den = 30`, with `num` = 24, 20, 15 and 6. Hoop Streak is a threshold mode (`distinctChoice = false`): a make is `slot < num`, and `choice` is not used, so pass `0`.

| Network  | `StreakGame` (proxy)                         | `CasinoCoreV2` (approve this)                |
| -------- | -------------------------------------------- | -------------------------------------------- |
| Optimism | `0xD93d8b470FCdcd06782CF0542FBe5182e9A7eBC5` | `0x4BACE3b2BC955C11166e35673c71Be1593b42F80` |
| Arbitrum | `0x37633afee713fB41a6941775d84A8258F236FF60` | `0xA9d5789824aBc53d52224BA6D4eF6d41E99d8699` |
| Base     | `0x44eD1e9c8F2f08CB072586C7509BdC333dbFE0a7` | `0xab487C74Bd9fb88Cea5D39F25C6a15C4A7734055` |

The stake is pulled by `CasinoCoreV2`, so that's the contract your collateral approval goes to, not the game.

***

**Why this matters**

A streak game is only as honest as its rim. The whole product is the question of whether to take one more shot, and on a centralized site nothing stops the server from making the 12th layup rattle out exactly when your multiplier gets big. You'd never see it happen.

On Overtime, nobody can tighten the rim. The make range is a public number in the contract's registry (24 slots of 30 for a layup), each shot is a fresh Chainlink VRF request that doesn't exist until your spot is committed onchain, the factor is a published formula, the house edge is a public variable locked into your bet when you place it, and every shot of every run is reconstructable from the chain. The only thing deciding whether it drops is the slot. Which is the entire point.
