Ranges-fi / Uni_v3_utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%