> For the complete documentation index, see [llms.txt](https://fxprotocol.gitbook.io/fx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle/wbtc.md).

# WBTC

The f(x) 2.0 price oracle mechanism for WBTC/USD combines multiple data sources, including Chainlink, Uniswap and Curve, to calculate spot prices and anchor prices. It defines Max and Min Price for WBTC/USD based on these sources and uses a governance-adjustable threshold (default 2%) to decide whether to rely on the Anchor Price or the Max/Min Price for operations like rebalancing, minting, or redeeming. This ensures accurate and stable pricing while accommodating market fluctuations. Below is the detailed breakdown of the WBTC Spot Price Oracle Mechanism:

### Mainnet

### BTC/USD Spot oracle:

1. \[[Chainlink BTC/USD Spot](https://data.chain.link/feeds/ethereum/mainnet/btc-usd)]
2. \[[Uniswap V3 WBTC/USDC 0.3% Spot](https://app.uniswap.org/explore/pools/ethereum/0x99ac8cA7087fA4A2A1FB6357269965A2014ABc35)]
3. \[[Uniswap V3 WBTC/ETH 0.3% Spot](https://app.uniswap.org/explore/pools/ethereum/0xCBCdF9626bC03E24f779434178A73a0B4bad62eD)] \* \[[Uniswap V3 USDC/ETH 0.05% Spot](https://app.uniswap.org/explore/pools/ethereum/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640)]

### WBTC/BTC Spot oracle:

1. \[[Chainlink WBTC/BTC Spot](https://data.chain.link/feeds/ethereum/mainnet/wbtc-btc)]&#x20;

### WBTC/USD Anchor Price oracle:

* \[[Chainlink WBTC/BTC Spot](https://data.chain.link/feeds/ethereum/mainnet/wbtc-btc)] \* \[[Chainlink BTC/USD Spot](https://data.chain.link/feeds/ethereum/mainnet/btc-usd)]

#### Katana

#### BTC/USD Spot oracle:

* \[[Chainlink BTC/USD Spot](https://data.chain.link/feeds/katana/mainnet/BTC-usd)]
* \[[Sushi V3 WBTC/USDC 0.3% Spot](https://www.sushi.com/katana/pool/v3/0x744676b3ced942d78f9b8e9cd22246db5c32395c)]
* \[[Sushi V3 WBTC/ETH 0.3% Spot](https://www.sushi.com/katana/pool/v3/0x8d6daef922532571e33924dccc5aa09edd9eef77)] \* \[[Sushi V3 USDC/ETH 0.05% Spot](https://www.sushi.com/katana/pool/v3/0x2a2c512beaa8eb15495726c235472d82effb7a6b)]

#### WBTC/BTC Spot oracle:

* \[[Chainlink WBTC/BTC Spot](https://data.chain.link/feeds/katana/mainnet/WBTC-BTC)]

#### WBTC/USD Anchor Price oracle:

* \[[Chainlink WBTC/BTC Spot](https://data.chain.link/feeds/katana/mainnet/WBTC-BTC)] \*\[[Chainlink BTC/USD Spot](https://data.chain.link/feeds/katana/mainnet/BTC-usd)]

### The Algorithm of WBTC/USD Max and Min Price:

* **Max**: WBTC/USD Price=Max(Anchor Price, \[WBTC/BTC Spot Max Price ]\*\[BTC/USD Spot Max Price ])
* **Min**: WBTC/USD Price=Min(Anchor Price, \[WBTC/BTC Spot Min Price ]\*\[BTC/USD Spot Min Price ])

### Price Checking Mechanism:

* Anchor Price is used, while the price difference between Anchor Price and Max/Min Price exceeds the threshold
* The threshold is a governed parameter, 2% in default

### Conclusion:

* Min WBTC/USD Price is used for Open/Close of xPOSITION risk control, Rebalance and Liquidation if the price difference between Anchor Price and Min Price doesn’t exceed the threshold. Anchor Price is used otherwise.&#x20;
* Max WBTC/USD Price is used for Redeeming fxUSD if the price difference between Anchor Price and Max Price doesn’t exceed the threshold. Anchor Price is used otherwise. <br>
* Max WBTC/USD Price is used for Open/Close of sPOSITION risk control, Rebalance and Liquidation if the price difference between Anchor Price and Max Price doesn’t exceed the threshold. Anchor Price is used otherwise.
* Min WBTC/USD Price is used for Redeeming sPOSITIONs when the system runs out of leverage long collaterals to meet xPOSITIONs’ closing and risk management options if the price difference between Anchor Price and Min Price doesn’t exceed the threshold. Anchor Price is used otherwise.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle/wbtc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
