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: 43/69
Findings: 2
Award: $106.78
🌟 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
67.5073 USDC - $67.51
executeOperation on all file that require flash loan is a crucial function but doesn't emit any events. It is hard to keep track of the transactions if events aren't emitted.
depositAndBorrow using collateralBalanceBefore = 0 may cause some problem
uint256 collateralBalanceBefore = token.balanceOf(address(this)); token.safeIncreaseAllowance(address(core), collateralBalanceBefore); core.depositAndBorrow(address(token), collateralBalanceBefore, swapAmount);
🌟 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
39.2722 USDC - $39.27
unchecked { if (collateralBalanceAfter > flashloanRepayAmount) { token.safeIncreaseAllowance(address(core), collateralBalanceAfter - flashloanRepayAmount); core.deposit(address(token), collateralBalanceAfter - flashloanRepayAmount); } }
collateralBalanceAfter > flashloanRepayAmount is already checked. No underflow occur on collateralBalanceAfter - flashloanRepayAmount