-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathITax.sol
32 lines (30 loc) · 872 Bytes
/
ITax.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
interface ITax {
/**
* @dev Returns the value tax in percentage
*
* Default is "0"
*/
function valueTax() external view returns(uint256);
/**
* @dev Returns the tax address
*
* Default is "address(0)"
*/
function taxAddress() external view returns(address);
/**
* @dev Configure tax value for all {transfer} call send percentage to {taxAddress}
*
* This value will be used to calculate the percentage
*/
function setValueTax(uint8 value) external returns (bool);
/**
* @dev Configure address to receive tax amount
*/
function setTaxAddress(address tax) external returns (bool);
/**
* @dev Configure address for "zero address" to burn tax
*/
function setTaxAddress() external returns (bool);
}