Skip to content

Commit

Permalink
Adjust default masPriorityFeePerGas to account for MEV-heavy blocks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 3, 2021
1 parent 68229ac commit 7175e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abstract-provider/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export abstract class Provider implements OnceBlockable {
// We may want to compute this more accurately in the future,
// using the formula "check if the base fee is correct".
// See: https://eips.ethereum.org/EIPS/eip-1559
maxPriorityFeePerGas = BigNumber.from("1000000000");
maxPriorityFeePerGas = BigNumber.from("2500000000");
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
}

Expand Down

0 comments on commit 7175e2e

Please sign in to comment.