Skip to content

Commit

Permalink
also log selector
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytech committed Sep 20, 2024
1 parent 9b6dc68 commit 7e5727f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Synths/EulerSavingsRate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ contract EulerSavingsRate is EVCUtil, ERC4626 {
/// @notice The total assets accounted for in the vault.
uint256 internal _totalAssets;

error Reentrancy(address me, address myCaller);
error Reentrancy(address me, address myCaller, bytes4 mySelector);

event Gulped(uint256 gulped, uint256 interestLeft);
event InterestUpdated(uint256 interestAccrued, uint256 interestLeft);

modifier nonReentrant() {
if (esrSlot.locked == LOCKED) revert Reentrancy(address(this), msg.sender);
if (esrSlot.locked == LOCKED) revert Reentrancy(address(this), msg.sender, bytes4(msg.data[:4]));

esrSlot.locked = LOCKED;
_;
Expand Down

0 comments on commit 7e5727f

Please sign in to comment.