From f40db935d386249b94c50de3c830318a5dc37650 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Fri, 13 Jan 2023 19:33:54 -0300 Subject: [PATCH] Add getP2PixAddress implementation Co-authored-by: brunoedcf --- src/blockchain/addresses.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/blockchain/addresses.ts b/src/blockchain/addresses.ts index 57cd4ac..f6d2dc2 100644 --- a/src/blockchain/addresses.ts +++ b/src/blockchain/addresses.ts @@ -13,6 +13,18 @@ const getTokenAddress = (): string => { return possibleTokenAddresses[etherStore.networkName]; }; +const getP2PixAddress = (): string => { + const etherStore = useEtherStore(); + + const possibleP2PixAddresses: { [key: string]: string } = { + Ethereum: "0x5f3EFA9A90532914545CEf527C530658af87e196", + Polygon: "0x5f3EFA9A90532914545CEf527C530658af87e196", + Localhost: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", + }; + + return possibleP2PixAddresses[etherStore.networkName]; +}; + const getProviderUrl = (): string => { const etherStore = useEtherStore(); @@ -53,4 +65,5 @@ export { possibleChains, network2Chain, isPossibleNetwork, + getP2PixAddress, };