Hmm... I'm not sure what this was then. I was playing advent and I had two or three hanger defenses out there and I had put the mine-laying planes on autocast. I was experimenting with the mines. Could that be it?
The other thing is that I did not have all of my planets fully upgraded. So if that takes money in chunks that could be it.
I was using the Advent progenitor to colonize worlds and then buying a lot of upgrades. Is it possible that some of those upgrades did not go through (get built) until later (because I clicked like 4-5 planet upgrades at once) and that when the world(s) were finally upgraded the discount price (from the Progenitor's colonize ability) was no longer good and the difference in upgrade cost was taken out of my bank?
Thanks for the replies everyone.