@@ -286,6 +286,9 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
286
286
_handleAirdropPosition (_setToken, _token);
287
287
}
288
288
289
+ /**
290
+ * Loop through array of tokens and handle airdropped positions.
291
+ */
289
292
function _batchAbsorb (ISetToken _setToken , address [] memory _tokens ) internal {
290
293
for (uint256 i = 0 ; i < _tokens.length ; i++ ) {
291
294
_absorb (_setToken, IERC20 (_tokens[i]));
@@ -336,12 +339,12 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
336
339
if (airdropFee > 0 ) {
337
340
totalFees = _amountAirdropped.preciseMul (airdropFee);
338
341
339
- protocolTake = ModuleBase. getModuleFee (AIRDROP_MODULE_PROTOCOL_FEE_INDEX, totalFees);
342
+ protocolTake = getModuleFee (AIRDROP_MODULE_PROTOCOL_FEE_INDEX, totalFees);
340
343
netManagerTake = totalFees.sub (protocolTake);
341
344
342
345
_setToken.strictInvokeTransfer (address (_component), airdropSettings[_setToken].feeRecipient, netManagerTake);
343
346
344
- ModuleBase. payProtocolFeeFromSetToken (_setToken, address (_component), protocolTake);
347
+ payProtocolFeeFromSetToken (_setToken, address (_component), protocolTake);
345
348
346
349
return (netManagerTake, protocolTake, totalFees);
347
350
} else {
@@ -356,8 +359,11 @@ contract AirdropModule is ModuleBase, ReentrancyGuard {
356
359
ISetToken _setToken ,
357
360
uint256 _totalComponentBalance ,
358
361
uint256 _totalFeesPaid
359
-
360
- ) internal view returns (uint256 ) {
362
+ )
363
+ internal
364
+ view
365
+ returns (uint256 )
366
+ {
361
367
uint256 totalSupply = _setToken.totalSupply ();
362
368
return totalSupply.getDefaultPositionUnit (_totalComponentBalance.sub (_totalFeesPaid));
363
369
}
0 commit comments