Kushite-ICP-HUb-East-Africa / Meme-coin-Token

0 stars 1 forks source link

Improve MemeToken Contract with Access Control and Error Handling #1

Open festus-sulumeti opened 4 months ago

festus-sulumeti commented 4 months ago

The current implementation of the MemeToken contract lacks proper access control and error handling. The following improvements are needed:

  1. Access Control: Implement access control to restrict minting, pausing, and unpausing of token transfers to the contract owner.
  2. Initialization of Balances: Ensure the initial total supply of tokens is assigned to the contract owner.
  3. Error Handling: Improve error handling for methods like burn.
  4. Use of await in async methods: Ensure await is correctly used in async methods.
festus-sulumeti commented 4 months ago

:No function to pause/unpause transfers. : Added pauseTransfers and unpauseTransfers functions.