{
    "Function": "approveAndCall",
    "File": "contracts/Synth.sol",
    "Parent Contracts": [
        "contracts/interfaces/iBEP20.sol"
    ],
    "High-Level Calls": [
        "iBEP677"
    ],
    "Internal Calls": [
        "_approve"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function approveAndCall(address recipient, uint amount, bytes calldata data) external returns (bool) {\n        _approve(msg.sender, recipient, type(uint256).max); // Give recipient max approval\n        iBEP677(recipient).onTokenApproval(address(this), amount, msg.sender, data); // Amount is passed thru to recipient\n        return true;\n    }"
}