mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
require 0x0 in draw & send
This commit is contained in:
parent
a01b9c0370
commit
f8d71bd403
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user