Somnia Lend
Oracle
Each reserve within the SomniaLend Protocol is associated with an oracle contract. These oracle contracts are responsible for reporting the market price of assets in the protocol, which is essential for determining collateralisation requirements.
In SomniaLend, oracles are configured by protocol administrators through the price oracle contract. The price oracle contract only reads prices: each asset's adapter reads its API3 dAPI, and API3 updates the feeds.
Price Sources in Use
Every SomniaLend reserve is priced by an API3 dAPI. The price oracle contract routes each asset to an adapter (ScaledApi3FeedProxyV1), which reads the asset's API3 dAPI and returns its USD price. No fallback oracle is set.
| Asset | Feed | Adapter |
|---|---|---|
| WSOMI | SOMI/USD | 0xfA2b4bb4330f77d799d7f9093b68f1fDe21043A7 |
| USDC.e | USDC/USD | 0x7052210aE4e3624975d706EF8901CDb455d7DEC4 |
| USDso | USDC/USD | 0x7052210aE4e3624975d706EF8901CDb455d7DEC4 |
| WETH | ETH/USD | 0x6217179F136fF94B91DD5Ecd0755Ce5739ddf272 |
| WBTC | WBTC/USD | 0x780B2cEAFAbcEEE6Aa5168f5c228363DC676aE90 |
The price oracle contract is 0x9b7B5d69a08071ce74C2f3D655038E3b782eAaFc. Call getSourceOfAsset(asset) on it for an asset's current adapter.