From 8ca7b7deccc021c2b681763b626b4e258e1b1e50 Mon Sep 17 00:00:00 2001 From: Scott Bigelow Date: Thu, 31 Dec 2020 14:19:02 -0800 Subject: [PATCH] Only select one --- src/Arbitrage.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Arbitrage.ts b/src/Arbitrage.ts index e4fcbc3c..bb7b6e17 100644 --- a/src/Arbitrage.ts +++ b/src/Arbitrage.ts @@ -166,6 +166,9 @@ export class Arbitrage { ) ) await Promise.all(bundlePromises) + return } + throw new Error("No arbitrage submitted to relay") } + }