Skip to content

Commit

Permalink
clarify that total token amounts include inactive positions
Browse files Browse the repository at this point in the history
  • Loading branch information
atiselsts committed Sep 15, 2021
1 parent e019491 commit 2927b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgraph-liquidity-positions-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def tick_to_price(tick):
total_amount0 += amount0


print("In total: {:.2f} {} and {:.2f} {}".format(
print("In total (including inactive positions): {:.2f} {} and {:.2f} {}".format(
total_amount0 / 10 ** decimals0, token0, total_amount1 / 10 ** decimals1, token1))
print("Total liquidity from active positions: {}, from pool: {} (should be equal)".format(
active_positions_liquidity, pool_liquidity))

0 comments on commit 2927b17

Please sign in to comment.