Skip to content

feat: show liquidation price in margin modal#257

Open
380712766-dot wants to merge 1 commit into
capofficial:mainfrom
380712766-dot:show-edit-margin-liq-price
Open

feat: show liquidation price in margin modal#257
380712766-dot wants to merge 1 commit into
capofficial:mainfrom
380712766-dot:show-edit-margin-liq-price

Conversation

@380712766-dot

Copy link
Copy Markdown

Summary

  • Show the current liquidation price in the edit margin modal.
  • Update the new liquidation price calculation when adding or removing margin.
  • Use the market liquidation threshold from marketInfos so the modal matches the position liquidation price logic.
  • Avoid showing infinite leverage when removing all available margin.

Tests

  • Checked the changed Svelte file for balanced script tags.
  • Ran git diff --check.

Note: I could not run the full npm build locally because npm is not installed in this environment.

Closes #4

@380712766-dot

Copy link
Copy Markdown
Author

I opened a PR for this issue: #257. Could you please assign this bounty to me?

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.

Show new liquidation price when adding or removing margin

1 participant