commit
eabc54e5dd
@ -16,8 +16,8 @@ const getP2PixAddress = (): string => {
|
|||||||
const etherStore = useEtherStore();
|
const etherStore = useEtherStore();
|
||||||
|
|
||||||
const possibleP2PixAddresses: { [key: string]: string } = {
|
const possibleP2PixAddresses: { [key: string]: string } = {
|
||||||
Ethereum: "0xefa5cE4351cda51192509cf8De7d8881ADAE95DD",
|
Ethereum: "0x2414817FF64A114d91eCFA16a834d3fCf69103d4",
|
||||||
Polygon: "0xA9258eBb157E4cf5e756b77FDD0DF09C2F73240b",
|
Polygon: "0x4A2886EAEc931e04297ed336Cc55c4eb7C75BA00",
|
||||||
};
|
};
|
||||||
|
|
||||||
return possibleP2PixAddresses[etherStore.networkName];
|
return possibleP2PixAddresses[etherStore.networkName];
|
||||||
|
@ -20,12 +20,12 @@ const getNetworksLiquidity = async (): Promise<void> => {
|
|||||||
); // mumbai provider
|
); // mumbai provider
|
||||||
|
|
||||||
const p2pContractGoerli = new ethers.Contract(
|
const p2pContractGoerli = new ethers.Contract(
|
||||||
"0xefa5cE4351cda51192509cf8De7d8881ADAE95DD",
|
"0x2414817FF64A114d91eCFA16a834d3fCf69103d4",
|
||||||
p2pix.abi,
|
p2pix.abi,
|
||||||
goerliProvider
|
goerliProvider
|
||||||
);
|
);
|
||||||
const p2pContractMumbai = new ethers.Contract(
|
const p2pContractMumbai = new ethers.Contract(
|
||||||
"0xA9258eBb157E4cf5e756b77FDD0DF09C2F73240b",
|
"0x4A2886EAEc931e04297ed336Cc55c4eb7C75BA00",
|
||||||
p2pix.abi,
|
p2pix.abi,
|
||||||
mumbaiProvider
|
mumbaiProvider
|
||||||
);
|
);
|
||||||
|
File diff suppressed because one or more lines are too long
@ -23,11 +23,11 @@ const offerValue = ref<string>("");
|
|||||||
const pixKeyBuyer = ref<string>("");
|
const pixKeyBuyer = ref<string>("");
|
||||||
|
|
||||||
// Verificar tipagem
|
// Verificar tipagem
|
||||||
const approveOffer = async (args: { offer: string; pixKey: string }) => {
|
const approveOffer = async (args: { offer: string; postProcessedPixKey: string }) => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
try {
|
try {
|
||||||
offerValue.value = args.offer;
|
offerValue.value = args.offer;
|
||||||
pixKeyBuyer.value = args.pixKey;
|
pixKeyBuyer.value = args.postProcessedPixKey;
|
||||||
await approveTokens(args.offer);
|
await approveTokens(args.offer);
|
||||||
flowStep.value = Step.Network;
|
flowStep.value = Step.Network;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user