Quantstamp Token Sale
This document gives an overview of the smart contracts used for the Quantstamp token and crowdsales.
The Quantstamp token smart contract
QuantstampToken.sol is ERC20-compatible and has the following additional characteristics:
- A fixed supply of pre-minted tokens
- The ability to burn tokens by a user, removing the tokens from the supply
- During the token sale period, regular users cannot transfer tokens
- A crowdsale is given an allowance of tokens to be sold on behalf of the token owner
At the completion of the final token sale, Quantstamp plans to do the following:
- Burn all unallocated tokens
- Enable the ability to transfer tokens for everyone
Once these final two steps are performed, the distribution of tokens is complete.
We use OpenZeppelin code for
SafeMathprovides arithmetic functions that throw exceptions when integer overflow occurs
Ownablekeeps track of a contract owner and permits the transfer of ownership by the current owner
Burnableprovides a burn function that decrements the balance of the burner and the total supply
StandardTokenprovides an implementation of the ERC20 standard
The token contract includes the following constants:
name = "Quantstamp Token"; symbol = "QSP"; decimals = 18; INITIAL_SUPPLY = 1 billion QSP CROWDSALE_SUPPLY = 650 million QSP
The above constants indicate a total supply of 1 billion pre-minted tokens. Of those, 650 million tokens are set aside as an allowance for crowdsale purposes.
The Quantstamp crowdsale smart contract may be used to sell QSP tokens. To begin a crowdsale, the token owner must call the
setCrowdsale() function of the token contract, passing the address of the crowdsale and the requested allowance of tokens to be sold. Although ownership of the tokens is tied up in the token contract, the crowdsale is given an allowance of tokens from the crowdsale supply and thus is able to transfer tokens to users.
To learn more about the token sale, please visit here.
Copyright 2017 Quantstamp Technologies Inc. All Rights Reserved.