You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Cavity varnish is indicated under amalgam restorations to: and explain in detail?
A varnish is an organic copal or resin gum suspended in solutions of ether or chloroform.
Varnish is indicated to seal the dentinal tubules, act as barrier to protect the tooth from chemical irritants from cements and reduce microleakage around restorations.
Varnish is contraindicated under glass ionomers as they interfere the bonding of tooth to these cements.
With restorative resins varnish is not used because the varnish liners dissolve in the monomer of the resin and also they interfere in their polymerization process.
Liners are indicated to protect pulp from chemical irritants by sealing ability and stimulate formation of reparative dentin.
Commonly used liners are zinc oxide eugenol, calcium hydroxide, flowable composites and glass ionomers.

Nisha Garg, Amit Garg. Textbook of Operative Dentistry.  Edition 3. Page:222