Platform: Code4rena
Start Date: 14/07/2022
Pot Size: $25,000 USDC
Total HM: 2
Participants: 63
Period: 3 days
Judge: PierrickGT
Total Solo HM: 1
Id: 147
League: ETH
Rank: 8/63
Findings: 2
Award: $132.78
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: hickuphh3
Also found by: 0x29A, 0x52, 0xNazgul, Chom, Deivitto, ElKu, Funen, IllIllI, Meera, ReyAdmirado, SooYa, TomJ, Trumpero, Waze, __141345__, ak1, asutorufos, c3phas, cRat1st0s, csanuragjain, delfin454000, exd0tpy, fatherOfBlocks, hake, hansfriese, horsefacts, hyh, karanctf, kenzo, kyteg, ladboy233, pashov, peritoflores, rajatbeladiya, rbserver, reassor, rokinot, simon135, wastewa
115.9068 USDC - $115.91
0.01e18
in lines 63, 105, 108 who reference to 1%1e18
in lines 102, 103, 162, 163, 587, 591 who reference to 100%10
in lines 233, 438 who reference the baseparam
parameter of point functionAs the param must be "ladle"
always, remove this one
/// @dev Point to a different ladle /// @param value Address of new ladle function point(address value) external auth { ladle = ILadle(value); emit Point(param, value); }
address(0)
when assigning values to address state variablesConsider add a require(value != address(0), "The value should no be the zero address");
point
function could be broke the payBase
and _payInk
functionssetLine
and setLimit
functions don't check the parametersThe parameters ilkId
, baseId
and setIgnoredPair
is not checked, the ids maybe don't exist
#0 - alcueca
2022-07-22T14:09:16Z
None useful. Could be excused for not knowing point
follows one of our standards. Certain magic numbers are very recognizable.
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0x29A, 0xKitsune, 0xNazgul, Aymen0909, Chom, Deivitto, ElKu, JC, JohnSmith, Kaiziron, Limbooo, MadWookie, Meera, ReyAdmirado, Rohan16, Sm4rty, SooYa, TomJ, Trumpero, Waze, __141345__, ajtra, ak1, antonttc, bulej93, c3phas, cRat1st0s, csanuragjain, defsec, durianSausage, fatherOfBlocks, gogo, hake, hickuphh3, ignacio, joestakey, karanctf, kyteg, m_Rassska, pashov, rajatbeladiya, rbserver, robee, rokinot, samruna, sashik_eth, simon135, tofunmi
16.8729 USDC - $16.87
storage
type as much as possibleFrom:
L197: DataTypes.Limits memory limits_ = limits[vault.ilkId][ L299: DataTypes.Auction memory auction_ = auctions[vaultId]; L357: DataTypes.Auction memory auction_ = auctions[vaultId]; L419: DataTypes.Limits memory limits_ = limits[auction_.ilkId][ L569: DataTypes.Line memory line_ = lines[auction_.ilkId][
To:
L197: DataTypes.Limits storage limits_ = limits[vault.ilkId][ L299: DataTypes.Auction storage auction_ = auctions[vaultId]; L357: DataTypes.Auction storage auction_ = auctions[vaultId]; L419: DataTypes.Limits storage limits_ = limits[auction_.ilkId][ L569: DataTypes.Line storage line_ = lines[auction_.ilkId][