# Solvency Oracle

{% hint style="info" %}
**Source:** `src/fira_bonding/oracles/FiraSolvencyOracle.sol`
{% endhint %}

## Overview

The FiraSolvencyOracle provides collateral-to-loan-token pricing for fixed-rate lending markets. It sits at the top of a 3-layer oracle pipeline:

```
AaveToChainlinkAdapter → ChainlinkOracleV2 → FiraSolvencyOracle → FiraLendingMarket
```

## Oracle pipeline

| Layer                      | Purpose                                                            |
| -------------------------- | ------------------------------------------------------------------ |
| **AaveToChainlinkAdapter** | Adapts Aave/Pendle price feeds to a Chainlink-compatible interface |
| **ChainlinkOracleV2**      | Combines two Chainlink feeds to produce a collateral/USDC price    |
| **FiraSolvencyOracle**     | Adjusts the price for BT solvency and provides to lending market   |

## Deployed instances

| Market      | FiraSolvencyOracle                                                                         |
| ----------- | ------------------------------------------------------------------------------------------ |
| PT-USDe/BT  | [`0xeB30b33A...`](https://etherscan.io/address/0xeB30b33A1aC175e0305853636D0eF3898eb530f3) |
| PT-sUSDe/BT | [`0xB9bAA3D5...`](https://etherscan.io/address/0xB9bAA3D58E1431776218F39919fd21AeD3e69aBb) |
| PT-USDG/BT  | [`0x90d0d6fd...`](https://etherscan.io/address/0x90d0d6fdf9fe93777085e8b4baf3aab4285bac6b) |

## Related pages

* [Contract Deployments](https://github.com/Pi-2lavega/fira-gitbook-sync-final/blob/main/developers/smart-contracts/smart-contracts/contract-deployments.md) — Full oracle pipeline addresses
