Closed code423n4 closed 2 years ago
This increases deploy costs (tested) with no added benefit, since most wallets will already alert the user, or prevent the user, from signing and broadcasting transactions that will revert.
agreed, not a valid finding
Handle
WatchPug
Vulnerability details
Check if
XDEFI_ != address(0)
earlier can avoid unnecessary code execution (XDEFI = XDEFI_
) when this check failed.https://github.com/XDeFi-tech/xdefi-distribution/blob/3856a42df295183b40c6eee89307308f196612fe/contracts/XDEFIDistribution.sol#L39-L44
Recommendation
Change to: