Arithmetic underflow/overflow error #2604
Answered
by
EngrPips
Logicalboy101
asked this question in
Q&A
-
|
Hey, thanks for opening. This is the handler: This is redeemCollateral function This is _redeemCollateral function: |
Beta Was this translation helpful? Give feedback.
Answered by
EngrPips
Oct 3, 2024
Replies: 1 comment 7 replies
-
|
Hello @Logicalboy101, The error is coming from the ├─ [12296] DSCEngine::redeemCollateral(ERC20Mock: [0xA8452Ec99ce0C64f20701dB7dD3abDb607c00496], 16707201701510236625528490922 [1.67e28])
│ └─ ← [Revert] panic: arithmetic underflow or overflow (0x11)
└─ ← [Revert] panic: arithmetic underflow or overflow (0x11) |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
Logicalboy101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Logicalboy101, The error is coming from the
redeemCollateralfunction inside yourDSCEnginecontract, I will advice that you usecosole.loginside that function to see if there are values that are weird in the function process.