Closed eliotstock closed 2 years ago
Added some logging for this. Will watch it.
This is typical for L1 so far:
[600] Remove/swap/add roundtrip took 89s
Now looking at how much of that time is spent awaiting transactions.
I merged lots of performance optimisations from the refactor
branch into main
today. Waiting on the first re-range on L1 with these changes in to see how things have improved.
L1 roundtrip now taking about 80s. Done.
We often re-range in a fast moving market. We should aim to minimise the time elapsed between determining the optimal swap amount and adding liquidity in the new position. The longer this takes, the more value we're left with in our account after the add liquidity transaction, at least in a fast moving market.
eg:
Time between the swap and the add looks like about a minute here.
Look at parallelising some
await
s in the code.One re-range out of three on average we're also unwrapping some WETH to ETH to cover tx costs. Could this be done after the re-range?