static version.json file

This commit is contained in:
Tim Olson
2024-01-03 16:07:10 -04:00
parent 29517807f5
commit 80cd86dcec
8 changed files with 39 additions and 29 deletions

View File

@@ -3,11 +3,11 @@ import {Exchange} from "@/blockchain/orderlib.js";
export async function findRoute(chainId, tokenA, tokenB) {
// console.log('getting query helper')
console.log('getting query helper')
const helper = await queryHelperContract()
if (!helper)
throw Error('no helper')
console.log('getting raw routes', tokenA.address, tokenB.address)
console.log('getting raw routes', helper, tokenA.address, tokenB.address)
const rawRoutes = await helper.getRoutes(tokenA.address, tokenB.address)
// todo expose all available pools
console.log('raw routes', rawRoutes)