{
    "Function": "revokeClaim",
    "File": "contracts/VTVLVesting.sol",
    "Parent Contracts": [
        "contracts/AccessProtected.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "finalVestedAmount",
        "onlyAdmin",
        "hasActiveClaim",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function revokeClaim(address _recipient) external onlyAdmin hasActiveClaim(_recipient) {\n        // Fetch the claim\n        Claim storage _claim = claims[_recipient];\n        // Calculate what the claim should finally vest to\n        uint112 finalVestAmt = finalVestedAmount(_recipient);\n\n        // No point in revoking something that has been fully consumed\n        // so require that there be unconsumed amount\n        require( _claim.amountWithdrawn < finalVestAmt, \"NO_UNVESTED_AMOUNT\");\n\n        // The amount that is \"reclaimed\" is equal to the total allocation less what was already withdrawn\n        uint112 amountRemaining = finalVestAmt - _claim.amountWithdrawn;\n\n        // Deactivate the claim, and release the appropriate amount of tokens\n        _claim.isActive = false;    // This effectively reduces the liability by amountRemaining, so we can reduce the liability numTokensReservedForVesting by that much\n        numTokensReservedForVesting -= amountRemaining; // Reduces the allocation\n\n        // Tell everyone a claim has been revoked.\n        emit ClaimRevoked(_recipient, amountRemaining, uint40(block.timestamp), _claim);\n    }"
}