Executor and LiquidityPool.sol should use EIP-1559 transaction fee calculation mechanism and not the legacy mechanism #121
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
invalid
This doesn't seem right
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityPool.sol#L263-L340
Vulnerability details
Impact
LiquidityPool.sol uses legacy transaction fee calculation mechanism. At this moment there aren't yet any specific dates on how log legacy transactions will be supported however accordingly to Coinbase blog post EIP-1559 transactions have huge benefits: https://blog.coinbase.com/the-technical-benefits-of-eip-1559-c41bb85f5924
EIP-1559 transactions on average:
Proof of Concept
Documentation "https://ethereum.org/en/developers/docs/gas/" chapters describes how to calculate gas for legacy and EIP-1559 transactions:
It is necessary to use transaction fee model after the London Upgrade.
Tools Used
Recommended Mitigation Steps
Use EIP-1559 / post London Upgrade transaction fee model:
The text was updated successfully, but these errors were encountered: