{
    "Function": "_depositRepay",
    "File": "contracts/LendingPair.sol",
    "Parent Contracts": [
        "contracts/TransferHelper.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_repay",
        "_deposit"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _depositRepay(address _account, address _token, uint _amount) internal {\n\n    uint debt = debtOf[_token][_account];\n    uint repayAmount = debt > _amount ? _amount : debt;\n\n    if (repayAmount > 0) {\n      _repay(_account, _token, repayAmount);\n    }\n\n    uint depositAmount = _amount - repayAmount;\n\n    if (depositAmount > 0) {\n      _deposit(_account, _token, depositAmount);\n    }\n  }"
}