# Liquidation

## Independent Risk Management Between Trading Pairs&#x20;

To support an open margin trading market, we have established isolated pools with targeted risk parameters, tailored to the unique volatility of each asset. Each trading pair is assigned a specific collateral ratio, determined by its inherent volatility and the blockchain's block time and processing capacity.

## Risk Assessment with AMM Prices&#x20;

Real-time pricing provided by the on-chain Automated Market Maker (AMM) model is utilized as a benchmark for risk assessment and liquidation. This approach is crucial in accelerating the development of the leveraged trading market in a decentralized environment, especially when compared to the delay in waiting for Chainlink oracles to generate or update market data. The instant price data provided by DEXs, maintained on-chain and secured by both technical and economic measures, has become the standard oracle for various DeFi applications, such as margin trading.

## Operational Restrictions&#x20;

To prevent flash loan attacks, multiple restrictions have been implemented in the protocol's design:

* Conducting open, close, or liquidation operations within the same transaction is prohibited.&#x20;
* During the liquidation process, [Oracle](/feature/oracle.md) ensure the validity of the liquidation price to prevent attackers from manipulating prices to trigger liquidations for profit or to cause cascading liquidation events.


---

# 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.udex.one/feature/liquidation.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.
