Title: Online Mechanism and Virtual Currency Design for Distributed Systems