Platform: Code4rena
Start Date: 02/08/2022
Pot Size: $50,000 USDC
Total HM: 12
Participants: 69
Period: 5 days
Judge: gzeon
Total Solo HM: 5
Id: 150
League: ETH
Rank: 30/69
Findings: 2
Award: $118.83
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0xDjango, 0xNazgul, 0xc0ffEE, 8olidity, Bnke0x0, Chom, CodingNameKiki, Deivitto, Dravee, Funen, JC, JohnSmith, NoamYakov, ReyAdmirado, Rohan16, Rolezn, Sm4rty, SooYa, TomFrenchBlockchain, TomJ, Waze, __141345__, ajtra, ak1, aysha, bin2chen, bobirichman, brgltd, bulej93, c3phas, delfin454000, durianSausage, erictee, fatherOfBlocks, gogo, horsefacts, hyh, ladboy233, mics, natzuu, nxrblsrpr, oyc_109, rbserver, samruna, sikorico, simon135, tofunmi, wagmi
69.6581 USDC - $69.66
MIMO EmptyVault
MIMOFlashloan
MIMOAutoAction
MIMOAutoRebalance
IMIMOAutoRebalance
IMIMOFlashloan
IMIMO Leverage
IMIMOSwap
IMIMOManagedAction
IMIMOManagedRebalance
MIMOManagedAction
MIMOProxy
MIMOProxyFactory
MIMOProxyRegistry
🌟 Selected for report: Dravee
Also found by: 0x040, 0x1f8b, 0xDjango, 0xNazgul, 0xSmartContract, 0xc0ffEE, Aymen0909, Bnke0x0, Chom, CodingNameKiki, Deivitto, Fitraldys, Funen, IllIllI, JC, JohnSmith, NoamYakov, ReyAdmirado, Rolezn, TomJ, Waze, ajtra, bearonbike, bobirichman, brgltd, c3phas, durianSausage, fatherOfBlocks, gogo, ignacio, jag, joestakey, ladboy233, mics, oyc_109, rbserver, samruna, sikorico, simon135
49.1659 USDC - $49.17
MIMO EmptyVault
L96 - Instead of using a require, you can use an if with the custom error, this would generate less gas cost.
L82 - It is less expensive to use the amount variable in memory, instead of looping through amounts in position zero.
MIMO Leverage
L50 - The "variable > 0" operation can generate much less gas spending by doing: "variable != 0".
L86/87/133/134 - When a variable is used more than once, for example: amounts[0] and collateralBalanceAfter - flashloanRepayAmount, it is less expensive to create a variable in memory and use that variable.
L133/134 - As it is validated in line 132 that: collateralBalanceAfter > flashloanRepayAmount, then line 133 and 134 could be unchecked.
MIMORebalance
L84/85 - It is less expensive to use the variable in memory amount, instead of traversing amounts in position zero.
L129 - Instead of using a require, you can use an if with the custom error, this would generate less gas cost.
L135 - The "variable > 0" operation can generate much less gas spending by doing: "variable != 0".
MIMOSwap
L47/48 - Instead of using a require, you can use an if with the custom error, this would generate less gas cost.
L56 - The "variable > 0" operation can generate much less gas spending by doing: "variable != 0".
MIMOAutoAction
MIMOAutoRebalance
MIMO Managed Rebalance
MIMOProxy