1
You sign an order
The app builds an order and you sign it. The signature is EIP-712 typed data, with the exchange domain name
CHOK CTF Exchange.2
The engine checks it
The matching engine checks the signature, your balance, the price, the tick size and the market’s status. If anything fails, the order is rejected right away with a message. See Error Messages.
3
The order is matched
The order is matched against the book by price-time priority: best price first, then the oldest order at that price.
4
The match settles on chain
An operator submits the match to the CTF Exchange contract. The exchange checks every signature again, then moves chUSD and outcome tokens between the two sides.
Trade statuses
The order response comes back as soon as the engine matches it. Settlement transaction hashes arrive afterwards.
Why both on and off chain
- Off chain matching is instant and free to cancel.
- On chain settlement means the exchange contract only moves your tokens with your signature, at your price or better.