Skip to content

[Contract] — Prediction Position Transfer #1337

Description

@Olowodarey

Labels: contract, enhancement, prediction

Problem

A prediction position is bound permanently to its creator's address and cannot be transferred, blocking any secondary-market activity or account migration.

Requirements

  1. Add an authorized transfer of a position from owner to a new address.
  2. Update ownership records and reject transfers of settled positions.
  3. Require owner authorization for the transfer.
  4. Emit a transfer event with from/to and position id.

Acceptance Criteria

  • Transfer moves full ownership and the new owner can later claim.
  • Transfers of settled/closed positions revert.
  • Only the current owner can authorize a transfer.
  • Tests cover transfer, unauthorized attempt, and post-settlement attempt.

Files

contracts/open-market/src/prediction.rs, contracts/open-market/src/storage_types.rs, contracts/open-market/src/errors.rs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions