Skip to content

Commit 4e3bcf8

Browse files
committed
Update to use fast instead of average
1 parent 9ea0858 commit 4e3bcf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dkg/providers/blockchain/async_blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ async def fetch_gas_price(oracle_url: str) -> Wei | None:
185185

186186
if "result" in data:
187187
return int(data["result"], 16)
188-
elif "average" in data:
189-
return self.w3.to_wei(data["average"], "gwei")
188+
elif "fast" in data:
189+
return self.w3.to_wei(data["fast"], "gwei")
190190
else:
191191
return None
192192
except Exception:

dkg/providers/blockchain/blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def fetch_gas_price(oracle_url: str) -> Wei | None:
170170

171171
if "result" in data:
172172
return int(data["result"], 16)
173-
elif "average" in data:
174-
return self.w3.to_wei(data["average"], "gwei")
173+
elif "fast" in data:
174+
return self.w3.to_wei(data["fast"], "gwei")
175175
else:
176176
return None
177177
except Exception:

0 commit comments

Comments
 (0)