Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concentrated liquidity #190

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
3758566
WIP concentrated liquidity pool AMM
jepidoptera Apr 19, 2024
2d9ad22
test that price boundaries are respected
jepidoptera Apr 30, 2024
cfa478f
redid most of this
jepidoptera Apr 30, 2024
f0f5ca1
Merge branch 'refs/heads/main' into concentrated-liquidity
jepidoptera May 7, 2024
443f6fe
correct math?
jepidoptera May 7, 2024
635f805
test with no fees - good
jepidoptera May 7, 2024
cd5af20
make calculate_buy_from_sell and calculate_sell_from_buy mutually equ…
jepidoptera May 7, 2024
3a43d0b
add some more tests
jepidoptera May 7, 2024
c7ab1b3
add buy_spot and sell_spot
jepidoptera May 8, 2024
b6a1d6e
add test_buy_spot and test_sell_spot
jepidoptera May 8, 2024
16d8727
eliminate extra math import
jepidoptera May 15, 2024
df7825d
wip
jepidoptera Jun 4, 2024
338cdaa
imports didn't work correctly on my setup, change to relative import
jepidoptera Jun 4, 2024
a8399ec
wip
jepidoptera Jun 4, 2024
341c1c7
raise precision in test_sell_spot_buy_stableswap_sell_stableswap in l…
jepidoptera Jun 4, 2024
2efd66f
wip
jepidoptera Jun 7, 2024
c39b1fc
wip
jepidoptera Jun 7, 2024
7008e39
wip
jepidoptera Jun 10, 2024
fad3154
implementation test
jepidoptera Jun 10, 2024
7702f41
refactored and corrected, working well
jepidoptera Jun 13, 2024
001a764
add comparison and spot price tests
jepidoptera Jun 13, 2024
09b30c5
add get_uniswap_pool_data
jepidoptera Jun 14, 2024
1182997
add web3 requirement
jepidoptera Jun 14, 2024
5913490
add initialize_ticks
jepidoptera Jun 17, 2024
999dfc8
refactor
jepidoptera Jun 17, 2024
f9a3cdf
add test_vs_uniswap_quote
jepidoptera Jun 17, 2024
6a5b0fb
add more tests
jepidoptera Jun 24, 2024
cb07607
remove unit decimal conversions
jepidoptera Jun 24, 2024
3f199f0
various corrections
jepidoptera Jun 24, 2024
1b0f22f
corrected tick sign
jepidoptera Jun 25, 2024
07ea6a0
fixed test_tick_crossing
jepidoptera Jun 25, 2024
20de1e1
switch net liquidity sign - better result
jepidoptera Jun 25, 2024
13f0f66
allow custom liquidity distribution ranges
jepidoptera Jun 25, 2024
b82269b
overhaul test_uniswap_vs_quote
jepidoptera Jun 25, 2024
cab2ec9
Reverted liquidity sign change. Changed trade_size type in test.
poliwop Jun 27, 2024
9e974b9
Simplified to pull data faster
poliwop Jun 27, 2024
614e565
alternate way of instantiating ConcentratedLiquidityPosition (untested)
jepidoptera Jun 27, 2024
07f66dd
Merge remote-tracking branch 'origin/concentrated-liquidity' into con…
jepidoptera Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading