You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to Jiajia we now have a feature test that can demonstrate that I can set up a market and drain someone’s monies by shifting price up slowly and then bringing it down quickly: vegaprotocol/vega#10990
The problem is that the validation we have is market decimals >= asset decimals.
The validation we should have is: market decimals + position decimals >= asset decimals.
This would ensure that the smallest mark-to-market cashflow caused by the smallest price change on the smallest position is
10^(-mdp) x 10^(-pdp) = 10^(-(mdp+pdp)) >= 10^(-adp)
so it’s never possible to be in a situation where small price moves don’t register but big ones do.
The text was updated successfully, but these errors were encountered:
The problem is that the validation we have is market decimals <= asset decimals.
The validation we should have is: market decimals + position decimals <= asset decimals.
Thanks to Jiajia we now have a feature test that can demonstrate that I can set up a market and drain someone’s monies by shifting price up slowly and then bringing it down quickly:
vegaprotocol/vega#10990
The problem is that the validation we have is
market decimals >= asset decimals
.The validation we should have is:
market decimals + position decimals >= asset decimals
.This would ensure that the smallest mark-to-market cashflow caused by the smallest price change on the smallest position is
so it’s never possible to be in a situation where small price moves don’t register but big ones do.
The text was updated successfully, but these errors were encountered: