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

Add changeable tick size to markets #2122

Closed
davidsiska-vega opened this issue Jan 15, 2024 · 0 comments · Fixed by #2149
Closed

Add changeable tick size to markets #2122

davidsiska-vega opened this issue Jan 15, 2024 · 0 comments · Fixed by #2149
Assignees
Labels

Comments

@davidsiska-vega
Copy link
Contributor

davidsiska-vega commented Jan 15, 2024

... so that a coin that moons / tanks doesn't need us to close / re-open a perp market.

A new market parameter, tick size arbitrary decimal, check that if this is divided by 10^-marketDPs we get an integer. E.g. 0.005 with 3 mdps is 0.005/0.001 = 5 is valid but 0.005 with 2 mdps is not.

Reject orders that are not integer multiples of tick size.

If a market proposal changes tick size:
0) check that if this is divided by 10^-mdps we get integer - this can be part of proposal validation since mdps won't change.
2) go through the book at enactment and remove all volume that is not integer multiple of new tick size

@davidsiska-vega davidsiska-vega added this to the 🌌 Nebula milestone Jan 15, 2024
@barnabee barnabee self-assigned this Jan 29, 2024
@davidsiska-vega davidsiska-vega changed the title Add tick size to a market so we can have markets with high number of market decimal places... Add changeable tick size to markets Jan 31, 2024
@davidsiska-vega davidsiska-vega assigned cdummett and unassigned barnabee Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants