mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Fix the ability for a malicious adversary to snipe ERC20s out via re-entrancy from the ERC20 contract
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user