We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740fb5f commit 851ba18Copy full SHA for 851ba18
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "set.js",
3
- "version": "0.4.6",
+ "version": "0.4.7",
4
"description": "A javascript library for interacting with the Set Protocol v2",
5
"keywords": [
6
"set.js",
src/api/utils/gasOracle.ts
@@ -79,7 +79,7 @@ export class GasOracleService {
79
private async getOptimismGasPrice(): Promise<number> {
80
const url = 'https://api-optimistic.etherscan.io/api?module=proxy&action=eth_gasPrice';
81
const data = (await axios.get(url)).data;
82
- const price = Number(data.result);
+ const price = Number(data.result) / 1000000000; // wei to gwei
83
84
return price;
85
}
0 commit comments