Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Remove conditional around commissions payout #427

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions contracts/contracts/marketplace/v01/Marketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down