Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatting: Imports and natspec #52

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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