Skip to content

Commit

Permalink
Updated Design choices
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Mar 30, 2017
1 parent f98eca8 commit d334c2d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/source/designchoices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ Design choices

.. contents:: :local:

Introduction
============

In this chapter we explain some design choices made in the smart contracts.

Timestamp vs. block number
^^^^^^^^^^^^^^^^^^^^^^^^^^
==========================

The code uses block timestamps instead of block numbers for start and events. We work on the assumption that crowdsale periods are not so short or time sensitive there would be need for block number based timing. Furthermore if the network miners start to skew block timestamps we might have a larger problem with dishonest miners.

Crowdsale strategies and compound design pattern
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
================================================

Instead of cramming all the logic into a single contract through mixins and inheritance, we assemble our crowdsale from multiple components. Benefits include more elegant code, better reusability, separation of concern and testability.

Expand All @@ -22,7 +27,6 @@ Mainly, our crowdsales have the following major parts
* Finalizing strategy: What happens after a successful crowdsale: allow tokens to be transferable, give out extra tokens, etc.

Background information
^^^^^^^^^^^^^^^^^^^^^^

======================

* https://drive.google.com/file/d/0ByMtMw2hul0EN3NCaVFHSFdxRzA/view

0 comments on commit d334c2d

Please sign in to comment.