Uno-Re / SSIP-SSRP-contracts

8 stars 4 forks source link

[L-02] Inconsistent 0 address checks #27

Open madMax92221 opened 10 months ago

madMax92221 commented 10 months ago

All address params in the PremiumPool.sol constructor have a check for address 0 except _governance.

constructor(address _exchangeAgent, address _unoToken, address _usdcToken, address _multiSigWallet, address _governance) {
        require(_exchangeAgent != address(0), "UnoRe: zero exchangeAgent address");
        require(_unoToken != address(0), "UnoRe: zero UNO address");
        require(_usdcToken != address(0), "UnoRe: zero USDC address");
        require(_multiSigWallet != address(0), "UnoRe: zero multisigwallet address"); 

Add address 0 check for _governance as well.

wankhede04 commented 9 months ago

fixed at commit https://github.com/Uno-Re/SSIP-SSRP-contracts/commit/ab6376e10bfd02cca4aa40512a8ac08c92d68888