Skip to content

Security

Email security@sagitta.broker. Please include:

  • what is affected: a contract address, a page or an API path;
  • how to reproduce it, ideally as a test on a local fork of Elysium (chain 99901);
  • what an attacker could gain or break.

Test on a fork, never against other people’s funds on the chain itself. Give us a reasonable time to ship a fix before you publish. There is no managed bug bounty.

The same contact is published at docs.sagitta.broker/.well-known/security.txt in the RFC 9116 format. Every build regenerates it with an expiry date 180 days out.

Before each release the contracts go through free tools and adversarial review rounds:

  • static analysis with Slither, on every change;
  • Foundry unit, fuzz and invariant tests, among them a fuzz that runs the Market’s router and its four parts against the single contract they were split from, step for step;
  • attack suites that test the core’s properties: its admin paths, its gas limits and its feeds;
  • fork tests on Elysium (chain 99901): its block hashes, the pool manager’s storage, a swap through Montra’s hook and a burn on a live Montra pool;
  • a rehearsal of the whole launch on a fork of Elysium: the deploy, the first rounds, the setup and the seal, the launch markets, the Safe’s timelock flow, a ticket filled on a relayed round and a burn.

There is no paid audit.

The launch settings were applied once, at deployment, before any market existed, by the deployer, in two one-time setups, each sealed for good:

  • The burn vault’s. Its token, price source, burner and spending cap were set by the vault’s bootstrap, which seals the vault in the same call. The deployer or the timelock can also seal a vault that was never set up, which ends the deployer’s power over it.
  • The Registry’s. The Registry was deployed with the signer set as the feed owner every feed must have. Its bootstrap applied the factory version, the bounded settings, the signer set as the Registry’s guardian, and the feeds, and sealed the Registry in the same call. The Registry accepts no market before that seal, and the deployer or the timelock can also seal it should a deployment never be bootstrapped.

After both seals the deployer has no power. Every change since goes through the 72-hour timelock:

  • Change tunable settings, add or switch off feeds, set the feed owner every new feed must have, and add price signers or change their threshold, only through a 72-hour timelock on which a 1-of-1 Safe, whose single signer is a hardware wallet, is the only account that can schedule or cancel. After the delay anyone may execute a scheduled operation, but only as it was scheduled; the executor chooses nothing but the moment. The settings are bounded in the contract: the minimum mint, the minimum redemption, the executor bounty cap and the payout gas stipend (see Parameters).
  • Set the burn vault’s burner and price source, through the same timelock: the burner is the contract that swaps the vault’s HYPE for $SAGITTA, and the price source is the contract that reports the burn’s price floor from proven prices. The timelock also sets maxSpend, the most one burn may spend, which the vault caps at 10 HYPE: a burn spends the smaller of 5% of the vault’s free balance and maxSpend, and at most one burn runs per window of 10 minutes. A dishonest burner and price source could take at most that one spend per window, never the HYPE in pots, tickets, owed balances or markets’ accrued fees. See The burn.
  • Pause new mints and tips at once, with the guardian key or the sentinel key, for every market, one version or one market. Only the timelock can unpause.
  • Remove a price signer at once, with the guardian key or the sentinel key. Only the timelock adds one back.
  • Sunset a market or a version. Anyone can then retire its markets: each one freezes at a reading taken after its retirement, and its holders redeem at that price.
  • Ship a new version. The old version keeps taking mints until it is sunset, a separate timelock operation; then its mints stop, and its pots stay redeemable forever.
  • Touch the HYPE in pots, in waiting tickets, owed to accounts or accrued as fees. No admin path reaches it, and the accrued burn share can only go to the immutable burn vault.
  • Change a deployed market, side token, relayed feed or price reader. The core contracts are immutable: the Market is a fixed router and four fixed facets, joined by addresses set at deployment, with no upgrade path and no admin.
  • Change or remove a stored round. A relayed feed keeps every round it took for good.
  • Stop redemptions or claims. Redeeming, executing and claiming never call the Registry or the burn vault, so no setting, pause or sunset can block an exit.
  • Cancel or change a ticket. A ticket committed before a pause or a sunset still fills at its own reading, mints included.
  • Lower the timelock’s delay below 72 hours, or execute an operation before its delay has passed.
  • Change a setting outside the timelock. The deployer’s two one-time setups, the burn vault’s and the Registry’s, were each sealed for good, and neither seal can be undone.

Every market takes its prices from rounds signed by Sagitta’s price signers (see Relayed prices). That is a trust in the signers, and these are its bounds:

  • Who. Only keys on the signer set’s list sign rounds, and only the timelock adds one. The threshold is now 1, so one key’s signature is enough for a round. The guardian or the sentinel can remove a signer at once.
  • What. A feed takes a round only under the rules on that page: signed by enough listed keys, observed after the feed’s newest round and landing within 60 seconds of its observation. The price it signs decides each reading’s move, and so how HYPE moves between the pots. A signer can’t take HYPE out of a market, change a ticket or rewrite a stored round, and a ticket fills only at the first reading observed more than 60 seconds after its commit.
  • Checked. Every round is public, listed with its signers and transaction by GET /api/readings, and taken by a fixed rule from Jupiter’s answer for a stated Solana slot or from Chainlink’s round on Solana. Sagitta’s watchdog compares stock readings with its own record or sample of Jupiter’s answer and copied rounds with Chainlink’s, and on any mismatch the sentinel removes the signing keys and pauses new mints on every market. A round it can’t check goes to Sagitta’s operators to check by hand.
  • If signing stops, markets wait. Each freezes once its oldest waiting ticket, or its retirement, has had no reading for 7 days, and its holders redeem at the frozen price; a market with nothing waiting freezes 7 days after the first commit made during the silence.
  • Elysium itself. Its sequencer orders transactions by priority fee, and it can delay them or stop producing blocks. Tickets then wait, a round that lands late fills nothing it couldn’t have filled on time, and a market freezes only once its oldest waiting ticket has had no reading for 7 days.
  • Two chains’ clocks. A round’s time is a Solana time, which the post window holds to Elysium’s own clock, and the signer refuses to sign while the two chains’ newest blocks and its own clock disagree by more than 3 seconds.
  • Stock token prices. A stock token is priced from its own trading, which can be thin outside its home market’s hours. Only fresh, liquid tokens list, and a listed token that stops qualifying is paused within the hour (see Stock tokens).
  • Montra. $SAGITTA’s pool runs on Montra’s hook, which charges its fee on every buy and refuses a buy that would cross its price limit. That touches only the burn: a window whose buy can’t go through burns nothing, and the HYPE stays in the vault. No market reads the pool.
  • The burn vault’s price source. It is a timelock setting, and it reports which grid readings each burn used and who posted them. A dishonest one could name its own poster, but each grid second is still paid at most once, and only for the burn’s window and the three before it: about one 0.00024 HYPE fee per window. The timelock can’t change the grid fee and is never paid one.
  • Payouts to an account that can’t receive them. The site, the CLIs and the API refuse a recipient that could never collect. A payout committed to such an account directly stays owed to it.
  • Every Sagitta site lives on sagitta.broker or one of its subdomains, such as docs.sagitta.broker.
  • A side token’s address proves nothing: anyone can find an address with any prefix. Check a token against its market before you trust it.
  • A stock token or a feed can carry several markets, each with its own pots. Check which one you are in: the site shows each one’s listing age, version and address tag.
  • Nobody from Sagitta will ever ask for your key or seed phrase. Your wallet signs every transaction itself, and the CLIs sign on your machine.