{
    "Function": "_withdrawRepayment",
    "File": "contracts/Pool/Pool.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol",
        "contracts/interfaces/IPool.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20PausableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"
    ],
    "High-Level Calls": [
        "SafeMathUpgradeable",
        "SavingsAccountUtil"
    ],
    "Internal Calls": [
        "calculateRepaymentWithdrawable"
    ],
    "Library Calls": [
        "add",
        "transferTokens"
    ],
    "Low-Level Calls": [],
    "Code": "function _withdrawRepayment(address _lender) internal {\n        uint256 _amountToWithdraw = calculateRepaymentWithdrawable(_lender);\n\n        if (_amountToWithdraw == 0) {\n            return;\n        }\n        lenders[_lender].effectiveInterestWithdrawn = lenders[_lender].effectiveInterestWithdrawn.add(_amountToWithdraw);\n\n        SavingsAccountUtil.transferTokens(poolConstants.borrowAsset, _amountToWithdraw, address(this), _lender);\n    }"
}