Skip to content

Commit

Permalink
Add USD price reporting (#210)
Browse files Browse the repository at this point in the history
Co-authored-by: Andriian Chestnykh <>
  • Loading branch information
AndriianChestnykh authored Feb 5, 2024
1 parent 5f236e4 commit 8815bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const config: HardhatUserConfig = {
coinmarketcap: process.env.COINMARKETCAP_KEY,
enabled: !!process.env.REPORT_GAS,
token: "MATIC",
gasPriceApi: "https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice", // MATIC
// gasPriceAPI: "https://api.etherscan.io/api?module=proxy&action=eth_gasPrice", // ETH
},
// etherscan: {
// apiKey: "etherscan API key"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"node:local": "hardhat node",
"compile": "npx hardhat compile",
"test": "npx hardhat test",
"test:gas": "REPORT_GAS=true npx hardhat test",
"test:gas": "COINMARKETCAP_KEY=<put your key here> REPORT_GAS=true npx hardhat test",
"test:coverage": "npx hardhat coverage",
"deploy:localhost": "npx hardhat run scripts/deploy.ts --network localhost",
"upgrade:localhost": "npx hardhat run scripts/upgrade.ts --network localhost",
Expand Down

0 comments on commit 8815bf5

Please sign in to comment.