-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: Calculate liquidation price from opposite direction if the position is reduced #2459
Merged
Commits on Apr 23, 2024
-
chore: Remove redundant null check
This is already checked in the calculate liquidation price function.
Configuration menu - View commit details
-
Copy full SHA for 356283e - Browse repository at this point
Copy the full SHA 356283eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c47e10 - Browse repository at this point
Copy the full SHA 1c47e10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20c97e9 - Browse repository at this point
Copy the full SHA 20c97e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for cce67a6 - Browse repository at this point
Copy the full SHA cce67a6View commit details -
fix: Show n/a liquidation price if position gets closed
If a value is entered that would close the position, there is no liquidation price. Hence we simply show n/a.
Configuration menu - View commit details
-
Copy full SHA for 0747fd0 - Browse repository at this point
Copy the full SHA 0747fd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f43b359 - Browse repository at this point
Copy the full SHA f43b359View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9df6ef5 - Browse repository at this point
Copy the full SHA 9df6ef5View commit details -
feat: Omit margin if the position is reduced
The margin would anyways always be 0 sats.
Configuration menu - View commit details
-
Copy full SHA for 6392758 - Browse repository at this point
Copy the full SHA 6392758View commit details -
feat: Omit total when position is reduced
Since the total is only the margin, this would always be 0 sats.
Configuration menu - View commit details
-
Copy full SHA for 9cc43ea - Browse repository at this point
Copy the full SHA 9cc43eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e5552d - Browse repository at this point
Copy the full SHA 2e5552dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.