Skip to content

Commit

Permalink
formatting: Imports and natspec (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Manuel authored Dec 14, 2021
1 parent 52fe628 commit e5d74d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 4 additions & 5 deletions contracts/DebtLocker.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 {
Expand Down
7 changes: 5 additions & 2 deletions contracts/interfaces/IDebtLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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;

Expand Down

0 comments on commit e5d74d8

Please sign in to comment.