starting out all grain

Is it illegal to “buy” a keg with the intent to return it as a core deposit on another keg?

Example: let’s say the deposit is $50 and I find a keg for $20. Didn’t the other guy simply subsidize my deposit?