Search projects, hackathons, sponsors and tech

    ← All projects

    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.

    Demo

    About

    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.

    How it's made

    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.