sherlock-audit / 2024-08-cork-protocol-judging

2 stars 2 forks source link

Parvez.eth - Missing checks for `address(0)` when assigning values to address state variables #265

Closed sherlock-admin4 closed 2 months ago

sherlock-admin4 commented 2 months ago

Parvez.eth

Invalid

Missing checks for address(0) when assigning values to address state variables

Title

L-3: Missing checks for address(0) when assigning values to address state variables

Summary

Check for address(0) when assigning values to address state variables.

1 Found Instances - Found in src/contracts/core/flash-swaps/FlashSwapRouter.sol [Line: 36](https://github.com/sherlock-audit/2024-08-cork-protocol/blob/main/Depeg-swap/contracts/core/flash-swaps/FlashSwapRouter.sol#L36) ```solidity univ2Router = IUniswapV2Router02(_univ2Router); ```
sherlock-admin2 commented 2 months ago

1 comment(s) were left on this issue during the judging contest.

tsvetanovv commented:

Information severity