Snorri's knowledge of Níðhöggr seems to come from two of the Eddic poems: Grímnismál and Völuspá.
In this context, the animal may be interpreted as Níðhöggr eating the roots of Yggdrasil.
Níðhöggr |