Skip to content

Commit b16a56a

Browse files
committed
1 parent b5ccbef commit b16a56a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bittensor/core/subtensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,8 +1566,8 @@ def get_liquidity_list(
15661566
ticks = iter([x[1] for x in ticks_query])
15671567
positions = []
15681568
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
15711571

15721572
# Calculate fees above/below range for both tokens
15731573
tao_below = get_fees(

bittensor/utils/balance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ def fixed_to_float(
349349
) -> float:
350350
# By default, this is a U64F64
351351
# 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
354353

355354
# Logical and to get the fractional part; remaining is the integer part
356355
fractional_part = data & (2**frac_bits - 1)

0 commit comments

Comments
 (0)