Skip to content

Commit

Permalink
rename collateral ratio decrease error
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jan 9, 2025
1 parent d1ca887 commit cd6bd7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/SmartVaultV4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ contract SmartVaultV4 is ISmartVault, IRedeemable {
error Undercollateralised();
error InvalidToken();
error DeadlineExpired();
error CollateralRatioDecrease();

constructor(bytes32 _native, address _manager, address _owner, address _usds, address _priceCalculator) {
NATIVE = _native;
Expand Down Expand Up @@ -393,7 +394,7 @@ contract SmartVaultV4 is ISmartVault, IRedeemable {
redeposit(_withdrawn, _collateralBalance, _collateralToken);
}
}
if (calculateCollateralPercentage() < _preCollateralisationPercentage) revert Overrepay();
if (calculateCollateralPercentage() < _preCollateralisationPercentage) revert CollateralRatioDecrease();
}

function addUniqueHypervisor(address _hypervisor) private {
Expand Down

0 comments on commit cd6bd7c

Please sign in to comment.