Fraxlend (Frax Finance) contest - hakerbaya's results

Fraxlend: A permissionless lending platform and the final piece of the Frax Finance Defi Trinity.

General Information

Platform: Code4rena

Start Date: 12/08/2022

Pot Size: $50,000 USDC

Total HM: 15

Participants: 120

Period: 5 days

Judge: Justin Goro

Total Solo HM: 6

Id: 153

League: ETH

Frax Finance

Findings Distribution

Researcher Performance

Rank: 111/120

Findings: 1

Award: $21.17

🌟 Selected for report: 0

🚀 Solo Findings: 0

Issue with initialize function

require checks take more gas.

  1. Visit here https://github.com/code-423n4/2022-08-frax/blob/main/src/contracts/FraxlendPairCore.sol#L245

  2. Check an initialize function, to reduce these require checks, you must use openzeppelin initializer modifier logic to save gas.

  3. When you use modifier initializer on this function, you don't need extra owner, length checks.

Remove all three require checks inside this function and use modifier initializer from openzepillin.

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