Skip to content

fix: rebalance single bin#286

Merged
bangyro merged 3 commits intomainfrom
fix--rebalance-single-bin
Apr 23, 2026
Merged

fix: rebalance single bin#286
bangyro merged 3 commits intomainfrom
fix--rebalance-single-bin

Conversation

@bangyro
Copy link
Copy Markdown
Contributor

@bangyro bangyro commented Apr 22, 2026

In zap-sdk we call simulateRebalancePosition which currently throws the error of Invalid minDeltaId or maxDeltaId

https://github.com/MeteoraAg/zap-sdk/blob/main/src/zap.ts#L1878

This PR changes the underlying function to allow simulateRebalancePosition to be called when the position is a single bin (minDeltaId == maxDeltaId)

@bangyro bangyro marked this pull request as ready for review April 22, 2026 12:55
@bangyro bangyro merged commit 1ac25be into main Apr 23, 2026
8 checks passed
bangyro added a commit to MeteoraAg/zap-sdk that referenced this pull request Apr 23, 2026
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.

2 participants