# Safety rails (/docs/trust/safety-rails)

Limits on every order and wallet, switches to stop any part, a breaker that refuses bills Todoku can't buy, and a guard against paying twice.

## Limits [#limits]

| Limit | Value |
| --- | --- |
| One order | 100 QUSDC (checked by Todoku and by the contract) |
| One payment (bulk) | 2,000 QUSDC, 20 lines |
| One wallet, rolling 24 hours | 300 QUSDC; 1,000 with a verified QIE ID (drops count toward the funder's) |
| Live prices for one bill | 2 (one in QIE, one in QUSDC) |
| One drop's pot | 5,000 QUSDC |
| Exam PINs | 1 to 10 per order |

## Kill switches [#kill-switches]

Checked on every price. An operator flips them in the ops console (the 14 it lists; the others, such as `surface:web` or `service:<id>`, are set through the ops API and then show there too); some flip themselves.

| Switch | Stops |
| --- | --- |
| `global` | Every new price. Turned on by itself if the escrow ever holds less than it owes |
| `provider:vtpass`, `provider:fonbnk` | That provider's bills; held orders for it are refunded instead of bought. The float breaker sets it |
| `kind:airtime` … `kind:exam` | One kind of bill |
| `service:<id>` | One biller |
| `asset:QIE`, `asset:QUSDC` | Paying with that coin |
| `surface:web`, `agent`, `pay_link`, `drop`, `demo_line`, `mcp`, `mcp_auth` | One way in |
| `vend_pause` | Buying from providers; paid orders wait in the escrow and are retried every minute |

## Float breaker [#float-breaker]

Todoku buys bills from a naira float at the provider. Before every price it subtracts what open orders already promise from the provider's balance, and refuses the bill unless what's left covers it plus the larger of ₦20,000 or 10%. Balances refresh every minute. An "out of float" answer from VTpass closes the provider at once; it reopens when the balance is back. Operators get a Telegram alert under ₦50,000, at most hourly.

## Paying twice [#paying-twice]

- **Same bill twice in a day**: the same amount to the same number and service in the last 24 hours shows "You just bought this", and needs **Pay again anyway**.
- **Same number in flight**: while an order for the same service to that number is being paid, held, delivered or reviewed, a new one is refused until it finishes: "An order for this number is on its way".
- **Pay links**: one payer at a time; a second payment that slips through is refunded without buying.
- Numbers are compared by a keyed hash, so the check never needs the number in the clear.

## Doing things once [#doing-things-once]

Unique keys on chain order ids, provider request ids, chain events, signed transactions per purpose, refunds, rewards and webhook bodies; one live purchase per order; job singletons per order; and a read of the order's on-chain status before any release or refund is signed.