{
    "Function": "deposit",
    "File": "src/Market.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IERC20",
        "IEscrow"
    ],
    "Internal Calls": [
        "getEscrow"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function deposit(address user, uint amount) public {\n        IEscrow escrow = getEscrow(user);\n        collateral.transferFrom(msg.sender, address(escrow), amount);\n        if(callOnDepositCallback) {\n            escrow.onDeposit();\n        }\n        emit Deposit(user, amount);\n    }"
}