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: 46/63
Findings: 1
Award: $20.07
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 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
20.0675 USDC - $20.07
require()
statements from least expensive to most expensive.cancel()
, saving around 2000 gas on average.require(cauldron.level(vaultId) >= 0, "Undercollateralized");
uint256
mapping(address => bool) public otherWitches;
mapping(bytes6 => mapping(bytes6 => bool)) public ignoredPairs;
_calcAuction()
needs a memory struct so it must be converted anyways.debt
before _calcAuction()
function call saves 42 gas on average.DataTypes.Debt memory debt = cauldron.debt(series.baseId, vault.ilkId);
limits_.sum += auction_.ink;
limits_.sum -= auction_.ink;
auction_.art -= artIn.u128();
msg.value
> 0 check.point()
setLine()
setLimit()
setAnotherWitch()
setIgnoredPair()
setAuctioneerReward()