Skip to content

Commit

Permalink
Merge pull request #489 from soroswap/feat/hardcodedMainnet
Browse files Browse the repository at this point in the history
Hardcoded contracts for mainnet
  • Loading branch information
abstract829 authored Jul 5, 2024
2 parents f2f1808 + 7fc0b6d commit 605b001
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 605b001

Please sign in to comment.