← Back to home

PetroETH Option DEX

EVM Gas Options Decentralized Exchange used for hedging Gas price spikes, especially in protocols that require a lot of gas, such as ZK and FHE usage.

Screenshots

PetroETH Option DEX screenshot 1
PetroETH Option DEX screenshot 2
PetroETH Option DEX screenshot 3

Problem Statement

This is an Ethereum Gas Options Decentralized Exchange (DEX). Web3 applications can purchase Call options on the EVM Gas price in order to hedge the price of the Gas and provide smoother operation to the users. Any user can do the same, permissionlessly. Market makers / underwriters can offer these options. Anyone writing an option needs a collateral and can be liquidated permissionlessly by anyone.

Solution

The contracts are written in Solidity. block.basefee is used as Gas price oracle. I am using the Foundry toolset. All the tests are written in Solidity. The dex is based on Order Book and the option creation, buying, writing, liquidation, exercise etc. are all permissionless operations.

Hackathon

ETHGlobal Bangkok

2024

Prizes

  • 🏆

    Best Use of Rome Protocol1st place

    Rome Protocol

  • 🏆

    Unichain2nd place

    Uniswap Foundation

  • 🏆

    Build an Opinionated DEX

    Nethermind

  • 🏆

    Best Project Deployed on Linea and MetaMask JSON - RPC API

    Linea

Contributors