GAS OPTIMIZATION
GAS OPTIMIZATION 1. EIP-1559 & Gas Fee Mechanism Base Fee • Set by the Ethereum protocol — you cannot control it • This amount is ALWAYS burned (nobody receives it) • If last block was FULL → base fee goes UP by ~12% • If last block was EMPTY → base fee goes DOWN by ~12% • Accessible in Solidity (v0.8.7+) via block.basefee Max Fee Per Gas • Maximum gwei per gas you are willing to pay in total • Must be HIGHER than the current base fee or tx won't go through • If max fee > base fee → difference is REFUNDED to you • Gas price per gwei is always ≤ max...