Platform: Code4rena
Start Date: 08/05/2023
Pot Size: $90,500 USDC
Total HM: 17
Participants: 102
Period: 7 days
Judge: 0xean
Total Solo HM: 4
Id: 236
League: ETH
Rank: 80/102
Findings: 1
Award: $56.63
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: brgltd
Also found by: 0x73696d616f, 0xAce, 0xSmartContract, 0xWaitress, 0xkazim, 0xnev, Aymen0909, BGSecurity, Bauchibred, Cayo, ChrisTina, Franfran, IceBear, Infect3d, Kose, Lilyjjo, PNS, RaymondFam, Sathish9098, Team_Rocket, Udsen, YakuzaKiawe, YoungWolves, berlin-101, bin2chen, btk, codeslide, fatherOfBlocks, frazerch, kodyvim, koxuan, lfzkoala, lukris02, matrix_0wl, nadin, naman1778, sashik_eth, tnevler, volodya, wonjun, yjrwkk
56.6347 USDC - $56.63
Context:
Description:
In WhitePaperInterestRateModel.sol
, if the reserves are greater than cash + borrows
, the utilization rate could become negative
Recommendation:
Include a check like
require(reserves < cash + borrows)
Context:
Description:
In ShortFall.sol
the addresses convertibleBaseAsset_
and riskFund_
could be same.
Recommendation:
Add a check for this like
require(address(riskFund_) != convertibleBaseAsset_);
Context:
Description:
In ShortFall.sol
auction.highestBidBps could become equal to MAX_BPS if set to 10000.
This could neglect the if-else block
Recommendation:
Implement the if-else block in such a way that they could not become equal to each other.
#0 - c4-judge
2023-05-18T19:34:44Z
0xean marked the issue as grade-b