Skip to content

Add a key deprecation notice and redeem button on the portfolio page for deprecated keys #871

Description

@Chucks1093

Summary

When a creator deprecates their key, holders need to know and be able to redeem their keys for the fixed buyback price. A deprecation notice on the portfolio holding row and a Redeem button that submits the redeem contract call would make this action discoverable.

Scope

  • Detect deprecated keys by checking status === 'Deprecated' on each holding row
  • Show an amber deprecation banner on the holding row: 'This key has been deprecated. Redeem your keys for [buybackPrice] XLM each.'
  • Add a Redeem All button that submits the redeem contract call with the full holding quantity
  • Show the total XLM to be received in the redeem confirmation modal
  • Remove the holding row after a successful redemption and show a success toast with the total received

Acceptance Criteria

  • Deprecation banner shown on deprecated holding rows
  • Buyback price per key and total XLM shown correctly
  • Redeem All submits the correct quantity to the contract
  • Success toast shows total XLM received after redemption
  • Holding row removed from portfolio list after redemption

ETA: 12 hours


Coordinate on Telegram

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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