Cannot create Buy order with fractional (decimal) USDC amount , but editing existing order with same fraction succeeds

Open
#1,075 1 comment 0 reactions 1 assignee View on GitHub

@zaelgohary is already working on this.

Since Jun 3, 2025.

Assessment

This issue has not been assessed yet.

Description

type_bug
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

When attempting to place a new Buy order using a small fractional USDC amount (for example 0.00005 USDC), the UI throws a FormatException: Could not parse BigInt error and fails to create the order. Strangely, if an order is first created (with any valid amount) and then edited to use the same fractional USDC value, the update succeeds without error. In other words:

New order creation (using a tiny decimal amount) → Error (Could not parse BigInt) → order is not placed.

Editing an existing order (changing it to that same decimal amount) → Succeeds → order updates correctly.

Steps To Reproduce

No response

Relevant screenshots/screen records
Image Image Image 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.