From 7e5727f7d1d2368b1fc5557736608e5c30f8a9cd Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Fri, 20 Sep 2024 11:12:27 -0400 Subject: [PATCH] also log selector --- src/Synths/EulerSavingsRate.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Synths/EulerSavingsRate.sol b/src/Synths/EulerSavingsRate.sol index 33cbee99..493a6dc2 100644 --- a/src/Synths/EulerSavingsRate.sol +++ b/src/Synths/EulerSavingsRate.sol @@ -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; _;