Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
lock and wipe callable by anyone
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbreak committed Dec 5, 2017
1 parent 43b64d7 commit 15db54d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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)));

Expand Down

0 comments on commit 15db54d

Please sign in to comment.