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

# Standoff

Face down up to four outlaws and draw. Every clean sweep compounds your multiplier, every draw is a fresh Chainlink VRF word, and you decide when to holster. Fully onchain.

**How it works**

Overtime Standoff is a streak game: one stake, as many standoffs as you dare.

1. You pick how many outlaws you face (**1**, **2**, **3** or **4**) and draw. Placing the bet and starting the first standoff happen in one transaction
2. The contract writes the round's odds to storage and requests a random word from Chainlink VRF. The round is decided by one number derived from it: `slot = randomWord % 90`
3. Every outlaw count owns a fixed number of those 90 slots. If the slot lands inside your count's sweep range (`slot < sweepSlots`), it's a **clean sweep** and your running multiplier grows by that count's factor. Otherwise you're **outdrawn**: the run ends and the stake is lost
4. After every clean sweep you choose again: draw again (against any outlaw count that still fits under the cap) or **cash out** to take `stake × current multiplier`
5. The run continues until you cash out, get outdrawn, or no outlaw count fits under the multiplier cap

**Four outlaws is one draw, not four duels.** On screen you fire along the line from left to right, but onchain a round is a single draw. Facing four outlaws is a 20% shot at a clean sweep; it is not four separate 80% duels (that would be a 41% chance). When you're outdrawn, the app uses the same slot to show how many outlaws you disarmed first: the losing slots are split evenly between the outlaws, so "Disarmed 0 of 4" through "Disarmed 3 of 4" are equally likely. It's presentation only. There's no partial credit for disarming three.

Your outlaw count is written to the contract in the same transaction that requests the randomness, before the random word exists, so nothing about your choice can react to the draw and nothing about the draw can react to you.

***

**Outlaw count**

Each outlaw count is a difficulty. More outlaws, fewer slots count as a clean sweep.

| Outlaws   | Sweep slots (of 90) | Chance of a clean sweep | Multiplier per sweep (2% edge) |
| --------- | ------------------- | ----------------------- | ------------------------------ |
| 1 Outlaw  | 72                  | 80% (4 in 5)            | 1.225×                         |
| 2 Outlaws | 60                  | 66.7% (2 in 3)          | 1.47×                          |
| 3 Outlaws | 45                  | 50% (1 in 2)            | 1.96×                          |
| 4 Outlaws | 18                  | 20% (1 in 5)            | 4.90×                          |

You can change the outlaw count between rounds. Warm up against one outlaw and finish against four, or open big and play it safe once the multiplier is worth protecting. The game is fixed for the whole run; only the outlaw count changes from round to round.

Standoff uses the same odds and the same factors as Hoop Streak and Shooting Range. Only the theme is different.

***

**The multiplier**

Every clean sweep multiplies your running total by the outlaw count's factor:

```
factor = 90 × (1 − houseEdge) / sweepSlots
```

That's the entire pricing model. It makes `chance of a clean sweep × factor = 1 − houseEdge` for every outlaw count, so each round 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 round is an outlaw count, and the contract looks the odds up in its registry and derives the factor itself.

Clean sweeps compound:

| Sweeps in a row | 1 Outlaw          | 2 Outlaws         | 3 Outlaws        | 4 Outlaws        |
| --------------- | ----------------- | ----------------- | ---------------- | ---------------- |
| 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 sweeps, 86.89× | 11 sweeps, 69.26× | 6 sweeps, 56.69× | 2 sweeps, 24.01× |

Mixing counts gets closer to the cap: three rounds at 1 outlaw, one at 2, three at 3 and one at 4 reach **99.70×**, the highest multiplier the 100× cap allows.

An example run: draw against 2 outlaws (1.47×), then 3 (2.88×), then 4 (14.12×), and holster. A 3 USDC stake cashed out there pays 42.35 USDC. The chance of getting through all three rounds is 6.7%.

Because the edge applies to every round, it compounds across a run. A run you cash out after `n` clean sweeps returns `0.98ⁿ` of the stake on average at the 2% edge (94.1% for the three-round example above, about 90.4% after 5 sweeps, whatever the outlaw counts). The tougher counts reach a given multiplier in fewer rounds, so they pay less total edge getting there, in exchange for a much bigger chance of being outdrawn early.

**The cap.** The default multiplier cap is **100×**. A round whose factor would push the multiplier past the cap is rejected, not trimmed: payouts are never silently truncated. Near the cap only the outlaw counts that still fit are playable (`playableTiers`), and above 81.63× not even a single outlaw 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 clean sweep your multiplier is locked in as long as you stop. The moment you draw again, you're risking the entire accumulated amount on the next round.

* **Cash out** → you receive `stake × current multiplier`, the run resolves, done
* **Draw again** → a clean sweep grows the multiplier; getting outdrawn 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 round, the contract checks that the treasury can cover what that round would owe on a clean sweep. If it can't, the round 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 clean sweep 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 round, configurable from 2% to 5%, snapshotted per bet                                                                              |
| Multiplier per sweep | 1.225× / 1.47× / 1.96× / 4.90× at 2% edge                                                                                                  |
| Multiplier cap       | 100× default, snapshotted per bet                                                                                                          |
| Max factor per round | 10×                                                                                                                                        |
| Max rounds per run   | 200                                                                                                                                        |
| Push                 | None: every round is a clean sweep or you're outdrawn                                                                                      |
| 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 rounds; 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 round you were outdrawn in.

***

**User guide**

**1. Open Standoff**

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

**2. Choose the outlaw count**

Pick **1**, **2**, **3** or **4 Outlaws**. The panel shows the chance of a clean sweep, the multiplier per sweep and the payout on a first sweep.

**3. Draw**

Hit **Draw**. This places the bet and starts the first standoff in a single transaction.

**4. Clean sweep or outdrawn**

When the VRF callback arrives, the guns come out. Clean sweep: your multiplier ticks up and it's your turn again. Outdrawn: your revolver is shot out of your hand and the run is over.

**5. Draw again or cash out**

Keep the outlaw count or change it, and draw again to push the multiplier higher. Or hit **Cash Out** to bank `stake × multiplier`.

**6. Resolution**

Cashing out, or being outdrawn, resolves the bet. Your full run is stored onchain and shown in your history: the outlaw count of every round, its factor, the slot it landed on, the result, and your multiplier after each one.

***

**Onchain reference**

Standoff runs on `StreakGame`, the streak engine Penalty Shootout, Hoop Streak 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 + first round) | `placeBet(collateral, amount, referrer, modeId, tierIdx, choice, isFreeBet)` |
| Next round                      | `playRound(betId, tierIdx, choice)`                                          |
| Cash out                        | `cashout(betId)`                                                             |
| Outlaw counts still playable    | `playableTiers(betId)`                                                       |
| Round-by-round history          | `getBetRounds(betId)`                                                        |
| Factor for an outlaw count      | `factorForTierE18(modeId, tierIdx)`                                          |

Standoff is `modeId = 4`, listed in `getModes()` under its registry name `Bullseye`. `tierIdx`: `0` 1 Outlaw, `1` 2 Outlaws, `2` 3 Outlaws, `3` 4 Outlaws. Every tier is `den = 90`, with `num` = 72, 60, 45 and 18. Standoff is a threshold mode (`distinctChoice = false`): a clean sweep 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**

In a rigged town, the outlaw is always a little quicker when the pot is big. A streak game run on a server works the same way: the whole product is the question of whether to draw one more time, and nothing stops the house from speeding up the outlaws exactly when your multiplier is worth taking. You'd never see it happen.

On Overtime, nobody can coach the outlaws. Their speed is a public number in the contract's registry (18 slots of 90 against four of them), each round is a fresh Chainlink VRF request that doesn't exist until your outlaw count 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 round of every run is reconstructable from the chain. The only thing deciding who draws first is the slot. Which is the entire point.
