Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to divide by zero #125

Open
0xhanh opened this issue Nov 15, 2023 · 0 comments
Open

attempt to divide by zero #125

0xhanh opened this issue Nov 15, 2023 · 0 comments

Comments

@0xhanh
Copy link

0xhanh commented Nov 15, 2023

Run example, see a bug:

thread 'main' panicked at crates/freeze/src/types/summaries.rs:467:26:
attempt to divide by zero

  • uniswap v2 pools
cryo logs \
    --label uniswap_v2_pools \
    --blocks 18576200: \
    --reorg-buffer 1000 \
    --subdirs datatype \
    --contract 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f \
    --event-signature "PairCreated(address indexed token0, address indexed token1, address pair, uint)" \
    --topic0 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9

format_float((100 * freeze_summary.errored.len() / n_chunks) as f64),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant