Coder Social home page Coder Social logo

uni_v3_utils's Introduction

Ranges.fi public libraries

Uni_v3_funcs.py:

	- Python wrapper for Uniswap_v3 SDK library LiquidityAmounts.sol

	- Additional function for calculate token relation required to add liquidity on a price range

PriceImpact.py:

	- Python script to calculate price impact of a given swap in a Uniswap_v3 pool

	- Additionally, a intermediate function can be used to obtain actual liquidity distribution of a uniswap_v3 pool

	- Find a commented test as example at the end of the code

Calculate_IL_range.py:

	- Python script to calculate impermanent loss across a given pricerange

	- Find a commented test as example at the end of the code

uni_v3_utils's People

Contributors

jnp777 avatar ranges-fi avatar

Stargazers

 avatar  avatar  avatar Owais avatar bageltoes avatar  avatar  avatar Michael Demarais avatar  avatar  avatar Gautham Elango avatar Varun Kao avatar  avatar

Watchers

 avatar

uni_v3_utils's Issues

Subgraph endpoint update required

Hey team,

We've noticed that you're referencing a subgraph deployed on The Graph's hosted service in this repository. Just a heads-up: after June 12th, hosted service subgraph endpoints will no longer be available as the offering is being deprecated.

If you are the subgraph owner or maintainer, it's time to upgrade your subgraph to the network. This ensures everything keeps running smoothly and you get access to all the latest features and improvements. Here is a quick guide with all the upgrade steps.

If you're not the subgraph owner or maintainer, check Graph Explorer to see if the subgraph development team has already upgraded to the network. If you don’t find an upgraded subgraph, a friendly nudge to the subgraph development team would be greatly appreciated—it's a quick process that benefits everyone. Here's the upgrade guide with all the necessary steps for the subgraph development team.

Once the subgraph is upgraded to the network, you can create an API key and updated query URL in Subgraph Studio then update this repository to query from the new endpoint, https://api.studio.thegraph.com/query/<ID>/<SUBGRAPH_NAME>/<VERSION>

Need more support or have more questions? Feel free to reach out to [email protected]. We're here to help!

Cheers,

Paka

Crash report ranges.fi backtest

URL

https://ranges.fi/#/add/ETH/0x111111111117dC0aa78b770fA6A738034120C302/10000

mintV3 state

{
  "independentField": "CURRENCY_A",
  "typedValue": "100000",
  "startPriceTypedValue": "",
  "leftRangeTypedValue": "1881.120000",
  "rightRangeTypedValue": "1919.120000"
}

Error

TypeError: Cannot convert undefined or null to object

Stacktrace

TypeError: Cannot convert undefined or null to object
    at https://ranges.fi/static/js/main.86bee8dd.chunk.js:1:326484
    at Ns (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2064154)
    at t.unstable_runWithPriority (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2081967)
    at qi (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2004325)
    at Ms (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2063615)
    at https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2063526
    at L (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2081026)
    at MessagePort.O.port1.onmessage (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2079748)

Device data

{
  "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36 Edg/99.0.1150.46",
  "browser": {
    "name": "Edge",
    "version": "99.0.1150.46",
    "major": "99"
  },
  "engine": {
    "name": "Blink",
    "version": "99.0.4844.74"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  },
  "device": {},
  "cpu": {
    "architecture": "amd64"
  }
}

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.