Skip to content

Implement admin mint and burn functions #5

Description

@Nemenwa

Description:
Implement mint and burn functions callable only by the admin address. These allow the admin to issue additional tokens (e.g., when new investors join) or burn tokens (e.g., when an investor exits).
Requirements:

Both functions must call admin.require_auth()
mint increases total_supply and the recipient's balance
burn decreases total_supply and the holder's balance
Neither should allow total_supply to go below 1
Emit Minted and Burned events

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions