mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-08 16:43:09 +00:00
Improve comment
This commit is contained in:
parent
eb1cb8b7ee
commit
f71f5bd11b
@ -137,7 +137,7 @@ method populateTransaction*(
|
|||||||
let maxPriorityFeePerGas = transaction.maxPriorityFeePerGas |? (await signer.provider.getMaxPriorityFeePerGas())
|
let maxPriorityFeePerGas = transaction.maxPriorityFeePerGas |? (await signer.provider.getMaxPriorityFeePerGas())
|
||||||
populated.maxPriorityFeePerGas = some(maxPriorityFeePerGas)
|
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
|
# https://github.com/ethers-io/ethers.js/discussions/3601#discussioncomment-4461273
|
||||||
let maxFeePerGas = baseFeePerGas * 2 + maxPriorityFeePerGas
|
let maxFeePerGas = baseFeePerGas * 2 + maxPriorityFeePerGas
|
||||||
populated.maxFeePerGas = some(maxFeePerGas)
|
populated.maxFeePerGas = some(maxFeePerGas)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user