Router and market
How LQNT trades, and how the router joins the market to the vault in a single transaction.
The token's market
LQNT is launched on the Volta launchpad on Elysium. A Volta token trades from the moment it launches on its own Uniswap v4 pool, whose hook is Volta's position manager:
| Pair | HYPE / LQNT (native HYPE is currency0, LQNT currency1) |
| Pool manager | 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1 |
| Hook (Volta position manager) | 0x3aB88DDc3CF2A012af88B60828edb4553697E5dC |
| LP fee | 0 |
| Tick spacing | 60 |
| Swap fee | Volta's, set at launch between 1% and 5% (swapFeeBps(isBuy) returns the current one, in bps) |
| Pool ID | — |
The pool ID appears here at deployment.
The token is a standard ERC-20: it can be held, transferred and traded by anything that supports ERC-20s.
QuantumRouter
The router is the bridge between the market and the vault. It holds no funds between transactions.
Buy into an account
function buy(bytes32 account, uint256 minTokensOut) external payable returns (uint256 tokensOut);Swaps msg.value HYPE for the token, shields the result into account and updates the vault's price average. Reverts
with InsufficientOutput below minTokensOut.
Sell from an account
A sale is an ordinary vault operation whose exit names the router:
exitTarget = router
exitData = abi.encode(minHypeOut)
recipient = the address that receives the HYPEThe vault approves the router for the exit's amount and calls onShieldExit. The router pulls the tokens, sells them
and sends the HYPE to recipient. Only the vault can call it.
Quote
function quote(bool isBuy, uint256 amountIn) external returns (uint256 amountOut);Returns the output of trading amountIn now, Volta's fee included. On the pool it runs the real swap and reverts it, so
it is exact; call it with eth_call.
One pool, fixed
VoltaSwapper, which the router and the harvester share, reads the token's pool key from Volta's position manager at
construction and checks that the pool pairs native HYPE with the token under Volta's own hook. Every part of the key is
fixed in the implementation's code, so a decoy pool with any other key never enters trading or pricing.
Exit targets
The router is one implementation of a general interface:
interface IExitTarget {
function onShieldExit(uint256 amount, address recipient, bytes calldata data) external;
}Any contract can be the target of an exit: the owner's signature names it and its parameters. This is how a shielded balance can be routed anywhere in one operation without the tokens resting at an address in between.