message: Fix trade data compare error cases
diff: @@ -14,20 +14,17 @@ export class TradeData {
  static compare(a: TradeData, b: TradeData): i32 {
  const aInput = a.trade.inputAmount;
  const bInput = b.trade.inputAmount;
  - // TODO: returns error when it should not
  - /*
  - if (tokenEquals({ token: aInput.token, other: bInput.token })) {
  + if (!tokenEquals({ token: aInput.token, other: bInput.token })) {
  throw new Error("To be compared, trades must the same input token");
  }
  - */
  const aOutput = a.trade.outputAmount;
  const bOutput = b.trade.outputAmount;
  - /*
  - if (tokenEquals({ token: aOutput.token, other: bOutput.token })) {
  +
  + if (!tokenEquals({ token: aOutput.token, other: bOutput.token })) {
  throw new Error("To be compared, trades must the same output token");
  }
  - */
  +
  const aOutputBI = BigInt.fromString(aOutput.amount);
  const bOutputBI = BigInt.fromString(bOutput.amount);
  const outCmp = aOutputBI.compareTo(bOutputBI);
  