Forgotten Runes Warrior Guild contest - 0x52'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: 78/93

Findings: 1

Award: $30.28

🌟 Selected for report: 0

🚀 Solo Findings: 0

https://github.com/code-423n4/2022-05-runes/blob/060b4f82b79c8308fe65674a39a07c44fa586cd3/contracts/ForgottenRunesWarriorsMinter.sol#L579

setFinalPrice() should just set final price to lowest price to avoid any mistakes. It is only triggered DA doesn't sell out which means setFinalPrice should always be set to lowest anyways

https://github.com/code-423n4/2022-05-runes/blob/060b4f82b79c8308fe65674a39a07c44fa586cd3/contracts/ForgottenRunesWarriorsMinter.sol#L550-L572

functions adjusting DA price parameters should either be locked after start of auction or ensure that the current price after change is either less than or equal to the current price before the change. If the current price ever increases as a result and the final price ends up being higher than the price paid by even one user then the issueRefunds function breaks due to an negative number for that user when calling refundOwed.

https://github.com/code-423n4/2022-05-runes/blob/060b4f82b79c8308fe65674a39a07c44fa586cd3/contracts/ForgottenRunesWarriorsMinter.sol#L292-L294

assuming correctly set DA parameters check is redundant and can never be triggered because of check in L279-281

https://github.com/code-423n4/2022-05-runes/blob/060b4f82b79c8308fe65674a39a07c44fa586cd3/contracts/ForgottenRunesWarriorsMinter.sol#L87

incorrect variable description, says "Tracks total count of NFTs claimed by a given address" but this is not true. It is simply a bool that tracks whether the address has claimed yet. Should be "Tracks if a given address minted in the claimlist"

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