message: Fix trade creation
diff: @@ -32,7 +32,7 @@ export function createTrade(input: Input_createTrade): Trade {
  const amounts: TokenAmount[] = new Array(input.route.path.length);
  const nextPairs: Pair[] = new Array(input.route.pairs.length);
  if (input.tradeType == TradeType.EXACT_INPUT) {
  - if (input.amount.token != input.route.input) {
  + if (input.amount.token.currency != input.route.input.currency) {
  throw new Error(
  "Trade input token must be the same as trade route input token"
  );
  @@ -53,7 +53,7 @@ export function createTrade(input: Input_createTrade): Trade {
  nextPairs[i] = nextPair;
  }
  } else {
  - if (input.amount.token != input.route.output) {
  + if (input.amount.token.currency != input.route.output.currency) {
  throw new Error(
  "Trade input token must be the same as trade route input token"
  );
  