Adjust default masPriorityFeePerGas to account for MEV-heavy blocks (#1817).

This commit is contained in:
Richard Moore 2021-08-02 22:52:29 -03:00
parent 68229ac0af
commit 7175e2e99c
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

View File

@ -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);
}