Skip to content

Auctions accept bids equal to the current highest bid — griefing possible #50

@anshulchikhale30-p

Description

@anshulchikhale30-p

Feature and its Use Cases

Problem

English auction and similar ascending-price auctions do not enforce a minimum bid increment.
A bidder can call bid() with the exact same amount as the current highest bid,
replacing the previous highest bidder for no economic benefit and causing unnecessary gas costs and refund churn.

Expected Behavior

A bid must exceed the current highest bid by at least a configurable minBidIncrement (e.g., 1% or a fixed amount).

Suggested Fix

Add a constructor parameter uint256 minBidIncrement and enforce:

require(msg.value >= highestBid + minBidIncrement, "Bid too low");

Impact

Medium — enables griefing, spam bidding, and DOS-like behavior on active auctions.

Additional Context

No response

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions