Skip to content

Commit

Permalink
fix: Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed May 1, 2024
1 parent ef30a4a commit 6036ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/CollateralRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ contract CollateralRegistry is LiquityBase, ICollateralRegistry {
}
}

_updateBaseRateAndGetRedemptionRate(boldToken, totals.redeemedAmount, totals.boldSupplyAtStart);
_updateBaseRateAndGetRedemptionRate(totals.redeemedAmount, totals.boldSupplyAtStart);

// Burn the total Bold that is cancelled with debt
if (totals.redeemedAmount > 0) {
Expand All @@ -195,7 +195,7 @@ contract CollateralRegistry is LiquityBase, ICollateralRegistry {
}

// Updates the `baseRate` state with math from `_getUpdatedBaseRateFromRedemption`
function _updateBaseRateAndGetRedemptionRate(IBoldToken _boldToken, uint256 _boldAmount, uint256 _totalBoldSupplyAtStart)
function _updateBaseRateAndGetRedemptionRate(uint256 _boldAmount, uint256 _totalBoldSupplyAtStart)
internal
{
uint256 newBaseRate = _getUpdatedBaseRateFromRedemption(_boldAmount, _totalBoldSupplyAtStart);
Expand Down

0 comments on commit 6036ad7

Please sign in to comment.