Torque
Launch app

How Torque works

Torque is a perpetual exchange for Elysium coins. You open a long or short with HYPE as collateral, up to 5x, and close it whenever you want. One vault of HYPE takes the other side of every trade. Everything below is enforced by the contract.

Overview

  • Collateral and settlement: HYPE, the native coin of Elysium. You never hold the coin you trade.
  • Leverage: 1x to 5x. The contract has a hard ceiling of 10x that no setting can pass.
  • One position per side per market: opening again adds to it at a blended entry price.
  • Counterparty: the Torque vault. It earns fees and traders' losses and pays traders' profits.

Prices

Each market is a coin with a HYPE pool on the Uniswap v4 PoolManager that Elysium launchpads use. Torque reads the pool's price straight from the PoolManager's storage. There is no outside oracle.

Young pools are thin, so Torque keeps two prices per market:

  • Pool price: the price in the pool right now.
  • 10-minute average: a time-weighted average built from the pool price recorded at least once a minute (see the keeper).

New positions open only while the market's last record is under 5 minutes old. If the keeper stops, opening in that market pauses until someone pokes it again; anyone can call poke. Closing never waits: it records a fresh price itself.

Opening and closing

Every open and close fills at the worse of the two prices for you: a long opens at the higher one and closes at the lower one, a short the other way round. Pushing the pool before your own trade only makes your fill worse, so the trick that drains naive perp exchanges does not pay here.

Each order carries a limit price. If the fill would be worse than your limit, the transaction reverts and nothing happens. The app sets the limit 2% from the expected fill.

Profit and loss is size times the price change. A position can win at most 100% of its size; past that the profit stops growing.

Example10 HYPE collateral at 3x
Position sizeabout 29.9 HYPE after the open fee
Coin rises 10%about +3 HYPE profit
Coin falls 10%about −3 HYPE loss

Liquidation

A position can be liquidated when its equity, meaning collateral plus profit minus loss and accrued fees, falls below 1% of its size. Equity for this check is measured at the 10-minute average only, so a one-block crash in the pool cannot liquidate you; the price has to stay down for minutes.

Anyone can liquidate. The liquidator gets 5% of the collateral, and the rest goes to the vault. The app shows your liquidation price on the order panel before you open, on the chart and in your positions.

Fees

FeeAmountGoes to
Open0.1% of the size added70% vault, 30% treasury
Close0.1% of the size closed70% vault, 30% treasury
Borrow0.01% of the size per hour, charged at closeVault
Liquidation5% of the collateralLiquidator

Hard limits in the contract: trading fee at most 0.5%, borrow fee at most 0.05% per hour.

The vault

Anyone can deposit HYPE and receive vault shares. The vault's value is its HYPE plus the open positions' profit and loss at the 10-minute average, so a share is worth more when traders lose and less when they win.

  • Reserve: for every open position the vault reserves HYPE equal to its size, the most it can ever owe that position.
  • Caps: total open size can never exceed the vault's free HYPE, and each market has its own open-interest cap.
  • Withdrawals: you can withdraw free HYPE at any time at the current share value. HYPE reserved for open positions stays until they close.
  • First deposit: a tiny number of shares is locked forever so the share price can't be manipulated on an empty vault.

The keeper

A keeper bot runs every minute. It records each pool's price into the 10-minute average (pokeAll) and liquidates positions whose equity at the average has fallen below 1% of their size.

The keeper has no special rights. Recording prices and liquidating are open to any address, so if our keeper stops, anyone can do its work and take the liquidation reward.

Markets

MarketPoolOpen-interest cap

Coins are listed by the owner. A coin needs a HYPE pool deep enough that the 10-minute average can't be moved cheaply; its cap is set well below the pool's depth.

Pairs

Any two listed coins also trade against each other, for example KNTQ/YTR. The pair's price is the ratio of the two HYPE prices: how many YTR one KNTQ is worth. A long on KNTQ/YTR earns when KNTQ does better than YTR, whichever way the market goes; a short earns when YTR does better.

Anyone can open a pair's market. The terminal does it with the first trade on that pair, in its own transaction, and after that the pair trades like any other market: same leverage, fees and margin rules.

Fills use the worse of the live ratio and the ratio of the two 10-minute averages, and liquidation uses the averages only, so one pool spiking for a block can't liquidate a pair. Size, collateral and PnL are in HYPE. A pair position counts toward the cap of both of its coins.

Token

30% of every trading fee goes to the treasury, which buys $TORQ back on the market and burns it. The token has no say over the contract and no claim on the vault.

What the owner can do

  • List a coin and set or pause each coin's open-interest cap; pause a market. A paused market still lets every position close.
  • Change fees, maximum leverage, the averaging window (2 to 60 minutes) and the staleness limit, each within the hard limits above.
  • Change the treasury address.

There is no function that moves the vault's HYPE or a trader's collateral, no upgrade proxy and no pause on withdrawals or closes.

Risks

  • Unaudited. The contract has unit tests, fork tests on live Elysium pools, and fuzzed accounting, but no external audit.
  • Thin coins. Elysium coins can move tens of percent in minutes. Leverage makes that faster. Trade small.
  • Sustained manipulation. Holding a pool's price away for ten minutes costs money but is possible on a shallow pool; caps limit what it can win.
  • Vault risk. If traders win more than they lose, vault shares fall.
  • Keeper delay. If nobody records prices for 5 minutes, that market stops taking new positions until someone pokes it. Closing still works.

Contracts

ContractAddress
Torquepublished at launch

Chain: Elysium, chain id 99901. Pool prices come from the Uniswap v4 PoolManager at 0xE2e1…23F1.