From f91b101a94c85b78b5b3033915c74649d6916070 Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Tue, 1 Apr 2025 17:38:04 +0100 Subject: [PATCH] fix: Prevent multiple callbacks After a callback is performed, the executor address transient storage is set to 0 so that multiple callbacks can't be performed for the same swap --- don't change below this line --- ENG-4411 Took 22 minutes --- foundry/src/Dispatcher.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/foundry/src/Dispatcher.sol b/foundry/src/Dispatcher.sol index ae8deba..6966b49 100644 --- a/foundry/src/Dispatcher.sol +++ b/foundry/src/Dispatcher.sol @@ -109,5 +109,10 @@ contract Dispatcher { ) ); } + + // to prevent multiple callbacks + assembly { + tstore(0, 0) + } } }