{
    "Function": "getInterestLeft",
    "File": "contracts/Pool/Repayments.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol",
        "contracts/interfaces/IRepayment.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "SafeMath",
        "SafeMath"
    ],
    "Internal Calls": [
        "getInterestPerSecond"
    ],
    "Library Calls": [
        "mul",
        "div",
        "sub"
    ],
    "Low-Level Calls": [],
    "Code": "function getInterestLeft(address _poolID) public view returns (uint256) {\n        uint256 _interestPerSecond = getInterestPerSecond((_poolID));\n        uint256 _loanDurationLeft = repayConstants[_poolID].loanDuration.sub(repayVariables[_poolID].loanDurationCovered);\n        uint256 _interestLeft = _interestPerSecond.mul(_loanDurationLeft).div(10**30); // multiplying exponents\n\n        return _interestLeft;\n    }"
}