SDK
Security
The agent cannot move funds
A HyperCore API agent can place and cancel orders for the account that approved it. It cannot withdraw or transfer. The worst a bad relayer can do with it is trade the account badly, which is exactly what receipts, audits and bonds are there to prove and charge for.
Exits
Every contract has an owner exit that leaves users' money alone, and every user balance has its own exit that works with every keeper stopped.
| AsyncRouter | sweep(to) takes only HYPE above subscriptions and relayer gas; releaseAll() refunds every subscription. Users: cancelSubscription(to), expire(id). |
| BondRegistry | sweep(to, token) never touches bonds; releaseAll() returns every bond. Relayers: requestUnbond(), withdraw(to) after three days. |
| ReceiptRewards | withdrawAll(), withdraw(amount), reclaim(epoch). |
| Auditor, DemoDesk, Snapshotter | Hold no funds; sweep(to). |
Status
Unaudited. 24 unit tests and a fork test of the full lifecycle (Filled, Partial, Dropped, ack then cancel at deadline, a lying relayer slashed, expire with no keeper) pass on a fork of Elysium.