{
    "Function": "getAmountDue",
    "File": "contracts/FeeSplitter.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "IERC20"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function getAmountDue(address _account, IERC20 _token) public view returns (uint256) {\n        TokenRecords storage _tokenRecords = tokenRecords[address(_token)];\n        uint256 _totalShares = _tokenRecords.totalShares;\n        if (_totalShares == 0) return 0;\n\n        uint256 totalReceived = _tokenRecords.totalReleased + _token.balanceOf(address(this));\n        return (totalReceived * _tokenRecords.shares[_account]) / _totalShares - _tokenRecords.released[_account];\n    }"
}