From 15db54d201e4e98358c8d4a9441eebc19be2a94b Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 5 Dec 2017 14:09:28 +0000 Subject: [PATCH] lock and wipe callable by anyone --- src/tub.sol | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tub.sol b/src/tub.sol index 3989c19..8383c4d 100644 --- a/src/tub.sol +++ b/src/tub.sol @@ -232,7 +232,6 @@ contract SaiTub is DSThing, SaiTubEvents { function lock(bytes32 cup, uint wad) public note { require(!off); - require(msg.sender == cups[cup].lad); cups[cup].ink = add(cups[cup].ink, wad); skr.pull(msg.sender, wad); } @@ -257,7 +256,6 @@ contract SaiTub is DSThing, SaiTubEvents { } function wipe(bytes32 cup, uint wad) public note { require(!off); - require(msg.sender == cups[cup].lad); var owe = rmul(wad, rdiv(rap(cup), tab(cup)));