Problem in "liquidated modifier" in unit testing of stablecoins #152
Replies: 3 comments 3 replies
-
I haven't reached there yet, have you tried using phind AI or chatGPT to solve this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
A hand on this one @PatrickAlphaC |
Beta Was this translation helpful? Give feedback.
0 replies
-
This makes sense, as your health factor is still ok. How can you make their health factor not ok in order to liquidate? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
💻🔗 GitHub Repo: https://github.com/APrakash-913/FOUNDRY_StableCoins
Hi, I'm facing a problem understanding and writing the liquidated(in my repo => liquidator) modifier:
Modifier:
When I tried to set uint256 public constant USER_MINT_VALUE = 5 ether; then every thing reverts with an ERROR: error DSCEngine__HealthFactorOk
I also notice that when we use the getAccountInfo(user) function, we get 2 outputs: 1. dsc(in terms of ETH) 2. collateral(in terms of $). I think this also creates some problem.
So, please help me in this regard.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions