don't throw if the trades are not comparable
This commit is contained in:
parent
2e599dc00e
commit
fc258fdf5c
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user