We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withdrawUser
CDSLib.sol
Lone Tartan Leopard
Medium
Incorrect calulation of returnAmount. https://github.com/sherlock-audit/2024-11-autonomint/blob/main/Blockchain/Blockchian/contracts/lib/CDSLib.sol#L664
returnAmount
returnAmountWithGains -= params.cdsDepositDetails.initialLiquidationAmount;
it should be -
returnAmountWithGains = params.returnAmount + params.cdsDepositDetails.initialLiquidationAmount;
No response
Incorrect transfer of amount to withdrawer.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lone Tartan Leopard
Medium
In
withdrawUser
function ofCDSLib.sol
, the return amount is calculated incorrect.Summary
Incorrect calulation of
returnAmount
.https://github.com/sherlock-audit/2024-11-autonomint/blob/main/Blockchain/Blockchian/contracts/lib/CDSLib.sol#L664
returnAmountWithGains -= params.cdsDepositDetails.initialLiquidationAmount;
it should be -
returnAmountWithGains = params.returnAmount + params.cdsDepositDetails.initialLiquidationAmount;
Root Cause
No response
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
Incorrect transfer of amount to withdrawer.
PoC
No response
Mitigation
No response
The text was updated successfully, but these errors were encountered: