@@ -286,6 +286,9 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
286286 _handleAirdropPosition (_setToken, _token);
287287 }
288288
289+ /**
290+ * Loop through array of tokens and handle airdropped positions.
291+ */
289292 function _batchAbsorb (ISetToken _setToken , address [] memory _tokens ) internal {
290293 for (uint256 i = 0 ; i < _tokens.length ; i++ ) {
291294 _absorb (_setToken, IERC20 (_tokens[i]));
@@ -336,12 +339,12 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
336339 if (airdropFee > 0 ) {
337340 totalFees = _amountAirdropped.preciseMul (airdropFee);
338341
339- protocolTake = ModuleBase. getModuleFee (AIRDROP_MODULE_PROTOCOL_FEE_INDEX, totalFees);
342+ protocolTake = getModuleFee (AIRDROP_MODULE_PROTOCOL_FEE_INDEX, totalFees);
340343 netManagerTake = totalFees.sub (protocolTake);
341344
342345 _setToken.strictInvokeTransfer (address (_component), airdropSettings[_setToken].feeRecipient, netManagerTake);
343346
344- ModuleBase. payProtocolFeeFromSetToken (_setToken, address (_component), protocolTake);
347+ payProtocolFeeFromSetToken (_setToken, address (_component), protocolTake);
345348
346349 return (netManagerTake, protocolTake, totalFees);
347350 } else {
@@ -356,8 +359,11 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
356359 ISetToken _setToken ,
357360 uint256 _totalComponentBalance ,
358361 uint256 _totalFeesPaid
359-
360- ) internal view returns (uint256 ) {
362+ )
363+ internal
364+ view
365+ returns (uint256 )
366+ {
361367 uint256 totalSupply = _setToken.totalSupply ();
362368 return totalSupply.getDefaultPositionUnit (_totalComponentBalance.sub (_totalFeesPaid));
363369 }
0 commit comments