From f3f36674ef44a324c5f68b933e0119034ce23895 Mon Sep 17 00:00:00 2001 From: Michael De Luca Date: Sun, 12 Dec 2021 05:15:59 -0500 Subject: [PATCH] fix: Add named returns where missing (c4 #25) --- contracts/DebtLocker.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/DebtLocker.sol b/contracts/DebtLocker.sol index 4c5ce28..2a1e2d5 100644 --- a/contracts/DebtLocker.sol +++ b/contracts/DebtLocker.sol @@ -251,7 +251,7 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied { return oracleAmount > minRatioAmount ? oracleAmount : minRatioAmount; } - function implementation() external view override returns (address) { + function implementation() external view override returns (address implementation_) { return _implementation(); } @@ -279,7 +279,7 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied { return _pool; } - function poolDelegate() external override view returns(address) { + function poolDelegate() external override view returns (address poolDelegate_) { return _getPoolDelegate(); } @@ -299,16 +299,16 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied { /*** Internal View Functions ***/ /*******************************/ - function _getGlobals() internal view returns (address) { + function _getGlobals() internal view returns (address globals_) { return IPoolFactoryLike(IPoolLike(_pool).superFactory()).globals(); } - function _getPoolDelegate() internal view returns(address) { + function _getPoolDelegate() internal view returns(address poolDelegate_) { return IPoolLike(_pool).poolDelegate(); } - function _isLiquidationActive() internal view returns (bool) { return (_liquidator != address(0)) && (IERC20Like(IMapleLoanLike(_loan).collateralAsset()).balanceOf(_liquidator) > 0); + function _isLiquidationActive() internal view returns (bool isActive_) { } }