I want to add the ability to my own token, "taxable," in a way that the "tax" can be variable.
Could you please assist me?
And one more question
How can tax be changed later? Where can we change the tax rate?
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts@4.9.3/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts@4.9.3/token/ERC20/extensions/ERC20Burnable.sol";
/// @custom:security-contact info@test.com
contract Test is ERC20, ERC20Burnable {
constructor() ERC20("Test", "TST") {
_mint(msg.sender, 1000000000 * 10 ** 10);
}
}