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

feat: add pair to vpool snapshot get and set functions #924

Conversation

matthiasmatt
Copy link
Contributor

Description

Add a pair value for the vpool snapshot in proto and tests. This fix a bug where the snapshot returned by the get function were random when there was more than one vpool.

Purpose

Current master branch does not allow a user to open a position if there's more than on vpool set in the genesis.

@matthiasmatt matthiasmatt requested a review from a team as a code owner September 15, 2022 20:59
@matthiasmatt matthiasmatt enabled auto-merge (squash) September 15, 2022 22:16
@NibiruHeisenberg
Copy link
Contributor

It would be better to add the PairID to the snapshot key than to iterate over all snapshots and grab the one that matches the desired PairID.

@NibiruHeisenberg
Copy link
Contributor

Superseded by #925

auto-merge was automatically disabled September 16, 2022 16:02

Pull request was closed

@Unique-Divine Unique-Divine deleted the 922-bug-perp-cant-open-position-on-master-when-theres-more-than-1-vpool branch December 19, 2023 05:44
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.

bug (perp): can't open position on master when there's more than 1 vpool
2 participants