darkforestry/amms-rs

Question: Sync from logs or sync from multicall

Closed this issue · 1 comments

Hi,

For V3 pools is there a difference between initialising a pool from the logs and initialising the pool by pulling data for all the ticks from the chain, maybe by multicall?

This is off the problem I am having from syncing via logs where I am getting a subtract overflow error on liquidity_delta.

res str {"data":{"pool":{"createdAtBlockNumber":"191"}}}
created at 191
thread 'main' panicked at 'attempt to subtract with overflow', /Users/ansafahmed/.cargo/registry/src/github.com-1ecc6299db9ec823/amms-0.6.1/src/amm/uniswap_v3/mod.rs:850:13```