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