From 533d2c1d13c9da06716f5914a7e8b8cad8ebc2db Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Sat, 2 Mar 2024 22:09:34 +1100 Subject: [PATCH] fix(ProfitClient): Don't attempt to fill reverting testnet txns (#1253) Identified during the hackathon - a reverting deposit was incorrectly being bundled into a multicall and forcing the entire multicall to fail. --- src/clients/ProfitClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/ProfitClient.ts b/src/clients/ProfitClient.ts index 752a7ac97..d899f831c 100644 --- a/src/clients/ProfitClient.ts +++ b/src/clients/ProfitClient.ts @@ -581,7 +581,7 @@ export class ProfitClient { } return { - profitable: profitable || this.isTestnet, + profitable: profitable || (this.isTestnet && nativeGasCost.lt(uint256Max)), nativeGasCost, tokenGasCost, grossRelayerFeePct,