- Contract name:
- TaxOfficeV2
- Optimization enabled
- true
- Compiler version
- v0.6.12+commit.27d51765
- Optimization runs
- 25000
- EVM Version
- default
- Verified at
- 2022-01-16T17:20:46.934313Z
Contract source code
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } interface IUniswapV2Router { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } interface ITaxable { function setTaxTiersTwap(uint8 _index, uint256 _value) external returns (bool); function setTaxTiersRate(uint8 _index, uint256 _value) external returns (bool); function enableAutoCalculateTax() external returns (bool); function disableAutoCalculateTax() external returns (bool); function taxRate() external returns (uint256); function setTaxCollectorAddress(address _taxCollectorAddress) external returns (bool); function setTaxRate(uint256 _taxRate) external returns (bool); function setBurnThreshold(uint256 _burnThreshold) external returns (bool); function excludeAddress(address _address) external returns (bool); function isAddressExcluded(address _address) external returns (bool); function includeAddress(address _address) external returns (bool); function setGaurOracle(address _gaurOracle) external returns (bool); function setTaxOffice(address _taxOffice) external returns (bool); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() internal { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner returns (bool) { _transferOperator(newOperator_); return true; } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } contract TaxOfficeV2 is Operator { using SafeMath for uint256; address public gaur = address(0x046cb616d7a52173e4Da9efF1BFd590550aa3228); address public weth = address(0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23); address public uniRouter = address(0x145677FC4d9b8F19B5D56d1820c48e0443049a30); mapping(address => bool) public taxExclusionEnabled; function setTaxTiersTwap(uint8 _index, uint256 _value) external onlyOperator returns (bool) { return ITaxable(gaur).setTaxTiersTwap(_index, _value); } function setTaxTiersRate(uint8 _index, uint256 _value) external onlyOperator returns (bool) { return ITaxable(gaur).setTaxTiersRate(_index, _value); } function enableAutoCalculateTax() external onlyOperator returns (bool) { return ITaxable(gaur).enableAutoCalculateTax(); } function disableAutoCalculateTax() external onlyOperator returns (bool) { return ITaxable(gaur).disableAutoCalculateTax(); } function setTaxRate(uint256 _taxRate) external onlyOperator returns (bool) { return ITaxable(gaur).setTaxRate(_taxRate); } function setBurnThreshold(uint256 _burnThreshold) external onlyOperator returns (bool) { return ITaxable(gaur).setBurnThreshold(_burnThreshold); } function setTaxCollectorAddress(address _taxCollectorAddress) external onlyOperator returns (bool) { return ITaxable(gaur).setTaxCollectorAddress(_taxCollectorAddress); } function excludeAddressFromTax(address _address) external onlyOperator returns (bool) { return _excludeAddressFromTax(_address); } function _excludeAddressFromTax(address _address) private returns (bool) { if (!ITaxable(gaur).isAddressExcluded(_address)) { return ITaxable(gaur).excludeAddress(_address); } } function includeAddressInTax(address _address) external onlyOperator returns (bool) { return _includeAddressInTax(_address); } function _includeAddressInTax(address _address) private returns (bool) { if (ITaxable(gaur).isAddressExcluded(_address)) { return ITaxable(gaur).includeAddress(_address); } } function taxRate() external returns (uint256) { return ITaxable(gaur).taxRate(); } function addLiquidityTaxFree( address token, uint256 amtGaur, uint256 amtToken, uint256 amtGaurMin, uint256 amtTokenMin ) external returns ( uint256, uint256, uint256 ) { require(amtGaur != 0 && amtToken != 0, "amounts can't be 0"); _excludeAddressFromTax(msg.sender); IERC20(gaur).transferFrom(msg.sender, address(this), amtGaur); IERC20(token).transferFrom(msg.sender, address(this), amtToken); _approveTokenIfNeeded(gaur, uniRouter); _approveTokenIfNeeded(token, uniRouter); _includeAddressInTax(msg.sender); uint256 resultAmtGaur; uint256 resultAmtToken; uint256 liquidity; (resultAmtGaur, resultAmtToken, liquidity) = IUniswapV2Router(uniRouter).addLiquidity( gaur, token, amtGaur, amtToken, amtGaurMin, amtTokenMin, msg.sender, block.timestamp ); if (amtGaur.sub(resultAmtGaur) > 0) { IERC20(gaur).transfer(msg.sender, amtGaur.sub(resultAmtGaur)); } if (amtToken.sub(resultAmtToken) > 0) { IERC20(token).transfer(msg.sender, amtToken.sub(resultAmtToken)); } return (resultAmtGaur, resultAmtToken, liquidity); } function addLiquidityETHTaxFree( uint256 amtGaur, uint256 amtGaurMin, uint256 amtEthMin ) external payable returns ( uint256, uint256, uint256 ) { require(amtGaur != 0 && msg.value != 0, "amounts can't be 0"); _excludeAddressFromTax(msg.sender); IERC20(gaur).transferFrom(msg.sender, address(this), amtGaur); _approveTokenIfNeeded(gaur, uniRouter); _includeAddressInTax(msg.sender); uint256 resultAmtGaur; uint256 resultAmtEth; uint256 liquidity; (resultAmtGaur, resultAmtEth, liquidity) = IUniswapV2Router(uniRouter).addLiquidityETH{value: msg.value}( gaur, amtGaur, amtGaurMin, amtEthMin, msg.sender, block.timestamp ); if (amtGaur.sub(resultAmtGaur) > 0) { IERC20(gaur).transfer(msg.sender, amtGaur.sub(resultAmtGaur)); } return (resultAmtGaur, resultAmtEth, liquidity); } function setTaxableGaurOracle(address _gaurOracle) external onlyOperator returns (bool) { return ITaxable(gaur).setGaurOracle(_gaurOracle); } function transferTaxOffice(address _newTaxOffice) external onlyOperator returns (bool) { return ITaxable(gaur).setTaxOffice(_newTaxOffice); } function taxFreeTransferFrom( address _sender, address _recipient, uint256 _amt ) external { require(taxExclusionEnabled[msg.sender], "Address not approved for tax free transfers"); _excludeAddressFromTax(_sender); IERC20(gaur).transferFrom(_sender, _recipient, _amt); _includeAddressInTax(_sender); } function setTaxExclusionForAddress(address _address, bool _excluded) external onlyOperator returns (bool) { taxExclusionEnabled[_address] = _excluded; return true; } function _approveTokenIfNeeded(address _token, address _router) private { if (IERC20(_token).allowance(address(this), _router) == 0) { IERC20(_token).approve(_router, type(uint256).max); } } }
Contract ABI
[{"type":"event","name":"OperatorTransferred","inputs":[{"type":"address","name":"previousOperator","internalType":"address","indexed":true},{"type":"address","name":"newOperator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"addLiquidityETHTaxFree","inputs":[{"type":"uint256","name":"amtGaur","internalType":"uint256"},{"type":"uint256","name":"amtGaurMin","internalType":"uint256"},{"type":"uint256","name":"amtEthMin","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"addLiquidityTaxFree","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amtGaur","internalType":"uint256"},{"type":"uint256","name":"amtToken","internalType":"uint256"},{"type":"uint256","name":"amtGaurMin","internalType":"uint256"},{"type":"uint256","name":"amtTokenMin","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"disableAutoCalculateTax","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"enableAutoCalculateTax","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"excludeAddressFromTax","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"gaur","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"includeAddressInTax","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOperator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setBurnThreshold","inputs":[{"type":"uint256","name":"_burnThreshold","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxCollectorAddress","inputs":[{"type":"address","name":"_taxCollectorAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxExclusionForAddress","inputs":[{"type":"address","name":"_address","internalType":"address"},{"type":"bool","name":"_excluded","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxRate","inputs":[{"type":"uint256","name":"_taxRate","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxTiersRate","inputs":[{"type":"uint8","name":"_index","internalType":"uint8"},{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxTiersTwap","inputs":[{"type":"uint8","name":"_index","internalType":"uint8"},{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setTaxableGaurOracle","inputs":[{"type":"address","name":"_gaurOracle","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"taxExclusionEnabled","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"taxFreeTransferFrom","inputs":[{"type":"address","name":"_sender","internalType":"address"},{"type":"address","name":"_recipient","internalType":"address"},{"type":"uint256","name":"_amt","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"taxRate","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferOperator","inputs":[{"type":"address","name":"newOperator_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferTaxOffice","inputs":[{"type":"address","name":"_newTaxOffice","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"uniRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"weth","inputs":[]}]
Deployed ByteCode
0x6080604052600436106101a15760003560e01c80638da5cb5b116100e1578063d1d31a371161008a578063f1efacf911610064578063f1efacf9146105cd578063f2a6ecaa14610625578063f2fde38b14610665578063ff87fc7c146106a5576101a1565b8063d1d31a3714610528578063d3531e6d14610568578063e1d8752e1461057d576101a1565b8063b87c5a4a116100bb578063b87c5a4a1461048b578063be94f86b146104be578063c6d69a30146104fe576101a1565b80638da5cb5b146104375780639d6b5f211461044c578063a0e47bf614610476576101a1565b806365bbacd91161014e578063715018a611610128578063715018a61461036a57806373baccc014610381578063771a3a1d146103c85780637fcd79c7146103ef576101a1565b806365bbacd9146102e257806366206ce9146102f757806369356d471461032a576101a1565b80633fc8cef31161017f5780633fc8cef31461027a5780634456eda2146102b8578063570ca735146102cd576101a1565b806313762bdc146101a657806319db099d146101fa57806329605e771461023a575b600080fd5b3480156101b257600080fd5b506101e6600480360360208110156101c957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106ba565b604080519115158252519081900360200190f35b34801561020657600080fd5b506101e66004803603602081101561021d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106cf565b34801561024657600080fd5b506101e66004803603602081101561025d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610753565b34801561028657600080fd5b5061028f61080e565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156102c457600080fd5b506101e661082a565b3480156102d957600080fd5b5061028f61086a565b3480156102ee57600080fd5b506101e6610886565b34801561030357600080fd5b506101e66004803603604081101561031a57600080fd5b5060ff8135169060200135610994565b34801561033657600080fd5b506101e66004803603602081101561034d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ab7565b34801561037657600080fd5b5061037f610bd1565b005b6103aa6004803603606081101561039757600080fd5b5080359060208101359060400135610ce8565b60408051938452602084019290925282820152519081900360600190f35b3480156103d457600080fd5b506103dd610ff9565b60408051918252519081900360200190f35b3480156103fb57600080fd5b506101e66004803603604081101561041257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611065565b34801561044357600080fd5b5061028f611132565b34801561045857600080fd5b506101e66004803603602081101561046f57600080fd5b503561114e565b34801561048257600080fd5b5061028f611235565b34801561049757600080fd5b506101e6600480360360408110156104ae57600080fd5b5060ff8135169060200135611251565b3480156104ca57600080fd5b506101e6600480360360208110156104e157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611341565b34801561050a57600080fd5b506101e66004803603602081101561052157600080fd5b50356113bd565b34801561053457600080fd5b506101e66004803603602081101561054b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114a4565b34801561057457600080fd5b5061028f61158c565b34801561058957600080fd5b5061037f600480360360608110156105a057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356115a8565b3480156105d957600080fd5b506103aa600480360360a08110156105f057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602081013590604081013590606081013590608001356116da565b34801561063157600080fd5b506101e66004803603602081101561064857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b7f565b34801561067157600080fd5b5061037f6004803603602081101561068857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611c67565b3480156106b157600080fd5b506101e6611e08565b60056020526000908152604090205460ff1681565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314610742576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b61074b82611ee5565b90505b919050565b600061075d612036565b73ffffffffffffffffffffffffffffffffffffffff1661077b611132565b73ffffffffffffffffffffffffffffffffffffffff16146107fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6108068261203a565b506001919050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60015460009073ffffffffffffffffffffffffffffffffffffffff1661084e612036565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166365bbacd96040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561096357600080fd5b505af1158015610977573d6000803e3d6000fd5b505050506040513d602081101561098d57600080fd5b5051905090565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314610a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517f66206ce900000000000000000000000000000000000000000000000000000000815260ff8616600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff909216916366206ce9916044808201926020929091908290030181600087803b158015610a8457600080fd5b505af1158015610a98573d6000803e3d6000fd5b505050506040513d6020811015610aae57600080fd5b50519392505050565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314610b2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517f69356d4700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916369356d479160248083019260209291908290030181600087803b158015610b9f57600080fd5b505af1158015610bb3573d6000803e3d6000fd5b505050506040513d6020811015610bc957600080fd5b505192915050565b610bd9612036565b73ffffffffffffffffffffffffffffffffffffffff16610bf7611132565b73ffffffffffffffffffffffffffffffffffffffff1614610c7957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600080808515801590610cfa57503415155b610d6557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f616d6f756e74732063616e277420626520300000000000000000000000000000604482015290519081900360640190fd5b610d6e33612130565b50600254604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101899052905173ffffffffffffffffffffffffffffffffffffffff909216916323b872dd916064808201926020929091908290030181600087803b158015610def57600080fd5b505af1158015610e03573d6000803e3d6000fd5b505050506040513d6020811015610e1957600080fd5b5050600254600454610e449173ffffffffffffffffffffffffffffffffffffffff908116911661224d565b610e4d33611ee5565b5060048054600254604080517ff305d71900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831694810194909452602484018a905260448401899052606484018890523360848501524260a48501525160009384938493169163f305d71991349160c480830192606092919082900301818588803b158015610eee57600080fd5b505af1158015610f02573d6000803e3d6000fd5b50505050506040513d6060811015610f1957600080fd5b508051602082015160409092015190945090925090506000610f3b8a856123b2565b1115610fea5760025473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33610f6a8c876123b2565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610fbd57600080fd5b505af1158015610fd1573d6000803e3d6000fd5b505050506040513d6020811015610fe757600080fd5b50505b91989097509095509350505050565b600254604080517f771a3a1d000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163771a3a1d91600480830192602092919082900301818787803b15801561096357600080fd5b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff8216600090815260056020526040902080548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116179055600192915050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517f9d6b5f2100000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691639d6b5f21916024808201926020929091908290030181600087803b158015610b9f57600080fd5b60045473ffffffffffffffffffffffffffffffffffffffff1681565b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146112c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517fb87c5a4a00000000000000000000000000000000000000000000000000000000815260ff8616600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff9092169163b87c5a4a916044808201926020929091908290030181600087803b158015610a8457600080fd5b60015460009073ffffffffffffffffffffffffffffffffffffffff1633146113b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b61074b82612130565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314611430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517fc6d69a3000000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff9092169163c6d69a30916024808201926020929091908290030181600087803b158015610b9f57600080fd5b60015460009073ffffffffffffffffffffffffffffffffffffffff163314611517576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517f3f07d76a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291519190921691633f07d76a9160248083019260209291908290030181600087803b158015610b9f57600080fd5b60025473ffffffffffffffffffffffffffffffffffffffff1681565b3360009081526005602052604090205460ff16611610576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612450602b913960400191505060405180910390fd5b61161983612130565b50600254604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152858116602483015260448201859052915191909216916323b872dd9160648083019260209291908290030181600087803b15801561169e57600080fd5b505af11580156116b2573d6000803e3d6000fd5b505050506040513d60208110156116c857600080fd5b506116d4905083611ee5565b50505050565b6000808086158015906116ec57508515155b61175757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f616d6f756e74732063616e277420626520300000000000000000000000000000604482015290519081900360640190fd5b61176033612130565b50600254604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018a9052905173ffffffffffffffffffffffffffffffffffffffff909216916323b872dd916064808201926020929091908290030181600087803b1580156117e157600080fd5b505af11580156117f5573d6000803e3d6000fd5b505050506040513d602081101561180b57600080fd5b5050604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101889052905173ffffffffffffffffffffffffffffffffffffffff8a16916323b872dd9160648083019260209291908290030181600087803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b505050506040513d60208110156118b257600080fd5b50506002546004546118dd9173ffffffffffffffffffffffffffffffffffffffff908116911661224d565b60045461190190899073ffffffffffffffffffffffffffffffffffffffff1661224d565b61190a33611ee5565b5060048054600254604080517fe8e3370000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316948101949094528b82166024850152604484018b9052606484018a90526084840189905260a484018890523360c48501524260e48501525160009384938493169163e8e33700916101048082019260609290919082900301818787803b1580156119ba57600080fd5b505af11580156119ce573d6000803e3d6000fd5b505050506040513d60608110156119e457600080fd5b508051602082015160409092015190945090925090506000611a068b856123b2565b1115611ab55760025473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33611a358d876123b2565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611a8857600080fd5b505af1158015611a9c573d6000803e3d6000fd5b505050506040513d6020811015611ab257600080fd5b50505b6000611ac18a846123b2565b1115611b6e5773ffffffffffffffffffffffffffffffffffffffff8b1663a9059cbb33611aee8c866123b2565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611b4157600080fd5b505af1158015611b55573d6000803e3d6000fd5b505050506040513d6020811015611b6b57600080fd5b50505b919a90995090975095505050505050565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314611bf2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600254604080517f20eef21800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916320eef2189160248083019260209291908290030181600087803b158015610b9f57600080fd5b611c6f612036565b73ffffffffffffffffffffffffffffffffffffffff16611c8d611132565b73ffffffffffffffffffffffffffffffffffffffff1614611d0f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611d7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061242a6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015460009073ffffffffffffffffffffffffffffffffffffffff163314611e7b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124a86024913960400191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ff87fc7c6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561096357600080fd5b600254604080517febca1bd900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301529151600093929092169163ebca1bd99160248082019260209290919082900301818787803b158015611f5d57600080fd5b505af1158015611f71573d6000803e3d6000fd5b505050506040513d6020811015611f8757600080fd5b50511561074e57600254604080517f93995d4b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152915191909216916393995d4b9160248083019260209291908290030181600087803b15801561200357600080fd5b505af1158015612017573d6000803e3d6000fd5b505050506040513d602081101561202d57600080fd5b5051905061074e565b3390565b73ffffffffffffffffffffffffffffffffffffffff81166120a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d81526020018061247b602d913960400191505060405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff8216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600254604080517febca1bd900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301529151600093929092169163ebca1bd99160248082019260209290919082900301818787803b1580156121a857600080fd5b505af11580156121bc573d6000803e3d6000fd5b505050506040513d60208110156121d257600080fd5b505161074e57600254604080517f3758e6ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291519190921691633758e6ce9160248083019260209291908290030181600087803b15801561200357600080fd5b604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015291519184169163dd62ed3e91604480820192602092909190829003018186803b1580156122c357600080fd5b505afa1580156122d7573d6000803e3d6000fd5b505050506040513d60208110156122ed57600080fd5b50516123ae578173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561238457600080fd5b505af1158015612398573d6000803e3d6000fd5b505050506040513d60208110156116d457600080fd5b5050565b60008282111561242357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737341646472657373206e6f7420617070726f76656420666f72207461782066726565207472616e73666572736f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72a2646970667358221220ede33f90e4bdd91d919f837775d6772c11b4b0c338e030317f09183890d3102d64736f6c634300060c0033