Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

crimeMoney not pegged to USDC

Summary

value deposited/withdrawn different from that minted/burnt because USDC has only 6 decimals and crimeMoney has 18

Vulnerability Details

crimeMoney is overcollateralized: the amount of usdc provided to keep that peg is much more than it should be (1018/106 = 10**12)

Impact

Not in sync with the documentation, as it wwas stated that crimeMoney is pegged to USDC but it is not; If any user deposits 1,000,000,000$ worth of USDC, they're getting 1000/(10**12) so 0.001$ worth of crimeMoney

Tools Used

Manual review

Recommendations

Fix the bug

  • the amount of crimeMoney minted during the deposit should be multiplied by 10**12

  • the amount of crimeMoney burnt during the deposit should be divided by 10**12

Updates

Lead Judging Commences

n0kto Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

USDC decimals not handled

Support

FAQs

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