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

fix: handle case when a pool is added liquidity in full range #4

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

piavgh
Copy link
Member

@piavgh piavgh commented Jul 6, 2022

If the pool is added liquidity in full range (from min tick to max tick), it will push the sqrtPriceLimitX96 to the extreme case, thus cause the swap function to return nil all the time

If the pool is added liquidity in full range (from min tick to max tick), it will push the sqrtPriceLimitX96 to the extreme case, thus cause the swap function to return nil all the time
@piavgh piavgh merged commit 66e8ef2 into master Jul 6, 2022
@piavgh piavgh deleted the fix/full-range-liquidity-pool branch July 6, 2022 08:03
ghost pushed a commit that referenced this pull request Dec 27, 2022
ghost pushed a commit that referenced this pull request Dec 28, 2022
* Support EncodeRouteToPath

* Fix type error in selfpermit arguments, add test for selfpermit.

* Fix the tick index mismatch in GetTick(daoleno#4)

* Support SwapQuoter

* Add custom input to MinimumAmountIn/Out

* Upgrade sdk-core. Fix broken ether usage.

* [WIP] SwapRouter

* Applied core changes regarding currency abstraction (#8)

* Applied core changes regarding currency abstraction

* Updated core lib

* add example code (#10)

* upgrade go mod

* Broken link in samples (#13)

* Fixed broken link in samples

* fix(trade): fix sortedInsert bug (#14)

* test(swaprouter): SingleTradeInput & MultipleTradeInput unit test

* test(swaprouter): trade with multiple routes unit test

* feat(staker): uniswap v3 staker feature

* optimize tick math (#19)

* change module and add gitignore

* Revert "refactor: avoid using panic (it crashes the API) (#5)"

This reverts commit 47808c2.

* Revert "fix: handle case when a pool is added liquidity in full range (#4)"

This reverts commit 66e8ef2.

* Revert "refactor: Improve searching for next tick (#3)"

This reverts commit 54669aa.

* Revert "refactor: Change package organization"

This reverts commit 905a578.

* Revert "refactor: Remove Unused Code"

This reverts commit 3190335.

* Revert "refactor: Rename Package"

This reverts commit c249ea6.

* Revert "fix: GetTick Function"

This reverts commit f363610.

Co-authored-by: daoleno <[email protected]>
Co-authored-by: Vaulin Alexandr <[email protected]>
Co-authored-by: 李亚夫 <[email protected]>
Co-authored-by: Archil <[email protected]>
Co-authored-by: xiang <[email protected]>
Co-authored-by: Nathaniel Blakely <[email protected]>
Co-authored-by: DoanNamTruc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant