bunker.finance contest - ilan's results

The easiest way to borrow against your NFTs.

General Information

Platform: Code4rena

Start Date: 03/05/2022

Pot Size: $50,000 USDC

Total HM: 4

Participants: 46

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 117

League: ETH

bunker.finance

Findings Distribution

Researcher Performance

Rank: 28/46

Findings: 2

Award: $141.14

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

93.5794 USDC - $93.58

Labels

bug
QA (Quality Assurance)

External Links

NC01 some functions declarations exceed recommended maximum line length

From the solidity style guide:

Keeping lines under the PEP 8 recommendation to a maximum of 79 (or 99) characters helps readers easily parse the code.

Example instance

Recommendation make the function declarations over multiple lines

function name( type param1, type param2, type param3 ) visibilty { body }

NC02 Many functions are missing documentation

Many functions and complex logic are missing informative documentation and comments.

For example CNft.safeBatchTransferFrom

Awards

47.5594 USDC - $47.56

Labels

bug
G (Gas Optimization)

External Links

G01 No need to explicitly initialize variables with default values

If a variable is not initialized it is automatically set to the default value (0 for uint, false for bool, address(0) for address...). Explicitly initializing it with its default value is an anti-pattern and wastes gas.

Example:

uint256 totalAmount = 0; -> uint256 totalAmount;

CNft.sol#L49-L49

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