Fixed getEtherPrice for EtherscanProvider (#776).
This commit is contained in:
parent
70cffb6a51
commit
6c71b51512
@ -290,7 +290,7 @@ export class EtherscanProvider extends BaseProvider{
|
|||||||
if (this.network.name !== "homestead") { return 0.0; }
|
if (this.network.name !== "homestead") { return 0.0; }
|
||||||
url += "/api?module=stats&action=ethprice";
|
url += "/api?module=stats&action=ethprice";
|
||||||
url += apiKey;
|
url += apiKey;
|
||||||
return parseFloat(await get(url, getResult));
|
return parseFloat((await get(url, getResult)).ethusd);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user