How a Distributed ICO Smart Contract Works