Description: The ReentrancyGuard is imported and inherited by the ReceiverStargateV2 contract. However, the helper contract functions are not used anywhere in the ReceiverStargateV2 context.
The function lzCompose is protected; hence, re-entrancy is impossible, as lzEndpoint clears the payload before making the external call to ReceiverStargateV2.
The function pullToken is also owner-protected, preventing re-entrancy.
Recommendation: Evaluate the need for reentrancy import in the contract and remove it if it is not required.
Context: ReceiverStargateV2.sol#L42
Description: The
ReentrancyGuard
is imported and inherited by theReceiverStargateV2
contract. However, the helper contract functions are not used anywhere in theReceiverStargateV2
context.The function
lzCompose
is protected; hence, re-entrancy is impossible, as lzEndpoint clears the payload before making the external call toReceiverStargateV2
.The function
pullToken
is also owner-protected, preventing re-entrancy.Recommendation: Evaluate the need for reentrancy import in the contract and remove it if it is not required.
LI.FI:
Researcher: