> For the complete documentation index, see [llms.txt](https://docs.aftermath.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aftermath.finance/perpetuals/faqs.md).

# FAQs

Frequently asked questions about trading, margin, and collateral on Aftermath Perpetuals.

### Why does my allocated collateral appear higher than my filled position size?

Aftermath Perpetuals uses isolated margin markets. When you place limit orders, the protocol must reserve collateral to back those orders in case they get filled. Your allocated collateral therefore covers both your filled position and all pending orders.

For example, if your first order fills at $6 but you also have several pending limit orders, your allocated collateral will reflect the total worst-case exposure, not just $6.

### Why isn't the allocated collateral equal to the sum of all my orders?

Pending buy (bid) orders and pending sell (ask) orders offset each other. The protocol calculates your worst-case net exposure using the MaxNetBase formula instead of summing all orders.

For example, if you have a $6 long position, 5 pending buy orders at $6.55 each, and 5 pending sell orders at $6.55 each, the required collateral is less than $6 + (10 x $6.55) = $71.50. The system only requires collateral for the worst-case direction.

### What is MaxNetBase and how does it determine my margin?

MaxNetBase is the formula used to calculate position exposure. It takes the larger of two scenarios:

```
MaxNetBase(p) = max(|BaseAmount + PendingBids|, |BaseAmount - PendingAsks|)
```

Your current position plus all pending buys (worst case if all buys fill), or your current position minus all pending sells (worst case if all sells fill). Whichever is larger determines your margin requirement.

This prevents traders from deepening the order book by placing matching buy and sell orders without sufficient collateral.

### Where can I learn more about the margin system?

See the [Margin documentation](https://docs.aftermath.finance/perpetuals/architecture/margin.md) for the complete formulas including Margin Ratio, Initial Margin Ratio (IMR), and Maintenance Margin Ratio (MMR).
