Uniswap / v3-info

Interface for Uniswap V3 analytics. 📊
https://info.uniswap.org/#/
GNU General Public License v3.0
382 stars 306 forks source link

Fix: Broken explorer links on Pool page #308

Open 0xTARC opened 8 months ago

0xTARC commented 8 months ago

Issue

Explorer links on PoolPage are always linking to etherscan.io, regardless of the chosen chain

broken-explorer-link

Link out before fix: https://github.com/Uniswap/v3-info/assets/97852365/e032e098-4c76-450d-9ac5-15f8aeead3bf

Solution

Use the active chain's network id when building explorer link

Link out after fix: https://github.com/Uniswap/v3-info/assets/97852365/5a1dd2c6-620d-4fd5-bee8-8e6634dffde5