{
    "Function": "deposit",
    "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",
        "IERC20",
        "IERC20",
        "SafeERC20"
    ],
    "Internal Calls": [
        "whenNotPaused",
        "revert InvalidConditions()",
        "getLp"
    ],
    "Library Calls": [
        "safeApprove"
    ],
    "Low-Level Calls": [],
    "Code": "function deposit() external override whenNotPaused {\n    ILendingPool lp = getLp();\n    // Checking the USDC balance of this contract\n    uint256 amount = want.balanceOf(address(this));\n    if (amount == 0) revert InvalidConditions();\n\n    // If allowance for this contract is too low, approve the max allowance\n    if (want.allowance(address(this), address(lp)) < amount) {\n      want.safeApprove(address(lp), type(uint256).max);\n    }\n\n    // Deposits the full balance of USDC held in this contract into Aave's lending pool\n    lp.deposit(address(want), amount, address(this), 0);\n  }"
}