Illuminate contest - Funen'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: 57/88

Findings: 2

Award: $126.40

🌟 Selected for report: 0

🚀 Solo Findings: 0

  1. Comment was not the same with actual code.

The one that correct was @return and the code was return to lent. Occurances below It can be changed.

Tool Used

Manual Review

Occurances

1.) File : Lender.sol Lines.316

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.366

uint256 purchased;

2.) File : Lender.sol Lines.376

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.419

return returned;

3.) File : Lender.sol Lines.376

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.419

return returned;

4.) File : Lender.sol Lines.485

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.485

return returned;

5.) File : Lender.sol Lines.544

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.588

return returned;

6.) File : Lender.sol Lines.596

/// @return uint256 the amount of principal tokens lent out

File : Lender.sol Lines.631

return returned;
  1. File : Lender.sol Lines.
/// @return uint256 the amount of tokens sent to the yield pool

File : Lender.sol Lines.656

return returned;
  1. require() then revert()

1.) File : MarketPlace.sol Line.100

revert Exists('Market already exists');

2.) File : MarketPlace.sol Line.125

revert Exists('pool already exists');

3.) File : Lender.sol Line.83

revert Invalid('principal');
  1. TItle : Typo Comment

1.) File : MarketPlace.sol Line.201

avaialable to available

  1. File : MarketPlace.sol Line.82

zeroth to zero

3.) File : Lender.sol Line.83

unsighed to unsigned

4.) File : Lender.sol Line.560

APWINE to APWine

5.) File : Lender.sol Line.175

ERC interface to ERC5095

  1. Title : Unnecessary Comment

This can be remain to be changed or deleted to avoid unnecessary comment when deployment happen

1.) File : MarketPlace.sol Line.62

(which is added here)

2.) File : Lender.sol Line.175

//use safe transfer lib and ERC interface...

3.) File : Lender.sol Line.177

//use ERC5095 interface...

4.) File : Lender.sol Line.83

// uses yield token interface...

  1. Title : changed using ++i than i++ for cost less gas

1.) File : Lender.sol Lines.95-97

unchecked { i++; }

2.) File : Lender.sol Lines.119-121

unchecked { i++; }

3.) File : Lender.sol Lines.288-290

unchecked { i++; }
  1. Title : Set value as immutable for saving gas

1.) File : Redeemer.sol Line.27

address public swivelAddr;

2.) File : Redeemer.sol Line.27

address public apwineAddr;
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