Extension of Crowdsale contract that increases the price of tokens linearly in time. Note that what should be provided to the constructor is the initial and final _rates_, that is, the amount of tokens per wei contributed. Thus, the initial rate must be greater than the final rate.
function _getTokenAmount(uint256 weiAmount) internal view returns (uint256)
Overrides parent method taking into account variable rate.
weiAmount- The value in wei to be converted into tokens
- The number of tokens _weiAmount wei will buy at present time
function (uint256 initialRate, uint256 finalRate) internal
Constructor, takes initial and final rates of tokens received per wei contributed.
initialRate- Number of tokens a buyer gets per wei at the start of the crowdsale
finalRate- Number of tokens a buyer gets per wei at the end of the crowdsale
function finalRate() public view returns (uint256)
- the final rate of the crowdsale.
function getCurrentRate() public view returns (uint256)
Returns the rate of tokens per wei at the present time. Note that, as price _increases_ with time, the rate _decreases_.
- The number of tokens a buyer gets per wei at a given time
function initialRate() public view returns (uint256)
- the initial rate of the crowdsale.
function rate() public view returns (uint256)
The base rate function is overridden to revert, since this crowdsale doens't use it, and all calls to it are a mistake.