Skip to content

Delay Creator Deposit Release Until Finality #115

@hman38705

Description

@hman38705

issues : 7

Great issue: Delay Creator Deposit Release Until Finality

Description
Creation deposits are released immediately upon any resolution, regardless of whether the resolution was contested. There is zero economic penalty for bad actors who intentionally create fraudulent markets, as their deposit is returned even if the market is successfully disputed.

Requirements and context

  • Only release deposits after a "Dispute Window" has closed without a successful challenge.
  • Implement a claim_creation_deposit function for creators after finality.

Suggested execution

  • Fork the repo and create a branch: git checkout -b fix/issue-7-deposit-lock
  • Update the market resolution lifecycle.

Implementation changes

  • Modify markets.rs (around line 211) to remove immediate payout.
  • Implement a new timelocked withdrawal path for deposits.

Test and commit

  • Verify deposits remain locked during a multi-day dispute window.

Example commit message
fix: lock creator deposits until resolution finality

Guidelines

  • Economic security for the market ecosystem.
  • Timeframe: 72 hours.

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