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

chore: Remove unused getters #50

Merged
merged 1 commit into from
Dec 13, 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
12 changes: 0 additions & 12 deletions contracts/DebtLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied {
return _implementation();
}

function investorFee() external view override returns (uint256 investorFee_) {
return IMapleGlobalsLike(_getGlobals()).investorFee();
}

function liquidator() external view override returns (address liquidator_) {
return _liquidator;
}
Expand All @@ -279,10 +275,6 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied {
return _loan;
}

function mapleTreasury() external view override returns (address mapleTreasury_) {
return IMapleGlobalsLike(_getGlobals()).mapleTreasury();
}

function minRatio() external view override returns (uint256 minRatio_) {
return _minRatio;
}
Expand All @@ -303,10 +295,6 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied {
return _repossessed;
}

function treasuryFee() external view override returns (uint256 treasuryFee_) {
return IMapleGlobalsLike(_getGlobals()).treasuryFee();
}

/*******************************/
/*** Internal View Functions ***/
/*******************************/
Expand Down
15 changes: 0 additions & 15 deletions contracts/interfaces/IDebtLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ interface IDebtLocker is IMapleProxied {
*/
function claim() external returns (uint256[7] memory details_);

/**
* @dev Returns the annualized establishment fee that will go to the PoolDelegate.
*/
function investorFee() external view returns (uint256 investorFee_);

/**
* @dev Returns the address of the Maple Treasury.
*/
function mapleTreasury() external view returns (address mapleTreasury_);

/**
* @dev Allows the poolDelegate to pull some funds from liquidator contract
* @param token_ The token address of the funds.
Expand All @@ -80,11 +70,6 @@ interface IDebtLocker is IMapleProxied {
*/
function pullFundsFromLiquidator(address token_, address destination_, uint256 amount_) external;

/**
* @dev Returns the annualized establishment fee that will go to the Maple Treasury.
*/
function treasuryFee() external view returns (uint256 treasuryFee_);

/**
* @dev Returns the address of the Pool Delegate that has control of the DebtLocker.
*/
Expand Down