diff --git a/packages/oraiswap-v3/package.json b/packages/oraiswap-v3/package.json index 64b40eb3..c06094c8 100644 --- a/packages/oraiswap-v3/package.json +++ b/packages/oraiswap-v3/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraiswap-v3", - "version": "1.2.0-beta23", + "version": "1.2.0-beta24", "main": "build/index.js", "files": [ "./build/" diff --git a/packages/oraiswap-v3/src/main.ts b/packages/oraiswap-v3/src/main.ts index 87ec2c59..af5acabc 100644 --- a/packages/oraiswap-v3/src/main.ts +++ b/packages/oraiswap-v3/src/main.ts @@ -18,7 +18,9 @@ import { getTickAtSqrtPrice } from "./wasm/oraiswap_v3_wasm"; async function main() { const oraidexCommon = await OraidexCommon.load(); const zapper = new ZapConsumer({ - routerApi: "https://osor.oraidex.io/smart-router/alpha-router", + // routerApi: "https://osor.oraidex.io/smart-router/alpha-router", + // TODO: change to prod later + routerApi: "https://osor-staging.oraidex.io/smart-router/alpha-router", client: await CosmWasmClient.connect("https://rpc.orai.io"), dexV3Address: AMM_V3_CONTRACT, multiCallAddress: MULTICALL_CONTRACT, @@ -36,8 +38,8 @@ async function main() { // const poolKey = parsePoolKey(pool); // for (let i = 0; i < 10; i++) { - // const poolInfo = await zapper.handler.getPool(poolKey); - // console.log("poolInfo", poolInfo); + // const poolInfo = await zapper.handler.getPool(poolKey); + // console.log("poolInfo", poolInfo); // } // const tickSpacing = poolKey.fee_tier.tick_spacing; @@ -61,7 +63,7 @@ async function main() { owner: "orai1zyvk3n9r8sax4xvqph97pxuhduqqsqwq6dwzj2", tokenId: 12046, tokenOut: tokenIn, - zapFee: 0, + zapFee: 0 }); console.dir(res, { depth: null }); // console.dir(res, { depth: null }); diff --git a/packages/universal-swap/package.json b/packages/universal-swap/package.json index 2eb72029..eba85a32 100644 --- a/packages/universal-swap/package.json +++ b/packages/universal-swap/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-universal-swap", - "version": "1.2.0-beta23", + "version": "1.2.0-beta24", "main": "build/index.js", "files": [ "build/" diff --git a/packages/universal-swap/src/handler.ts b/packages/universal-swap/src/handler.ts index 6fb024c1..374108b6 100644 --- a/packages/universal-swap/src/handler.ts +++ b/packages/universal-swap/src/handler.ts @@ -1111,7 +1111,9 @@ export class UniversalSwapHandler { useIbcWasm: true }, routerConfig: { - url: "https://osor.oraidex.io", + // url: "https://osor.oraidex.io", + // TODO: change to prod later + url: "https://osor-staging.oraidex.io", path: "/smart-router/alpha-router", protocols: ["Oraidex", "OraidexV3"], dontAllowSwapAfter: ["Oraidex", "OraidexV3"] diff --git a/packages/universal-swap/src/helper.ts b/packages/universal-swap/src/helper.ts index a91df099..f0fe4c2f 100644 --- a/packages/universal-swap/src/helper.ts +++ b/packages/universal-swap/src/helper.ts @@ -856,7 +856,9 @@ export class UniversalSwapHelper { ignoreFee?: boolean; }) => { return { - url: "https://osor.oraidex.io", + // url: "https://osor.oraidex.io", + // TODO: change to prod later + url: "https://osor-staging.oraidex.io", path: options?.path ?? "/smart-router/alpha-router", protocols: options?.protocols ?? ["Oraidex", "OraidexV3"], dontAllowSwapAfter: options?.dontAllowSwapAfter ?? ["Oraidex", "OraidexV3"], diff --git a/packages/universal-swap/src/universal-demos/handle-simulate-swap.ts b/packages/universal-swap/src/universal-demos/handle-simulate-swap.ts index 6b4da580..46d20693 100644 --- a/packages/universal-swap/src/universal-demos/handle-simulate-swap.ts +++ b/packages/universal-swap/src/universal-demos/handle-simulate-swap.ts @@ -26,10 +26,12 @@ const simulate = async () => { useIbcWasm: true }, routerConfig: { - url: "https://osor.oraidex.io", + // url: "https://osor.oraidex.io", + // TODO: change to prod later + url: "https://osor-staging.oraidex.io", path: "/smart-router/alpha-router", protocols: ["Oraidex", "OraidexV3", "Osmosis"] - }, + } }); } catch (error) { console.log("error: ", error);