don't throw if the trades are not comparable

This commit is contained in:
Moody Salem 2021-04-28 13:34:22 -05:00
parent 2e599dc00e
commit fc258fdf5c
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -18,7 +18,7 @@ export function isTradeBetter(
!currencyEquals(tradeA.inputAmount.currency, tradeB.inputAmount.currency) ||
!currencyEquals(tradeB.outputAmount.currency, tradeB.outputAmount.currency)
) {
throw new Error('Trades are not comparable')
return false
}
if (minimumDelta.equalTo(ZERO_PERCENT)) {