Skip to content

Oval smart contracts, enabling protocols to auction off their OEV and receive a kickback.

License

Notifications You must be signed in to change notification settings

UMAprotocol/oval-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oval Contracts

UMA Logo

Oval is an MEV capture mechanism that lets protocols reclaim Oracle Extractable Value(OEV) by auctioning oracle updates. It leverages Flashbot's MEV-share OFA system by running auctions for the right to backrun an oracle update.

For more information on how Oval works and how to integrate with it see the docs.

Repo contents

This repository contains the main smart contracts for Oval. It uses Foundry. For specific information on contracts, see the Contract Architecture section of the docs.

This repo also consists of a set of scripts used to profile the Oval gas usage. See README that shows how to run these and this docs page that outlines the gas profiling finding.

Installing Foundry

Tests in this repo work up to Nightly (2024-03-02) Foundry version, so make sure to use it when installing:

foundryup -v nightly-de33b6af53005037b463318d2628b5cfcaf39916

Building Contracts

forge build

Running tests

This repository uses foundry fork tests. You will need to run the fork tests as follows:

export RPC_MAINNET=[your Ethereum mainnet archive node url]
forge test

License

All code in this repository is licensed under BUSL-1.1 unless specified differently in the file. Individual exceptions to this license can be made by Risk Labs, which holds the rights to this software and design. If you are interested in using the code or designs in a derivative work, feel free to reach out to [email protected].

About

Oval smart contracts, enabling protocols to auction off their OEV and receive a kickback.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •