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: fix bug in PositionAssets when position liquidity is zero #210

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

kingcre
Copy link
Contributor

@kingcre kingcre commented Sep 13, 2023

Description

This PR fixes a bug in PositionAssets, which causes panic in tally logic when the voter has zero liquidity positions. Note: If someone removes all liquidity in a position, the position is not deleted and remaining as zero liquidity positions.

@kingcre kingcre force-pushed the fix/position-assets-zero-liquidity branch from d36a931 to e629881 Compare September 13, 2023 03:09
@kingcre kingcre marked this pull request as ready for review September 13, 2023 04:07
@kingcre kingcre merged commit 23c6e31 into main Sep 13, 2023
17 checks passed
@kingcre kingcre deleted the fix/position-assets-zero-liquidity branch September 14, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants