Skip to content

Add integration test for the contract correctly rejecting a buy when the global deadline ledger has passed #737

Description

@Chucks1093

Summary

The contract should reject any buy submitted after the globally configured deadline ledger to prevent stale orders from executing. An integration test should confirm buys are blocked at and after the deadline and accepted before it.

Scope

  • Set the global deadline to the current ledger sequence
  • Attempt a buy and assert it panics with deadline_passed
  • Set the deadline to current ledger + 10
  • Attempt a buy and assert it succeeds
  • Assert supply and state unchanged after the blocked buy

Acceptance Criteria

  • Buy panics with deadline_passed when current ledger >= deadline
  • Buy succeeds when current ledger < deadline
  • State unchanged after blocked buy

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions