Skip to main content

Operations and trust

A Gedho vault is run by a few roles: an operator, two reporters, an Admin and a guardian. The contracts limit what each of them can do, and when one of them does not act, anyone can step in. This page sets out who does what. The examples use BTC.

Reporterreports every hourReporterreports every hourReport oraclemust match, within limitsGedho vaultholds the fundsOperatora bot with two keysTrades, runs rounds, rebalancesPublic guardanyone can run itGuard at about 36%, exit at about 48%Admin2-of-3 multisigTime delay24 hours, 72 hours or 7 daysGuardiana separate keyPauses every market, cancels changes
The roles around the vault, with BTC as the example. None of them can send user funds to an address of its choice, except through an upgrade, which waits 72 hours and can be cancelled by the guardian.
  1. Two reporters report the vault every hour. The report oracle accepts their reports only when they match closely and stay within fixed limits.
  2. The operator, a bot, trades on Lighter, runs the hourly rounds and rebalances the short. It cannot send funds anywhere else.
  3. If the operator does not act, anyone can call the public guard once the price has moved about 36% against the short. At about 48%, or after 2 hours without a report, anyone can trigger an emergency exit.
  4. The Admin, a 2-of-3 multisig, can stop the operator or close all positions at once. A new operator or reporter waits 24 hours, a new codec or an upgrade waits 72 hours, and a new guardian waits 7 days.
  5. The guardian can pause every market for 14 days at a time, and cancel changes while they wait in the 24-hour and 72-hour delays. It cannot move funds.
  6. No role can edit reports, or send user funds to an address of its choice except through an upgrade, which waits 72 hours and can be cancelled by the guardian.

The operator​

The operator is a bot. It trades on Lighter, runs the hourly rounds and rebalances the short. It uses two keys: one to trade on Lighter, and one that only pays for gas on Robinhood Chain. The team pays the gas of the operator.

The operator cannot move funds anywhere else. It can only trade for the vault and run the steps the contracts allow.

A backup bot is registered in advance, so that another operator can take over if the first one stops.

The reporters​

Two reporters run apart from each other. Every hour, each one reports the state of the vault, including negative funding.

  • The two reports must match closely. If they differ, the vault is Held until they match.
  • Each report must stay within fixed limits. A larger change needs the approval of the Admin, after a wait of 24 hours.
  • Reports must arrive on time. If they are more than about 70 minutes late, the vault is Held.

Keeping the short safe​

The short on Lighter is 2x, so it can be liquidated if the price rises far enough. Safety steps open one after another as the price moves against the short:

Price move against the shortWhat can happenWho can do it
About 24%The short is rebalancedThe operator
About 36%The public guard makes the short smaller and sells a matching part of the BTCAnyone
About 48%An emergency exit closes the short and sells the BTCAnyone

Late reports open the same steps. After 2 hours without a report, anyone can call the public guard or trigger an emergency exit.

If the short is liquidated, it is reopened. If that fails within 30 minutes, the BTC is sold, so that the vault does not hold the asset without a short.

The statuses of the vault​

  • Normal. Rounds run, and the vault holds BTC and a short of the same size.
  • Held. The vault waits, and rounds do not run, for example while reports are late or a price is stale.
  • NoShort. The vault holds BTC without a short, for example after a liquidation, until the short is reopened or the BTC is sold.
  • Emergency. All positions are closed.
  • WindDown. The vault is closing for good. See below.

A pause is not a status of a vault. It stops users' actions in every market at once, and only the guardian can start it. See Upgrades and pause.

The Admin​

The Admin is a 2-of-3 multisig: two of its three signers must agree.

At once, it can:

  • revoke the operator;
  • close all positions, which puts the vault in Emergency;
  • end a pause early;
  • cancel changes that are waiting.

With a delay, it can:

  • set a new operator or a new second reporter, after 24 hours;
  • set a new codec, the contract that writes the vault's commands for Lighter, after 72 hours;
  • upgrade the contracts, or change the protocol fee or the treasury, after 72 hours;
  • set a new guardian, after 7 days.

The Admin cannot:

  • send user funds to an address of its choice, except through an upgrade, which waits 72 hours in public and can be cancelled by the guardian;
  • pause the markets;
  • edit reports;
  • take deposits for itself.

See Upgrades and pause for every delay and what each one covers.

The guardian​

The guardian is a separate key from the Admin. It can:

  • pause every market at once, for 14 days at a time;
  • cancel changes that wait in the 24-hour and 72-hour delays;
  • settle a series that has reached maturity during a pause, which only it and the Admin can do then.

It cannot move funds, and it cannot carry out changes. A new guardian waits 7 days. See Upgrades and pause.

Wind-down​

If there has been no valid report for 14 days, or if Lighter enters its exit mode, anyone can start a wind-down. A wind-down is permanent. It uses no prices and pays everyone pro rata. A pause does not stop it, though taking back a request that waits in the queue still waits for the pause to end.

What anyone can do​

  • Run the public guard. Its code is public, so anyone can run it.
  • Claim for others. The claim bot Coming soon has no special permission. It only does what any user can do.
  • Start a wind-down, when the conditions above are met.
  • Send the protocol fee to the treasury. It can only go there. See Fees.
Risk

Gedho depends on its operator, its reporters and Lighter. If the operator stops, rounds wait until another operator takes over. Wrong reports could misprice FV; two reporters and fixed limits reduce this. If Lighter stops, collateral could be stuck for a long time. The contracts can be upgraded after 72 hours, and a pause can stop exits for 14 days at a time. See Risks.