Skip to content

Provide liquidity UI shows NaN for zero-liquidity pools; tx fails with invalid Uint128 'NaN' #398

@togekk39

Description

@togekk39

Summary

On Shade (Pools → Provide Liquidity), any pool with TVL = 0 / zero liquidity shows NaN for:

  • Expected Shares
  • Minimum LP Shares
  • Pool Ownership

Submitting either Mint LP Shares or Mint LP Shares + Stake fails with:

  • invalid Uint128 'NaN'

Pools with existing liquidity (e.g. SHD/TIA) display normal numeric values and work as expected.


Steps to Reproduce

  1. Open Shade → Pools
  2. Select a pool with TVL = 0 (example: USDC/TIA)
  3. Enter any amounts for providing liquidity
  4. Observe that Expected Shares, Minimum LP Shares, and Pool Ownership display NaN
  5. Click Mint LP Shares or Mint LP Shares + Stake
  6. Transaction fails with invalid Uint128 'NaN'

Expected Behavior

  • The UI should not compute/display NaN values for shares/ownership.
  • The UI should not allow submitting a tx payload containing NaN.
  • If the pool requires initialization/activation before first liquidity, the UI should clearly indicate it (e.g. “Pool not initialized / not active”) and prevent submission.

Actual Behavior

  • Shares/ownership fields show NaN
  • Providing liquidity fails with invalid Uint128 'NaN'

Scope / Notes

  • This happens for multiple pools with zero liquidity (TVL=0).
  • Pools with non-zero liquidity work normally.

Environment

  • Device: Android
  • Browser: Firefox Mobile
  • Wallet: Keplr Mobile
  • Date: 2025-12-12

Attachments

  • Screenshot: NaN shown for shares/ownership fields

Image

  • Screenshot: error message invalid Uint128 'NaN'

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions