File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1566,8 +1566,8 @@ def get_liquidity_list(
1566
1566
ticks = iter ([x [1 ] for x in ticks_query ])
1567
1567
positions = []
1568
1568
for position , tick_low_idx , tick_high_idx in positions_values :
1569
- tick_low = next (ticks )
1570
- tick_high = next (ticks )
1569
+ tick_low = next (ticks ). value
1570
+ tick_high = next (ticks ). value
1571
1571
1572
1572
# Calculate fees above/below range for both tokens
1573
1573
tao_below = get_fees (
Original file line number Diff line number Diff line change @@ -349,8 +349,7 @@ def fixed_to_float(
349
349
) -> float :
350
350
# By default, this is a U64F64
351
351
# which is 64 bits of integer and 64 bits of fractional
352
-
353
- data : int = fixed ["bits" ]
352
+ data : int = fb .value if isinstance ((fb := fixed ["bits" ]), ScaleType ) else fb
354
353
355
354
# Logical and to get the fractional part; remaining is the integer part
356
355
fractional_part = data & (2 ** frac_bits - 1 )
You can’t perform that action at this time.
0 commit comments