Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kree-dotcom committed Dec 15, 2022
2 parents 627212d + 7b113ea commit 67b2f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Vault_Velo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ contract Vault_Velo is RoleControl(VAULT_VELO_TIME_DELAY), Pausable {
}
uint256 outstandingisoUSD = isoUSDdebt - _USDToVault;
uint256 colInUSD = _calculateProposedReturnedCapital(_collateralAddress, _loanNFTs, _partialPercentage);
if((outstandingisoUSD > 0) && (_colInUSD > 0)){ //check for leftover debt
if((outstandingisoUSD > 0) && (colInUSD > 0)){ //check for leftover debt
uint256 collateralLeft = totalCollateralValue(_collateralAddress, msg.sender) - colInUSD;
uint256 borrowMargin = (outstandingisoUSD * minOpeningMargin) / LOAN_SCALE;
require(collateralLeft >= borrowMargin , "Remaining debt fails to meet minimum margin!");
Expand Down

0 comments on commit 67b2f98

Please sign in to comment.