{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/FeesHandlerUpgradeable.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "abstract contract FeesHandlerUpgradeable is Initializable {\n    address public _feesFaucet;\n    uint256 public _txfeeRate;\n    uint256 public _gaslessBasefee;\n\n    uint256 constant FEE_RATIO = 10000;\n\n    event TxFeeRateUpdated(uint256 newTxFeeRate);\n    event GaslessBasefeeUpdated(uint256 newGaslessBasefee);\n    event FeeFaucetUpdated(address newFeeFaucet);\n    event FeesPaid(address indexed payer, uint256 fees);\n    event GaslessBasefeePaid(address indexed payer, address indexed paymaster, uint256 basefee);\n\n    error InvalidFeeRate(uint256 maxFeeRate, uint256 newFeeRate);\n    error NegativeBasefee();\n\n    function setFeeFaucet(address newFeeFaucet) public virtual {\n        _feesFaucet = newFeeFaucet;\n        emit FeeFaucetUpdated(newFeeFaucet);\n    }\n\n    function setTxFeeRate(uint256 newTxFeeRate) public virtual {\n        if (newTxFeeRate > FEE_RATIO || newTxFeeRate < 0) revert InvalidFeeRate(FEE_RATIO, newTxFeeRate);\n        _txfeeRate = newTxFeeRate;\n        emit TxFeeRateUpdated(newTxFeeRate);\n    }\n\n    function setGaslessBasefee(uint256 newGaslessBasefee) public virtual {\n        if (newGaslessBasefee < 0) revert NegativeBasefee();\n        _gaslessBasefee = newGaslessBasefee;\n        emit GaslessBasefeeUpdated(newGaslessBasefee);\n    }\n\n    function getTxFeeRate() public view returns (uint256) {\n        return _txfeeRate;\n    }\n\n    function getGaslessBasefee() public view returns (uint256) {\n        return _gaslessBasefee;\n    }\n\n    /**\n     * @dev Function to calculate fees\n     * @param txAmount amount of the transaction in NGEUR\n     */\n    function calculateTxFee(uint256 txAmount) public view returns (uint256) {\n        return (txAmount * _txfeeRate) / FEE_RATIO;\n    }\n\n    function _payTxFee(address from, uint256 txAmount) internal virtual;\n\n    function payGaslessBasefee(address payer, address paymaster) external virtual;\n}"
}