{
    "Function": "_moveDelegateVotes",
    "File": "contracts/lib/openzeppelin-contracts/contracts/governance/utils/Votes.sol",
    "Parent Contracts": [
        "contracts/lib/openzeppelin-contracts/contracts/interfaces/IERC5805.sol",
        "contracts/lib/openzeppelin-contracts/contracts/governance/utils/IVotes.sol",
        "contracts/lib/openzeppelin-contracts/contracts/interfaces/IERC6372.sol",
        "contracts/lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol",
        "contracts/lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol",
        "contracts/lib/openzeppelin-contracts/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "SafeCast",
        "SafeCast"
    ],
    "Internal Calls": [
        "_push",
        "_push"
    ],
    "Library Calls": [
        "toUint224",
        "toUint224"
    ],
    "Low-Level Calls": [],
    "Code": "function _moveDelegateVotes(address from, address to, uint256 amount) private {\n        if (from != to && amount > 0) {\n            if (from != address(0)) {\n                (uint256 oldValue, uint256 newValue) = _push(\n                    _delegateCheckpoints[from],\n                    _subtract,\n                    SafeCast.toUint224(amount)\n                );\n                emit DelegateVotesChanged(from, oldValue, newValue);\n            }\n            if (to != address(0)) {\n                (uint256 oldValue, uint256 newValue) = _push(\n                    _delegateCheckpoints[to],\n                    _add,\n                    SafeCast.toUint224(amount)\n                );\n                emit DelegateVotesChanged(to, oldValue, newValue);\n            }\n        }\n    }"
}