    function nuke(uint256 tokenId) public whenNotPaused nonReentrant {
      require(
        nftContract.isApprovedOrOwner(msg.sender, tokenId),
        'ERC721: caller is not token owner or approved'
      );
      require(
        nftContract.getApproved(tokenId) == address(this) ||
          nftContract.isApprovedForAll(msg.sender, address(this)),
        'Contract must be approved to transfer the NFT.'
      );
      require(canTokenBeNuked(tokenId), 'Token is not mature yet');

      uint256 finalNukeFactor = calculateNukeFactor(tokenId); // finalNukeFactor has 5 digits
166   uint256 potentialClaimAmount = (fund * finalNukeFactor) / MAX_DENOMINATOR; // Calculate the potential claim amount based on the finalNukeFactor
      uint256 maxAllowedClaimAmount = fund / maxAllowedClaimDivisor; // Define a maximum allowed claim amount as 50% of the current fund size

      // Directly assign the value to claimAmount based on the condition, removing the redeclaration
      uint256 claimAmount = finalNukeFactor > nukeFactorMaxParam
        ? maxAllowedClaimAmount
        : potentialClaimAmount;

174   fund -= claimAmount; // Deduct the claim amount from the fund

      nftContract.burn(tokenId); // Burn the token
      (bool success, ) = payable(msg.sender).call{ value: claimAmount }('');
      require(success, 'Failed to send Ether');

      emit Nuked(msg.sender, tokenId, claimAmount); // Emit the event with the actual claim amount
      emit FundBalanceUpdated(fund); // Update the fund balance
    }
