Illuminate contest - samruna'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: 82/88

Findings: 1

Award: $62.46

🌟 Selected for report: 0

🚀 Solo Findings: 0

  1. Use of custom ERROR

Description: Starting from Solidity v0.8.4, there is a convenient and gas-efficient way to explain to users why an operation failed through the use of custom errors. Until now, you could already use strings to give more information about failures (e.g., revert("Insufficient funds.");), but they are rather expensive, especially when it comes to deploy cost, and it is difficult to use dynamic information in them.

Code: https://github.com/code-423n4/2022-06-illuminate/blob/main/lender/Safe.sol#L134 https://github.com/code-423n4/2022-06-illuminate/blob/main/lender/Safe.sol#L41 https://github.com/code-423n4/2022-06-illuminate/blob/main/lender/Safe.sol#L71 https://github.com/code-423n4/2022-06-illuminate/blob/main/lender/Lender.sol#L691-693

Mitigation: Define customer ERROR() and replace require(a!=b, "error") with If (a != B) revert ERROR()

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