Flying
{3}{R}: Destroy target artifact. Hoard-Smelter Dragon gets +X/+0 until end of turn, where X is that artifact's mana value.
If the activated ability resolves but the targeted artifact isn't destroyed (perhaps because it has indestructible or it regenerates), Hoard-Smelter Dragon will still get the bonus.
If the mana cost of a permanent includes {X}, that X is considered to be 0.
If the targeted artifact is an illegal target by the time the activated ability resolves, the ability doesn't resolve. Hoard-Smelter Dragon won't get the bonus.