-
Notifications
You must be signed in to change notification settings - Fork 5
Python simulator #157
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
base: main
Are you sure you want to change the base?
Python simulator #157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondered if this needed support for hooks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this, but it was kinda straightforward to support everything, so I did.
|
Quick heads up that balances are likely not being updated properly as this was not a requirement for balancer maths. I'm adding extra checks to make sure this is working as expected. |
|
All balance updates are now being checked and the PR is ready for a new review. |
Closes #158
Main change
bun run generate:simulatorMore info can be found on readme files created both for the simulator and for simulation data generation flow.
I also added a fuzz_example to highlight how the tool could be used. It starts from a initial pool state and applies random swaps while checking how that affects invariant growth.
Let me know if you have any feedback ;)