bunker.finance contest - hansfriese'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: 45/46

Findings: 1

Award: $52.48

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

52.4836 USDC - $52.48

Labels

bug
G (Gas Optimization)

External Links

  1. use != 0 instead of > 0 Comptroller.sol#L302 Comptroller.sol#L353 Comptroller.sol#L631 Comptroller.sol#L1097 Comptroller.sol#L1100 Comptroller.sol#L1106 Comptroller.sol#L1120 Comptroller.sol#L1123 Comptroller.sol#L1129 Comptroller.sol#L1145 Comptroller.sol#L1169 Comptroller.sol#L1187 Comptroller.sol#L1255 Oracles\UniswapV2PriceOracle.sol#L67 Oracles\UniswapV2PriceOracle.sol#L91 Oracles\UniswapV2PriceOracle.sol#L115

  2. use ++i instead of i++, i+=1 Comptroller.sol#L119 Comptroller.sol#L591 Comptroller.sol#L928 Comptroller.sol#L949 (There are so many cases in other sources)

  3. Check require() before calculation if possible You can check this require() before #L89 CNft.sol#L93

  4. no need to initialize variables with default values CNft.sol#L49 CNft.sol#L97 CNft.sol#L119 Comptroller.sol#L119 Comptroller.sol#L591 Comptroller.sol#L928 Comptroller.sol#L949 Oracles\CNftPriceOracle.sol#L66 Oracles\UniswapV2PriceOracle.sol#L42

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