Skip to content

Commit

Permalink
Merge pull request #2 from EthereumCommonwealth/master
Browse files Browse the repository at this point in the history
Update from master.
  • Loading branch information
yuriy77k committed Oct 8, 2018
2 parents c986065 + f7cef6b commit 95f2741
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ColdStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ contract ColdStaking {
uint time;
}

uint public LastBlock;
uint public Timestamp; //timestamp of the last interaction with the contract.

uint public LastBlock = block.number;
uint public Timestamp = now; //timestamp of the last interaction with the contract.

uint public TotalStakingWeight; //total weight = sum (each_staking_amount * each_staking_time).
uint public TotalStakingAmount; //currently frozen amount for Staking.
uint public StakingRewardPool; //available amount for paying rewards.
Expand All @@ -72,11 +74,7 @@ contract ColdStaking {
//========== end testing values ===================*/

mapping(address => Staker) public staker;

constructor () public {
Timestamp = now;
}


function freeze(bool _f) public only_treasurer
{
CS_frozen = _f;
Expand Down

0 comments on commit 95f2741

Please sign in to comment.