From 71409d30e835384fe57afe8c8b1548fbba0bc179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Brand=C3=A3o?= Date: Fri, 24 Nov 2023 18:22:32 +0000 Subject: [PATCH] Adding helper console logs --- core/src/path/tx-simulator.ts | 8 ++++++++ core/src/transaction/get-prices-and-linked-assets.ts | 2 ++ 2 files changed, 10 insertions(+) diff --git a/core/src/path/tx-simulator.ts b/core/src/path/tx-simulator.ts index cc2e805..a3a14aa 100644 --- a/core/src/path/tx-simulator.ts +++ b/core/src/path/tx-simulator.ts @@ -275,6 +275,14 @@ export async function simulateAndChooseRoute({ exchangeList?: Exchange[]; aggregators?: string[]; }): Promise { + console.log("simulateAndChooseRoute", { + chainId, + sellToken, + buyToken, + sellAmount, + exchangeList, + aggregators, + }); if (sellAmount == "0") { throw Error("simulateAndChooseRoute: sellAmount is 0"); } diff --git a/core/src/transaction/get-prices-and-linked-assets.ts b/core/src/transaction/get-prices-and-linked-assets.ts index 06052a0..5e6e244 100644 --- a/core/src/transaction/get-prices-and-linked-assets.ts +++ b/core/src/transaction/get-prices-and-linked-assets.ts @@ -79,5 +79,7 @@ export async function getPricesAndLinkedAssets({ linkedAssets[assetId] = getLinkedAssets({ assetStore, asset, requestTree }); }); + console.log({ prices }); + return { prices, linkedAssets }; }