diff --git a/src/AtomicAuctionHouse.sol b/src/AtomicAuctionHouse.sol index d6fc1bbc..c1b29faf 100644 --- a/src/AtomicAuctionHouse.sol +++ b/src/AtomicAuctionHouse.sol @@ -117,7 +117,6 @@ contract AtomicAuctionHouse is IAtomicAuctionHouse, AuctionHouse { lotFees[params_.lotId].protocolFee, lotFees[params_.lotId].referrerFee, params_.referrer, - routing.seller, ERC20(routing.quoteToken), params_.amount ); diff --git a/src/BatchAuctionHouse.sol b/src/BatchAuctionHouse.sol index 732dc7f4..fc2b4f82 100644 --- a/src/BatchAuctionHouse.sol +++ b/src/BatchAuctionHouse.sol @@ -324,7 +324,6 @@ contract BatchAuctionHouse is IBatchAuctionHouse, AuctionHouse { protocolFee, referrerFee, bidClaim.referrer, - routing.seller, quoteToken, bidClaim.paid - bidClaim.refund // refund is included in paid ); diff --git a/src/bases/AuctionHouse.sol b/src/bases/AuctionHouse.sol index 90b3cf6d..6831c89c 100644 --- a/src/bases/AuctionHouse.sol +++ b/src/bases/AuctionHouse.sol @@ -606,21 +606,18 @@ abstract contract AuctionHouse is IAuctionHouse, WithModules, ReentrancyGuard, F /// @param protocolFee_ The fee charged by the protocol /// @param referrerFee_ The fee charged by the referrer /// @param referrer_ The address of the referrer - /// @param seller_ The address of the seller /// @param quoteToken_ The quote token /// @param amount_ The amount of quote tokens function _allocateQuoteFees( uint48 protocolFee_, uint48 referrerFee_, address referrer_, - address seller_, ERC20 quoteToken_, uint256 amount_ ) internal returns (uint256 totalFees) { // Calculate fees for purchase - (uint256 toReferrer, uint256 toProtocol) = calculateQuoteFees( - protocolFee_, referrerFee_, referrer_ != address(0) && referrer_ != seller_, amount_ - ); + (uint256 toReferrer, uint256 toProtocol) = + calculateQuoteFees(protocolFee_, referrerFee_, referrer_ != address(0), amount_); // Update fee balances if non-zero if (toReferrer > 0) rewards[referrer_][quoteToken_] += toReferrer;