In the previous version of the simulator code, there was a givenPrice argument that the swapIn function accepted that allowed one to simulate multiple swaps, one after the other, by specifying the given price as the next sqrt_P received by the previous call to swapIn.
I don't know the best way to add this functionality back in, but something like this is crucial to the usecase of running counterfactual swap orders for a block. Pease advise if there's a better way to do this with the new system! 😊
In the previous version of the simulator code, there was a
givenPrice
argument that theswapIn
function accepted that allowed one to simulate multiple swaps, one after the other, by specifying the given price as the nextsqrt_P
received by the previous call toswapIn
.I don't know the best way to add this functionality back in, but something like this is crucial to the usecase of running counterfactual swap orders for a block. Pease advise if there's a better way to do this with the new system! 😊