Skip to Content
Crypto exchangesDecentralized exchanges

Decentralized exchanges

On a decentralized exchange (DEX), your money stays in your wallet or in a smart contract rather than in an account at the exchange, and you sign every action with your wallet’s key. This is a basics-level lesson: how a DEX differs from a regular crypto exchange, how the order-book perpetual exchanges JetScalp connects to work, how a signature replaces a password, and what risks this model carries. How perpetual contracts and margin work — the lessons Perpetual contracts and Margin on a crypto exchange.

How a DEX differs from a regular exchange

QuestionCentralized exchangeDEX
Where the money isIn an account at the exchangeIn your wallet or in a smart contract
Sign-inLogin, password, usually identity verificationWallet signature, no identity verification
RulesThe exchange’s regulationsSmart contract code and protocol rules
Trades and positionsVisible only to the exchangeVisible to everyone on the blockchain
A mistake or a lost keySupport and account recovery existA lost key cannot be recovered, and what was sent cannot be returned

A DEX has a user agreement too: every exchange has a list of countries whose residents it does not serve — check the user agreement.

Liquidity pool exchanges (AMMs)

The first popular DEXs were exchanges without an order book (AMM, automated market maker): instead of orders there is a pool, a smart contract holding reserves of two tokens, and the price is set by a formula. The larger the trade relative to the pool, the worse the price — the same price impact as in an order book (the lesson Liquidity and price impact). Every trade is a blockchain transaction with a network fee (gas), and while it waits in the public queue everyone can see it, so a bot can place trades right before and after it (front-running, a “sandwich”); a slippage tolerance protects against this. Such exchanges are inconvenient for active trading — traders use order-book DEXs.

Order-book perpetual exchanges

DEXs of this type work like a centralized exchange: an order book, limit orders, perpetual contracts, leverage. JetScalp connects to three such exchanges (fees as of November 2026, check with the exchange):

  • Hyperliquid — its own blockchain, in which the order book and order matching run directly on-chain. Collateral is USDC. The base-tier fee is 0.015% for the maker and 0.045% for the taker, lower at high turnover. Funding is charged every hour. Leverage on bitcoin is up to 40. Margin modes: cross, isolated and strictly isolated, from which margin cannot be withdrawn. Besides its own markets, there are markets created by third-party teams (HIP-3) — for example, perpetual contracts on stocks such as xyz:TSLA.
  • Lighter — its own rollup on top of Ethereum: trades are matched off the main chain, and their proofs and the data needed to reconstruct balances are published on Ethereum, so funds can be withdrawn through a contract on Ethereum. A Standard account pays no exchange fee, but taker orders are filled with a small delay; paid account tiers have a small fee. Funding is charged every hour; leverage on bitcoin and ether is up to 50.
  • Aster — a perpetual and spot exchange with its own blockchain. The base-tier fee is 0 for the maker and 0.04% for the taker. Funding is every 8 hours by default, more often for some instruments. It offers hidden orders and positions that are not visible in the order book.

Liquidation on these exchanges works as on centralized ones: the position is closed at the mark price when the margin is insufficient. If the order book cannot absorb it, the position is taken over by the exchange’s fund — the HLP vault on Hyperliquid, the LLP fund on Lighter — and if that is not enough either, auto-deleveraging kicks in (liquidations on Hyperliquid ).

A signature instead of a password

A DEX has no login and password: every order is signed with the wallet key. To avoid confirming every trade in the wallet, an API wallet (agent) is used: the wallet signs an authorization once, and from then on orders are signed with the agent’s key. The agent only signs operations, while the money and positions stay in the main wallet.

The main security rule: no program needs your wallet’s seed phrase or private key to trade. Whoever asks for them is a scammer.

Everything in plain sight

Positions on a DEX are visible to everyone: from a wallet address one can see position sizes, entry prices, leverage, liquidation prices and P&L.

For a trader this means:

  • your positions and results are forever tied to your wallet address and visible to everyone;
  • large positions and their liquidation prices are visible to other participants — someone may try to “reach” them with a price move;
  • liquidations and auto-deleveraging can be verified from on-chain data, which is impossible on a centralized exchange.

Aster takes a different path and offers privacy: hidden orders and positions.

Risks

A DEX has its own types of risk — take them into account when choosing your position size and the amount you keep on the exchange:

  • Code bugs. A smart contract executes what is written, bugs included.
  • Oracles. A contract gets external prices from an oracle; if the price sources are distorted, so are the mark price and liquidations.
  • Thin markets. The price of an illiquid token is easier to move with a large order — liquidations there happen more abruptly.
  • Outages and manual decisions. The network or the exchange can stop temporarily, and in a crisis a decision may be taken by a small group of validators or the protocol team.

The practical conclusions are the same as for centralized exchanges: keep on the exchange only what you need for trading, trade liquid instruments and use a stop.

In the JetScalp terminal

JetScalp connects to Hyperliquid, Lighter and Aster without your wallet’s seed phrase or private key. The terminal connects to Hyperliquid and Aster through its own API wallet, which your wallet authorizes once with a signature, and to Lighter through an API key created on Lighter. On Hyperliquid and Aster the terminal trades spot and perpetual contracts (on Hyperliquid, including HIP-3 markets); on Lighter, only perpetual contracts.

The JetScalp fee on DEXs is 0.01% of the order volume, the same for maker and taker: on Hyperliquid and Aster for both spot and futures, on Lighter for perpetual contracts on Plus and Premium accounts (no fee is charged on Standard accounts). Your wallet signs the 0.01% upper limit once itself — JetScalp cannot take more. Details are on the connection pages for Hyperliquid, Aster and Lighter.

Summary

  • On a DEX the money stays in your wallet, every action is signed with a key, there is no identity verification, but nothing lost can be recovered.
  • What matters for trading is order-book DEXs: Hyperliquid, Lighter and Aster — low fees, hourly funding on the first two, liquidation into the exchange’s fund and auto-deleveraging.
  • Positions on a DEX are public; on top of venue risk there are code bugs, oracles, thin markets and outages.
  • No trading program needs your seed phrase or private key.

Check yourself

  1. How does an API wallet (agent) differ from the main wallet, and why does it not need the seed phrase?
  2. Why does a wide slippage tolerance on a pool exchange make a trade easier to “sandwich”?
  3. What can any market participant see from your wallet address on Hyperliquid?
Last updated on