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.
Hmm I wonder even more how this works for Grandpa Sisko. How does his restaurant get allocated the food he needs to make his famous jambalaya? He makes it very clear the food he uses is NOT replicated.