Skip to content

Commit

Permalink
fix: reentrancy
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Jan 12, 2024
1 parent 46827c6 commit ce72f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/middleman/MerklFraxIncentivizationHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ contract MerklFraxIncentivizationHandler is Ownable {
params.amount = amount;
if (amount > 0) {
if (amount > minAmount) {
if (leftover > 0) leftovers[incentiveTokenAddress][poolAddress] = 0;
_handleIncentiveTokenAllowance(IERC20(incentiveTokenAddress), address(creator), amount);
merklDistributionCreator().createDistribution(params);
if (leftover > 0) leftovers[incentiveTokenAddress][poolAddress] = 0;
} else {
leftovers[incentiveTokenAddress][poolAddress] = amount;
}
Expand Down

0 comments on commit ce72f26

Please sign in to comment.