Open sujithsomraaj opened 5 months ago
Yes, makes complete sense. In an earlier version there were several usages but I optimized that and forgot to inline the function. Good spotting !!!
I will include your suggestions to harvest the whopping 0.015% gas savings (your definition of "significant" gas savings is a bit funny 😆)
Context: StargateFacetV2.sol#L144, StargateFacetV2.sol#L157
Description: The two internal functions
_validateDestinationCallFlag
and_getRouterAddress
are used only in one instance and could hence be inlined.By inlining the functions, the overall contract bytecode will be reduced, and the execution gas costs will decrease by more than 80 GAS units.
Recommendation: Consider moving the two functions inside the
_startBridge
function to save additional gas costs.LI.FI:
Researcher: