Skip to content

Add a launch penalty warning on the sell confirmation modal for keys within the 7-day launch window #825

Description

@Chucks1093

Summary

Holders who try to sell within 7 days of a key's creation will incur a launch penalty fee. The sell confirmation modal should detect this and show a prominent warning with the penalty amount before the user signs the transaction.

Scope

  • Fetch the key's createdAtLedger and launchPenaltyBps from the key detail API
  • In the sell modal, check if the current ledger is within 7 days of createdAtLedger
  • If within the launch window show a yellow warning box: 'Early sell penalty applies — [X]% will be deducted from your proceeds'
  • Show the penalty amount deducted and the net proceeds after penalty in the fee breakdown
  • Proceed normally if the key is past the 7-day launch window

Acceptance Criteria

  • Warning shown when selling within the 7-day launch window
  • Penalty amount and net proceeds displayed correctly
  • Warning hidden when the key is past the launch window
  • Fee breakdown updated to include the launch penalty line item
  • User can still proceed with the sale after acknowledging the warning

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