calculateHealthFactor takes in the totalDscMinted as the first argument and collateralValueInUsd as the second argument. The call to calculateHealthFactor had this order switched. The tests were still passing since both the arguments had equal values in our case. However, I thought it would be better if we pass the arguments to the appropriate parameters so I have fixed the order of the arguments. The tests still pass after the modification.
Please let me know in case I have made any misinterpretations. Thanks!
calculateHealthFactor
takes in thetotalDscMinted
as the first argument andcollateralValueInUsd
as the second argument. The call tocalculateHealthFactor
had this order switched. The tests were still passing since both the arguments had equal values in our case. However, I thought it would be better if we pass the arguments to the appropriate parameters so I have fixed the order of the arguments. The tests still pass after the modification.Please let me know in case I have made any misinterpretations. Thanks!