Adjust default masPriorityFeePerGas to account for MEV-heavy blocks (#1817).
This commit is contained in:
parent
68229ac0af
commit
7175e2e99c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user