Skip to content

Show wallet balance and removable margin in edit margin modal#228

Open
chinaxiao123 wants to merge 1 commit into
capofficial:mainfrom
chinaxiao123:fix/issue-19-edit-margin-balance
Open

Show wallet balance and removable margin in edit margin modal#228
chinaxiao123 wants to merge 1 commit into
capofficial:mainfrom
chinaxiao123:fix/issue-19-edit-margin-balance

Conversation

@chinaxiao123
Copy link
Copy Markdown

Closes #19

Summary

  • fetch the current asset wallet balance when the edit margin modal opens
  • show wallet balance in Add mode and make it clickable to autofill the input
  • show removable margin in Remove mode and make it clickable to autofill the input
  • keep the existing liquidation price / leverage preview in sync with the displayed values

Testing

  • npm run build

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 available margin in Add/Remove margin modal

1 participant