Add a re-entrancy guard to Router.execute

This commit is contained in:
Luke Parker
2024-11-02 20:12:48 -04:00
parent 26230377b0
commit 2920987173
3 changed files with 47 additions and 0 deletions

View File

@@ -36,11 +36,15 @@ interface IRouterWithoutCollisions {
error EscapeHatchInvoked();
/// @notice The signature was invalid
error InvalidSignature();
/// @notice The amount specified didn't match `msg.value`
error AmountMismatchesMsgValue();
/// @notice The call to an ERC20's `transferFrom` failed
error TransferFromFailed();
/// @notice `execute` was re-entered
error ReenteredExecute();
/// @notice An invalid address to escape to was specified.
error InvalidEscapeAddress();
/// @notice Escaping when escape hatch wasn't invoked.