From 6c71b515126d8ef3cea5a1aec814c4cab56cc1a5 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 31 Mar 2020 23:17:10 -0400 Subject: [PATCH] Fixed getEtherPrice for EtherscanProvider (#776). --- packages/providers/src.ts/etherscan-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/providers/src.ts/etherscan-provider.ts b/packages/providers/src.ts/etherscan-provider.ts index 677b739b6..d6af9d6e7 100644 --- a/packages/providers/src.ts/etherscan-provider.ts +++ b/packages/providers/src.ts/etherscan-provider.ts @@ -290,7 +290,7 @@ export class EtherscanProvider extends BaseProvider{ if (this.network.name !== "homestead") { return 0.0; } url += "/api?module=stats&action=ethprice"; url += apiKey; - return parseFloat(await get(url, getResult)); + return parseFloat((await get(url, getResult)).ethusd); default: break;