Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Conversation

@thibaultyou
Copy link
Owner

Related to this issue.

@thibaultyou thibaultyou added the enhancement New feature or request label Oct 13, 2021
export const getRelativeOrderSize = (balance: number, size: string): number => {
const percent = Number(size.replace(/%/g, ''));
if (percent <= 0 || percent > 100) {
if (percent <= 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why would > 100% be allowed?

Copy link
Owner Author

Choose a reason for hiding this comment

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

if you're using leverage to trade like a degenerate 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants