Three programs sit between the chain and the page. The indexer turns Elyra's contract logs into tables. The API turns those tables, live chain reads, Hyperliquid's market data and its own database into the JSON every page reads. Bots inside the API process send the routine transactions that keep positions, hedges and pools current. None of them holds your funds or can sign for you, and of everything the bots send, only three kinds of call need a role key, each its own.
- The indexer (Ponder,
:42074) reads the logs of Elyra's own contracts on Elysium. The API is its only reader; the browser never queries it. - The API (Fastify,
:8796) maps every answer to the exact typesapps/web/lib/api.tsdeclares. No route sends a transaction for you: the writes store a signed Idea, forward a signed perp request, return calldata for your wallet or record a message. - Bots start only when
BOTS,BOT_PRIVATE_KEYandMANIFEST_PATHare all set. Every send is simulated first, and a send paid by a bounty goes out only when the bounty is at least 3 times its gas cost. - The hedger reports each hedged vault every 15 min, and the vault takes at most one report every 5 min. A report over 1 h old (
maxHedgeAge) counts the hedge as zero for exits and holds deposits, with no transaction needed; exits never wait. - The feed keeper pushes HYPE/USD on a 30 bps move and a stock on a 50 bps move in its session, and each at least every 15 min. On chain a push moves a feed at most 10 %, a minute after the last, within 15 % of the hour's anchor.
- Only
reportHedge, a feed'supdateand the rebalance of DLMM and stock vaults need a role key: the hedger's, the feed keeper's and the vault keeper's, three different keys. Every other bot action is a public function that pays whoever calls it, or nobody.
The indexer
apps/indexer is a Ponder app. One handler per event writes Postgres (or the bundled PGlite under .ponder/ when DATABASE_URL is empty), and the tables are served as GraphQL on port 42074. Every GraphQL document the API sends lives in apps/api/src/indexer/queries.ts, so the indexer's schema can change without any browser noticing.
Sources
| Family | Contracts | Writes |
|---|---|---|
| Elyra contracts | FeeRouter, ReferralRegistry, RangeOrders, PositionKeeper, VaultFactory, every vault clone, LaunchPipeline, PreMarketPerp | rangeOrder, keeperEnrollment, keeperAction, vault, vaultShare, vaultEvent, graduation, perp*, referral |
| Elyra pools | DammHook, StockHook, DlmmFactory and every pair it creates, Router, FeeCollector, BuybackV2 | ammPool, ammSwap, routerSwap, feeConversion, buyback, ammStat |
Every source starts at the manifest's deployBlock and takes its addresses from PONDER_MANIFEST and its ABIs from @elyra/abi. With no manifest the sources are still declared, at the zero address and capped at block 0, so they fetch nothing while the generated event types stay the same. Vault clones are one source over VaultFactory.VaultCreated, using the union of the three vault ABIs. Uniswap pools and positions outside Elyra's contracts are not indexed; the API reads them from the chain when a page needs them.
How derived fields are computed
Handlers stay thin; anything with an edge case is a pure function in src/logic/, tested from test/. Tests cannot sit next to the code, because Ponder runs every file under src/ except src/api/ as an indexing file.
- Prices. USDC is $1 by definition, HYPE and WHYPE follow the HYPE price, and an EQX stock token follows its market. Volume is counted on the quote side only, so a pushed pool price cannot inflate it.
- APR and Seasoned. Hourly rollups give the 24 h window.
apr24hPctisfeeAprFromPoolfrom@elyra/core, andestablishedisisEstablished: at least 3 days old, market cap above $1M and at least 100 trades in 24 h. - Loss against holding. The entry amounts at the first deposit's price, compared with the position now plus everything withdrawn. Collected fees are left out on purpose.
Every address and hash is stored in lowercase. Token amounts, liquidity and timestamps are bigint and travel through GraphQL as strings. USD figures and percentages are double precision, for display and ranking only.
Rows that look wrong but are not
| What you see | Why |
|---|---|
| A keeper enrollment changes its key | PositionKeeper.Rebalanced mints a new NFT. The old keeperEnrollment row gets succeededBy, the new one succeeds, and the lifetime totals carry over. |
A perp is liquidated, never closed | Liquidated fires before Closed in the same transaction, and the close handler keeps the liquidated status. |
vault.paused is false, yet deposits wait | The column mirrors the HedgePaused and HedgeResumed events, which mark the believed and the reported figure parting and meeting again. A stale report or a silent price feed holds deposits with no transaction and no log, so compare hedgeAsOf with the vault's maxHedgeAge, or call paused(). |
referral.earned holds strings | Raw token amounts routinely exceed 2^53. A Taken with no referrer writes nothing. |
Running it
Ponder reserves /health, /ready, /status and /metrics. src/api/index.ts adds /healthz, the GraphQL endpoint at / and /graphql, and Ponder's read-only SQL client at /sql/*. Gate traffic on /ready: it turns 200 only once the historical backfill is done.
Every deploy indexes into a schema of its own, so a new build backfills beside the old one, which keeps serving until the new one's /ready passes; a restart of the same build resumes from its last checkpoint. In production the indexer stops at start without Postgres, an explicit PONDER_RPC_URL or chain 99901.
The API
apps/api is one Fastify process. loadConfig parses the environment once into a Config, and buildApp(config, deps) takes every dependency injected, so no module reads process.env on its own and the tests run the real routes against fakes. Optional pieces degrade instead of failing: no DATABASE_URL means in-memory storage, an unreachable indexer means empty answers and indexer: 'down' on /health, no manifest means empty vault, launch and pool answers, and VENUE defaults to the simulated book.
Routes
| Route | Serves | Answers from | Cache |
|---|---|---|---|
GET /radar | Markets | the chain pool snapshot, indexer pools, Elyra pool rows, market data | 15 s |
GET /markets, GET /candles?market=&tf=&limit=&before= | Trade, charts | Hyperliquid market data; tf is one of 1m 5m 15m 1h 4h 1d; before (unix seconds) answers the bars older than it, [] at the start of the history | 15 s, 60 s |
GET /book, GET /trades, GET /funding/history | Trade, Markets | Hyperliquid's order book, recent trades and funding | short |
GET /portfolio/:address and /performance/… | Portfolio | indexer vault shares, range orders and enrollments; Uniswap positions, pending fees and pool prices read from the chain; the perp venue | none |
GET /vaults | Earn | manifest and graduated vaults, chain reads, the indexer's harvest log, market data | 30 s |
GET /launch?address= | Launch | indexer graduations, chain reads of LaunchPipeline and PreMarketPerp; your positions read fresh | 30 s for the shared part |
GET /pools?kind=, /pools/:id, /stocks, /protocol, /amm/vaults | Pools, Stocks, Protocol, Earn | indexer pool tables and live pool state, priced with market data; stock feeds and buyback state read per request | 15 s |
GET /theses, /theses/:id, /theses/leaderboard, POST /theses, POST /theses/:id/mirror | Ideas | the database, plus indexer fees and PnL for the leaderboard | none |
GET /referral/:address | Portfolio, Lounge | the indexer's referral row, each token priced at its mark | none |
GET /points/:address, /points/leaderboard, POST /points/recompute | Lounge, Portfolio | points events and Ideas in the database | none |
POST /perp/onboard, /order, /modify, /cancel, /session/end; GET /perp/account/:address, /positions/:address, /orders/:address, /fills/:address, /funding/:address | Trade | the perp venue | none |
POST /contact | contact form | the database | none |
GET /health | status banner | a 1 s probe of the indexer's /ready, reused for 15 s | 15 s |
Cursors ride in the x-next-cursor header, so list routes answer bare arrays. /health answers exactly {ok, venue, indexer, db, signer, markets, rpc} (the components ok, down or off, and 503 when the database or the signer is down; rpc is the paid fallback, ok, capped or off), plus feeds when the deployment has price feeds, and nothing about the configuration. GET /health/bots answers 200 while the worker's heartbeat is under a minute old, every bot is ticking and every feed is inside its age bound, and 503 with a list of problems otherwise.
Every error is {error, code}: bad_request 400, unauthorized 401, forbidden 403, not_found 404, conflict 409, rate_limited 429, unavailable 503, or a more specific code such as invalid_address, stale_ts, nonce_used, duplicate_thesis or manifest_missing.
The wire contract
The web's types are the contract. apps/api/src/routes/types/web.ts copies the interfaces of apps/web/lib/api.ts, and web.types.test.ts fails when a field is added, removed or renamed on either side. The API's own models keep whole percents and {items, nextCursor} pages and convert on the way out (routes/wire.ts): percent fields become fractions, and a candle's t in milliseconds becomes time in seconds.
How Markets rows are built
buildRadar is a pure function. The pool set comes from chain/poolSnapshot.ts, which asks the Uniswap v3 factory for every listed asset against USDC and WHYPE on the four fee tiers and reads each pool's tick, liquidity and balances in Multicall3 batches. chain/poolStats.ts adds 24 h volume, fees, trades, age and market cap from each pool's own Swap logs, read incrementally into hourly buckets. The server warms the snapshot at start and every 60 s, so no request waits for it.
A pool names its row through the side that is not USDC or WHYPE, joined to its Hyperliquid market through @elyra/abi's token table: a crypto token to its perp, an EQX stock token to its xyz HIP-3 market (EQSPY to xyz:SP500). A symbol's best pool has the highest fee APR among pools holding at least 1 % of its pool TVL, so a dust pool cannot name the row. Elyra's own pools add one row each with source: 'elyra'.
Carry is basisSignal from @elyra/core: pool APR plus hourly funding times 8 760, at least 8 % to watch and 20 % for strong. Pool and perp give lp-and-short (Hedge) when carry clears the watch bar and neutral otherwise; a pool alone gives neutral if Seasoned and avoid if not; a perp alone gives long-perp; neither gives avoid.
Market data
MarketData is one cached view of every market Elyra lists, from Hyperliquid's public info API: marks, 24 h stats, open interest and funding for the main perps and the xyz HIP-3 markets. A symbol Hyperliquid has no mark for still comes back, with mark: null. Concurrent requests for the same data share one upstream call.
Ideas and mirroring
POST /theses verifies an EIP-712 signature under { name: 'Elyra', version: '1', chainId } over Thesis { positionRef, side, text, ts }. positionRef is v3:<tokenId>, perp:<venue>:<market>:<id> or vault:<address>; side is long, short or lp; text is at most 500 characters; ts must be within 300 s of the server clock. Because ts is in the message, one signature makes one post: a repeat is 409 duplicate_thesis. The leaderboard ranks authors by realised fees plus realised PnL across their indexed positions.
POST /theses/:id/mirror executes nothing. It returns zapMint calldata on zapV3 for a v3 position (the author's pair, fee and ticks, 100 bps slippage, a 20 min deadline), deposit(0, you) for a vault, or, given sizeUsd and a live mark, a sized market order for a perp.
Perp requests
Every /perp/* route forwards to the configured venue. The default is SimVenue: an in-memory book on real marks that credits each new account 10 000 USDC, fills market orders 5 bps worse than the mark and accrues funding hourly. The live venue is an HTTP client for services/signer that signs every request with the shared SIGNER_SECRET: an HMAC over a timestamp, a one-time nonce, the path and the body, so the secret never crosses the network. The API never holds an agent wallet, and there is no withdraw route.
Each write body carries auth: { nonce, ts, signature }, an EIP-712 signature over PerpAction { action, account, payloadHash, nonce, ts }, checked by requirePerpAuth as Perpetuals describes. A trading session adds auth.session, a wallet-signed PerpSession grant, honoured on /perp/order and /perp/cancel only.
Limits and hardening
- Every
POST,PUT,PATCHandDELETEshares a budget ofRATE_LIMIT_WRITES_PER_MIN(30) per route group and client IP. A refusal is 429 withRetry-After. Reads are never limited./contactadds its own 5 per minute per IP. - The limiter lives in the process, so each replica grants the full budget.
TRUST_PROXYdecides what the client IP is and is off by default; turn it on only behind a proxy that setsX-Forwarded-For.CORS_ORIGINis a comma-separated list of scheme-and-host origins.*and bare host names are refused, and withNODE_ENV=productionthe API will not start without it.POST /points/recomputeneedsx-admin-secret, compared in constant time; withoutADMIN_SECRETit answers 503.
When the API is not there
Each page hook in apps/web/lib/data.ts wraps its fetcher in React Query with no retry and a 15 s stale time. In a development or staging build, a failed request falls back to a fixture from lib/fixtures/ and the page shows an "Example data" tag. A production build never shows a fixture: the page renders its empty state and a status notice. Writes need a manifest, not the API.
The bots
The bots live in apps/api/src/bots and run inside the API process. startBots returns without starting anything, and logs which variable is missing, unless BOTS, BOT_PRIVATE_KEY and MANIFEST_PATH are all set. BOT_PRIVATE_KEY signs for the vault keeper and every permissionless bot; the feed keeper signs with FEED_KEEPER_PRIVATE_KEY and the hedger with HEDGER_PRIVATE_KEY. Either falls back to BOT_PRIVATE_KEY when unset, which production refuses, and production also refuses one key in two roles, as the deploy does on chain. A bot is one tick(): it reads, decides and returns a list of actions, each a transaction hash, a venue order id or a skipped reason.
The runner's rule is that a bot must never take the API down: every tick is wrapped and its errors logged, a tick still running when its interval comes round is skipped rather than stacked, timers never hold up a shutdown, and every bot runs once at start. The hedger ticks every HEDGER_INTERVAL_MS (30 s), the feed keeper every FEED_KEEPER_INTERVAL_MS (30 s), the pool bots every AMM_BOT_INTERVAL_MS (15 s), the keeper and graduator every BOT_INTERVAL_MS (60 s), the fee sweeper every FEE_SWEEP_INTERVAL_MS (10 min) and the spot fee booker every SPOT_FEE_BOOK_INTERVAL_MS (5 min).
The send path
Every bot write goes through ChainClient.simulateAndSend:
simulateContract, aneth_callagainst pending state. A revert is the usual result, not an error: the position no longer qualifies, the order is not fillable yet, the token is too young. It costs nothing, which is why the bots can run on a loop.- For a send paid by a bounty,
estimateContractGastimesgetGasPricegives its cost in HYPE, and the send is skipped when the bounty is under 3 times that (GAS_BOUNTY_MULTIPLE). A bounty that could not be priced skips before the estimate: a missed harvest costs the owner nothing, while sending blind would turn one market-data outage into unguarded gas for every position. writeContract, then one confirmation. A reverted receipt counts as a failure.
ActionGuard, keyed by action and target, mutes a target for COOLDOWN_MS (5 min) after a success, while the indexer catches up, and for FAIL_BACKOFF_MS (15 min) after a failure, so a position that always reverts costs one simulation per quarter hour. The state is in memory on purpose: a restarted bot rebuilds everything from the chain and the indexer, and the contracts' own intervals are the real guard. It also means two replicas would send twice, so run the bots on one.
Feed keeper
Elysium has no oracle network, so HYPE/USD and every stock's USD price live in Elyra's own PushFeeds (the manifest's feeds), and the feed keeper's key is the only one that may update them. Each tick reads every feed's latest round and bounds() in one multicall and the references once, then decides per feed:
- Target. HYPE: Hyperliquid's HYPE oracle price. A stock during the NYSE session: its reference, the
xyzperp's oracle price (for SPY and QQQ the mid of Hyperliquid's EQSPY and EQQQQ spot books, pushed only while Yahoo's session price agrees within 1 %). Outside the session the close stands. - Sanity. A reference older than
FEED_KEEPER_MAX_SOURCE_AGE_S(120 s), more thanFEED_KEEPER_MAX_JUMP_BPS(2 500) from the on-chain answer or, for SPY and QQQ, more thanFEED_KEEPER_CROSS_CHECK_BPS(300) from Hyperliquid's EQX spot mid is refused, never pushed. With no fresh reference in the session the feed goes stale rather than an old price looking live. - Due. A move of
FEED_KEEPER_DEVIATION_BPS(30, HYPE) orFEED_KEEPER_STOCK_DEVIATION_BPS(20, a stock in session), orFEED_KEEPER_HEARTBEAT_S(900 s, refused above 1 800) since the last push for HYPE and for a stock in session. A closed stock is never re-pushed for age. - Step. On chain one update moves a feed at most
maxDeviationBps(10 %), at leastminInterval(60 s) after the last, and withinmaxWindowMoveBps(15 %) of the window's anchor, the answer standing at the first update of each hour. A larger move is walked in steps just under both; past the window bound the feed iswaitingfor the next hour. A genuine gap larger than that is the owner'ssetAnswer. - Gas. No push above
FEED_KEEPER_MAX_GAS_GWEI(5 gwei), and none once the UTC day's spend would passFEED_KEEPER_DAILY_GAS_HYPE(0.15 HYPE).
The contracts call HYPE/USD stale an hour after its last push, always, and a stock an hour after its last push while its session is open and four days after it while closed, so the close stands over a weekend and the feed reads stale at the open until a session price lands. /health adds feeds: each feed's answer and age read from chain, and the keeper's state for it (ok, held, waiting, refused, no reference, gas or error).
Keeper
One keeper tick runs three sweeps in order.
- Enrolled positions. The indexer's active enrollments, then
shouldHarvestandshouldRebalancefor each in one Multicall3 batch, thenharvestorrebalancewhere the contract says yes. The bounty isbountyBpsof the position's pending fees, converted to wei at the HYPE mark. - Range orders.
fillable(orderId)for every open order, thenfillonly where it says yes. The bounty is 1 % of the order's size (RANGE_ORDER_BOUNTY_BPS100). - Manifest vaults.
LPVault.harvest()has no "worth it" view, so the bot simulates it once perVAULT_HARVEST_INTERVAL_MS(6 h) per vault and sends whenever the simulation passes. The vault's ownminIntervalrejects the rest.
Hedger
For each vault whose manifest name contains "Hedged", plus any address in HEDGED_VAULTS, the hedger sizes the short from the vault's LP position with lpDelta from @elyra/core, trades the difference on the funder's Hyperliquid account through the signer, and writes reportHedge on chain. It acts when a report is due (HEDGE_REPORT_INTERVAL_MS, 15 min) or when the gap between target and current short exceeds HEDGE_DRIFT_BPS (200) of the target, and never sooner than five minutes after the last report, which the vault refuses (ReportTooSoon). It always reports the truth: the vault believes a report within 15 % of its hourly anchor and three times the margin funded, walks a larger move in and holds deposits meanwhile. Hedged vaults walks through one tick. The hedger never calls fundHedge (that is the funder's key) or StructuredVault.reportSleeve.
Graduator
LaunchPipeline checks only age and pool depth on chain; the rest of the Seasoned screen is the indexer's flag, and this bot joins the two. For every pool the indexer marks established whose token (the side that is not USDC or WHYPE) has not graduated, it reads firstSeen(token) in one batch. Zero means track(token), which starts the three-day clock. Three days or more means graduate(token). Anything in between is skipped without a log line. Neither call pays a bounty.
Pool duties and the fee path
These bots need the manifest's venue object and share the send path above; all but the fee sweeper's buyback() pay their own gas with no bounty.
| Bot | Acts when | Sends | Notes |
|---|---|---|---|
dlmmVaultRebalancer | a DLMM vault's needsRebalance() has held for DLMM_SUSTAIN_S (120 s) and the vault's 5 min interval has passed | rebalance(activeId, DLMM_ID_SLIPPAGE), 2 bins of slippage | only the factory's keeper() (or the protocol owner) may call it. The 120 s wait is the guard: holding a pushed price that long means trading against every arbitrageur |
stockVaultRebalancer | rebalanceStatus() returns ready: the session changed or the feed price drifted, the feed is fresh, the pool is near the feed price and the 5 min interval has passed | rebalance() | keeper only; a failed attempt is retried after STOCK_VAULT_RETRY_S (60 s) |
limitOrderSettler | DlmmLimitOrders.readyBooks() lists filled batches | executeMany for up to LIMIT_ORDER_BATCH (25) books | anyone may call it; a 60 s retry, because an unexecuted fill trades back if the price returns |
buybackPoker | BuybackV2's reference price is at least 1 % from the pool price and at least 600 s old | poke() | anyone may call it |
feeSweeper | a step would move at least its configured minimum: treasury fees in the FeeRouter, a routed token, WHYPE or HYPE in the FeeCollector, or HYPE in BuybackV2 | flush, convert, the collector's unwrap and forward calls, then buyback() | anyone may call every step; buyback() pays its caller callerRewardBps, so it goes through the gas rule with that reward as its bounty |
spotFeeBooker | the FeeRouter holds more WHYPE, USDC or stock token than accounted(token) and a recent Universal Router transfer explains it | take(token, amount, trader) | see Fees and referrals |
Reference
Indexer settings
| Name | Allowed | Default | Effect |
|---|---|---|---|
PONDER_CHAIN_ID | 99901 or a local id | 99901 | A fork of Elysium keeps 99901. Production accepts 99901 only. |
PONDER_RPC_URL | URL | the public Elysium RPC | Required in production. |
PONDER_RPC_MAX_RPS | 0 or more | No default | Request rate cap; 0 turns the throttle off for a local node. |
PONDER_MANIFEST | path | No default | The deployment manifest. Without it nothing is indexed; in production a path to a missing file stops the start. |
DATABASE_URL | URL | empty = PGlite | Postgres; production refuses PGlite. |
PONDER_PORT / PORT | port | 42074 | Listen port. |
API settings
| Name | Allowed | Default | Effect |
|---|---|---|---|
PORT | port | 8796 | HTTP port. |
DATABASE_URL | URL | No default | Unset: in-memory storage, lost on restart. |
INDEXER_URL | URL | http://127.0.0.1:42074 | GraphQL endpoint and the /ready probe. |
RPC_URL / CHAIN_ID | URL / id | public RPC / 99901 | Chain reads, the bot wallet, and the EIP-712 domain of Ideas and perp requests. |
MANIFEST_PATH | path | No default | Unset: vault, launch and pool routes answer empty, v3 mirroring answers 503, bots stay off. |
VENUE | sim or the live venue | sim | The live venue forwards to the signer. |
SIGNER_URL / SIGNER_SECRET | URL / string | http://127.0.0.1:8797 | Rotate the secret on both services together. |
ADMIN_SECRET | string | No default | Unlocks POST /points/recompute. |
NODE_ENV | development, test, production | development | production requires CORS_ORIGIN. |
RATE_LIMIT_WRITES_PER_MIN | more than 0 | 30 | Per route group and client IP. |
TRUST_PROXY | bool or proxy list | off | Only behind a proxy that sets X-Forwarded-For. |
CORS_ORIGIN | origins | No default | Unset: any origin is reflected, development only. |
Bot settings
| Name | Allowed | Default | Effect |
|---|---|---|---|
BOTS | names, comma-separated | empty = off | feedKeeper, keeper, hedger, graduator, dlmmVaultRebalancer, buybackPoker, limitOrderSettler, stockVaultRebalancer, feeSweeper, spotFeeBooker; an unknown name stops the API at start. |
BOT_PRIVATE_KEY | hex key | No default | The vault keeper (KEEPER) and every permissionless bot; no bot starts without it. |
FEED_KEEPER_PRIVATE_KEY | hex key | No default | The feed keeper (FEED_KEEPER). Unset, BOT_PRIVATE_KEY signs, which production refuses. |
HEDGER_PRIVATE_KEY | hex key | No default | The hedger (HEDGER). Unset, BOT_PRIVATE_KEY signs, which production refuses. |
BOT_INTERVAL_MS | ms | 60 000 | Keeper and graduator. |
HEDGER_INTERVAL_MS | ms | 30 000 | Hedger. |
AMM_BOT_INTERVAL_MS | ms | 15 000 | The pool bots. |
COOLDOWN_MS / FAIL_BACKOFF_MS | ms | 300 000 / 900 000 | ActionGuard mutes after a success and after a failure. |
VAULT_HARVEST_INTERVAL_MS | ms | 21 600 000 | How often each manifest vault harvest is simulated (6 h). |
HEDGED_VAULTS / VAULT_MARKETS | addresses / vault:MARKET | empty | Extra hedged vaults; market overrides such as xyz:SP500. |
HEDGE_REPORT_INTERVAL_MS | ms | 900 000 | Report cadence; refused above half of maxHedgeAge (1 h). The vault takes one report every 5 min at most. |
HEDGE_DRIFT_BPS | bps | 200 | Drift that forces a re-hedge between reports. |
HEDGE_MIN_NOTIONAL_USD | USD | 50 | Smallest adjustment sent. |
HEDGER_MODE | live, report-only, off | live | Kill switch: report-only places no order but keeps reporting; off does nothing. |
HEDGE_MAX_ORDER_USD / HEDGE_DAILY_LOSS_USD | USD | 25 000 / 2 500 | Largest single hedge order (at most the signer's MAX_ORDER_NOTIONAL_USD); hedge loss per UTC day that stops orders. |
HEDGE_MAX_NOTIONAL_USD | USD | off | Optional ceiling on one vault's short; off, a vault is hedged in full. |
DLMM_SUSTAIN_S / DLMM_ID_SLIPPAGE | s / bins | 120 / 2 | DLMM vault rebalancer. |
LIMIT_ORDER_BATCH | books | 25 | Limit-order books per executeMany. |
STOCK_VAULT_RETRY_S | s | 60 | Retry delay after a failed stock vault rebalance. |
FEED_KEEPER_INTERVAL_MS | ms | 30 000 | Feed keeper. |
FEED_KEEPER_DEVIATION_BPS / STOCK_DEVIATION_BPS | bps | 30 / 20 | Move that makes a push due: HYPE, a stock in session. |
FEED_KEEPER_HEARTBEAT_S | s | 900 | Push HYPE and a stock in session at least this often; refused above 1 800. |
FEED_KEEPER_MAX_SOURCE_AGE_S | s | 120 | Oldest reference pushed. |
FEED_KEEPER_MAX_JUMP_BPS / CROSS_CHECK_BPS | bps | 2 500 / 300 | A reference this far from the on-chain answer, or (SPY, QQQ) from the EQX spot mid, is refused. |
FEED_KEEPER_MAX_GAS_GWEI / DAILY_GAS_HYPE | gwei / HYPE | 5 / 0.15 | No push above this gas price, or past this spend in a UTC day. |
Elyra