Skip to content

Commit

Permalink
Rename rateChange to rateStepDecrease to avoid confusion with event
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobond committed Jul 20, 2017
1 parent 33789d6 commit 451ee4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/MANACrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ contract MANACrowdsale is ContinuousCrowdsale, CappedCrowdsale, WhitelistedCrowd
mapping (address => uint256) public buyerRate;

// change of price in every block during the initial coin offering
uint256 public rateChange;
uint256 public rateStepDecrease;

event RateChange(uint256 amount);

function MANACrowdsale(
uint256 _startBlock, uint256 _endBlock,
uint256 _rate, uint256 _rateChange,
uint256 _rate, uint256 _rateStepDecrease,
uint256 _preferentialRate,
address _wallet
)
Expand All @@ -37,7 +37,7 @@ contract MANACrowdsale is ContinuousCrowdsale, CappedCrowdsale, WhitelistedCrowd
FinalizableCrowdsale()
Crowdsale(_startBlock, _endBlock, _rate, _wallet)
{
rateChange = _rateChange;
rateStepDecrease = _rateStepDecrease;
preferentialRate = _preferentialRate;
}

Expand Down Expand Up @@ -69,7 +69,7 @@ contract MANACrowdsale is ContinuousCrowdsale, CappedCrowdsale, WhitelistedCrowd
}

// otherwise compute the price for the auction
return rate.sub(rateChange.mul(block.number - startBlock));
return rate.sub(rateStepDecrease.mul(block.number - startBlock));
}

// low level token purchase function
Expand Down

0 comments on commit 451ee4d

Please sign in to comment.