Skip to content

fix(sdk): auction-based bid collection & blockTime fix#749

Closed
seunlanlege wants to merge 2 commits intomainfrom
fix/improve-order-executor
Closed

fix(sdk): auction-based bid collection & blockTime fix#749
seunlanlege wants to merge 2 commits intomainfrom
fix/improve-order-executor

Conversation

@seunlanlege
Copy link
Copy Markdown
Member

Summary

  • Replace minBids with required auctionTimeMs — waits for the auction duration to collect bids before selecting the best one, rather than proceeding as soon as a minimum count is reached
  • Fix blockTime sleep calculation in deadlineStreamchain.blockTime from viem is already in milliseconds, so the * 1_000 multiplier was making the sleep 1000x too long
  • Patch bump SDK to 1.9.1

Test plan

  • Verify auction timer collects bids for the full duration before selecting
  • Verify deadline stream sleeps for correct duration per block
  • Confirm execute and resume require auctionTimeMs

Replace minBids with required auctionTimeMs to collect bids for a
fixed duration before selecting the best one. Fix blockTime sleep
calculation — viem's chain.blockTime is already in milliseconds,
removing the redundant * 1_000 multiplier.
@seunlanlege seunlanlege force-pushed the fix/improve-order-executor branch from c84f179 to 192fa84 Compare April 3, 2026 18:12
@seunlanlege seunlanlege closed this Apr 3, 2026
@seunlanlege seunlanlege reopened this Apr 3, 2026
@seunlanlege seunlanlege closed this Apr 3, 2026
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.

1 participant