agent0 icon indicating copy to clipboard operation
agent0 copied to clipboard

add pool state transition funcs to interface

Open dpaiton opened this issue 1 year ago • 3 comments

First outlined here: https://github.com/delvtech/agent0/issues/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 https://github.com/delvtech/hyperdrive-rs/issues/39 require implementing "pool delta" calc functions.

dpaiton avatar Jun 05 '24 15:06 dpaiton

depends on https://github.com/delvtech/hyperdrive-rs/issues/39

dpaiton avatar Jun 05 '24 17:06 dpaiton

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 avatar Jun 05 '24 18:06 wakamex

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

wakamex avatar Jun 05 '24 23:06 wakamex