Skip to content

feat: add bounty deadline refunds#9

Open
meteop-x wants to merge 1 commit into
issueflow-buidl:mainfrom
meteop-x:codex/bounty-deadline-support-3
Open

feat: add bounty deadline refunds#9
meteop-x wants to merge 1 commit into
issueflow-buidl:mainfrom
meteop-x:codex/bounty-deadline-support-3

Conversation

@meteop-x
Copy link
Copy Markdown

Closes #3.

What changed:

  • Store bounty token, amount, and deadline together in persistent bounty records.
  • Reject bounty creation when the amount is non-positive or the deadline has already passed.
  • Allow maintainer cancellation/refund only after the bounty deadline, then remove the stored bounty record.
  • Replace the placeholder contract test with Soroban token tests covering lock, late refund, past-deadline create rejection, and early-cancel rejection.

Validation:

  • cargo fmt --all -- --check
  • cargo test

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.

[CONTRACTS] Add bounty deadline support

1 participant