mirror of
git://holbrook.no/erc20-demurrage-token
synced 2024-11-25 17:26:45 +01:00
Remove unneeded demurragestart item
This commit is contained in:
parent
31faa78346
commit
ee871730dc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -20,8 +20,6 @@ contract DemurrageTokenSingleCap {
|
|||||||
// Cached demurrage amount, ppm with 38 digit resolution
|
// Cached demurrage amount, ppm with 38 digit resolution
|
||||||
uint128 public demurrageAmount;
|
uint128 public demurrageAmount;
|
||||||
|
|
||||||
uint256 public demurrageStart;
|
|
||||||
|
|
||||||
// Cached demurrage timestamp; the timestamp for which demurrageAmount was last calculated
|
// Cached demurrage timestamp; the timestamp for which demurrageAmount was last calculated
|
||||||
uint256 public demurrageTimestamp;
|
uint256 public demurrageTimestamp;
|
||||||
|
|
||||||
@ -115,7 +113,6 @@ contract DemurrageTokenSingleCap {
|
|||||||
periodStart = demurrageTimestamp;
|
periodStart = demurrageTimestamp;
|
||||||
periodDuration = _periodMinutes * 60;
|
periodDuration = _periodMinutes * 60;
|
||||||
demurrageAmount = uint128(nanoDivider) * 100;
|
demurrageAmount = uint128(nanoDivider) * 100;
|
||||||
demurrageStart = demurrageAmount;
|
|
||||||
taxLevel = _taxLevelMinute; // Represents 38 decimal places
|
taxLevel = _taxLevelMinute; // Represents 38 decimal places
|
||||||
bytes32 initialRedistribution = toRedistribution(0, demurrageAmount, 0, 1);
|
bytes32 initialRedistribution = toRedistribution(0, demurrageAmount, 0, 1);
|
||||||
redistributions.push(initialRedistribution);
|
redistributions.push(initialRedistribution);
|
||||||
@ -252,7 +249,6 @@ contract DemurrageTokenSingleCap {
|
|||||||
uint256 currentRedistribution;
|
uint256 currentRedistribution;
|
||||||
uint256 grownSupply;
|
uint256 grownSupply;
|
||||||
|
|
||||||
//grownSupply = growBy(totalSupply, 1);
|
|
||||||
grownSupply = totalSupply;
|
grownSupply = totalSupply;
|
||||||
currentRedistribution = uint256(redistributions[redistributions.length-1]);
|
currentRedistribution = uint256(redistributions[redistributions.length-1]);
|
||||||
currentRedistribution &= (~maskRedistributionValue);
|
currentRedistribution &= (~maskRedistributionValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user