Create‐Buy form fails to parse long fractional USDC and then refuses 0.1 until reopened the buy dialogue

Open
#1,076 0 comments 0 reactions 1 assignee View on GitHub

@zaelgohary is already working on this.

Since Jun 4, 2025.

Assessment

This issue has not been assessed yet.

Description

Is there an existing issue for this?
  • I have searched the existing issues
What happened?
  1. Creating a new Buy order with a long fractional USDC amount (e.g. 0.00005) immediately throws a FormatException: Could not parse BigInt error, and the order is not created.
  2. Without leaving the “Create Buy” screen, changing the Amount to 0.1 still throws the same FormatException error—even though 0.1 is a valid decimal.
  3. If you exit the form (go back to the Orders list) and then open a fresh “Create Buy” screen, entering 0.1 USDC succeeds (no parse error) and the order is placed normally.
Steps To Reproduce

No response

Relevant screenshots/screen records

https://github.com/user-attachments/assets/b3810a7a-3aab-40d7-b658-0c0c17a6b0e1
Image

Relevant log output
.
Dominant language
Dart
Stars
9
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from threefoldtech/grid_connect

All issues in threefoldtech/grid_connect

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.