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 pool state transition funcs to interface #1514

Open
dpaiton opened this issue Jun 5, 2024 · 3 comments
Open

add pool state transition funcs to interface #1514

dpaiton opened this issue Jun 5, 2024 · 3 comments
Labels
enhancement A feature or refactor request

Comments

@dpaiton
Copy link
Member

dpaiton commented Jun 5, 2024

First outlined here: #1010 which was closed in favor of this issue.

We want to be able to estimate the future value of a trade as well as predict all outcomes of trades wrt user, pool, fees in base and shares.

Both this task and delvtech/hyperdrive-rs#39 require implementing "pool delta" calc functions.

@dpaiton dpaiton added the enhancement A feature or refactor request label Jun 5, 2024
@dpaiton dpaiton changed the title Add functions to return state and user impact in rust add pool state transition funcs to interface Jun 5, 2024
@dpaiton
Copy link
Member Author

dpaiton commented Jun 5, 2024

depends on delvtech/hyperdrive-rs#39

@wakamex
Copy link
Contributor

wakamex commented Jun 5, 2024

for reference, the accuracy of the python version of predict_trade is too high (#1357).
in implementing a rust equivalent, we should ensure it's more accurate.

@wakamex
Copy link
Contributor

wakamex commented Jun 5, 2024

the first link is for measuring the current value of all your positions

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

No branches or pull requests

2 participants