{
    "Function": "setShareholders",
    "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",
        "_addShareholder",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setShareholders(address[] memory _accounts, uint96[] memory _weights) public onlyOwner {\n        delete shareholders;\n        uint256 accountsLength = _accounts.length;\n        require(accountsLength != 0 && accountsLength == _weights.length, \"FS: INPUTS_LENGTH_MUST_MATCH\");\n        totalWeights = royaltiesWeight;\n\n        for (uint256 i = 0; i < accountsLength; i++) {\n            _addShareholder(_accounts[i], _weights[i]);\n        }\n    }"
}