Implemented the initiate and vote converting token#1030
Open
Dev-Zully wants to merge 1 commit into
Open
Conversation
|
@Dev-Zully is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[FE-51] Build detokenization UI — initiate and vote on converting tokens back to single ownership
Overview
When a tokenized asset needs to return to single ownership (e.g., before sale), a detokenization proposal must be initiated and approved by majority token holders (50%+ threshold). This UI manages that process. Depends on BE-62 for the contract interaction.
Context
Add a "Detokenize" option to the tokenized asset detail page (admin only, under Manage Tokens)
The assetsup contract (contracts/assetsup/src/detokenization.rs) defines the proposal and voting process
Backend endpoint needed: POST /stellar/assets/:id/detokenize and GET /stellar/assets/:id/detokenize/status
Acceptance Criteria
"Initiate Detokenization" button (admin only) on tokenized asset management page
Clicking opens an explanation modal: "Detokenization requires 50% of token holders to approve. This cannot be undone."
After initiating, show the detokenization proposal status: vote count, threshold needed, days until voting closes
Token holders see a "Vote on Detokenization" card on the asset detail page with Approve/Reject buttons
Progress bar showing votes collected vs threshold required
Once threshold is reached: show "Detokenization approved. Processing on-chain..." and display the final transaction hash
closes #988
[FE-50] Build KYC verification UI — document submission and status tracking for investors
Before a user can acquire tokens in a tokenized asset, they must pass KYC (Know Your Customer) verification. This UI allows users to submit their KYC documents and track their verification status. Depends on BE-64 for the API.
Context
Add KYC section to the user settings page (frontend/app/(dashboard)/settings/page.tsx)
API endpoints (from BE-64): POST /stellar/kyc/submit, GET /stellar/kyc/status
KYC status: PENDING, VERIFIED, REJECTED
closes #987