In TNG, Picard says that the Federation has evolved past a need for money. Indeed, we never see any.
In DS9 though, Quark talks a lot about bar tabs and costs. Surely O'Brien and Bashir don't get free drinks, so how do they pay? I'd assume that any Ferengi worth his lobes won't accept anything that can be replicated, so do Federation officers get a stipend of tradeable "value" when interacting with cultures that still expect payment?
I think there's also a reference to Quark paying rent to Sisko for running the bar. Presumably that's denominated in latinum. I wonder where it goes? Maybe the secret "Garak black ops" fund.
Whats the difference between a transporter and a replicator? Once you've gotten the pattern of a tomato why can't you just keep copying it? Presumably a human is too complicated to do that regularly but why not a tomato?