mirror of
git://holbrook.no/erc20-demurrage-token
synced 2024-11-21 15:56:46 +01:00
Update Expire ERC165 signature
This commit is contained in:
parent
d4906529a3
commit
f2648dfb68
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user