Settlement and payouts
From the end of a cycle to your balance.
You do not need to do anything to be paid. When a market resolves, Scalar pays every open position on it into the owner's balance. This page explains what happens in between, and how long it takes.
From the end of the cycle to your balance
- The cycle ends. The market stops trading, and its end price is the Pyth price at its last second.
- Someone submits a proof: the signed Pyth prices that the settler needs. Scalar's prover does this for every market, but anyone can.
- The settler computes the settlement value. If a better proof can still exist, the challenge window runs, and anyone can submit a better proof before it closes.
- The market resolves. The settlement value is final.
- The keeper pays each open position its share of the $10, into the owner's balance.
A proof is a set of signed Pyth prices for the market. The challenge window is a fixed time in which a better proof can replace the current one. It exists for payoffs that read the whole path, because a touch or an exit can happen at any second. Settlers explains the proof and the window in full.
How long each payoff takes
Some proofs cannot be improved, so they resolve the market at once. Others wait for the challenge window to close. Every resolution also waits a buffer of 1 minute.
| Payoff | What happened | The market resolves |
|---|---|---|
| Above / Below | Any result | About 1 minute after the cycle ends |
| Spread | Any result | About 1 minute after the cycle ends |
| One-touch | The price touched the level | About 1 minute after the touch is proven, even before the cycle ends |
| One-touch | The price did not touch it | 1 challenge window and 1 minute after the cycle ends |
| Range accrual | The price left the range | 1 challenge window and 1 minute after the exit is proven, which can be before the cycle ends |
| Range accrual | The price stayed in the range | 1 challenge window and 1 minute after the cycle ends |
| Knockout | The price touched the barrier | About 1 minute after the cycle ends |
| Knockout | The price did not touch it | 1 challenge window and 1 minute after the cycle ends |
The challenge window is 1 hour on testnet today. The Data API reports it as challenge_period on GET /protocol, in seconds.
The states of a market
The trading screen and your positions table show the state of each market.
| State | Meaning |
|---|---|
| Open | The cycle is running. |
| Awaiting | The cycle ended, and no proof is in yet. |
| Challenge | A proof is in, and the challenge window is open. The result can still change. |
| Resolved | The settlement value is final. Positions are being paid, or are paid. |
| Manual | Nobody proved the market by the end of its challenge window, so an operator resolves it. |
Select the state to see the proof: its score, the payout ratio and the resolution time. The payout ratio is the settlement value as a percentage.
How you are paid
When a market resolves, the Scalar keeper pays every open position on it. The keeper is a service that checks for resolved markets about every 30 seconds and pays up to 100 positions in one transaction. Your payout goes to your balance in the Scalar contract, and the position closes. You can trade with it or withdraw it at once.
You can also pay out your own position. Select Settle on the position in the app. This sends a transaction from your wallet, so it needs a little ETH for gas.
Each position is paid:
- Long: the settlement value × $10 × the number of contracts.
- Short: (1 − the settlement value) × $10 × the number of contracts.
A settlement fee per contract can apply. The fee is never more than the payout, so a position never costs you money to settle. See Fees.
Close early, or hold to the end
You always have two choices:
- Close before the end. Trade the other side, and your profit or loss is fixed at your exit price. You do not wait for resolution.
- Hold to the end. Your profit or loss is fixed by the settlement value.
Neither choice costs more collateral. Your risk is the same from the first trade to the last.