Compare commits

..

No commits in common. "17638b0a515bad13f1c5df3aa98f1cc61d7aca5f" and "1b167f8dd1dcfe276871ec30a0387b29502a616d" have entirely different histories.

2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = erc20-demurrage-token name = erc20-demurrage-token
version = 0.3.1 version = 0.3.0
description = ERC20 token with redistributed continual demurrage description = ERC20 token with redistributed continual demurrage
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no
@ -41,3 +41,4 @@ packages =
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
erc20-demurrage-token-deploy = erc20_demurrage_token.runnable.deploy:main erc20-demurrage-token-deploy = erc20_demurrage_token.runnable.deploy:main
erc20-demurrage-token-apply = erc20_demurrage_token.runnable.apply:main

View File

@ -4,7 +4,7 @@ pragma solidity >= 0.8.0;
import "aux/ABDKMath64x64.sol"; import "aux/ABDKMath64x64.sol";
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
contract DemurrageTokenSingleNocap { contract DemurrageTokenSingleCap {
struct redistributionItem { struct redistributionItem {
uint32 period; uint32 period;
@ -35,7 +35,7 @@ contract DemurrageTokenSingleNocap {
string public symbol; string public symbol;
// Implements ERC20 // Implements ERC20
uint256 public immutable decimals; uint256 public decimals;
// Implements ERC20 // Implements ERC20
//uint256 public totalSupply; //uint256 public totalSupply;
@ -69,7 +69,7 @@ contract DemurrageTokenSingleNocap {
// Demurrage in ppm per minute // Demurrage in ppm per minute
//uint256 public immutable taxLevel; //uint256 public immutable taxLevel;
// 64x64 // 64x64
int128 public immutable taxLevel; int128 public taxLevel;
// Addresses allowed to mint new tokens // Addresses allowed to mint new tokens
mapping (address => bool) minter; mapping (address => bool) minter;