"You may sell the thing that's about to become illegal for you to possess to the government for a price set by the government" stretches the definition of voluntary.
Classes of firearms were made illegal. Do you mean the newly illegal classes were grandfathered and those owned before the ban could be legally kept by their owners?