Skip to content

Commit

Permalink
added hardcoded factory and router addresses for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinsoza committed Jun 26, 2024
1 parent 6d21620 commit 7fc0b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/factory.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/services/router.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 7fc0b6d

Please sign in to comment.