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