5

Is it possible to have decimals balances in ERC721 ?

I mean is it possible to say i own 50% of an NFT for example ?

Thanks

2 Answers 2

5

According to several formal implementations, ERC721 is not supposed to a divisible token by itself.

Although, you can deploy an ERC721 through an ERC20 and distribute its shares using the fungible ERC20 tokens.(not my idea, check below link)

Watch this for full explanation: DeFi + NFT Tutorial | Code a Re-Fungible Token (Solidity + Tests)

2
  • This is strange because ERC1155 has decimals in metadata files...
    – Bob5421
    Apr 11, 2021 at 11:53
  • You can ask the developers who have made those contracts.
    – Anupam
    Apr 11, 2021 at 12:02
0

Check out the ERC1155 contracts designed by Enjin, they provide a way to set up fractional ownership an asset in a single contract. OpenZeppelin implementation here

That being said, ERC721 can allow for decimals as stated in its EIP here: "An implementation may also include a function decimals that returns uint8(0) if its goal is to be more compatible with ERC-20 while supporting this standard."

Your Answer

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

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