Skip to content

Commit

Permalink
Update subgraph-liquidity-range-example.py
Browse files Browse the repository at this point in the history
`total_amount1` should be initialised as `0`, not `1`? (I don't see any reason why it should start as `1`?)
  • Loading branch information
uniyj authored Aug 31, 2021
1 parent 76ea973 commit a49e543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgraph-liquidity-range-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def fee_tier_to_tick_spacing(fee_tier):

# Sum up all tokens in the pool
total_amount0 = 0
total_amount1 = 1
total_amount1 = 0

# Iterate over the tick map starting from the bottom
tick = min_tick
Expand Down

0 comments on commit a49e543

Please sign in to comment.