9

If I mint a NEAT token, can I send .5 NEAT to someone or do I have to send a whole 1 NEAT?

1
  • 2
    Under the hood at the ledger levels there's no concept of floats for native tokens. To have a partial token (like having a partial ada), there needs to be some metadata option that says 1000 X token is really 1 X. But this is just a end user client abstraction layer. If you mint 1 of a token, that isn't divisible. Apr 30, 2021 at 2:39

2 Answers 2

12

There is no support for decimal places of native tokens on Cardano.

1
  • The data type is an Integer as defined in Haskell, and has an unbounded theoretical limit. May 1, 2021 at 16:07
3

Although, I tried finding an explicit reference in the source my Haskell knowledge is awful and I couldn't find the data type associated with the --mint parameter for the CLI.

My 99.999% gut instinct tells me that it's based on a Number type, which can be an arbitrary floating point value. In which case, yes, you could subdivide.

I see no reason they would limit the token API to only support integer values (even though integers are generally safer for financial transactions since operations don't produce rounding errors).

1
  • 2
    The reason why there is no support for decimal places on Cardano right now, is because they are not on-chain and therefore could not be verified by hardware wallets. This might change in the future with Plutus smart contacts. Apr 27, 2021 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.