Skip to content

Lesson 12: DSCEngine__BreaksHealthFactor (ERROR) #1893

Answered by EngrPips
alexxamsv asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alexxamsv, For most of those errors, your health_factor is not breaking. So, I will advise you to look into the health_factor , _get_account_information, get_account_collateral_value_in_USD and get_USD_value functions of your DSCEngine contract and check that the following Constant variables are set correctly.

uint256 private constant PRECISION_TO_RAISE_PRICE_FEED_VALUE
uint256 private constant PRECISION_TO_STABILIZE_PRICE_CALCULATION
uint256 private constant LIQUIDATION_THRESHOLD
uint256 private constant LIQUIDATION_THRESHOLD_DIVIDER
uint256 private constant MINIMUM_HEALTH_FACTOR
uint256 private constant LIQUIDATION_BONUS
uint256 private constant LIQUIDATION_BONUS_DIVIDER

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alexxamsv
Comment options

@EngrPips
Comment options

Answer selected by alexxamsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants