Closed code423n4 closed 2 years ago
While this is true, I tested and it actually makes the happy-path more expensive, which is not a good trade-off. Wallets should catch if a transaction will fail, so it's unlikely that it will matter how much gas a reverting transaction costs.
agreed with assessment
Handle
Jujic
Vulnerability details
Impact
Proof of Concept
https://github.com/XDeFi-tech/xdefi-distribution/blob/3856a42df295183b40c6eee89307308f196612fe/contracts/XDEFIDistribution.sol#L304-L305
Tools Used
Remix
Recommended Mitigation Steps
Change to: