DESKON ELYSIUM Elysium Mainnet

DESK / ELYSIUM

Docs

Technical reference for the Elysium keeper, its execution model, position accounting, and dashboard API.

Architecture

DESK pairs a transaction-signing keeper with a read-only dashboard. The keeper runs on Railway, reads Elysium through an RPC provider, and stores signed transactions and positions in SQLite on a persistent volume. The Vercel dashboard reads the keeper’s latest snapshot through a server-side proxy. Signing stays in the keeper.

Montra
Source of creator-fee claims and router for swaps into and out of eligible pools.
Uniswap v4
Position Manager mints and burns the NFTs. StateView exposes ticks, liquidity, and fee growth for valuation.
Keeper
Checks entitlements and execution limits, signs transactions, reconciles receipts, and publishes the position book.
Dashboard
Shows observed positions and profit and loss. The historical LP and stock-arbitrage replays run independently from the keeper.

Network and contracts

Network
Elysium Mainnet · EVM chain ID 99901
Native asset
HYPE, with 18 decimals. The v4 pool key represents native HYPE with the zero address.
Position Manager
0x1d1C51b9d07fD27d36412A2b66CC23D19Eb3E518
StateView
0x27eD73aE0652fdCf71d6793412A7525f32bE9dfE

The keeper looks up the Montra router and lens through the registry, verifies the configured hooks, and hashes each pool key to check its pool ID. A pool ID identifies a specific set of currencies, fee configuration, tick spacing, and hook. A token address alone can correspond to several pools.

Montra fee routes · Uniswap v4 deployment addresses

Funding and sizing

Claims and quote currency

The fee source is a configured Montra pool. The keeper can claim directly as the creator-fee recipient, or collect its share through a verified splitter. Below the configured minimum, fees can remain pending. Confirmed claim receipts credit the treasury ledger. Close proceeds return to that ledger after settlement.

Targets must share the fee source’s quote asset. The current watchlist uses HYPE. The keeper sizes from both recorded treasury cash and the wallet balance, with a separate HYPE allowance for gas.

Allocation

deployable equity = spendable cash + marked open LP principal
minimum entry    = max($100 converted to HYPE, configured minimum order)
candidate budget = min(max(floor(deployable equity / 10), minimum entry),
                       spendable cash, max order)

The keeper waits until spendable cash and the order cap both cover the minimum entry. A fresh HYPE/USD reference price is required for new positions. The maximum is ten positions and one position per eligible token. A pending operation holds its slot. The opener checks active liquidity, LP fee availability, and swap impact before committing to a new position.

At a $100 spendable treasury balance with an empty book, one position gets a $100 entry budget. With $1,500 of deployable equity and sufficient cash, the target rises to $150 before the order cap. The final mint can use less if the inventory split and available liquidity constrain it.

Execution lifecycle

Open a position

  1. Choose a price range around the observed entry tick and align its bounds to the pool’s tick spacing. The default width is 2,000 ticks in each direction before rounding.
  2. Estimate how much quote to swap into the base token for that range. Compare expected output with the pool’s spot value, then set a minimum output using the stricter of the impact and slippage floors.
  3. Wait for the swap receipt and reconcile the delivered token amount. Approve the required ERC-20 allowances through Permit2 where applicable.
  4. Resample pool price, calculate mintable liquidity from available amounts, and simulate the mint. After confirmation, verify the NFT owner and liquidity on-chain before marking the position open.

Close and settle

An operator requests a close by NFT ID. The keeper reserves that position for exit, simulates the burn with minimum withdrawal amounts, and verifies the NFT burn and asset proceeds. For native HYPE it wraps the withdrawn quote during the burn so the amount can be reconciled from the receipt, then unwraps it back to HYPE. It sells the withdrawn base plus recorded entry dust back into quote, subject to the impact limit.

swap / mint
Entry funding or mint settlement is pending.
open
Keeper-owned position reconciled and marked from pool data.
burn / unwrap / sell
Exit in progress. The feed carries the last pre-close mark while settlement is pending.
closed
Quote proceeds recorded and the position archived. The slot is free. The closed pool stays excluded from automatic re-entry.

Valuation and P&L

Concentrated liquidity

Below its lower tick a v4 position holds its principal in currency0. At or above its upper tick it holds principal in currency1. Between those bounds it holds a mix and can earn LP fees while active. The keeper values base inventory at the observed pool price and derives accrued LP fees from the change in fee growth inside the range since the position’s last checkpoint.

Book calculation

entry basis    = quote spent on entry swap + quote charged to mint
open mark      = LP principal + accrued LP fees + tracked entry dust
unrealized P&L = open mark − entry basis
realized P&L   = confirmed close proceeds − entry basis
total P&L      = sum(realized P&L) + sum(unrealized P&L)

All components are expressed in the same quote asset. Open marks use pool spot and can differ from what an actual exit yields. For native HYPE mints the basis uses the maximum authorized mint spend, so a refunded remainder can make the reported P&L conservative. Gas and Montra creator-fee funding are outside the reported P&L.

Example in HYPE. An entry basis of 4.00 and a mark of 4.12 show +0.12 unrealized. If settlement confirms 4.05 of proceeds, history shows +0.05 realized and the open contribution goes to zero.

Uniswap v4 StateView reference

API reference

These read-only routes are available at the Vercel dashboard for authorized visitors. Keeper amounts and on-chain IDs use decimal strings to preserve integer precision. Tick indexes and quoteDecimals are numbers. To display a HYPE amount, divide its raw value by 1018. A field may be absent when that lifecycle stage has yet to produce it.

GET /api/live-lp
Keeper snapshot, status, quote currency, current positions, closed positions, and P&L totals.
GET /api/lp
Paper LP replay. Optional query parameters include pool, capital, band, and cost.
GET /api/arb
Paper stock-arbitrage replay. Optional query parameters include symbol, session, size, and cost.
GET /api/markets
Pool watch with market data. Missing provider values may be unavailable.

Example replay requests

GET /api/lp?pool=liquidv&capital=1000&band=20&cost=5
GET /api/arb?symbol=NVDA&session=open&size=1000&cost=5

These examples use USD replay capital or size, a 20% LP price band, and a 5 basis point cost adjustment. The request parameters affect the replay only.

Snapshot excerpt

{
  "mode": "observe",
  "healthy": true,
  "execution": false,
  "quoteDecimals": 18,
  "positions": [],
  "closed": [],
  "realizedPnl": "0",
  "unrealizedPnl": "0",
  "totalPnl": "0"
}

positions holds open and in-flight operations. Open entries can include basis, principal, value, feeValue, pnl, and inRange. closed holds settled entries with recorded proceeds and pnl. Transaction hashes are included once recorded.

pendingFees is the amount reported by the source pool’s creator-fee lens. For a splitter it is upstream of the keeper’s individual share. claimed counts the proceeds confirmed to the keeper. nextBudget is a sizing candidate and still needs an eligible pool and a passing quote.

Operations and recovery

Broadcast and confirmation

Before broadcast the keeper simulates the transaction, checks its gas cap and reserves, and persists the signed payload, hash, and nonce. On restart it resumes that recorded operation. It waits for the configured confirmation depth, 25 blocks by default including the receipt block, then checks that the receipt block hash still matches the chain.

Read-only
The keeper reads the chain and serves its book without broadcasting transactions.
Quote outside limits
The keeper defers the transaction. An exit can remain pending with withdrawn base tokens in the keeper wallet.
Confirmed revert or unmatched receipt
The keeper halts on a confirmed revert, reconciliation failure, or a consumed nonce without the expected receipt. Operators should check the journal hash and on-chain state before recovery.
New LP opening unavailable
Check the fee entitlement, quote asset, gas reserve, recorded spendable balance, and target pool liquidity.
Feed unavailable
The dashboard returns an unavailable state if the keeper snapshot fails its health check or the proxy cannot reach it. Confirm the keeper is publishing fresh snapshots before using the book.

The current keeper opens new positions and supports operator-requested full closes. It leaves range changes, partial withdrawals, and separate fee harvesting to future work.