{
    "Function": "submitAndDeposit",
    "File": "src/frxETHMinter.sol",
    "Parent Contracts": [
        "lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol",
        "src/OperatorRegistry.sol",
        "src/Utils/Owned.sol"
    ],
    "High-Level Calls": [
        "IsfrxETH",
        "frxETH"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "_submit"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function submitAndDeposit(address recipient) external payable returns (uint256 shares) {\n        // Give the frxETH to this contract after it is generated\n        _submit(address(this));\n\n        // Approve frxETH to sfrxETH for staking\n        frxETHToken.approve(address(sfrxETHToken), msg.value);\n\n        // Deposit the frxETH and give the generated sfrxETH to the final recipient\n        uint256 sfrxeth_recieved = sfrxETHToken.deposit(msg.value, recipient);\n        require(sfrxeth_recieved > 0, 'No sfrxETH was returned');\n\n        return sfrxeth_recieved;\n    }"
}