Trading
Breaches & the kill switch
What happens when a rule breaks, and why anyone can trigger it.
breach()
breach(account) is public. Anyone can call it, at any time. The contract re-reads the account in the same call and only acts if a rule is actually broken. A call on a healthy account reverts.
breach(account): require(rule_broken(read_hypercore(account))) remove trader agent risk agent closes all positions (reduce-only) pay bounty to caller settle stake
The bounty
The caller earns a small bounty, paid from the forfeited stake (amount: TBA). It pays anyone to watch the accounts, so breaches are acted on in the block they happen, not when a team member notices.
What gets closed
- Your trade-only agent is removed from the sub-account: no new orders.
- A trade-only risk agent closes every open position with reduce-only orders. It can’t open positions or withdraw.
- Open orders are cancelled.
- Payouts already made are yours. Nothing is clawed back.
Where the stake goes
| Recipient | Share |
|---|---|
| $KOTI buyback & burn | 10% |
| Breach caller | bounty (TBA) |
| Stadion vault | the rest |