BaseToken
BaseToken.sol is a contract that provides the base implementation for ERC20 tokens used within the Unlockd Protocol.
Key functions:
function __BaseToken_init(
address aclManager_,
address uTokenVault_,
uint8 decimals_,
string calldata name_,
string calldata symbol_
) internal onlyInitializingInitializes the BaseToken contract with the provided parameters.
Parameters:
aclManager_: The address of the ACL manager contract.
uTokenVault_: The address of the UToken vault contract.
decimals_: The number of decimals used by the token.
name_: The name of the token.
symbol_: The symbol of the token.
Sets the active state of the token.
Parameters:
active: A boolean indicating whether to set the token as active or not.
Sets the frozen state of the token.
Parameters:
frozen: A boolean indicating whether to set the token as frozen or not.
Returns the number of decimals used by the token.
Returns:
The number of decimals as a uint8.
Transfers tokens from the sender to the recipient.
Parameters:
sender: The address of the sender.
recipient: The address of the recipient.
amount: The amount of tokens to transfer.
Mints new tokens to the specified account.
Parameters:
account: The address of the account to mint tokens to.
amount: The amount of tokens to mint.
Burns tokens from the specified account.
Parameters:
account: The address of the account to burn tokens from.
amount: The amount of tokens to burn.
Last updated