ShareXToken
Inherits: ERC20Burnable, ERC20Permit, ERC20Capped
Title: ShareX Token Contract
Implements an ERC20 token with a cap, burnability features
Functions
constructor
Initializes the contract with a name, symbol, cap
constructor(address _recipient)
ERC20("ShareX Token", "SHARE")
ERC20Permit("ShareX Token")
ERC20Capped(10 ** 8 * 10 ** 18);
_update
Internal function to update state during transfers, respecting the cap
function _update(address from, address to, uint256 value)
internal
override(ERC20, ERC20Capped);
Parameters
| Name | Type | Description |
|---|---|---|
from | address | The address sending the tokens |
to | address | The address receiving the tokens |
value | uint256 | The amount of tokens being transferred |