Question: what are nanites used for?
Answer: Nanites are a Hardmode crafting material used solely for crafting the Flask of Nanites and Nano Bullets, whose purpose is to inflict the Confused debuff with Ranged or Melee Weapons. Nanites are purchased from the Cyborg for 15 each.