> ## Documentation Index
> Fetch the complete documentation index at: https://docs.driftidentity.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# The Arena: How ETH-Staked Duels Work in Skill Drift

> ETH-staked PvP duels where your stats set your win probability. Learn how to initiate challenges, read Danger Levels, and understand duel outcomes.

The Arena is where your stats meet real stakes. Every duel you enter involves ETH held in escrow, on-chain randomness, and a win probability calculated directly from your attributes. It is the fastest way to accelerate growth — and the fastest way to lose ground if you are not prepared.

## How to initiate a challenge

<Steps>
  <Step title="Select a target">
    Enter a rival's wallet address or click **Pick Random** to find an opponent from the active pool.
  </Step>

  <Step title="Review the scouting report">
    View your opponent's Focus, Discipline, Social, and Risk stats. Your estimated win percentage is calculated automatically before you commit anything.
  </Step>

  <Step title="Stake at least 0.01 ETH">
    Attach a minimum of 0.01 ETH to your challenge. This goes into escrow immediately and is held until the duel resolves.
  </Step>

  <Step title="Wait for acceptance">
    Your target has 24 hours to match your stake and accept. If they do not respond within that window, you can cancel and reclaim your ETH.
  </Step>
</Steps>

<Warning>
  Duels are auto-resolved upon acceptance. There is no backing out once both stakes are committed.
</Warning>

## How the outcome is determined

The result of a duel is a deterministic combination of your stats and on-chain randomness. Neither side can manipulate it.

```text theme={null}
Attacker Power = (Focus + Discipline + Risk) ^ 4
Target Power   = (Focus + Discipline + Risk) ^ 4

Total Power    = Attacker Power + Target Power
Random Value   = keccak256(block.timestamp, block.prevrandao, challengeId) % Total Power

Attacker Wins  = Random Value < Attacker Power
```

Your probability of winning is proportional to how much of the total power pool your stats represent:

```text theme={null}
Your Win % = Your Power / (Your Power + Their Power) * 100
```

<CardGroup cols={2}>
  <Card title="High success" icon="trending-up">
    Greater than 60% win chance. You are significantly stronger than your opponent.
  </Card>

  <Card title="Even matchup" icon="scale">
    40–60% win chance. Stats are roughly balanced between both sides.
  </Card>

  <Card title="High threat" icon="trending-down">
    Less than 40% win chance. Your opponent has the power advantage.
  </Card>

  <Card title="Know before you commit" icon="eye">
    Always review the scouting report before staking. Your estimated win percentage is shown before you confirm.
  </Card>
</CardGroup>

## Outcomes

| Outcome      | Winner                                      | Loser                      |
| ------------ | ------------------------------------------- | -------------------------- |
| **Stats**    | +1 Focus, +1 Discipline, +1 Social, +1 Risk | -1 Risk (minimum 0)        |
| **ETH**      | Claims 97.5% of the total pot               | Nothing                    |
| **Protocol** | —                                           | 2.5% Drift Tax to Treasury |

The 2.5% Drift Tax is taken from the total pot before the winner receives their share.

## Post-duel cooldown

After initiating or accepting a duel, you enter a **1-day cooldown** before you can duel again:

```solidity theme={null}
uint256 public constant COOLDOWN_PERIOD = 1 days;
```

This applies to both the winner and the loser. Use the time to report real-world actions and rebuild before your next challenge.

## Danger levels

When you receive an incoming challenge, the app displays a **Danger Level** based on the attacker's power relative to yours. This is not just a suggestion — it is a direct reflection of your odds.

| Level           | Power ratio                  | Indicator |
| --------------- | ---------------------------- | --------- |
| **Low Danger**  | Less than 0.5x your power    | Green     |
| **Moderate**    | 0.5x – 1.0x your power       | Yellow    |
| **High Danger** | 1.0x – 2.0x your power       | Orange    |
| **EXTREME**     | Greater than 2.0x your power | Red       |

<Info>
  You are never forced to accept a duel. If the Danger Level is EXTREME, letting the 24-hour window expire is a valid choice.
</Info>
