From 50c18ae7fc6d3688ba1aba17df0b69dd8d306184 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 7 Sep 2018 23:40:14 -0600 Subject: [PATCH] Remove conditional around commissions payout --- contracts/contracts/marketplace/v01/Marketplace.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/contracts/marketplace/v01/Marketplace.sol b/contracts/contracts/marketplace/v01/Marketplace.sol index 52cd62a9..e4767995 100644 --- a/contracts/contracts/marketplace/v01/Marketplace.sol +++ b/contracts/contracts/marketplace/v01/Marketplace.sol @@ -236,9 +236,7 @@ contract V01_Marketplace is Ownable { } require(offer.status == 2); // Offer must be in state 'Accepted' paySeller(listingID, offerID); // Pay seller - if (msg.sender == offer.buyer) { // Only pay commission if buyer is finalizing - payCommission(listingID, offerID); - } + payCommission(listingID, offerID); emit OfferFinalized(msg.sender, listingID, offerID, _ipfsHash); delete offers[listingID][offerID]; }