First Flight #21: KittyFi

First Flight #21
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Precision and Calculation Issues in Collateral Distribution

Summary

The purrgeBadPawsition function involves calculations for collateral distribution and rewards that may not handle precision correctly. This can lead to inaccuracies in the calculation of redemption percentages and reward amounts due to improper precision handling.

Vulnerability Details

The function calculates redeemPercent, toDistribute, and extraReward using potentially misaligned precision handling. Incorrect precision or rounding errors may affect the distribution of collateral and rewards.

Impact

  • Calculation Errors: Users may receive incorrect amounts of collateral or rewards due to improper precision handling.

  • Financial Discrepancies: Inaccurate calculations affect user rewards and collateral distributions, potentially leading to financial inconsistencies.

Tools Used

Manual Review

Recommendations

Review and adjust precision handling and arithmetic operations used in the calculations. Ensure that scaling factors and precision align with expected values to ensure accurate collateral distribution and reward calculations.

Updates

Lead Judging Commences

shikhar229169 Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.