From 587b5a527ff05c69248166e598dd50be1db2d94c Mon Sep 17 00:00:00 2001 From: Lucas Manuel Date: Thu, 3 Nov 2022 13:36:00 -0400 Subject: [PATCH] feat: Remove pause from migration functions (#68) --- contracts/DebtLocker.sol | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ***/ /*******************************/