Platform: Code4rena
Start Date: 18/10/2023
Pot Size: $36,500 USDC
Total HM: 17
Participants: 77
Period: 7 days
Judge: MiloTruck
Total Solo HM: 5
Id: 297
League: ETH
Rank: 61/77
Findings: 1
Award: $26.07
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xmystery
Also found by: 0x6d6164616e, 0xWaitress, 0xsurena, Tendency, ZanyBonzy, cryptothemex, hals, lsaudit, ni8mare, niki, phoenixV110, spark, tnquanghuy0512, twcctop
26.0735 USDC - $26.07
the protocol will always revert if your collateral token is with more decimals than 18
e.g. lets say we use erc20 token - YAM-V2 in the calculation 18 - token.decimals will equal to -6 which will revert.
manual
you can make check if the decimals are greater than 18, and if they are the math can be : uint256 _wei = _wad /10 /(10 ** (token.decimals - 18));
Decimal
#0 - c4-pre-sort
2023-10-26T05:52:45Z
raymondfam marked the issue as sufficient quality report
#1 - c4-pre-sort
2023-10-26T05:52:54Z
raymondfam marked the issue as duplicate of #18
#2 - c4-pre-sort
2023-10-27T05:08:02Z
raymondfam marked the issue as duplicate of #323
#3 - c4-judge
2023-11-02T08:45:38Z
MiloTruck marked the issue as satisfactory