Skip to content

Commit

Permalink
refactor/test(CL): LP methods with lower min spot price (#6323)
Browse files Browse the repository at this point in the history
* refactor: state-compatible big decimal tick to sqrt price conversions

* updates and clean ups

* lint

* refactor: breaking CL tick to sqrt price math min spot price relaxation

* refactor/test(CL): CreatePosition with lower min spot price

* clean up

* update GetTickLiquidityForFullRange query

* fix tests

* withdraw position tests

* add to position test

* updates

* updates

* clean up
  • Loading branch information
p0mvn authored Sep 8, 2023
1 parent 6b3273f commit 013cd96
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 47 deletions.
4 changes: 4 additions & 0 deletions x/concentrated-liquidity/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import (
)

var (
// TODO: switch:
// DefaultMinTick to tyoes.MinInitializedTickV2 and
// DefaultMinCurrentTick to types.MinCurrentTickV2 upon
// completion of https://github.com/osmosis-labs/osmosis/issues/5726
DefaultMinTick, DefaultMaxTick = types.MinInitializedTick, types.MaxTick
DefaultMinCurrentTick = types.MinCurrentTick
DefaultLowerPrice = osmomath.NewDec(4545)
Expand Down
Loading

0 comments on commit 013cd96

Please sign in to comment.