From a4775defc741c0c6eac0c09cf83419abf30680ab Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 29 Sep 2023 17:35:22 +0200 Subject: [PATCH] rebased --- .../transfer-manager/TransferManager.sol | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/marketplace/contracts/transfer-manager/TransferManager.sol b/packages/marketplace/contracts/transfer-manager/TransferManager.sol index 6d60293257..95539851e4 100644 --- a/packages/marketplace/contracts/transfer-manager/TransferManager.sol +++ b/packages/marketplace/contracts/transfer-manager/TransferManager.sol @@ -105,13 +105,8 @@ abstract contract TransferManager is ERC165Upgradeable, ITransferManager { LibDeal.DealSide memory right, LibFeeSide.FeeSide feeSide ) internal override { -<<<<<<< HEAD if (feeSide == LibFeeSide.FeeSide.LEFT) { doTransfersWithRoyalties(left, right); -======= - if (dealData.feeSide == LibFeeSide.FeeSide.LEFT) { - doTransfersWithFees(left, right, dealData.maxFeesBasePoint); ->>>>>>> format fix transferPayouts(right.asset.assetType, right.asset.value, right.from, left.payouts); } else if (feeSide == LibFeeSide.FeeSide.RIGHT) { doTransfersWithRoyalties(right, left); @@ -125,22 +120,11 @@ abstract contract TransferManager is ERC165Upgradeable, ITransferManager { /// @notice executes the fee-side transfers (payment + fees) /// @param paymentSide DealSide of the fee-side order /// @param nftSide DealSide of the nft-side order -<<<<<<< HEAD - /// @return totalAmount of fee-side asset function doTransfersWithRoyalties( LibDeal.DealSide memory paymentSide, LibDeal.DealSide memory nftSide - ) internal returns (uint256 totalAmount) { - uint256 rest = paymentSide.asset.value; -======= - /// @param maxFeesBasePoint max fee for the sell-order (used and is > 0 for V3 orders only) - function doTransfersWithFees( - LibDeal.DealSide memory paymentSide, - LibDeal.DealSide memory nftSide, - uint256 maxFeesBasePoint ) internal { - uint256 rest = calculateTotalAmount(paymentSide.asset.value, paymentSide.originFees, maxFeesBasePoint); ->>>>>>> last changes + uint256 rest = paymentSide.asset.value; rest = transferRoyalties( paymentSide.asset.assetType,