Drift Protocol v2

โŒ˜K
๐Ÿ‘พWelcome to Drift Protocol
๐ŸงฎDrift DEX
๐Ÿ‘‹Getting Started
๐Ÿ“ˆPerpetual Futures
๐Ÿ“ŠSpot Margin Trading
๐ŸฆBorrow & Lend
๐Ÿ›๏ธStaking
๐Ÿ”ฌTechnical Explanations
๐Ÿ“Accounting and Settlement
โž—Borrow Interest Rate
๐Ÿ“œDelisting Process
โ›ฒDrift AMM
๐ŸƒJust-In-Time (JIT) Auctions
๐Ÿ“šKeepers & Decentralised Orderbook
โ˜ ๏ธLiquidators
๐Ÿ’งLiquidity Providers (LPs)
๐Ÿ“‹Protocol Guard Rails
๐Ÿ“Risks
๐Ÿ–ฅ๏ธDeveloper Resources
๐Ÿ“”Overview
โŒจ๏ธSDK Documentation
โŒจ๏ธTutorial: Bots
โš ๏ธTroubleshooting
๐Ÿ› ๏ธKeeper Bots
๐Ÿ› ๏ธTrading Bots
โŒจ๏ธHistorical Data (v1)
โŒจ๏ธAPI
๐Ÿ›ก๏ธSecurity
๐Ÿ›ก๏ธAudits
๐Ÿ›ก๏ธBug Bounty
โš–๏ธLegal and Regulations
๐Ÿ“Terms of Use
๐Ÿ“Disclaimer
๐Ÿ“Privacy Policy
๐Ÿ“Competition Terms and Conditions
๐Ÿ“šGlossary
Docs powered byย archbeeย 
21min

Just-In-Time Auction FAQ

Benefits

What are the benefits for Takers?

For Takers, the main benefit of the JIT auction is that liquidity can be much deeper compared to an AMM. Liquidity on the JIT isn't constrained by how much virtual liquidity is available for a user; it is determined by the liquidity provided by external Makers in each auction. Users have the opportunity for much better price improvement compared to a liquidity-constrained AMM.

What are the benefits for Makers?

For Makers, the JIT auction provides an easy way to access on-chain taker flow for market making operations. Unlike an on-chain CLOB where the set up cost, ongoing infrastructural costs, and the possibility for latency arbitrage is high, market making on the JIT is a simple, competitive auction fill mechanism, reducing the barrier for entry for making on-chain.

Makers will also earn a rebate for filling taker orders.

For Takers

How many auctions can there be at once?

The auction mechanism is highly parallelized for maximum exchange throughput.

  • Takers can initiate multiple auctions, up to the number of orders slots (currently 32).
  • Makers can participate in as many auctions as they like (since their order is completed atomically).
  • Additionally, on a per-exchange level, there is no limit to the total amount of on-going auctions happening at once.

Can auctions be partially filled?

Yes, auctions can be partially filled up to a user's slippage tolerance. There are no Fill-or-Kill (FOK) auctions.

Can auctions be cancelled once initiated?

Yes, users can cancel the unfilled portion of their order in the auction once they've been initiated. Users will need to pay a network fee in SOL to cancel their ongoing auction, as well as a nominal fee to keepers of $0.01 USDC.

Can Makers pull out of an auction once they have filled on the auction?

Once an order is partially filled, Makers are unable able to pull out of an auction. Fills are confirmed when the Maker submits a fill on a first-come-first-serve basis.

Is there a limit to how many auctions a Maker can participate in at once?

No, there is no limit. Makers can enter multiple auctions at once to cancel out their exposure.

Is there a way for users to enter market orders without entering the auction?

Not at the moment. Market orders all go through the JIT auction. Users can opt to place a limit order instead if the user wishes to be matched with another order via the DLOB.

Do limit orders trigger an the auction?

No, limit orders are not filled via the JIT auction. Limit orders specify a single price point and will be matched against other limit orders or the DAMM on the decentralised limit order-book (DLOB).

Are there individual JIT pools for each Taker order placed?

Yes. Each user will have a different account and each taker order placed will go through its own JIT auction.

Will I know the exact price I'll be filled at?

Exclusive of slippage and fees, the UI will display the price that the Taker will be filled at if they were to be filled against the DAMM. This is the worst possible price the Taker can receive. Any Maker that steps in via the JIT auction can only provide the Taker with a better price.

For Makers

How do I participate as a Maker in the auction?

You can read docs here (Just-In-Time (JIT) Auctions) as well as read through an example trading bot (๏ปฟ๏ปฟ๏ปฟTutorial: JIT Auction Maker๏ปฟ).

Is the same JIT auction mechanism used for liquidations as well?

Yes, it is the same model. Liquidiations will be market orders that will also route through the JIT auction mechanism.

Are there example maker bots?

Yes. We've developed an open source maker bot that can be accessed here (๏ปฟ๏ปฟ๏ปฟTutorial: JIT Auction Maker๏ปฟ).

How will Makers be notified of JIT auctions?

We built an event emitter on Solana. Makers can listen to the event emitter for whenever there's a taker order. Makers can then bid to fill the order.

Will I see what my maker bid is relative to all the other maker bids?

Yes.

Does the JIT auction happen in a set of rounds?

Each new Taker order commences a new dutch auction. Dutch auctions are on a first-come-first-serve basis.

Can I fill a subset of one order?

Yes. Makers can fill a subset of Taker orders. The remainder will either be filled by other Makers or be filled by the DAMM.

How does the DLOB work in conjunction with JIT liquidity?

DLOB liquidity and JIT liquidity aren't mutually exclusive. The DLOB setup is designed with two separate actors: fillers and makers. Makers post orders and fillers will match orders. JIT mechanism enables the Maker to be their own filler. The Maker will submit the match with someone going through an auction (e.g. user who submitted a market order).

Updated 29 Dec 2022
Did this page help you?
Yes
No
UP NEXT
Keepers & Decentralised Orderbook
Docs powered byย archbeeย 
TABLE OF CONTENTS
Benefits
What are the benefits for Takers?
What are the benefits for Makers?
For Takers
How many auctions can there be at once?
Can auctions be partially filled?
Can auctions be cancelled once initiated?
Can Makers pull out of an auction once they have filled on the auction?
Is there a limit to how many auctions a Maker can participate in at once?
Is there a way for users to enter market orders without entering the auction?
Do limit orders trigger an the auction?
Are there individual JIT pools for each Taker order placed?
Will I know the exact price I'll be filled at?
For Makers
How do I participate as a Maker in the auction?
Is the same JIT auction mechanism used for liquidations as well?
Are there example maker bots?
How will Makers be notified of JIT auctions?
Will I see what my maker bid is relative to all the other maker bids?
Does the JIT auction happen in a set of rounds?
Can I fill a subset of one order?
How does the DLOB work in conjunction with JIT liquidity?