poanetwork / nifty-wallet

A fork of MetaMask focused on the usability of real-world applications
https://chrome.google.com/webstore/detail/nifty-wallet/jbdaocneiiinmjbjlgalhcelgbejmnid
MIT License
93 stars 44 forks source link

Infura v1 API is deprecated. #439

Closed AJolly closed 3 years ago

AJolly commented 3 years ago

Nifty still uses infura's v1 API - which has been since deprecated.

https://community.infura.io/t/notice-http-api-endpoint-deprecation/1851

We need to move the price lookup to an alternate, perhaps to coingecko instead?

vbaranov commented 3 years ago

Infura ETH Mainnet endpoint replaced with custom one in https://github.com/poanetwork/nifty-wallet/releases/tag/v5.2.3

AJolly commented 3 years ago

@vbaranov It has not been completely replaced, nifty is still unusable on eth atm.

Check https://github.com/poanetwork/nifty-wallet/blob/master/app/scripts/controllers/infura.js

async checkInfuraNetworkStatus () { const response = await fetch('https://api.infura.io/v1/status/metamask') const parsedResponse = await response.json() this.store.updateState({ infuraNetworkStatus: parsedResponse, }) return parsedResponse }

vbaranov commented 3 years ago

Infura status check removed from the bundle.