function deploySynth checks that token is not VADER or not USDV. The condition should be && (not ||) as OR condition always holds when VADER != USDV:
function deploySynth(address token) external {
require(token != VADER || token != USDV);
iFACTORY(FACTORY).deploySynth(token);
}
Handle
paulius.eth
Vulnerability details
Impact
function deploySynth checks that token is not VADER or not USDV. The condition should be && (not ||) as OR condition always holds when VADER != USDV: function deploySynth(address token) external { require(token != VADER || token != USDV); iFACTORY(FACTORY).deploySynth(token); }
Recommended Mitigation Steps
The condition should be &&, not ||.