commit f2648dfb68c82891e541704c4bae27d0d7e5edd5
parent d4906529a3206b314d5d5aee4bb308e0b1344100
Author: lash <dev@holbrook.no>
Date: Sun, 26 Mar 2023 07:34:27 +0100
Update Expire ERC165 signature
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/python/CHANGELOG b/python/CHANGELOG
@@ -1,3 +1,9 @@
+- 0.5.2
+ * Update ERC165 interface response for Expire
+- 0.5.1
+ * Update ERC165 interface responses
+- 0.5.0
+ * Change license
- 0.4.2
* Correct burn interface implementation
- 0.4.1
diff --git a/python/setup.cfg b/python/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = erc20-demurrage-token
-version = 0.5.1
+version = 0.5.2
description = ERC20 token with redistributed continual demurrage
author = Louis Holbrook
author_email = dev@holbrook.no
diff --git a/solidity/DemurrageTokenSingleNocap.sol b/solidity/DemurrageTokenSingleNocap.sol
@@ -209,6 +209,7 @@ contract DemurrageTokenSingleNocap {
// Expire the contract if expire is set and we have gone over the threshold.
// Finalizes demurrage up to the timestamp of the expiry.
// The first approve, transfer or transferFrom call that hits the ex == 2 will get the tx mined. but without the actual effect. Otherwise we would have to wait until an external egent called applyExpiry to get the correct final balance.
+ // Implements Expire
function applyExpiry() public returns(uint8) {
if (expired) {
return 1;
@@ -751,7 +752,7 @@ contract DemurrageTokenSingleNocap {
if (_sum == 0xabe1f1f5) { // Writer
return true;
}
- if (_sum == 0xcb52c823) { // Expire
+ if (_sum == 0x841a0e94) { // Expire
return true;
}
if (_sum == 0x01ffc9a7) { // ERC165