{
    "Function": "withdrawAll",
    "File": "contracts/managers/AaveV2Strategy.sol",
    "Parent Contracts": [
        "contracts/managers/Manager.sol",
        "node_modules/@openzeppelin/contracts/security/Pausable.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/interfaces/managers/IStrategyManager.sol",
        "contracts/interfaces/managers/IManager.sol"
    ],
    "High-Level Calls": [
        "ILendingPool"
    ],
    "Internal Calls": [
        "getLp",
        "onlySherlockCore",
        "balanceOf"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function withdrawAll() external override onlySherlockCore returns (uint256) {\n    ILendingPool lp = getLp();\n    if (balanceOf() == 0) {\n      return 0;\n    }\n    // Withdraws all USDC from Aave's lending pool and sends it to the Sherlock core contract (msg.sender)\n    return lp.withdraw(address(want), type(uint256).max, msg.sender);\n  }"
}