{
    "Function": "sendTransfer",
    "File": "contracts/wallet/QuickAccManager.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "SignatureValidator",
        "SignatureValidator",
        "Identity",
        "Identity"
    ],
    "Internal Calls": [
        "abi.encodePacked()",
        "require(bool,string)",
        "abi.encodeWithSelector()",
        "keccak256(bytes)",
        "require(bool,string)",
        "keccak256(bytes)",
        "abi.encodeWithSelector()",
        "keccak256(bytes)",
        "abi.encode()",
        "require(bool,string)",
        "abi.encode()"
    ],
    "Library Calls": [
        "recoverAddr",
        "recoverAddr"
    ],
    "Low-Level Calls": [],
    "Code": "function sendTransfer(Identity identity, QuickAccount calldata acc, bytes calldata sigOne, bytes calldata sigTwo, Transfer calldata t) external {\n\t\trequire(identity.privileges(address(this)) == keccak256(abi.encode(acc)), 'WRONG_ACC_OR_NO_PRIV');\n\n\t\tbytes32 hash = keccak256(abi.encodePacked(\n\t\t\t'\\x19\\x01',\n\t\t\tDOMAIN_SEPARATOR,\n\t\t\tkeccak256(abi.encode(TRANSFER_TYPEHASH, t.token, t.to, t.amount, t.fee, nonces[address(identity)]++))\n\t\t));\n\t\trequire(acc.one == SignatureValidator.recoverAddr(hash, sigOne), 'SIG_ONE');\n\t\trequire(acc.two == SignatureValidator.recoverAddr(hash, sigTwo), 'SIG_TWO');\n\t\tIdentity.Transaction[] memory txns = new Identity.Transaction[](2);\n\t\ttxns[0].to = t.token;\n\t\ttxns[0].data = abi.encodeWithSelector(IERC20.transfer.selector, t.to, t.amount);\n\t\ttxns[1].to = t.token;\n\t\ttxns[1].data = abi.encodeWithSelector(IERC20.transfer.selector, msg.sender, t.fee);\n\t\tidentity.executeBySender(txns);\n\t}"
}