Description: The functions startBridgeTokensViaAcrossV3ERC20Min and startBridgeTokensViaAcrossV3ERC20Packed are used to bridge ERC20 tokens using across bridge.
These two functions are marked as payable, which will reduce gas overhead slightly. However, it will introduce a new issue: excess native tokens sent along these function calls are locked in the contract, which could be abused/used by other facets where there are no native token checks.
Recommendation: Consider removing the payable keyword.
LI.FI: Fixed in ddc45f13a2007025fb62f8983d417b9a1ed233d4
Context: AcrossFacetPackedV3.sol#L135, AcrossFacetPackedV3.sol#L176
Description: The functions
startBridgeTokensViaAcrossV3ERC20Min
andstartBridgeTokensViaAcrossV3ERC20Packed
are used to bridge ERC20 tokens using across bridge.These two functions are marked as
payable,
which will reduce gas overhead slightly. However, it will introduce a new issue: excess native tokens sent along these function calls are locked in the contract, which could be abused/used by other facets where there are no native token checks.Recommendation: Consider removing the
payable
keyword.LI.FI: Fixed in ddc45f13a2007025fb62f8983d417b9a1ed233d4
Researcher: Validated fix. Looks all good.