@@ -72,9 +72,6 @@ contract DropERC1155 is
72
72
/// @dev Max bps in the thirdweb system
73
73
uint256 private constant MAX_BPS = 10_000 ;
74
74
75
- /// @dev The thirdweb contract with fee related information.
76
- ITWFee private immutable thirdwebFee;
77
-
78
75
/// @dev Owner of the contract (purpose: OpenSea compatibility)
79
76
address private _owner;
80
77
@@ -137,9 +134,7 @@ contract DropERC1155 is
137
134
Constructor + initializer logic
138
135
//////////////////////////////////////////////////////////////*/
139
136
140
- constructor (address _thirdwebFee ) initializer {
141
- thirdwebFee = ITWFee (_thirdwebFee);
142
- }
137
+ constructor () initializer {}
143
138
144
139
/// @dev Initiliazes the contract, like a constructor.
145
140
function initialize (
@@ -403,17 +398,14 @@ contract DropERC1155 is
403
398
404
399
uint256 totalPrice = _quantityToClaim * _pricePerToken;
405
400
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;
408
401
409
402
if (_currency == CurrencyTransferLib.NATIVE_TOKEN) {
410
403
require (msg .value == totalPrice, "must send total price. " );
411
404
}
412
405
413
406
address recipient = saleRecipient[_tokenId] == address (0 ) ? primarySaleRecipient : saleRecipient[_tokenId];
414
407
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);
417
409
}
418
410
419
411
/// @dev Transfers the NFTs being claimed.
0 commit comments