Illuminate contest - asutorufos's results

Your Sole Source For Fixed-Yields.

General Information

Platform: Code4rena

Start Date: 21/06/2022

Pot Size: $55,000 USDC

Total HM: 29

Participants: 88

Period: 5 days

Judge: gzeon

Total Solo HM: 7

Id: 134

League: ETH

Illuminate

Findings Distribution

Researcher Performance

Rank: 60/88

Findings: 2

Award: $126.40

🌟 Selected for report: 0

🚀 Solo Findings: 0

L-1 Use Two-Step Transfer Pattern for Access Controls Contracts implementing access control's, e.g. owner, should consider implementing a Two-Step Transfer pattern.

Otherwise it's possible that the role mistakenly transfers ownership to the wrong address, resulting in a loss of the role. Lender.sol L#129 Having checks, pending and accepting function for a two step process for admin.

L-2 Check that Contract Exists before using solmate's SafeTransferLib Functions in solmate's SafeTransferLib library do not check whether a token has code at all. This responsibility is is delegated to the caller. Lender.sol L#456 Lender.sol L#717

N-01 uint256 is assigned to zero by default, additional reassignment to zero is unnecessary Affected code: Lender.sol L#265

G-01 Cache Array Length Outside of Loop Caching the array length outside a loop saves reading it on each iteration, as long as the array's length is not changed during the loop. Lender.sol L#265

G-02 CUSTOM ERRORS Custom errors from Solidity 0.8.4 are cheaper than revert strings (cheaper deployment cost and runtime cost when the revert condition is met) while providing the same amount of information, as explained here

Lender.sol Lender.sol:710 Lender.sol:712

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter