diff --git a/contracts/DebtLocker.sol b/contracts/DebtLocker.sol index e383a3f..6e7f436 100644 --- a/contracts/DebtLocker.sol +++ b/contracts/DebtLocker.sol @@ -49,19 +49,18 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxiedInternals { /*** Liquidity Migration Functions ***/ /*************************************/ - function acceptLender() override external whenProtocolNotPaused { + function acceptLender() override external { require(msg.sender == _loanMigrator, "DL:AL:NOT_MIGRATOR"); IMapleLoanLike(_loan).acceptLender(); } - function setPendingLender(address newLender_) override external whenProtocolNotPaused { + function setPendingLender(address newLender_) override external { require(msg.sender == _loanMigrator, "DL:SPL:NOT_MIGRATOR"); IMapleLoanLike(_loan).setPendingLender(newLender_); } - /*******************************/ /*** Pool Delegate Functions ***/ /*******************************/