Topological modular forms and duality