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.

AsyncRoutersweep(to) takes only HYPE above subscriptions and relayer gas; releaseAll() refunds every subscription. Users: cancelSubscription(to), expire(id).
BondRegistrysweep(to, token) never touches bonds; releaseAll() returns every bond. Relayers: requestUnbond(), withdraw(to) after three days.
ReceiptRewardswithdrawAll(), withdraw(amount), reclaim(epoch).
Auditor, DemoDesk, SnapshotterHold 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.