Putty contest - async's results

An order-book based american options market for NFTs and ERC20s.

General Information

Platform: Code4rena

Start Date: 29/06/2022

Pot Size: $50,000 USDC

Total HM: 20

Participants: 133

Period: 5 days

Judge: hickuphh3

Total Solo HM: 1

Id: 142

League: ETH

Putty

Findings Distribution

Researcher Performance

Rank: 89/133

Findings: 1

Award: $47.15

🌟 Selected for report: 0

🚀 Solo Findings: 0

Event CancelledOrder may emit multiple times

Contract: PuttyV2

Issue:

In function cancel(), the event CancelledOrder can be made to emit multiple times for the same order since there is no check to see if the order was previously cancelled.

Remediation:

In cancel(), consider adding a require statement to revert if the orderHash has previously been cancelled. Alternatively, burn the orderHash when an order is cancelled so the require statement in cancel():

require(msg.sender == order.maker, "Not your order");

will revert if a user tries to cancel more than once.

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