# Duels

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-f389a17c0e5e754917a471a908c0e3091f0c44d6%2Fimage%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

## What Are Duels?

**Duels** turn trading into a skill-based competition.\
Instead of betting on luck, players test their strategy head-to-head — trading the same market over the same time period to see who performs best.

It’s part game, part trading tournament — but always fair, transparent, and on-chain.

> **TL;DR (for the degens):**\
> Duels are PvP trading battles where everyone starts equal.\
> Pay a small buy-in, trade smart, and the top performer takes the prize pool in USDC.

{% hint style="info" %}
💡 **Quick Tip:** The buy-in forms the prize pool. Everyone contributes equally, so only performance decides who wins.
{% endhint %}

***

## 🕹 How It Works

### **1️⃣ Create or Join a Duel**

Go to the **Lobby** to start a new match or join one that’s already open.

Each Duel has a few key settings:

| Setting                   | Meaning                                                                                                                            |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Market**                | The asset being traded (e.g., ETH/USD).                                                                                            |
| **Start Time & Duration** | When it begins and how long it lasts.                                                                                              |
| **Buy-In**                | The entry fee that goes into the prize pool.                                                                                       |
| **Collateral**            | Your in-game trading balance — think of it like fuel for your trades. Whatever remains at the end of the event is returned to you. |
| **Participants**          | The number of players allowed in the match.                                                                                        |

Everyone pays the same buy-in to keep things fair.\
All buy-ins combine into the **prize pool** that the winner takes at the end.

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-d2103100e283f2831cd75ac92558c33755620973%2FcreateDuel2.gif?alt=media" alt=""><figcaption></figcaption></figure>

***

### **2️⃣ Enter the Arena**

Once the Duel begins, each player can open **long** or **short** trades using their collateral.\
Collateral acts like your **trading power** — it determines how large your trades can be.

If you run low, you can’t open new trades, so manage it carefully.

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-4cc99e5f37d074058fa02cfcd45710d22720c321%2Fjoin%20duel%20modal.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### **3️⃣ Track Your Performance**

Each Duel has a live **leaderboard**.\
Instead of score or damage, your “health bar” represents your **Profit and Loss (PnL)** — the difference between your wins and losses.

* 📈 Profits raise your health bar.
* 📉 Losses reduce it.

Your goal: **finish with the highest PnL** by the end of the match.

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-2791d875f8868e4d4767e8cebe317f7aaf9d8c84%2Fin%20game%20leaderboard.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### **4️⃣ Win and Withdraw**

When the timer ends:

* 🏆 The top performer wins **95% of the total prize pool**, automatically sent to their wallet in USDC.
* 💰 All players get back their **remaining collateral**.
* 🔒 You can close open trades before exiting. But ONLY TRADES CLOSED DURING THE EVENT COUNT towards realized PnL. Be sure to lock in enough profits if you are trying to win an event.

> **Example:**\
> 5 players join a $20 buy-in Duel ($100 total).\
> The winner earns $95; everyone else keeps whatever collateral remains.

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-eccdc611011c9f3ef023daf0210893ca81295e93%2Fwithdraw%20funds%20after%20duel%20ends.png?alt=media" alt=""><figcaption></figcaption></figure>

***

## 💡 Why Duels Are Different

Traditional trading can feel lonely or confusing.\
Duels make it **social, structured, and transparent** — no hidden odds, no centralized trust.

✅ All trades execute on-chain through **GMX**, ensuring real market prices.\
✅ No fake balances or paper trading.\
✅ Skill, strategy, and discipline — not luck — decide the outcome. 💬 Discuss strategy, talk smack, and enjoy trading with the in game chat.

***

## � Security

Duels smart contracts have been audited by **Cyfrin**, a leading blockchain security firm.

📄 [**Duels V2.1 Audit Report (Cyfrin)**](https://github.com/stimpak-io/stimpak-duels-contracts/blob/master/Audit%20Results/2025-12-08-cyfrin-stimpak-v2.1.pdf)

***

## �🚀 Ready to Duel?

Head to the **Lobby**, choose a market, and enter your first match.\
Learn. Compete. Win. Repeat.

<figure><img src="https://2581599982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTKTHexfcvqxxzHD6Nx7z%2Fuploads%2Fgit-blob-c8a47334bd6a298f4e3f2a03bb18c40cb32ee61f%2FmainDuelScreen.png?alt=media" alt=""><figcaption></figcaption></figure>
