Avantis

Open trade on Avantis

Base
Base
Defi · Perpetuals

Ready to run on Base

Avantis is the perpetuals exchange of Base, and its vault is the market maker: every trader who opens a position on Avantis is trading against one pool of stablecoin deposited by liquidity providers, and that pool collects the fees and the losses on the other side.

The arrangement is simple to hold and hard to watch. A deposit mints vault shares at the pool's current value, and the share price moves with the exchange's flow: fees and trader losses lift it, trader profits paid out lower it. The pool backs open interest far larger than its balance through the exchange's open interest multiplier, so a reserve is held against every open trade, and the vault measures how much of its capacity that reserve uses.

That utilization is what governs the way out. There is no queue and no lockup; a withdrawal or redemption settles in the block it is sent, unless it would push utilization to the withdraw threshold, in which case it reverts, because the vault will not let its liquidity providers pull the reserve out from under open trades. While the vault's fees are on, every exit also pays a collateral health fee that the vault manager steps with the health of the exchange's buffer. The exit you want is open or shut, cheap or dear, depending on numbers that move with every trade.

Every one of those numbers is a step in a plug: the share value and the exact quotes for depositing, minting, withdrawing and redeeming, the reserve and the utilization it implies, the threshold that closes exits, the fee and the switch that turns it on. Deposits and exits run when a condition is met rather than when a person is awake.

An exit that waits until utilization falls back below the threshold and fires in the first block it will land. A withdrawal held until the exit fee drops, then sent without a second look. A deposit that catches room under the cap the moment it opens.

Providing liquidity to a perpetuals exchange is a position whose exit depends on everyone else's trades. The providers who leave on their own terms are the ones whose exits are already written down as rules.

The other side of the vault is the trading itself. A trader posts stablecoin as collateral and opens a long or a short on one of the exchange's pairs, from the majors to equities, currencies and commodities, at up to the leverage the pair allows. A market order is placed in one transaction and filled in a later block by a keeper at the oracle's price, opening only if that price sits within the slippage the trader asked for; a limit or stop limit order rests in the book until the price reaches it.

Every part of that is a step in a plug: placing a market, limit or stop limit order, closing all or part of a trade, adding to one, moving or cancelling a resting order, and handing another address the right to trade the book. The trade, the order, the pair's leverage bounds and fees, and the price a trade is liquidated at are all reads, so a plug can wait for a fill, compare a trade against the market, and act the moment its condition is met.

A stop loss written as a rule instead of a hope. A position that scales in as the price confirms. A close that fires before funding turns, or before the liquidation price gets close.

Leverage rewards the trader who acts on time. The ones who do are the ones whose exits are already written down.

How to open trade on Avantis

  • Places an order on Avantis, the perpetuals exchange of Base, to go long or short one pair with stablecoin collateral at a chosen leverage.

    Reach for it to open a position when a condition is met, coiling the collateral from a swap or a withdrawal, and pair it with the open trade and pending order reads to act once the trade exists.

  • Cancels an open Avantis limit or stop limit order.

    Reach for it to withdraw an entry the market has moved away from, or to free the collateral for another trade in the same run.

  • Asks Avantis to close some or all of an open trade at the market.

    Reach for it to take profit or cut a loss when a price condition is met, to close before funding turns against the trade, or to close in step with another position.

  • Deposits the stablecoin into the Avantis vault, the counterparty to every trader on the exchange, and receives vault shares.

    Reach for it to earn the fees and trader losses the vault collects, coiling the shares into a stored record of the position or a later withdrawal.

  • Adds collateral and size to an open Avantis trade at the market, on the trade's own side.

    Reach for it to scale into a position as a condition is met, coiling the collateral from a swap or a claim.

  • Mints an exact number of Avantis vault shares, paying whatever the vault quotes for them in the stablecoin.

    Reach for it when the share count is the target, such as topping a position up to a round number of shares, and let the stablecoin side float.

  • Redeems Avantis vault shares for the stablecoin.

    Reach for it to exit by share count, coiling the stablecoin received into a following swap, repay, or transfer so the exact proceeds flow through.

  • Withdraws a delegate's right to trade the Plug account's Avantis book.

    Reach for it to close off a delegate key that is no longer in use, or to end a delegation on a condition.

  • Lets another address trade the Plug account's Avantis book until a timestamp.

    Reach for it to manage the Plug account's trades from the wallet, or from any key trusted to trade them, alongside the programs that run on the Plug account.

  • Moves an open Avantis limit or stop limit order to a new trigger price, slippage, take profit and stop loss.

    Reach for it to trail an entry behind a moving price, or to tighten an order's exits as a condition changes.

  • Withdraws a stablecoin amount from the Avantis vault, burning whatever shares the vault quotes for it.

    Reach for it to take a set amount out or to exit entirely, gating it on the utilization ratio sitting below the threshold so the exit lands.