diff --git a/src.ts/providers/network.ts b/src.ts/providers/network.ts index e62151021..0fe9c91ae 100644 --- a/src.ts/providers/network.ts +++ b/src.ts/providers/network.ts @@ -329,9 +329,13 @@ function getGasStationPlugin(url: string) { let response; try { - response = await request.send(); + const [ _response, _feeData ] = await Promise.all([ + request.send(), fetchFeeData() + ]); + response = _response; const payload = response.bodyJson.standard; const feeData = { + gasPrice: _feeData.gasPrice, maxFeePerGas: parseUnits(payload.maxFee, 9), maxPriorityFeePerGas: parseUnits(payload.maxPriorityFee, 9), };