You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File: DebitaV3Aggregator.sol
461: // calculate ratio based on porcentage of the lend order462: uint ratio = (maxRatio * porcentageOfRatioPerLendOrder[i]) /10000;
462: uint ratio =266,660,000,000,000*10000/10000=266,660,000,000,000
The text was updated successfully, but these errors were encountered:
sherlock-admin3
changed the title
Creamy Opal Rabbit - wrong amount of collateral is returned to the borrower when claiming collateral
Audinarey - wrong amount of collateral is returned to the borrower when claiming collateral
Dec 12, 2024
Audinarey
High
wrong amount of collateral is returned to the borrower when claiming collateral
Summary
No response
Root Cause
Given
lendInfo.maxLTVs[collateralIndex])
= 80%priceCollateral_LendOrder
= 1e8pricePrinciple
= 3000e8principleDecimals
= 18porcentageOfRatioPerLendOrder[i]
= 100%offer.principleAmount
= 1e18Also,
Then,
Lastly,
The amount returned is
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
Wrong amount is returned to the lender
PoC
No response
Mitigation
No response
The text was updated successfully, but these errors were encountered: