Open code423n4 opened 2 years ago
sirhashalot
The withdrawAVAX() function of LaunchEvent.sol and initialize() function of RocketJoeStaking.sol can be declared external for gas savings
withdrawAVAX()
initialize()
Declare functions as external instead of public when possible
Fix: https://github.com/traderjoe-xyz/rocket-joe/pull/130/files
Handle
sirhashalot
Vulnerability details
Impact
The
withdrawAVAX()
function of LaunchEvent.sol andinitialize()
function of RocketJoeStaking.sol can be declared external for gas savingsProof of Concept
Recommended Mitigation Steps
Declare functions as external instead of public when possible