Skip to content

Commit

Permalink
QSP-9 setAdminConfig Always Emits Two Events Even if State Is Not Cha…
Browse files Browse the repository at this point in the history
…nged.
  • Loading branch information
brossetti1 committed Sep 28, 2022
1 parent c8df92d commit 740ca4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/Baal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -732,17 +732,19 @@ contract Baal is Module, EIP712Upgradeable, ReentrancyGuardUpgradeable, BaseRela

if(pauseShares && !sharesToken.paused()){
sharesToken.pause();
emit SharesPaused(true);
} else if(!pauseShares && sharesToken.paused()){
sharesToken.unpause();
emit SharesPaused(false);
}

if(pauseLoot && !lootToken.paused()){
lootToken.pause();
emit LootPaused(true);
} else if(!pauseLoot && lootToken.paused()){
lootToken.unpause();
emit LootPaused(false);
}

emit SharesPaused(pauseShares);
emit LootPaused(pauseLoot);
}

/// @notice Baal-or-manager-only function to mint shares.
Expand Down

0 comments on commit 740ca4a

Please sign in to comment.