@@ -72,9 +72,6 @@ contract DropERC1155 is
7272 /// @dev Max bps in the thirdweb system
7373 uint256 private constant MAX_BPS = 10_000 ;
7474
75- /// @dev The thirdweb contract with fee related information.
76- ITWFee private immutable thirdwebFee;
77-
7875 /// @dev Owner of the contract (purpose: OpenSea compatibility)
7976 address private _owner;
8077
@@ -137,9 +134,7 @@ contract DropERC1155 is
137134 Constructor + initializer logic
138135 //////////////////////////////////////////////////////////////*/
139136
140- constructor (address _thirdwebFee ) initializer {
141- thirdwebFee = ITWFee (_thirdwebFee);
142- }
137+ constructor () initializer {}
143138
144139 /// @dev Initiliazes the contract, like a constructor.
145140 function initialize (
@@ -403,17 +398,14 @@ contract DropERC1155 is
403398
404399 uint256 totalPrice = _quantityToClaim * _pricePerToken;
405400 uint256 platformFees = (totalPrice * platformFeeBps) / MAX_BPS;
406- (address twFeeRecipient , uint256 twFeeBps ) = thirdwebFee.getFeeInfo (address (this ), FeeType.PRIMARY_SALE);
407- uint256 twFee = (totalPrice * twFeeBps) / MAX_BPS;
408401
409402 if (_currency == CurrencyTransferLib.NATIVE_TOKEN) {
410403 require (msg .value == totalPrice, "must send total price. " );
411404 }
412405
413406 address recipient = saleRecipient[_tokenId] == address (0 ) ? primarySaleRecipient : saleRecipient[_tokenId];
414407 CurrencyTransferLib.transferCurrency (_currency, _msgSender (), platformFeeRecipient, platformFees);
415- CurrencyTransferLib.transferCurrency (_currency, _msgSender (), twFeeRecipient, twFee);
416- CurrencyTransferLib.transferCurrency (_currency, _msgSender (), recipient, totalPrice - platformFees - twFee);
408+ CurrencyTransferLib.transferCurrency (_currency, _msgSender (), recipient, totalPrice - platformFees);
417409 }
418410
419411 /// @dev Transfers the NFTs being claimed.
0 commit comments