Does this mean the marketplace owner will receive a commission
function buyNFT(uint256 _tokenId, address _to, bytes memory _memo)public payable{
require(_to==_msgSender() && (tokenData[_tokenId].status),"NFT MarketPlace: only buyer can buy NFT when NFT is listed");
address currentOwner = erc721.ownerOf(_tokenId);
uint256 amount = tokenData[_tokenId].price;
address creator = tokenData[_tokenId].creator;
uint256 royalty = tokenData[_tokenId].royalty;
uint256 royaltyAmount = (amount*royalty)/100;
uint256 serviceFeeAmount = (amount*serviceFee)/100;
if(creator == currentOwner){
require(msg.value >= amount+ serviceFeeAmount, "NFT Marketplace: insufficient balance in your account to buy NFT");
}else if(creator == _to){
require(msg.value >= amount+ serviceFeeAmount, "NFT Marketplace: insufficient balance in your account to buy NFT");
}else{
require(msg.value >= amount+ serviceFeeAmount + royaltyAmount, "NFT Marketplace: insufficient balance in your account to buy NFT");
(bool successForCreator, ) = payable(creator).call{value : royaltyAmount}("");
require(successForCreator, "NFT Marketplace Buy: Sending money from buyer to creator is failed.");
}
(bool successForSeller, ) = payable(currentOwner).call{ value: amount - serviceFeeAmount }("");
require(successForSeller, "NFT Marketplace Buy: Sending money from buyer to seller is failed.");
(bool successForOwner, ) = payable(address(this)).call{ value: serviceFeeAmount*2 }("");
require(successForOwner, "NFT Marketplace Buy: Sending service fee from buyer and seller to nft marketplace owner is failed.");
erc721.safeTransferFrom(currentOwner,_to,_tokenId,_memo);
tokenData[_tokenId].status = false;
uint256 nftIndex = _nftsIndex[_tokenId];
delete nftsOnSale[nftIndex];
delete _nftsIndex[_tokenId];
emit BuyNFT(_tokenId, _to, _memo);