You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
simulate_swap and simulate_swap_mut both require two external calls to the node to retrieve the Tick.Info and the word corresponding to tickBitmap[currentTick] during simulation. Two separate calls are made each time an initialized tick in crossed.
This can be optimized by batching the two calls into a single call to the node as both calls can happen in parallel. I think this will be most easily accomplished by abstracting the calls to the node outside of uniswap_v3_math into cfmms-rs.
The text was updated successfully, but these errors were encountered:
simulate_swap
andsimulate_swap_mut
both require two external calls to the node to retrieve theTick.Info
and the word corresponding totickBitmap[currentTick]
during simulation. Two separate calls are made each time an initialized tick in crossed.This can be optimized by batching the two calls into a single call to the node as both calls can happen in parallel. I think this will be most easily accomplished by abstracting the calls to the node outside of
uniswap_v3_math
intocfmms-rs
.The text was updated successfully, but these errors were encountered: