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

Commit

Permalink
add tune to mom
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbreak committed Dec 17, 2017
1 parent 67d0fba commit 1acaadc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ contract SaiMom is DSThing {
require(ray > 9998 * 10 ** 23);
vox.mold("way", ray);
}
function setHow(uint ray) public note auth {
vox.tune(ray);
}
}
5 changes: 5 additions & 0 deletions src/sai.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ contract SaiTubTest is SaiTestBase {
assertTrue( mom.call(setAxe, ray(2 ether)));
assertTrue(!mom.call(setMat, ray(1 ether)));
}
function testTune() public {
assertEq(vox.how(), 0);
mom.setHow(2 * 10 ** 25);
assertEq(vox.how(), 2 * 10 ** 25);
}
function testPriceFeedSetters() public {
var setPip = bytes4(keccak256('setPip(address)'));
var setPep = bytes4(keccak256('setPep(address)'));
Expand Down

0 comments on commit 1acaadc

Please sign in to comment.