Update Expire ERC165 signature

This commit is contained in:
lash 2023-03-26 07:34:27 +01:00
parent d4906529a3
commit f2648dfb68
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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