feat: Enhance AdminPanel with burn_admin, pending admin transfer & vesting management#316
Merged
zachyo merged 4 commits intoJun 30, 2026
Merged
Conversation
|
@jayteemoney Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Overview
Enhances the token AdminPanel with three previously-missing admin capabilities, plus the one read-only contract getter needed to support them.
Closes #300
Closes #301
Closes #302
#300 — Expose permanent admin burn (
burn_admin)The Clawback card is now a Remove Assets card with a Confiscate/Destroy toggle:
clawback(from, amount)(reversible; tokens move to admin balance).burn_admin(from, amount)(irreversible; reduces total supply, incrementstotal_burned).Copy clearly differentiates the two paths. Shared form, decimal-scaling, and preflight simulation are reused. No contract change required (
burn_adminalready existed).#301 —
pending_admin()getter + two-step transfer UIpub fn pending_admin(env: Env) -> Option<Address>(readsDataKey::PendingAdmin) with a unit test.<address>" banner; shows Accept Admin Role only when the connected wallet matches the pending address; gives the current admin a Cancel Pending Transfer action (overwrites the proposal viapropose_admin). State is re-read after every propose/accept/cancel.#302 —
extend_cliff/revokevesting UINew Manage Vesting card (vesting contract + recipient + optional schedule index):
extend_cliff(recipient, new_cliff_ledger, Some(index)), computingnew_cliff_ledgerfromgetLatestLedger()with the samedays * 17280math ascreate_schedule.revoke(recipient, Some(index))behind an explicit confirmation explaining that unvested tokens return to the admin.Option<u32>index is encoded correctly (Void =None, value =Some).Verification
cargo test -p soroban-token— all tests pass (incl. newpending_admintest)tsc --noEmit— cleaneslint— clean