Skip to content

ClosePosition: normalize Max amount to formatted size#88

Open
Bennethxyz wants to merge 1 commit intocapofficial:mainfrom
Bennethxyz:issue-11-size-to-close-format
Open

ClosePosition: normalize Max amount to formatted size#88
Bennethxyz wants to merge 1 commit intocapofficial:mainfrom
Bennethxyz:issue-11-size-to-close-format

Conversation

@Bennethxyz
Copy link

Fixes #11 by setting the Close Position “Max” action to use a formatted numeric value (via formatForDisplay) instead of the raw size with excessive decimals, which caused the browser to flag the input as invalid. This prevents the step-mismatch tooltip and displays a clean value.\n\nTested by clicking Max on positions with long decimal sizes; the field now shows a rounded value and submits without validation errors.

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.

Size to close is not well formatted, sometimes

1 participant