Platform: Code4rena
Start Date: 05/01/2023
Pot Size: $90,500 USDC
Total HM: 55
Participants: 103
Period: 14 days
Judge: Picodes
Total Solo HM: 18
Id: 202
League: ETH
Rank: 58/103
Findings: 2
Award: $88.11
π Selected for report: 0
π Solo Findings: 0
π Selected for report: ladboy233
Also found by: 0x1f8b, 0xAgro, 0xSmartContract, 0xbepresent, 0xkato, Aymen0909, CodingNameKiki, Cryptor, Deekshith99, Deivitto, HE1M, IllIllI, Kaysoft, Koolex, PaludoX0, Qeew, RaymondFam, Rolezn, Sathish9098, Tointer, a12jmx, arialblack14, ast3ros, ayeslick, bin2chen, btk, caventa, ch0bu, chaduke, chrisdior4, delfin454000, descharre, evan, fatherOfBlocks, georgits, gz627, jasonxiale, joestakey, kaden, lukris02, nicobevi, nogo, oberon, oyc_109, pfapostol, rbserver, sakshamguruji, seeu, shark, simon135, slvDev, synackrst, tnevler, whilom, zaskoh
51.3151 USDC - $51.32
src/Vault.sol
src/ClearingHouse.sol
L17/25 - Two classes are imported (WETH and ConduitControllerInterface) that are never used, therefore they should be removed.
L72/199/216/223 - When a require is used, a message should be put in case it is reverted to inform the user. In these cases that does not happen.
src/CollateralToken.sol
L33/53/59 - Two classes are imported (VaultImplementation, SeaportInterface and OrderComponents) that are never used, therefore they should be removed.
L266/535/564 - When a require is used, a message should be put in case it is reverted to inform the user. In these cases that does not happen.
src/PublicVault.sol
L240 - IERC4626 is imported but never used, so it should be removed.
L241/259/508/672/680/687 - When a require is used, a message should be put in case it is reverted to inform the user. In these cases that does not happen.
src/AstariaRouter.sol
src/LienToken.sol
L18/34 - Two classes are imported (Auth and VaultImplementation) that are never used, therefore they should be removed.
L504/860 - When a require is used, a message should be put in case it is reverted to inform the user. In these cases that does not happen.
src/AstariaVaultBase.sol
lib/gpl/src/ERC20-Cloned.sol
src/VaultImplementation.sol
L25 - IPublicVault is imported but never used, so it should be removed.
L78/96/105/114/147/191/211 - When a require is used, a message should be put in case it is reverted to inform the user. In these cases that does not happen.
src/interfaces/IAstariaRouter.sol
L16/18/25 - Two classes are imported (IERC721, IERC4626 and IERC4626RouterBase) that are never used, therefore they should be removed.
L33/37 - Within the FileType enum there are two values ββthat are never used, MinInterestRate and StrategistFee, therefore they should be eliminated.
src/interfaces/ILienToken.sol
src/interfaces/ICollateralToken.sol
L27 - IERC1155 is imported but never used, so it should be removed.
L171 - An error is created that is never used, ListPriceTooLow, therefore it should be eliminated.
src/interfaces/IVaultImplementation.sol
#0 - c4-judge
2023-01-26T14:51:40Z
Picodes marked the issue as grade-b
π Selected for report: c3phas
Also found by: 0x1f8b, 0xAgro, 0xSmartContract, 0xackermann, 0xkato, Aymen0909, Bnke0x0, CloudX, IllIllI, PaludoX0, Rageur, Rahoz, RaymondFam, ReyAdmirado, Rolezn, SadBase, SaeedAlipoor01988, caventa, chaduke, chrisdior4, fatherOfBlocks, fs0c, kaden, nogo, pfapostol, shark, synackrst
36.79 USDC - $36.79
src/CollateralToken.sol
L138/139/342 - Two variables are created in memory that are never used, therefore it is not necessary to create the variables.
L558/602 - It is not necessary to create a modifier method if it is only used once, you could directly use the if and revert within the used method.
src/PublicVault.sol
src/LienToken.sol
src/VaultImplementation.sol
#0 - c4-judge
2023-01-25T23:55:41Z
Picodes marked the issue as grade-b