Closed adamsoffer closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/livepeerorg/explorer-mainnet/9RRcB7tAcPbbm8WJFsSZNyyqKMyy
✅ Preview: https://explorer-mainnet-git-as-fix-eth-gas-api-livepeerorg.vercel.app
🔍 Inspect: https://vercel.com/livepeerorg/explorer-rinkeby/HAuS44a91tDq6pNG6yCyKsxPjZo7
✅ Preview: https://explorer-rinkeby-git-as-fix-eth-gas-api-livepeerorg.vercel.app
What does this pull request do? Explain your changes. (required) This PR fixes an issue that causes the Explorer to refresh and display a blank page due the ethgasstation API throwing an error. It seems a breaking change was introduced to the ethgasstation API where it now requires an API key. The only dependency on that endpoint is the rounds widget where we provide an estimate of time remaining in a round. This PR removes the ethgasstation endpoint and instead hardcodes the average block time of 13 seconds to estimate time left in a round.