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

feat (vpool): allow for random vpool parameters in simulation #1005

Closed
Tracked by #1012
matthiasmatt opened this issue Oct 17, 2022 · 0 comments
Closed
Tracked by #1012

feat (vpool): allow for random vpool parameters in simulation #1005

matthiasmatt opened this issue Oct 17, 2022 · 0 comments
Assignees

Comments

@matthiasmatt
Copy link
Contributor

The parameters for the vpool should be randomized within safe values.
It can be done, but random transactions from the perp simulation will need to mathematically guarantee that all operations in x/perps will pass with random values of TradeLimitRatio, FluctuationLimitRatio, and MaxLeverage.

Some modules in the cosmos-sdk (e.g. x/bank) first simulate the tx and only if it passes, uses the message as the operation. We should implement this approach.

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

No branches or pull requests

1 participant