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 balancer liquidity breaking incentives #6145

Merged
merged 6 commits into from
Aug 24, 2023

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Aug 24, 2023

Closes: #XXX

What is the purpose of the change

When low liquidity or bond share ratio in balancer pool linked to CL, CL may get bricked and break incentives distibution

This PR fixes the issue.

@p0mvn p0mvn marked this pull request as ready for review August 24, 2023 11:38
@p0mvn p0mvn merged commit 08ac3ba into dev/v18.x_fix Aug 24, 2023
@p0mvn p0mvn deleted the roman/fix-low-balancer-liq-change branch August 24, 2023 11:38
ValarDragon added a commit that referenced this pull request Aug 24, 2023
* Proper fix of rebuilding sumtree

* State compatible epoch speedup

* Change to correct package

* Add upgrade test

* extra info logs

* Add Paniccing code to upgrade test

* updates

* reset sumtree for all pools

* remove unused constant for max pool id

* fix balancer liquidity breaking incentives (#6145)

* fix balancer liquidity breaking incentives

* clean up

* comment

* added swap checks

* check that LPing fails before the upgrade

* fix test

---------

Co-authored-by: Nicolas Lara <[email protected]>

* zero qualifying shares bug fix

* Revert "reset sumtree for all pools"

This reverts commit eb0cb01.

* Revert "remove unused constant for max pool id"

This reverts commit 1129ee8.

* reset sumtree until first CL pool id

* Update Changelog

---------

Co-authored-by: Dev Ojha <[email protected]>
Co-authored-by: mattverse <[email protected]>
Co-authored-by: Nicolas Lara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants