Skip to content

Fixed moving_price conversion from I96F32 to float#3010

Merged
thewhaleking merged 1 commit intoopentensor:stagingfrom
mcjkula:fix/moving-price-decoding-in-dynamic-info
Aug 11, 2025
Merged

Fixed moving_price conversion from I96F32 to float#3010
thewhaleking merged 1 commit intoopentensor:stagingfrom
mcjkula:fix/moving-price-decoding-in-dynamic-info

Conversation

@mcjkula
Copy link
Contributor

@mcjkula mcjkula commented Aug 10, 2025

The SubnetMovingPrice storage uses I96F32 format (32 fractional bits), but the
current DynamicInfo calls fixed_to_float() for moving_price without specifying
fractional bits, defaulting to 64 bits.

This causes moving_price values like 0.05 being incorrectly decoded as 0.00000000001.

Related Issue: #3009 (comment)

@mcjkula mcjkula changed the title Fixed moving_price conversion from I96F32 to float Fixed moving_price conversion from I96F32 to float Aug 10, 2025
@thewhaleking thewhaleking merged commit 11df0e8 into opentensor:staging Aug 11, 2025
159 checks passed
This was referenced Aug 11, 2025
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

Successfully merging this pull request may close these issues.

moving_price in DynamicInfo returns incorrect values (wrong fractional bits)

2 participants