Skip to content

Commit

Permalink
Adding helper console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pgbrandao committed Nov 24, 2023
1 parent b0cb10e commit 71409d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/path/tx-simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ export async function simulateAndChooseRoute({
exchangeList?: Exchange[];
aggregators?: string[];
}): Promise<Route[]> {
console.log("simulateAndChooseRoute", {
chainId,
sellToken,
buyToken,
sellAmount,
exchangeList,
aggregators,
});
if (sellAmount == "0") {
throw Error("simulateAndChooseRoute: sellAmount is 0");
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/transaction/get-prices-and-linked-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@ export async function getPricesAndLinkedAssets({
linkedAssets[assetId] = getLinkedAssets({ assetStore, asset, requestTree });
});

console.log({ prices });

return { prices, linkedAssets };
}

0 comments on commit 71409d3

Please sign in to comment.