diff --git a/contracts/DebtLocker.sol b/contracts/DebtLocker.sol index 13fb99c..729c073 100644 --- a/contracts/DebtLocker.sol +++ b/contracts/DebtLocker.sol @@ -1,11 +1,10 @@ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.7; +import { ERC20Helper } from "../modules/erc20-helper/src/ERC20Helper.sol"; +import { Liquidator } from "../modules/liquidations/contracts/Liquidator.sol"; import { IMapleProxyFactory } from "../modules/maple-proxy-factory/contracts/interfaces/IMapleProxyFactory.sol"; - -import { ERC20Helper } from "../modules/erc20-helper/src/ERC20Helper.sol"; -import { Liquidator } from "../modules/liquidations/contracts/Liquidator.sol"; -import { MapleProxied } from "../modules/maple-proxy-factory/contracts/MapleProxied.sol"; +import { MapleProxied } from "../modules/maple-proxy-factory/contracts/MapleProxied.sol"; import { IDebtLocker } from "./interfaces/IDebtLocker.sol"; import { IERC20Like, IMapleGlobalsLike, IMapleLoanLike, IPoolLike, IPoolFactoryLike } from "./interfaces/Interfaces.sol"; @@ -81,7 +80,7 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied { function pullFundsFromLiquidator(address liquidator_, address token_, address destination_, uint256 amount_) external override { require(msg.sender == _getPoolDelegate(), "DL:SA:NOT_PD"); - Liquidator(liquidator_).pullFunds(token_, destination_, amount_); + Liquidator(liquidator_).pullFunds(token_, destination_, amount_); } function setAllowedSlippage(uint256 allowedSlippage_) external override whenProtocolNotPaused { diff --git a/contracts/interfaces/IDebtLocker.sol b/contracts/interfaces/IDebtLocker.sol index 892de78..29f9c8e 100644 --- a/contracts/interfaces/IDebtLocker.sol +++ b/contracts/interfaces/IDebtLocker.sol @@ -29,7 +29,7 @@ interface IDebtLocker is IMapleProxied { event FundsToCaptureSet(uint256 amount_); /** - * @dev Emitted when `stopLiquidation` is called. + * @dev Emitted when `stopLiquidation` is called. */ event LiquidationStopped(); @@ -44,7 +44,10 @@ interface IDebtLocker is IMapleProxied { /*****************/ /** - * @dev Accept the new loan terms and trigger a refinance. + * @dev Accept the new loan terms and trigger a refinance. + * @param refinancer_ The address of the refinancer contract. + * @param calls_ The array of encoded data that are to be executed as delegatecalls by the refinancer. + * @param amount_ The amount of `fundsAsset` that is to be sent to the Loan as part of the transaction. */ function acceptNewTerms(address refinancer_, bytes[] calldata calls_, uint256 amount_) external;