# Longtail Orderbook Specs

In the second stage, the AMM will have its positions bridged to the Decentralised Limit Order Book on the Layer-3 as bids and asks. This will be facilitated with a specific on-ramp reducing the friction for end users. This bridge will be supported with options. This will ensure sufficient liquidity for the order book on day one to bootstrap the protocol.&#x20;

The decentralised limit order book will be launched on the Superposition Layer-3, and the AMM liquidity as well as collected interest from Super Assets will be migrated to the chain. The architecture will allow for the permissionless creation of AMMs and other types of financial products built on the order book liquidity, leveraging the superior performance and execution speed of the orbit chain.

### Account Abstraction in the Orderbook

The application will benefit from dedicated throughput with application-specific contracts. Account Abstraction (AA) will be leveraged to facilitate non-interactive transacting from the user’s perspective. Stylus will benefit the application with a higher performance and lower cost. A user-centric on-ramp leveraging AA will reduce the friction of using the DEX, taking the signing process out of the interaction UX with aggressive session key use. Entrypoint AA contracts are utilised with a Session Key signing key embedded in the browser. AA accounts facilitate margin calls, leveraging a calldata-heavy pattern seen with flash loans transparent to the end user. When margin is called on an account, live actors leveraging the bundler can call the code to transfer ownership of the assets to the lenders, for a fee. The UX for the wallets enables custody-free spending on margin

<figure><img src="/files/aOeZGxUqu8EM5xD83Z0J" alt="" width="375"><figcaption></figcaption></figure>

Fees are denominated in whatever assets the user has, based on the USD conversion rate at the time, with a preference for what the paymaster is willing to accept, and what’s liquid. To do so, an on-chain oracle is used to source data from alternative chains, weighted against data from the app-chain itself. This information is timed and also used to discover margin calls amongst other bits of information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.superposition.so/superposition-mainnet/super-layer/universal-shared-liquidity/longtail-orderbook-specs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
