contracts: StatusContribution: Rename `cap` to `toCollect`

This commit is contained in:
nfnty 2017-06-15 08:22:39 +02:00
parent fe50df9e80
commit a6a2012999
No known key found for this signature in database
GPG Key ID: 32DD96A5D0370907
1 changed files with 4 additions and 4 deletions

View File

@ -219,11 +219,11 @@ contract StatusContribution is Owned, TokenController {
}
function buyGuaranteed(address _th) internal {
uint256 toFund;
uint256 cap = guaranteedBuyersLimit[_th];
uint256 toCollect = guaranteedBuyersLimit[_th];
if (guaranteedBuyersBought[_th].add(msg.value) > cap) {
toFund = cap.sub(guaranteedBuyersBought[_th]);
uint256 toFund;
if (guaranteedBuyersBought[_th].add(msg.value) > toCollect) {
toFund = toCollect.sub(guaranteedBuyersBought[_th]);
} else {
toFund = msg.value;
}