Forgotten Runes Warrior Guild contest - 0xf15ers's results

16,000 Warrior NFTs sold in a phased Dutch Auction.

General Information

Platform: Code4rena

Start Date: 03/05/2022

Pot Size: $30,000 USDC

Total HM: 6

Participants: 93

Period: 3 days

Judge: gzeon

Id: 118

League: ETH

Forgotten Runes

Findings Distribution

Researcher Performance

Rank: 66/93

Findings: 2

Award: $45.77

🌟 Selected for report: 0

🚀 Solo Findings: 0

1. Unhanded return value on tranfser()

2. No Index bounds checks before iterating on array daMinters of issueRefunds()

1. Checking zero address on msg.sender may-not be required

2. ++i is cheaper than i++ in loops

3. ++numClaimed and ++numSold is more gas efficient than numClaimed+=1 and numSold+=1

4. Calculations in refundOwed() can be simplified for more gas efficiency.

//before | ForgottenRunesWarriorsMinter · selfRefund · - · - · 62257 · 2 · - │ //After | ForgottenRunesWarriorsMinter · selfRefund · - · - · 62227 · 2 · - │
  • same optimisation can be applied to currentDaPrice() calculations too.
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