Rules version yops-arena/1.0.0-provisional
Arena Rules
What the arena server does with a trade, when it issues energy, and how a match ends. Every match stores a frozen copy of the rules it started under and is settled by that copy.
These parameters are provisional. They were chosen so that practice rounds are readable, not derived from data. Nothing here has been shown to be fair by evidence, and the numbers are expected to change. A change produces a new rules version and never alters a match already in progress.
1. Format
| Players | Two. 1v1 only. |
|---|---|
| Round length | Fixed when the match is created. Standard: 30 minutes. Offered: Sprint (3 min), Skirmish (10 min), Standard (30 min). |
| Starting HP | 100 for both heroes. |
| Hero statistics | Identical. The hero you pick changes sprites and names, nothing else. |
| Attack | Costs 20 energy, removes exactly 10 HP (the maximum damage of one attack), 4 s cooldown. |
| Energy cap | At most 300 energy issued per player per round, so at most 150 HP of damage in a standard round. |
2. Eligible trade lifecycle
The arena does not look at balances. It builds a score from individual venue events, each of which must pass every test below.
- Source. The event comes from the execution venue’s own record of the arena account. In practice mode the venue is the arena server’s own simulator. A transaction signature or a number reported by a browser is never proof of a result.
- Identity. The event has a unique id. An id that was already applied is ignored, however many times the venue repeats it.
- Time. The event’s venue timestamp lies between the round start and the cutoff, both inclusive. Anything earlier or later is recorded as ignored and changes nothing.
- Inventory. A fill counts only for the part that opens, increases or reduces in-round inventory. Inventory that existed at round entry is “carry”: fills against it realize nothing for the game, and reductions always consume carry first, so a pre-round winner can never be attributed to the round.
In-round inventory is tracked per market at its average entry price. A partial close realizes the closed part at that average and leaves the rest open. A fill larger than the position closes it and opens the remainder on the other side at the fill price.
3. Capital allocation
Each player has an arena allocation A, in quote currency, fixed at round entry and unchanged until settlement. In practice rounds A is the practice account’s starting balance: 10,000 practice USDC, the same for both players.
A number typed into a form is not an allocation. For real-money scoring the venue would have to hold the allocation in an account the server can verify and that contains nothing else. Pacifica offers subaccounts and a per-account trade, funding and balance history, which makes that possible in principle; none of it is built, so real-money scoring is disabled. See Integration Status.
4. Return normalization
At any moment the server computes each player’s conservative performance:
C = realized + open losses
realized: the sum, over eligible fills, of realized PnL minus that fill’s fee, plus funding received and minus funding paid on in-round inventory.open losses: for every open in-round position,min(0, unrealized PnL)at the current mark, added up position by position. A winning open position never offsets a losing one.
Performance is then expressed against the allocation: bps = C / A × 10,000. Two players with different allocations are compared in basis points, never in dollars. Leverage is not a term in any formula. It changes how far PnL moves, in both directions, and nothing else.
5. Energy conversion and the high-water mark
Each player has a high-water mark H, starting at 0. Whenever C > H:
energy issued = (C − H) / A × 10,000 × 1, limited by what is left of the round cap; then H = C.
- One basis point of allocation gained above the previous peak is 1 energy. An attack therefore costs 20 basis points of new performance.
- Losing 30 and winning 30 back returns to the old peak and issues nothing. The same recovered PnL cannot be farmed.
- The mark moves to the new level even when the cap swallowed the energy, so a capped gain cannot be claimed later.
- There is no per-trade cap on purpose: it would only reward splitting one close into several.
6. Unrealized results
- Unrealized profit issues nothing. A position that is up on paper is worth zero to the game until it is closed.
- Unrealized losses count at once. If you realize a gain while another position is under water, the gain is withheld by the size of the open loss. It is released if that position recovers, and never more than was realized.
- You cannot hide a loser by leaving it open while harvesting winners.
7. Deposits, withdrawals and transfers during a round
They are recorded in the match log and never scored. Because the score is built from fills and funding, a deposit is not profit and a withdrawal is not a loss, and neither changes the allocation. The practice venue has no deposits or withdrawals at all.
8. Cutoff and open positions
- The cutoff is the round start plus the round length, on the arena server’s clock. From that instant no attack is accepted and no later venue event is eligible.
- Open positions are not closed. The game values them at the cutoff mark price: an open loss counts in the final performance figure, an open gain does not. The position itself is left exactly as the venue has it. The game reads positions; it has no ability to modify, close or liquidate one.
- In practice rounds the practice account exists for that match only and is discarded with it.
9. Late-arriving venue events
A venue can report a fill after it happened. The rule is by the event’s own timestamp, not by when the server heard of it:
| Happened | Server learns of it | Effect |
|---|---|---|
| In the round | During the round | Scored; may issue energy. |
| In the round | After the cutoff, inside the settlement grace period | Counted in the final performance figure. Issues no energy: the attack window is closed. |
| Before the start or after the cutoff | Any time | Recorded as ignored. |
| Any time | After settlement | Ignored. A settled match does not change. |
The settlement grace period is 0 s in practice rounds, where the simulator reports fills the moment they happen. It is a rule parameter because a real venue would need more. HP cannot change after the cutoff under any of these cases.
10. Settlement: knockout, decision, draw, no contest
| Knockout | A hero reaches 0 HP. The match ends at that instant. |
|---|---|
| Decision | At the cutoff, the hero with more HP wins. |
| Draw | Equal HP at the cutoff and at least one player made an eligible trade. A better trading result does not break the tie: only HP decides. |
| No contest | Neither player made an eligible trade. No winner is declared and no rating changes. |
Settlement is stamped with the cutoff time, not with the moment somebody next looks at the match, so a round nobody watched settles to the same record as one that was watched throughout.
11. Disconnects and timeouts
- The round runs on the server’s clock and does not pause for anybody. A player the server has not heard from for 8 s is shown to the opponent as disconnected.
- Disconnecting forfeits nothing by itself. Positions keep being valued, the opponent can keep attacking, and the match settles by HP at the cutoff.
- A returning browser sends the position it had reached in the event log and receives everything after it, once, in order.
- A duel invite nobody answers is cancelled after 10 minutes. A cancelled match has no result.
12. Integrity of the record
- The server is the only authority for PnL, energy, HP, winners and standings. The browser renders what it is sent.
- Every change to a match happens under an exclusive lock on that match, so two attacks sent at the same moment are applied one after the other; with energy for one, exactly one succeeds.
- Every request carries an id. A request that is repeated (a retry, a double click) is answered from the record and not applied twice.
- Events are numbered without gaps, timestamped by the server, and appended to a log that is never rewritten.
- A result is applied to the standings exactly once.
13. The practice venue
| Markets | HEART-PRAC (Heartstone, balanced), FALLS-PRAC (Skyfalls, volatile), STONE-PRAC (Bridgestone, calm). Invented instruments; they are not prices of anything real. |
|---|---|
| Prices | One tick per second, a pure function of the round’s seed. 240 ticks of history are visible before the start. The server publishes a SHA-256 hash of the seed at the start, reveals ticks only as they happen, and reveals the seed at settlement so the path can be recomputed. Shorter rounds use a faster market. |
| Orders | Market (fills at the mark ± 1 bp) and limit (rests until the mark reaches it; fills at its price). Reduce-only supported. Minimum 10 practice USDC. |
| Fees | Taker 0.04%, maker 0.015% of order value. These are practice values, not Pacifica’s. |
| Funding | Every 60 seconds, a small seeded rate. Positive: longs pay. |
| Margin | Cross, 1× to 10× (default 3×). The account is liquidated when equity falls below 5% of open notional; the loss is a realized loss for the game. |
| Opponent | A scripted trader. It sees only ticks that have already happened, trades through the same venue, earns energy by these rules and attacks when it can. It is labelled “Practice bot” everywhere. |
14. Known weaknesses of this version
Stated plainly, because a scoring system that hides its soft spots cannot be called fair.
- A high-water mark pays for variance. It issues energy for every new peak, and a trader with no edge still sets a new peak now and then; larger positions set larger ones. Fees work against this and the round cap bounds it, but neither removes it. Exposure is therefore rewarded more than it should be, even though leverage is not in any formula. This is the main reason the parameters are provisional.
- Banked energy. Energy does not expire during a round, and a player who is ahead on HP can stop trading. Nothing forces them to keep taking risk.
- Short rounds are noisy. A three-minute sprint is decided by one or two trades. It is a way to learn the controls, not a measure of skill.
- Practice scenarios trend on purpose, so that a move lasts long enough to be traded. A simple momentum rule therefore has an edge in practice, and the scripted opponent uses one. Measured over 200 seeded rounds against a player who does nothing, it lands about 2 attacks in a sprint and about 5 in a standard round.
- Only one allocation size has been exercised: the practice balance. Normalization by allocation is implemented and tested, but has never met accounts of different sizes in play.
15. Arena rating
An Elo update per settled match (K = 24, everyone starts at 1000, the practice bot is fixed at 1000 and never changes). A draw between equal ratings changes nothing; a no-contest is not counted. Only wallet-signed accounts are listed. The board covers practice matches only and is labelled as such.