🥚
Oval
  • Oval Overview
    • Problem
    • System Overview
  • Integration
    • Quickstart Deployment
    • Morpho Deployment
    • Advanced Deployment
  • Mechanism Details
    • Integration with MEV-Share
    • Mechanism Description
    • Trust Assumptions
    • Oval Update Lifecycle
    • Inclusion Rates
    • Revenue Sharing
  • Contract Architecture
    • Source Adapters
    • Destination Adapters
    • Integration Controllers
    • Oval
    • Gas Profiling
  • Technical Examples
    • Aave Integration
    • Flashbots Integration
  • For Searchers
    • Getting Started
    • Header Specifications
    • Oval Node
  • OEV Data
  • Oval Demo
  • Audit and Bug Bounty
  • Oval Deployments
Powered by GitBook
On this page
  • Factory Deployment
  • Deployment Instructions using Etherscan:

Was this helpful?

Edit on GitHub
  1. Integration

Quickstart Deployment

Deploying a standard Oval instance using a smart contract factory

PreviousIntegrationNextMorpho Deployment

Last updated 9 months ago

Was this helpful?

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 .

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:

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

3. Fill in the arguments:

• Source: or 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. Replace your price feed address with the newly deployed Oval address.

Chainlink AggregatorV3Interface
StandardChainlinkFactory
Chainlink
RedStone Classic
Etherscan UI to deploy OvalChainlink