π§ͺLabERC20 β Laboratory $LAB Token for DecentraLabsCom
This smart contract implements a basic ERC20 token intended for controlled testing environments within the DecentraLabsCom ecosystem.
β¨ Key Features
β Built on OpenZeppelin: uses
ERC20,InitializableandERC20Upgradeable.ποΈ Configurable on deployment: token name, symbol, and lab address.
β οΈ Security restrictions (access control for mint/burn/lab updates) are not implemented yet. Use only in fully trusted environments.
π¦ Key Functions
This contract introduces new capabilities including (but not limited to):
/// @notice Initializes the token with given symbol
/// @dev This function can only be called once due to the initializer modifier
/// @param _symbol The symbol for the token
/// @custom:initializer Sets the token name as "$<symbol>" and mints 10M tokens to the deployer
function initialize(string memory _symbol) public initializer;/// @notice Mints new tokens and assigns them to the specified account
/// @dev Anyone can call this function as it is public
/// @param account The address that will receive the minted tokens
/// @param amount The amount of tokens to mint
function mint(address account, uint256 amount) public;β οΈ Access control is not implemented. This contract should only be used in trusted or test environments within DecentraLabsCom.
Last updated