Skip to content

Commit

Permalink
Merge branch 'main' into refactor/cleanup-post-c4
Browse files Browse the repository at this point in the history
  • Loading branch information
JGcarv authored Dec 13, 2021
2 parents 2335498 + bdc437f commit e1ecf42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/DebtLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied {
}

function setAllowedSlippage(uint256 allowedSlippage_) external override whenProtocolNotPaused {
require(msg.sender == _getPoolDelegate(), "DL:SAS:NOT_PD");
require(allowedSlippage_ <= uint256(10000), "DL:SAS:INVALID_SLIPPAGE");
require(msg.sender == _getPoolDelegate(), "DL:SAS:NOT_PD");
require(allowedSlippage_ <= uint256(10_000), "DL:SAS:INVALID_SLIPPAGE");

emit AllowedSlippageSet(_allowedSlippage = allowedSlippage_);
}
Expand Down
4 changes: 2 additions & 2 deletions contracts/test/DebtLocker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ contract DebtLockerTests is TestUtils {

DebtLocker debtLocker = DebtLocker(pool.createDebtLocker(address(dlFactory), address(loan)));

assertTrue(!poolDelegate.try_debtLocker_setAllowedSlippage(address(debtLocker), 10001));
assertTrue( poolDelegate.try_debtLocker_setAllowedSlippage(address(debtLocker), 10000));
assertTrue(!poolDelegate.try_debtLocker_setAllowedSlippage(address(debtLocker), 10_001));
assertTrue( poolDelegate.try_debtLocker_setAllowedSlippage(address(debtLocker), 10_000));
}

/***********************/
Expand Down

0 comments on commit e1ecf42

Please sign in to comment.