From 7fc0b6d9e04708d20f628ac1ea18632360b52ffe Mon Sep 17 00:00:00 2001 From: coderipper Date: Wed, 26 Jun 2024 13:31:43 +0200 Subject: [PATCH] added hardcoded factory and router addresses for mainnet --- src/services/factory.ts | 2 ++ src/services/router.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/services/factory.ts b/src/services/factory.ts index 8306ba56..f98acfc3 100644 --- a/src/services/factory.ts +++ b/src/services/factory.ts @@ -1,6 +1,8 @@ import axios from './axios'; export const fetchFactory = async (network: string) => { + if(network == 'mainnet') return {"address":"CA4HEQTL2WPEUYKYKCDOHCDNIV4QHNJ7EL4J4NQ6VADP7SYHVRYZ7AW2"} + const { data } = await axios.get(`/api/${network}/factory`); return data; diff --git a/src/services/router.ts b/src/services/router.ts index 7e6141e0..52311607 100644 --- a/src/services/router.ts +++ b/src/services/router.ts @@ -1,6 +1,8 @@ import axios from './axios'; export const fetchRouter = async (network: string) => { + if(network == 'mainnet') return {"address":"CAG5LRYQ5JVEUI5TEID72EYOVX44TTUJT5BQR2J6J77FH65PCCFAJDDH"} + const { data } = await axios.get(`/api/${network}/router`); return data;