Fix the ability for a malicious adversary to snipe ERC20s out via re-entrancy from the ERC20 contract

This commit is contained in:
Luke Parker
2025-01-27 13:07:35 -05:00
parent 17cc10b3f7
commit 0484113254
3 changed files with 43 additions and 3 deletions

View File

@@ -63,6 +63,8 @@ interface IRouterWithoutCollisions {
/// @notice The call to an ERC20's `transferFrom` failed
error TransferFromFailed();
/// @notice The code wasn't to-be-executed by self
error CodeNotBySelf();
/// @notice A non-reentrant function was re-entered
error Reentered();