Skip to content

Conversation

@DeborahOlaboye
Copy link

@DeborahOlaboye DeborahOlaboye commented Jan 12, 2026

Implements enhanced liquidity add workflow.

Description

  • Validates subnet existence early
  • Fetches current subnet price
  • Provides conditional prompts based on price range:
    • Alpha-only when price_low >= current_price
    • TAO-only when price_high <= current_price
    • Both tokens with max liquidity calculation otherwise
  • Displays available balances and max providable amounts
  • Validates requested amounts don't exceed available

Includes comprehensive unit tests for new utility functions.

Closes #532

Contribution by Gittensor, learn more at https://gittensor.io/

@ibraheem-abe
Copy link
Contributor

Thanks for your contribution

Currently liquidity is disabled in Bittensor and the whole system is expecting a major update which will change how liquidity looks like. I am expecting for this to get outdated.

Keeping it as a draft for now if that is not the case.

@ibraheem-abe ibraheem-abe marked this pull request as draft January 14, 2026 18:23
@ibraheem-abe ibraheem-abe added the Waiting for Upstream Waiting for a change to some upstream (non-btcli) library/chain label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting for Upstream Waiting for a change to some upstream (non-btcli) library/chain

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve btcli liquidity add logic

2 participants