Skip to content

Commit

Permalink
Update packages/client/lib/rpc/modules/eth.ts
Browse files Browse the repository at this point in the history
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
  • Loading branch information
2 people authored and holgerd77 committed Nov 11, 2022
1 parent db416fe commit 038f7b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/lib/rpc/modules/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,8 @@ export class Eth {
}

if (txCount > 0) {
gasPrice = gasPrice / txCount > minGasPrice ? gasPrice / txCount : minGasPrice
const avgGasPrice = gasPrice / txCount
gasPrice = avgGasPrice > minGasPrice ? avgGasPrice : minGasPrice
} else {
gasPrice = minGasPrice
}
Expand Down

0 comments on commit 038f7b4

Please sign in to comment.