livepeer / livepeer-monorepo

JavaScript tools and applications that interact with Livepeer's smart contracts and peer-to-peer network
https://livepeer.org
MIT License
167 stars 71 forks source link

remove ethgasstation api call #986

Closed adamsoffer closed 3 years ago

adamsoffer commented 3 years ago

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.

vercel[bot] commented 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.

explorer-mainnet – ./packages/explorer-2.0

🔍 Inspect: https://vercel.com/livepeerorg/explorer-mainnet/9RRcB7tAcPbbm8WJFsSZNyyqKMyy
✅ Preview: https://explorer-mainnet-git-as-fix-eth-gas-api-livepeerorg.vercel.app

explorer-rinkeby – ./packages/explorer-2.0

🔍 Inspect: https://vercel.com/livepeerorg/explorer-rinkeby/HAuS44a91tDq6pNG6yCyKsxPjZo7
✅ Preview: https://explorer-rinkeby-git-as-fix-eth-gas-api-livepeerorg.vercel.app