Skip to content

Commit

Permalink
fix(ProfitClient): Don't attempt to fill reverting testnet txns (#1253)
Browse files Browse the repository at this point in the history
Identified during the hackathon - a reverting deposit was incorrectly
being bundled into a multicall and forcing the entire multicall to fail.
  • Loading branch information
pxrl authored Mar 2, 2024
1 parent dddbff9 commit 533d2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/ProfitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ export class ProfitClient {
}

return {
profitable: profitable || this.isTestnet,
profitable: profitable || (this.isTestnet && nativeGasCost.lt(uint256Max)),
nativeGasCost,
tokenGasCost,
grossRelayerFeePct,
Expand Down

0 comments on commit 533d2c1

Please sign in to comment.