Skip to content

feat: add marketplace bid increment anti-sniping#531

Closed
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/bid-increment-antisnipe-470
Closed

feat: add marketplace bid increment anti-sniping#531
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/bid-increment-antisnipe-470

Conversation

@dangelo352

Copy link
Copy Markdown

Summary

  • add admin-configurable absolute minimum bid increment and anti-sniping settings
  • enforce configured increments in place_bid with checked math and extend near-end bids up to a per-auction cap
  • document the auction policy and add focused increment/extension/cap/default validation coverage

Fixes #470

Tests

  • CARGO_TARGET_DIR=/tmp/commitlabs-bid-antisnipe-target cargo test -p commitment-marketplace auction -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-bid-antisnipe-target cargo test -p commitment-marketplace place_bid -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-bid-antisnipe-target cargo test -p commitment-marketplace update_auction_settings -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-bid-antisnipe-target cargo test -p commitment-marketplace anti_sniping -- --nocapture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add minimum-bid-increment and anti-sniping extension to marketplace::place_bid

2 participants