diff --git a/src/mom.sol b/src/mom.sol index ebdd3f0..275e3d4 100644 --- a/src/mom.sol +++ b/src/mom.sol @@ -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); + } } diff --git a/src/sai.t.sol b/src/sai.t.sol index 6e0e89f..e27b31c 100644 --- a/src/sai.t.sol +++ b/src/sai.t.sol @@ -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)'));