Skip to content

Add Swap Counterparty Reputation Tracking #408

@fejilaup-cloud

Description

@fejilaup-cloud

Description

There is no way to track buyer/seller reputation. Untrustworthy counterparties can repeatedly default without consequences.

Tasks

  • Add DataKey::UserReputation(Address) to store reputation score (0-100)
  • Implement get_reputation(env, address) -> u32
  • Update reputation on swap completion: +5 for successful, -10 for cancelled/disputed
  • Implement set_reputation_multiplier(env, min_reputation) — seller can require minimum buyer reputation
  • Add tests for reputation tracking and enforcement

Priority: Medium | Estimated Time: 2 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions