Skip to content

Sending NEP-141 Tokens/assets, when there's <0.000001 left, chose the entire balance as string (yoctos) #22

@luciotato

Description

@luciotato

andreapn1709.near — Today at 12:56 AM
[12:57 AM]
that's my account, when I send by near web wallet, I can send all my coin,
but when use narwallet, it always keeps 0.00001 when choose max

LMT-luciotato — Today at 2:45 AM
I'll add an Issue to github. I think I know what it is. Looks like a rounding problem

SOLUTION TO EXPLORE:

  1. Include up-to 6 decimal places when entering amounts.
  2. When the input amount is for example 4.123456 and the token account has 4.123456111 as balance, transfer the entire amount. The general rule is that if there will be less than 0.0000001 (1e-6) left, set to transfer the amount in yoctos (full decimals).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions