Update getPairsInfo.js

This commit is contained in:
Daniel
2022-11-05 11:47:29 +01:00
parent a69c6190ee
commit 257c7aa5c5

View File

@@ -16,6 +16,13 @@ export async function getPairsInfo(pairAddresses, web3) {
const token0Name = await token0Contract.methods.name().call(); //get contract address name
const token1Name = await token1Contract.methods.name().call();
pairsInfo.push({ //pass eerything we need to pairsInfo Array
address: pairAddress,
token0Address,
token1Address,
token0Name,
token1Name
});
}
}