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: 68/77
Findings: 1
Award: $12.14
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xVolcano
Also found by: 0x11singh99, 0xhacksmithh, JCK, dharma09, nailkhalimov, naman1778, unique
12.1398 USDC - $12.14
src/contracts/AccountEngine.sol:L#175:
Function could save around 324 gas if reading _params.debtAuctionBidSize
and _params.debtAuctionMintedTokens
moved to a variables and read from them.
Before: Avg | Med 14845 | 15740
After: Avg | Med 11722 | 15327
src/contracts/AccountEngine.sol:L#200:
Variables _params.surplusTransferPercentage
and _params.surplusAmount
could be moved to 2 uint256 variables and save around 284 gas for every transaction.
Before | After 21768 | 21484
src/contracts/AccountEngine.sol:L#115:
Use totalQueuedDebt += _debtBlock
instead of totalQueuedDebt = totalQueuedDebt + _debtBlock
. Will save gas.
Before: Avg | Med 31943 | 36645
After: 29116 | 25712
#0 - c4-pre-sort
2023-10-27T02:07:05Z
raymondfam marked the issue as low quality report
#1 - c4-judge
2023-11-03T17:35:39Z
MiloTruck marked the issue as grade-b