Yeah, something like "I scratch your back, if you scratch mine".This.I had always assumed that "no money" did not preclude having (electronic or virtual) currency. Within the Federation, currency would not be a commodity in itself, but that individual would still be credited for their labors and contributions. Within larger governments (first, United Earth, second, UFP), currency could exist as a measure of exchanges on an abstract level, as along as all the members agree to standards for earnings and exchanges. It would only be a problem when UFP citizens made contracts with those from other governments. The only time money was used was on DS9, and even then it seemed that Starfleet personel were not eager to conduct business in "latinum," but preferred to exchange materials.
There has to be some measure of exchange.
They had some sort of currency in TOS, despite constantly saying they don't. Otherwise, there would be no market for Tribbles and no glasses to be bought as presents.
I always assumed there was no currency within Starfleet, not within Federation as a whole. Or if there isn't then UFP is a communist organization. After all Leningrad is still called like that.