require 0x0 in draw & send

This commit is contained in:
Samyak Jain 2019-05-12 18:12:18 -04:00
parent a01b9c0370
commit f8d71bd403

View File

@ -210,6 +210,7 @@ contract CDPResolver is Helpers {
}
function drawSend(uint cdpNum, uint _wad, address to) public {
require(to != address(0x0), "address-not-valid");
bytes32 cup = bytes32(cdpNum);
if (_wad > 0) {
TubInterface tub = TubInterface(getSaiTubAddress());