Skip to content

[BUG]: Precision is discarded #205

@mvandeberg

Description

@mvandeberg

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When interacting with a token, additional precision is discarded.

🔓 > koin_wrapper.allowances
Allowances:
 - 1Bq58wf8mMSZQF3Rk7UUe1ziY8NjsaGAQx: 0.5 tKOIN

🔓 > koin_wrapper.transfer 1BEdnsD2nmuPfzygQB4Wgu9VafsSG7WCMZ 0.500000001
Transferring 0.500000001 tKOIN to 1BEdnsD2nmuPfzygQB4Wgu9VafsSG7WCMZ
Transaction with ID 0x122087c9566b8665a9b3c206ebfddd3ff611dd8f0dfea3a706af114164c1c4b03cb9 containing 1 operations submitted.
Mana cost: 0.03075124 (Disk: 0, Network: 314, Compute: 820422)

🔓 > koin_wrapper.allowances
Allowances:

Expected behavior

The additional 0.000000001 should error instead of continuing with a transfer value different from the command.

Steps to reproduce

No response

Environment

- OS:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions