I'm currently working on an NFT marketplace, and I would like for creators to be able to add a certain percentage as royalties for future sales like rarible does. So what I wanna know is do I add this feature in the NFT smart contract i.e when the user mints an item, royalties information is added before calling the _mint() function
or in the Market smart contract i.e when the user list the item on the marketplace the royalties information is added to the item struct and then the market contract is responsible for making the royalties transfer when the sale is initiated.