Improve comment

This commit is contained in:
Arnaud 2025-04-02 09:20:52 +02:00
parent eb1cb8b7ee
commit f71f5bd11b
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -137,7 +137,7 @@ method populateTransaction*(
let maxPriorityFeePerGas = transaction.maxPriorityFeePerGas |? (await signer.provider.getMaxPriorityFeePerGas())
populated.maxPriorityFeePerGas = some(maxPriorityFeePerGas)
# Multiply by 2 because during times of congestion, it can increase by 12.5% per block.
# Multiply by 2 because during times of congestion, baseFeePerGas can increase by 12.5% per block.
# https://github.com/ethers-io/ethers.js/discussions/3601#discussioncomment-4461273
let maxFeePerGas = baseFeePerGas * 2 + maxPriorityFeePerGas
populated.maxFeePerGas = some(maxFeePerGas)