# OutcomeToken.sol

> **Note:** Current 5-minute markets use internal positions (`useInternalPositions = true`) and do not mint ERC-1155 tokens. This contract is used for future market types that require transferable outcome tokens.

ERC-1155 multi-token contract for binary outcome tokens.

## Token ID Scheme

```
YES token: marketId * 2
NO token:  marketId * 2 + 1
```

Deterministic — no registry or mapping needed.

## Functions

### `mintPair(marketId, amount)`

Deposit `amount` collateral → receive `amount` YES + `amount` NO tokens. Called via Vault integration. Only callable by protocol contracts.

### `burnPair(marketId, amount)`

Return `amount` YES + `amount` NO → receive `amount` collateral back. Available anytime (pre- and post-resolution).

### `redeem(marketId, amount)`

Post-resolution only. Burn `amount` winning tokens → receive `amount` collateral. Losing tokens have no redemption value.

## Access Control

* `mintPair` / `burnPair` / `redeem`: restricted to protocol contracts (Vault, OrderBook)
* Standard ERC-1155 transfers: unrestricted (tokens are freely transferable)

## Events

```solidity
event PairMinted(address indexed to, uint256 indexed marketId, uint256 amount);
event PairBurned(address indexed from, uint256 indexed marketId, uint256 amount);
event Redeemed(address indexed from, uint256 indexed marketId, uint256 amount, bool winningOutcome);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.strike.pm/smart-contracts/outcome-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
