From 77f66f56328f957602a82417825de1a8d9b21d03 Mon Sep 17 00:00:00 2001 From: Sheng Lundquist Date: Thu, 8 Aug 2024 18:28:20 -0700 Subject: [PATCH] Ignoring min txn amount in fork fuzz bots --- scripts/fork_fuzz_bots.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/fork_fuzz_bots.py b/scripts/fork_fuzz_bots.py index ef4fb360c..473cf01c1 100644 --- a/scripts/fork_fuzz_bots.py +++ b/scripts/fork_fuzz_bots.py @@ -86,6 +86,14 @@ def _fuzz_ignore_errors(exc: Exception) -> bool: ): return True + # MinimumTransactionAmount error + if ( + isinstance(orig_exception, ContractCustomError) + and len(orig_exception.args) > 1 + and "MinimumTransactionAmount raised" in orig_exception.args[1] + ): + return True + # DecreasedPresentValueWhenAddingLiquidity error if ( isinstance(orig_exception, ContractCustomError)