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 and deluca-mike committed Dec 13, 2021
2 parents 2335498 + bdc437f commit 7cbbaa3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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
2 changes: 1 addition & 1 deletion modules/liquidations
2 changes: 1 addition & 1 deletion modules/loan
Submodule loan updated from 5ac31e to e3183d

0 comments on commit 7cbbaa3

Please sign in to comment.