ElyraElyraOpen the app

Docs

Solvers and bonds

Register

A solver registers with a bond in HYPE: register() with at least minBond (0.1 HYPE at launch; the owner can set it between 0.1 and 100 HYPE). Only active registered solvers can settle.

Strikes in code

Anyone can report a won auction left unsettled past its deadline with reportMissed(award, commitSignature). The contract verifies the auctioneer's Award, the solver's own Commit and that the auction was not settled. Three strikes within 24 hours slash 10 % of the bond to ElyraFees and eject the solver: banned for 7 days, its bond withdrawable after 1 day. Settling a solution that did not win is impossible in code, since settle requires the Award for that exact solution.

Owner slashing within caps

For misbehaviour the chain cannot see (spamming the auction with solutions that never simulate, for example), the owner can slash at most 10 % of a solver's bond, at most once a day per solver, to ElyraFees, and can eject a solver. The owner cannot take a bond beyond those caps and cannot touch user funds.

Exit

requestExit() stops the solver at once; withdrawBond() returns the bond one day later.

Run a solver

# 1. read the batch
curl -s https://<this site>/api/auction
# 2. build a Solution (tokens, uniform prices, trades, interactions), simulate settle() from your solver address
# 3. sign Commit(auctionId, solutionHash, deadline) and submit
curl -s -X POST https://<this site>/api/solutions -H 'content-type: application/json' \
  -d '{"auctionId":"...","solver":"0x...","solution":{...},"commitSignature":"0x..."}'
# 4. if you win, the Award is in /api/auctions: call settle(solution, award) before its deadline

The settling solver keeps 80 % of the fee on every trade it settles, plus whatever its routing earns inside the uniform prices.