Skip to content

Commit

Permalink
Fixed getEtherPrice for EtherscanProvider (#776).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 1, 2020
1 parent 70cffb6 commit 6c71b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/etherscan-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c71b51

Please sign in to comment.