Skip to content
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

Feature/fix handling psize #467

Merged
merged 18 commits into from
Apr 5, 2023
Merged

Conversation

taiki1frsh
Copy link
Collaborator

@taiki1frsh taiki1frsh commented Mar 29, 2023

close #447

This PR addresses the problem of #447, which is the assumed position size scale doesn't match the other any numbers like price and token amount in the backend since only it takes integer scale instead of micro-scale.
It was causing a lot of problems in the various calculations. So, I can't mention the specific affected parts here.

Besides, I added comments for the tests doesn't work.

@taiki1frsh taiki1frsh marked this pull request as ready for review April 3, 2023 14:46
@taiki1frsh taiki1frsh self-assigned this Apr 4, 2023
Base automatically changed from feature/fix-returning-amount to newDevelop April 4, 2023 04:38
Copy link
Contributor

@kimurayu45z kimurayu45z left a comment

Choose a reason for hiding this comment

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

sorry I intended to push approval but didn't

@taiki1frsh taiki1frsh merged commit c1c9fc0 into newDevelop Apr 5, 2023
@taiki1frsh taiki1frsh deleted the feature/fix-handling-psize branch April 5, 2023 06:23
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.

[derivatives] Handle the different of the unit scale between position size and margin asset
2 participants