Update getPairsInfo.js
This commit is contained in:
7
packages/react-app/src/utils/getPairsInfo.js
vendored
7
packages/react-app/src/utils/getPairsInfo.js
vendored
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user