Skip to content

Commit e8ca2fb

Browse files
authored
Comment on VaultManager (#174)
1 parent 09c4fdd commit e8ca2fb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

contracts/vaultManager/VaultManager.sol

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ contract VaultManager is VaultManagerPermit, IVaultManagerFunctions {
670670
// Makes sure not to leave a dusty amount in the vault by either not liquidating too much
671671
// or everything
672672
if (
673-
(liqOpp.thresholdRepayAmount != 0 && amounts[i] > liqOpp.thresholdRepayAmount) ||
673+
(liqOpp.thresholdRepayAmount != 0 && amounts[i] >= liqOpp.thresholdRepayAmount) ||
674674
amounts[i] > liqOpp.maxStablecoinAmountToRepay
675675
) amounts[i] = liqOpp.maxStablecoinAmountToRepay;
676676

@@ -895,10 +895,12 @@ contract VaultManager is VaultManagerPermit, IVaultManagerFunctions {
895895
}
896896

897897
/// @notice Sets the dust variables
898-
/// @dev These variables are not taken into account in all circumstances as the actual dust variables
899-
function setDusts(uint256 newDust, uint256 newDustCollateral) external onlyGovernor {
900-
dust = newDust;
901-
_dustCollateral = newDustCollateral;
898+
/// @param _dust New minimum debt allowed
899+
/// @param dustCollateral_ New minimum collateral allowed in a vault after a liquidation
900+
/// @dev dustCollateral_ is in stable value
901+
function setDusts(uint256 _dust, uint256 dustCollateral_) external onlyGovernor {
902+
dust = _dust;
903+
_dustCollateral = dustCollateral_;
902904
}
903905

904906
/// @inheritdoc IVaultManagerFunctions

0 commit comments

Comments
 (0)