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

Implement state transitions into Rust sdk #39

Open
slundqui opened this issue Mar 20, 2024 · 2 comments
Open

Implement state transitions into Rust sdk #39

slundqui opened this issue Mar 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@slundqui
Copy link
Contributor

Add a state transition function when calling e.g., open long in rust. For example, calculate_open_long also returns an updated pool state after the trade. This would allow simulations to bypass the anvil bottleneck to substantially speed up simulations.

@jalextowle
Copy link
Contributor

This relates to #23. The easiest way to update the SDK with that in mind would be to:

  1. Attempt to apply the latest checkpoint
  2. Apply the operation that should be simulated

@dpaiton
Copy link
Contributor

dpaiton commented May 3, 2024

Partially achieved by adding the state transition functions for
open short #15
open long #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants