#35014 [SC-Low] incorrect rounding in mintdebt function might allow minimal shares dilution
#35014 [SC-Low] Incorrect rounding in mintDebt function might allow minimal shares dilution
Description
Description
// Increase the debt of the debtor.
currentDebt[msg.sender] += assets;
// Check the maximum debt allowance of the debtor.
if (currentDebt[msg.sender] > allowedDebt[msg.sender]) {
revert InsufficientDebtAllowance(
msg.sender,
allowedDebt[msg.sender],
currentDebt[msg.sender]
);
}
// ... (rest of the function)Impact
Proof of Concept
Proof-of-Concept
Steps
Previous#34959 [SC-Low] `mintDebt` returns a wrong valueNext#34978 [SC-Low] protocol runs insolvent due to incorrect reliance on depositbalance which doesn t ma
Last updated
Was this helpful?