How a ticket is worked: slices, refills, participation
The ticket
A ticket is market, side, total size, duration, limit and account count. The browser encrypts it to the executor's public key and posts only its hash on chain with CharybdisTickets.open. The executor decrypts it, checks the hash, and starts.
The rules the executor follows
- Iceberg per account. Each account shows one small resting slice. When it fills, the account waits a random pause and posts the next one at a random size.
- Jittered TWAP. The filled share follows a straight line over the duration with random noise, so the slices do not land on a clock.
- Participation cap. A slice never takes more than the set share of the visible depth on its side.
- Limit guard. No slice fills past the limit set against the arrival mid. If the market runs away, the ticket waits.
- $10 floor. Slices respect HyperCore's minimum order value.
Resting first, then crossing
A slice rests at the top of its side of the book. If it has not filled by its deadline, it crosses the spread for the rest, under the cap and the limit. The sandbox runs these same rules against the live book and the live tape, with a faster clock.