I am new to the DEX development. Am using pancakeswap router contract https://testnet.bscscan.com/address/0xd99d1c33f9fc3444f8101754abc46c52416550d1
Using ethers.js to call contracts.
addLiquidityETH is working to add the liquidity in the DEX. I need to display a list. Which method I need to call in router or in factory contract to display the liquidity added details like below image
Need to display the list while loading. We don't have any pairaddress to call IERC20(pair).balanceOf(address)
. I didnt understand what was the logic behind to display the list by getting pairaddress first and then get the balance
Thanks in Advance