{
    "Function": "_spendAllowance",
    "File": "contracts/lybra/token/EUSD.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_approve",
        "require(bool,string)",
        "allowance"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }"
}