Vertex: Shared-Margin Trading and the Closed Orderbook DEX

Vertex combined orderbook and pool liquidity with shared margin across spot, perpetual, and lending markets. Its trading closed in July 2025 following the team's agreement to join the Ink Foundation. The former decentralized exchange used on-chain contracts for balances and risk management, with an off-chain engine matching orders. Its design connected borrowing, collateral, and trading exposure within accounts, while separate margin options and liquidity products gave users different ways to allocate capital.

The short version: Before Vertex closed trading, shared margin linked account risks, while isolated perpetual positions used separately allocated collateral.

Orderbook Matching and Cross-Chain Settlement

The matching engine brought priced orders and automated pool liquidity together, widening the liquidity available for execution. A central limit order book, or CLOB, held bids and offers at specified prices. The off-chain sequencer handled order matching, while the integrated automated market maker, or AMM, supplied pool liquidity. Smart contracts handled the resulting balances and risk rules. Orderbook depth and pool reserves still constrained how much could trade within an acceptable price boundary.

Vertex Edge extended orderbook liquidity across supported chain deployments, including Arbitrum and Base. Orders could match against liquidity originating on another connected chain, while settlement occurred on the relevant underlying chains. Shared matching didn't turn every balance into a freely interchangeable asset across networks. Local deployments retained their own contracts and chain context, so cross-chain orderbook liquidity differed from moving collateral between chains.

Spot Balances, Perpetual Contracts, and Money Markets

Spot trades changed the asset balances an account held within the protocol. Purchases and sales exchanged base and quote assets, and a margin trade could create a borrowing obligation when an asset balance became negative.

Perpetual contracts provided long or short price exposure without delivering the underlying asset. During normal operation, they had no scheduled expiry. Position size and price movements determined trading profit or loss, while funding affected the position's running cost. Closing exposure and settling profit or loss were distinct accounting operations.

The embedded money market connected positive spot balances with lending and negative balances with borrowing. Interest accrued through the corresponding balance accounting, so a deposit's value and a debt's size could change over time. Collateral supported borrowing within the account's risk limits; deposited value wasn't an unrestricted borrowing allowance.

Repaying a borrow reduced the negative balance in the borrowed asset. Closing a perpetual changed derivative exposure instead. A portfolio could contain both obligations, and clearing one didn't automatically establish that the other had disappeared. The shared account made these activities interact financially while preserving their different balance meanings.

Cross-Margin Health and Isolated Positions

Cross-margin accounts evaluated supported collateral and liabilities together, allowing capital to support several activities within the same account. Asset values and risk weights determined the contribution each balance made.

Shared Collateral and Account Health

The risk engine combined weighted spot balances, perpetual exposure, and relevant profit or loss. A position's contribution could change as its valuation changed, affecting the account's capacity to carry other obligations. Nominal portfolio value therefore differed from the value available to support additional risk. Shared collateral connected losses across positions within that account.

Vertex - Shared Collateral and Account Health - illustration

Open full-size image

Initial Health

Initial health governed the account's ability to take additional risk. More conservative initial weights created a buffer between opening exposure and the maintenance boundary. A positive deposit balance alone didn't establish sufficient initial health because borrowing and existing positions also contributed to the calculation.

Maintenance Health

Maintenance health governed liquidation eligibility during normal operation. The liquidation contracts checked whether this weighted value had fallen below zero. Liquidation addressed unhealthy exposure under protocol rules, and it could affect collateral supporting other positions in a cross-margin account.

Isolated Perpetual Collateral

Isolated perpetual positions used margin allocated to a separate position account. This supported a different collateral boundary from portfolio-wide cross-margin. The implementation tracked the isolated account's parent and assigned margin, keeping the position's accounting separate. Isolation didn't remove adverse price movements or funding; it changed which collateral supported that exposure.

Multiple trading accounts under one wallet offered another separation mechanism. Each ordinary account had its own cross-margin positions and risk management. Account separation and an isolated perpetual position weren't identical settings, even though both could separate exposure from other activity under the wallet.


Funding, Interest, and Execution Costs

Perpetual funding and borrowing interest arose from different mechanisms. Funding adjusted the economic relationship between perpetual prices and the underlying index. Positive funding charged long exposure and credited short exposure; negative funding reversed that direction. The position's size and the funding accumulated over its holding period affected the payment.

Borrowing rates depended on each spot product's configured interest curve and utilization, the proportion of supplied assets borrowers used. The utilization-based part of deposit interest came from borrower payments after the protocol's interest fee; product-specific configuration could also modify accrual. Higher demand could increase borrowing costs, while a quoted annualized rate didn't represent a fixed return over every holding period.

Trade costs also depended on maker or taker execution and the applicable fee configuration. Price impact reflected the liquidity actually consumed. Historical maker rebates and VRTX incentives had their own eligibility rules; a displayed trading fee alone couldn't describe the cost of a leveraged position.


Wallet Deposits and API Access

Wallet access connected an owner to a particular trading account, while deposits funded its protocol balance. The documented token-deposit method used allowance approval followed by a collateral deposit. Approval permitted the contract to spend the authorized amount; it didn't itself credit collateral. Sending tokens directly to a contract outside the supported deposit operation wasn't equivalent to a recorded account deposit. Cross-chain deposits were also offered through an integration, separate from Edge's cross-chain order matching.

The Python SDK exposed order execution, collateral operations, and account queries through different interfaces. Its engine client handled signed requests, while the indexer supplied historical order and match data. Those interfaces belonged to the exchange's active deployment, whose production trading service subsequently closed.

Limit Prices and Conditional Orders

Limit orders specified an acceptable execution price, and resting orders could wait for matching liquidity. Immediate-or-cancel orders allowed immediate matching with cancellation of any unfilled remainder. Fill-or-kill supplied an all-or-nothing immediate execution condition. These choices governed what happened to the requested quantity when available liquidity couldn't satisfy the entire order.

Stop-loss and take-profit triggers supported conditional position management. A trigger condition and an executed exit were different events: triggering initiated the relevant order behavior, while matching determined execution. Thin liquidity or a changing market could prevent the requested exit from filling as intended. An order's price boundary, execution condition, and filled quantity described different aspects of its outcome.


Spot Pools and Fusion Liquidity

Spot pools accepted both underlying assets and minted liquidity-provider tokens representing a pool share. The pool's asset composition could change as trading occurred. Those LP positions contributed to cross-margin health through weighted underlying balances, so their face value wasn't the same as unrestricted margin. The interface tracked position value, composition, and profit or loss, making inventory exposure part of the liquidity-provider position.

Fusion Pools used Elixir's algorithmic market-making integration to deploy pooled capital on the orderbook. That activity differed from contributing directly to the integrated spot AMM. The integration connected supplied capital to quoted orders and distributed market-making returns and applicable rewards among liquidity providers. A pool share represented exposure to its particular liquidity mechanism; neither structure promised a fixed yield or eliminated trading losses.


What Did One-Click Trading Authorize?

One-click trading authorized a linked signer to sign supported exchange actions on a user's behalf during a session. The browser generated and stored the signing key locally, reducing repeated wallet prompts. Deposits remained outside the shortcut. Linked stop-loss and take-profit management also benefited from this authorization arrangement, which changed how actions were signed without guaranteeing their execution.

Manual signing remained an alternative. The linked key's authority concerned actions within the exchange, so its security mattered even though it wasn't the wallet's general-purpose signing key.


How Could a Trader Confirm an Order Had Filled?

A trader could confirm the executed quantity through match records and the corresponding account balance update. Order acceptance alone didn't establish a completed purchase.

Consider a hypothetical spot purchase during the exchange's active period. The account had sufficient margin and intended to buy quantity Q within a chosen price boundary. Its balances, price, liquidity, and fill quantities are hypothetical. The trader compared a resting limit order with an immediate-or-cancel order using the same criterion: whether an unfilled part of Q could remain open for later execution.

The trader selected immediate-or-cancel because any unfilled remainder shouldn't remain open. In the normal case, match records accounted for all of Q, and the account recorded the corresponding spot purchase. The requested quantity had finished trading, so no additional order was needed to complete that purchase.

In the edge case, matches covered only part of Q, and the immediate-or-cancel remainder was canceled. Reaching the original quantity would've required a new order decision. Under the same partial-fill condition, a resting limit order could have retained an open remainder. Canceling that remainder would've prevented later fills without reversing the completed purchase.

Trading Closure and the Ink Transition

The shutdown ended the former venue's trading and borrowing services. The final shutdown phase scheduled all trading to cease on July 16, 2025, at 14:00 UTC. Deposits and withdrawals were disabled in that phase. The shutdown plan specified automatic wallet transfers after forced settlement, with a 5% penalty on outstanding borrows force-closed through collateral swaps. The transition agreement brought the team and trading infrastructure into the Ink Foundation. Historical order controls don't provide a route to new trades on the closed venue; any new trading decision concerns an operating exchange and its own access rules.

Vertex questions worth asking

Could a Newly Created Subaccount Survive a Refresh Without Funding?

An unfunded new account didn't persist through a refresh or exit under the account-creation process introduced in August 2024. Funding was required to complete creation. Naming the account or selecting an avatar didn't establish a funded account with an enduring protocol balance.

What Happened to one-click Trading After Browser Storage Was Cleared?

Clearing browser storage removed the locally stored one-click signing key, so enabling the feature had to start again during the exchange's active period. Losing that local key didn't delete the account's on-chain balances. The protocol recorded linked-signer authorization on-chain. Clearing browser storage alone didn't revoke it.

Did the Python SDK Transmit a wallet's Private Key to the Exchange?

The documented Python SDK used the private key to sign requests locally. The exchange received the signed request, rather than needing the secret key itself. A private key exposed through logs or a compromised computer could still authorize unwanted actions.

Which Inputs Identified an Individual Order for API Cancellation?

The individual-order cancellation method used the order digest, product identifier, and sending subaccount. The digest identified the signed order for that operation. Product-wide cancellation was a separate method covering orders for selected products; an individual-order digest didn't itself show whether the order had filled.

Is a VRTX Wallet Balance Evidence of Continuing Staking Rewards?

VRTX's former staking rewards and buybacks ended with the transition. The token could remain visible in a wallet after those benefits ceased.

How Were INK Allocations Handled for VRTX Held on Centralized Exchanges?

The transition plan used the July 8, 2025, 14:00 UTC snapshot of VRTX holdings to determine eligibility. The Ink Foundation would send allocations for exchange-held VRTX to participating exchanges for distribution to eligible holders. Exchange distributions were tied to INK's launch and listing on the corresponding exchange.

Last updated -