WETH98 uses transfer instead of call which can break with future updates to gas costs
Summary
Transfer will always send native token with a 2300 gas. This can be problematic for interacting smart contracts if gas cost change because their interaction may abruptly break.
Vulnerability Detail
See summary
Impact
Changing gas costs may break integrations in the future
turvec
medium
WETH98 uses transfer instead of call which can break with future updates to gas costs
Summary
Transfer will always send native token with a 2300 gas. This can be problematic for interacting smart contracts if gas cost change because their interaction may abruptly break.
Vulnerability Detail
See summary
Impact
Changing gas costs may break integrations in the future
Code Snippet
https://github.com/sherlock-audit/2024-02-optimism-2024/blob/main/optimism/packages/contracts-bedrock/src/dispute/weth/WETH98.sol#L49
Tool used
Manual Review
Recommendation
Use call instead of transfer.
Duplicate of #1