1

Say I want to take a cut of an NFT each time the token is transferred. If I were to change the openzeppelin erc721 transfer function to transfer 1% of the NFTs holding to myself, can that standard still be used in exchanges?

3 Answers 3

0

No.

The quantity of each NFT is one. And the valid quantities are all whole numbers less than two.

So actually, yes. But the only percentage cuts that you are able to take are 0% or 100%.

2
  • i wouldn't be splitting the tokens. just transferring the ETH held inside its contract. I assumed NFT had ETH in them determining its value. Jul 11, 2020 at 3:03
  • NFTs do not intrinsically contain ETH. Therefore your question is only applicable to a specific larger application and not the general cases as mentioned. Jul 16, 2020 at 15:26
0

I'm currently evaluating the same. Was thinking if it would be possible to higher the gas transfer price to then cut x percent and send this to a constant wallet.

Still unsure if this would work, but I think what you originally would do is a Royaltie, that could been integrated like this, but only works on exchanges: https://eips.ethereum.org/EIPS/eip-2981

If someone has an idea for putting a fee into the transfer action would be nice to hear.

Thanks

0

If it implements all functions on the IERC721 interface is not falling from the standard. As @Airwave mentioned there is the EIP2981 standard for royalties and you can see OpenZeppen implementation here, that is still under revision and to be released on their next version but right now is on the open review period.

Your override of the transfer method should just include a call to the EIP2981 royaltyInfo function, and send the returned royaltyAmount to the returned receiver that would be you in your case. And remember to call the method to set the royalty before executing any transfer.

Disclaimer: I do work at OpenZeppelin but this answer was written as a personal contribution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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