Skip to content

New logic to get price for DynamicInfo#2952

Merged
basfroman merged 10 commits intostagingfrom
feat/roman/new-logic-to-get-price-for-DynamicInfo
Jul 9, 2025
Merged

New logic to get price for DynamicInfo#2952
basfroman merged 10 commits intostagingfrom
feat/roman/new-logic-to-get-price-for-DynamicInfo

Conversation

@basfroman
Copy link
Collaborator

@basfroman basfroman commented Jul 8, 2025

Subtensors have new methods:

  • get_subnet_price
  • get_subnet_prices

@basfroman basfroman self-assigned this Jul 8, 2025
@basfroman basfroman added the enhancement New feature or request label Jul 8, 2025
@basfroman basfroman requested a review from a team July 8, 2025 22:19
k=tao_in.rao * alpha_in.rao,
is_dynamic=is_dynamic,
price=price,
price=decoded.get("price", None),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Price should be a Balance type

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The balance is Optional. I don't want to create another convention that if the price = 0 then it is not transferred or something else. There is no price, so it is not passed.
The user may want to use the subnet data without a price in his/her script independently.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we raise the error in case price isn't None or Balance

ibraheem-abe
ibraheem-abe previously approved these changes Jul 8, 2025
@basfroman basfroman merged commit 4e815db into staging Jul 9, 2025
135 checks passed
@basfroman basfroman deleted the feat/roman/new-logic-to-get-price-for-DynamicInfo branch July 9, 2025 00:01
@ibraheem-abe ibraheem-abe mentioned this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants