Open code423n4 opened 2 years ago
pauliax
Avoid repeated storage access:
require( user.balance > 0, "LaunchEvent: expected user to have non-zero balance to perform emergency withdraw" ); uint256 balance = user.balance;
Proposed improvement:
uint256 balance = user.balance; require( balance > 0, "LaunchEvent: expected user to have non-zero balance to perform emergency withdraw" );
Handle
pauliax
Vulnerability details
Impact
Avoid repeated storage access:
Proposed improvement: