CRYPTO NEWS

Take a percentage of msg.value on ERC721 transfer

I want to transfer part of the value paid to an address whenever an NFT is traded. If the value is 0, then nothing is transferred.

My original idea was to override the transfer function in oppenzeppelin/ERC721, but its impossible to override a nonpayable function to payable.

Any way of doing this? The idea is for a DAO to make passive income every card trade.

Take a percentage of msg.value on ERC721 transfer

Shopping cart
There are no products in the cart!
Continue shopping
0