A transaction pricing mechanism that includes fixed-per-block network fee that is burned and dynamically expands/contracts block sizes to deal with transient congestion.
DynamicFeeTx = EIP-1559 transaction.
CalcBaseFee Source code
가스 사용량이 많으면 다음 수수료는 올라감. 내가 낼 수수료가 높아짐. 어차피 가스비는 다시 내려감. 왜냐하면 비싸서 아무도 안함. 검증자는 basefee가 높을때, 사용자들이 안오니깐. 인센티브도 낮아짐.
수수료가 높아지면 사용자도 안하고, 인센티브도 낮아짐.
$Fee = gasUsed * gasPrice$
- gasUsed: 가스 사용량
- gasPrice: 사용자가 지불 (=maxPriorityFee)
$Fee = gasUsed*(baseFee+maxPriorityFeePerGas)$
$baseFee = baseFee_{pre}(1+\frac{gasUsed_{block}-gasTarget_{block}}{garTarget_{block}}\frac{1}{8})$
- baseFee_pre: 이전 baseFee
- gasUsed_block: 블록에서 사용한 가스사용량
- gasTarget_block: 이전 블록에서 사용한 가스사용량
- maxPriorityFeePerGas: the part of the gas that goes to miners.