i want to add mint function to my token. but its given me error
Type is not callable
--> si.sol:1002:9:
here is the functions
function mint(address to, uint256 amount) public onlyOwner {
_tTotal(to, amount);
}
function _mint(address account, uint256 amount) internal virtual onlyOwner {
require(account != address(0), "BEP20: mint to the zero address");
_transfer(address(0), account, amount);
totalSupply += amount;
balanceOf[account] += amount;
emit Transfer(address(0), account, amount);
}
here is the total supply generator
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 1000000000000000 * 10**18;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;