Morpho Deployment

Deploying a standard Oval instance using a smart contract factory for Morpho markets

Oval is a Morpho ecosystem partner and allows for Morpho Blue markets on Ethereum mainnet to capture OEV on their liquidations that is returned to the market lenders. For more information, please see our Morpho governance forum post.

Factory Deployment

Oval contracts are designed to be composable and modular, allowing for customization according to your needs. The Oval factory enables you to deploy your own Oval instance for Chainlink and RedStone Classic price feeds with default configurations, ready for production in your smart contracts. The deployed Oval instance will output prices with the Chainlink AggregatorV3Interface.

We recommend using these factories for deployment if possible. For Oval deployments that use Pyth, Chronicle or Coinbase or custom parameters, see Advanced Deployment.

Deployment Instructions using Etherscan:

1. Navigate to the contract on Etherscan: StandardChainlinkFactory

2. Use the UI to run the create() function.

3. Fill in the arguments:

• Source: Chainlink or RedStone Classic price feed source address. Note: if using a RedStone Classic price feed, ensure that the price feed smart contract records historical price data under roundIds as this is required by Oval.

• Lock Window: how long new prices will be locked in seconds. Default is 25 seconds which results in a new price being delayed for maximum 2 blocks.

• MaxAge: Max age of a price in seconds that is used in place of the current price. If the only available price is older than this, OEV is not captured and the current price is provided. Default of 86400 seconds (24 hours).

4. Execute and receive your newly deployed Oval address. This address can now be used as one of the data feeds in a new Morpho Oracle deployment.

Last updated