@@ -365,6 +365,7 @@ contract BoostCore is Ownable, ReentrancyGuard {
365
365
{
366
366
claimIncentiveFor (boostId_, incentiveId_, referrer_, data_, msg .sender );
367
367
}
368
+
368
369
/// @notice Claim an incentive for a Boost on behalf of another user
369
370
/// @param boostId_ The ID of the Boost
370
371
/// @param incentiveId_ The ID of the AIncentive
@@ -385,7 +386,9 @@ contract BoostCore is Ownable, ReentrancyGuard {
385
386
AIncentive incentiveContract = boost.incentives[incentiveId_];
386
387
387
388
// Validate the claimant against the allow list and the validator
388
- if (! boost.allowList.isAllowed (claimant, data_)) revert BoostError.Unauthorized ();
389
+ if (! boost.allowList.isAllowed (claimant, data_)) {
390
+ revert BoostError.Unauthorized ();
391
+ }
389
392
390
393
// Call validate and pass along the value
391
394
if (! boost.validator.validate {value: msg .value }(boostId_, incentiveId_, claimant, data_)) {
@@ -636,8 +639,12 @@ contract BoostCore is Ownable, ReentrancyGuard {
636
639
bytes memory preflight = incentive.preflight (incentiveParams);
637
640
if (preflight.length != 0 ) {
638
641
(bytes memory disbursal , uint256 feeAmount ) = _getFeeDisbursal (preflight, protocolFee_);
639
- if (! budget_.disburse (disbursal)) revert BoostError.InvalidInitialization ();
640
- if (! budget_.disburse (preflight)) revert BoostError.InvalidInitialization ();
642
+ if (! budget_.disburse (disbursal)) {
643
+ revert BoostError.InvalidInitialization ();
644
+ }
645
+ if (! budget_.disburse (preflight)) {
646
+ revert BoostError.InvalidInitialization ();
647
+ }
641
648
642
649
ABudget.Transfer memory request = abi.decode (preflight, (ABudget.Transfer));
643
650
0 commit comments