# Price Feed

### Price Displayed on ExtraFi dAPP

The price displayed, and users' position/debt/equity value on ExtraFi dAPP are directly based on the on-chain price from DEX (Calculated by the AMM model).

### Liquidation Price Feed

<table><thead><tr><th width="226">Liquidation Price Feed</th><th>Discription</th><th>Targets</th></tr></thead><tbody><tr><td>Real-time Price</td><td>Price calculated directly from AMM pool</td><td>Default</td></tr><tr><td>TWAP-30min</td><td>Time Weighted Average Price (TWAP) calculated over a 30-minute period<br>(Learn more about <a href="https://chain.link/education-hub/twap-vs-vwap">TWAP</a>)</td><td>Assets that have adequate liquidity, exhibit low volatility, and possess strong fundamentals.</td></tr></tbody></table>

(Updated on May 10, 2024)

Utilizing TWAP ensures that positions are more resilient and better protected, particularly in highly volatile markets. This safeguard is designed to shield leverage farmers from sudden price fluctuations or malicious manipulations, reducing the risk of flash liquidation events.

### Price Protection with Chainlink Price Feed

Chainlink price feeds (for assets supported on Optimism) are also aggregated on ExtraFi DApp - it is used to avoid abnormal price fluctuation: only when the price difference among 'TWAP', 'current on-chain price', and 'Chainlink Feed' is under a reasonable threshold will the liquidation mechanism work - If there is abnormal price fluctuation, the transaction will be reverted to avoid price attacks.

{% embed url="<https://www.chainlinkecosystem.com/ecosystem/extra-finance>" %}

![](/files/XvdYMsH5gZFvD2dtbwf9)


---

# 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.extrafi.io/extra_finance/leverage-farming/price-feed.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.
