Skip to content

[Admin] Add token delist and whitelist revocation controls #410

Description

@3m1n3nc3

Description

Admin can whitelist tokens for giveaways, but cannot revoke support for a token after launch. Add token delisting so compromised or unwanted tokens can be blocked.

User Story

As a Protocol Admin,
I want to revoke token support after deployment,
so that Geev can react to token exploits, deprecations, or policy changes.

Requirements and Context

  • Files / refs: contracts/geev-core/src/admin.rs, contracts/geev-core/src/types.rs, contracts/geev-core/src/test.rs
  • Add a token-removal or token-disable function for DataKey::AllowedToken
  • Ensure future giveaway creation rejects delisted tokens
  • Define whether existing funded giveaways or requests using that token remain supported

Suggested Implementation

1. Add remove_token(token) or set_token_status(token, allowed)
2. Reuse admin auth checks
3. Persist the new token support state
4. Add tests for creation before and after delisting

Acceptance Criteria

  • Admin can revoke token whitelist status
  • Delisted tokens cannot be used for new giveaway creation
  • The contract documents how previously funded records behave after delisting

Submission Guidelines

  • Branch: feat/token-delist
  • Depends on: None
  • PR: feat(admin): add token delist and whitelist revocation controls

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions