Giter Club home page Giter Club logo

gamma-transform's Introduction

Gamma transform

This is an implementation of the gamma transform concept by Guillame Lambert [1].

A simple optimization problem to find the amount of Uniswap V3 single tick liquidity positions that perfectly hedge the gamma of a long squeeth position.

Squeeth an ETH perpetual by Opyn [2].

This work is part of the research conducted while designing the Haptic protocol and is made available for educational purposes.

Why this?

From [1]

Why would someone want to hedge a long squeeth? I’m not entirely sure. While holding a squeeth means that one would need to pay a fixed funding rate, a net positive income may result from shorting ETH (if ETH is shorted on a perp futures exchange) and deploying a Uni v3 LP position (by collecting Uni v3 LP fees).

Requirements

  • R

Installation

  • Install R from here (Ubuntu)
  • Clone this repository

Usage

  • Open a terminal and navigate to the repository
  • Check that the file has executable permissions or grant them with chmod +x solve.r
  • Run ./solve.r

References

[1] https://lambert-guillaume.medium.com/gamma-transforms-how-to-hedge-squeeth-using-uni-v3-da785cb8b378

[2] https://medium.com/opyn/squeeth-primer-a-guide-to-understanding-opyns-implementation-of-squeeth-a0f5e8b95684

gamma-transform's People

Contributors

0xalbert avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

robertleifke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.