{
    "Function": "updateShareholder",
    "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": [],
    "Internal Calls": [
        "onlyOwner",
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function updateShareholder(uint256 _accountIndex, uint96 _weight) external onlyOwner {\n        require(_weight != 0, \"FS: INVALID_WEIGHT\");\n        require(_accountIndex < shareholders.length, \"FS: INVALID_ACCOUNT_INDEX\");\n        Shareholder storage _shareholder = shareholders[_accountIndex];\n        totalWeights = totalWeights + _weight - _shareholder.weight;\n        require(totalWeights != 0, \"FS: TOTAL_WEIGHTS_ZERO\");\n        _shareholder.weight = _weight;\n        emit ShareholderUpdated(_shareholder.account, _weight);\n    }"
}