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(perp): add MsgMultiLiquidate #875

Merged
merged 11 commits into from
Sep 22, 2022
Merged

Conversation

testinginprod
Copy link
Collaborator

Description

What does this PR do?

Enables users to liquidate multiple positions within a single message.

Purpose

Closes: #844

@testinginprod testinginprod requested a review from a team as a code owner September 8, 2022 15:29
@NibiruHeisenberg
Copy link
Contributor

What's the benefit of MsgMultiLiquidate over sending multiple MsgLiquidate in a single TX?

@testinginprod
Copy link
Collaborator Author

What's the benefit of MsgMultiLiquidate over sending multiple MsgLiquidate in a single TX?

The former allows errors in liquidations the latter does not.

error error
}

func (m MultiLiquidationResponse) IntoMultiLiquidateResponse() *types.MsgMultiLiquidateResponse_MultiLiquidateResponse {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be package private?

@AgentSmithMatrix
Copy link
Contributor

Stucked on discussions.

@matthiasmatt matthiasmatt enabled auto-merge (squash) September 16, 2022 18:54
@matthiasmatt matthiasmatt force-pushed the mercilex/multi-liquidate branch 2 times, most recently from ae35d8b to 880450a Compare September 16, 2022 20:36
@matthiasmatt matthiasmatt merged commit 0cbf349 into master Sep 22, 2022
@matthiasmatt matthiasmatt deleted the mercilex/multi-liquidate branch September 22, 2022 14:33
@testinginprod testinginprod restored the mercilex/multi-liquidate branch September 22, 2022 14:45
@Unique-Divine Unique-Divine deleted the mercilex/multi-liquidate branch December 19, 2023 05:45
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.

feat(perp): Gracefully handle errors in MsgLiquidate
5 participants