{"repo":"morpho-org/morpho-blue-oracles","free":true,"listed":false,"github":"https://github.com/morpho-org/morpho-blue-oracles","clone":"git clone https://github.com/morpho-org/morpho-blue-oracles.git","description":"Morpho Blue Oracles","language":"Solidity","stars":114,"topics":["chainlink","decentralized","defi","lending","oracle","morpho"],"license":"GPL-2.0","category":"blockchain-web3","readme_excerpt":"Morpho Blue Oracles Morpho Blue Oracles are contracts that can be used as oracles for markets on Morpho Blue. The oracles implement the IOracle interface defined in IOracle.sol : they return the price of 1 asset of collateral token quoted in 1 asset of loan token. MorphoChainlinkOracleV2 The MorphoChainlinkOracleV2 is an oracle that uses Chainlink-interface-compliant feeds to provide price data. This oracle handles the following cases among others (let's say that our pair is A/B): - A/B is a feed (typically, stETH/ETH). - B/A is a feed (typically, ETH/USDC). - A/C and B/C are feeds (typically, stETH/ETH and USDC/ETH). - A/C, C/D and B/D are feeds (typically, WBTC/BTC, BTC/USD, USDC/USD). - A/D, and B/C, C/D are feeds (typically, USDC/USD, WBTC/BTC, BTC/USD). - A/C, C/D and B/E, E/D are feeds. - A/C and C/B are feeds (typically, WBTC/BTC and BTC/ETH). - A'/C and B/C are feeds, and there is an exchange rate between A and A'. (typically A=sDAI and A'=DAI). Deploy an Oracle To deploy a MorphoChainlinkOracleV2 on Ethereum, it is highly recommended to use the factory MorphoChainlinkOracleV2Factory . To do so, call the createMorphoChainlinkOracleV2 function with the following parameters: - baseVault : The ERC4626 token vault for the base asset. - baseVaultConversionSample : A sample amount for converting base vault units. - baseFeed1 , baseFeed2 : Chainlink-interface-compliant data feeds for the base asset. - baseTokenDecimals : Decimal precision of the base asset. - quoteVault : Th","default_branch":null,"files":null,"tree":[],"storefront":"/r/morpho-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/morpho-org/morpho-blue-oracles/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}